Catchea
Topographic Data Browser
Public Member Functions | Public Attributes | List of all members
ControlWidget Struct Reference
Collaboration diagram for ControlWidget:
Collaboration graph
[legend]

Public Member Functions

ControlWidgetControlWidget__create ()
 
bool ControlWidget__init (ControlWidget *cw, App *app)
 
void ControlWidget__render (ControlWidget *cw, const ImVec2 &window_pos, const ImVec2 &window_size)
 
bool ControlWidget__terminate (ControlWidget *cw)
 
void ControlWidget__destroy (ControlWidget *cw)
 

Public Attributes

Appapp
 
int jumpMax
 

Member Function Documentation

ControlWidget * ControlWidget__create ( )

Create new ControlWidget instance

Returns
NULL if memory allocation was impossible, otherwise a valid pointer to ControlWidget
void ControlWidget__destroy ( ControlWidget cw)

Destroy ControlWidget

Parameters
[in]cwControlWidget to be destroyed
bool ControlWidget__init ( ControlWidget cw,
App app 
)

Initialize ControlWidget at the start of the application

Remarks
Should only be called by App
Parameters
cwControlWidget to be initialized
app
Returns
true if initialization was successful
void ControlWidget__render ( ControlWidget cw,
const ImVec2 &  window_pos,
const ImVec2 &  window_size 
)

Render ControlWidget

Parameters
cwControlWidget to be rendered
[in]window_posposition of ControlWidget window
[in]window_sizesize of ControlWidget window
bool ControlWidget__terminate ( ControlWidget cw)

Terminate ControlWidget before the application terminates

Remarks
Should only be called by App
Parameters
cwControlWidget to be terminated
Returns
true if termination was successful

The documentation for this struct was generated from the following file: