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

Public Member Functions

MenuWidgetMenuWidget__create ()
 
bool MenuWidget__init (MenuWidget *mw, App *app)
 
void MenuWidget__render (MenuWidget *mw, const ImVec2 &window_pos, const ImVec2 &window_size, const ImVec2 &popup_pos, const ImVec2 &popup_size)
 
bool MenuWidget__terminate (MenuWidget *mw)
 
void MenuWidget__destroy (MenuWidget *mw)
 

Public Attributes

Texture btn_tex_open
 
Texture btn_tex_tile
 
Texture btn_tex_export
 
Appapp
 

Member Function Documentation

MenuWidget * MenuWidget__create ( )

Create new MenuWidget instance

Returns
NULL if memory allocation was impossible, otherwise a valid pointer to MenuWidget
void MenuWidget__destroy ( MenuWidget mw)

Destroy MenuWidget

Parameters
[in]mwMenuWidget to be destroyed
bool MenuWidget__init ( MenuWidget mw,
App app 
)

Initialize MenuWidget at the start of the application

Remarks
Should only be called by App
Parameters
mwMenuWidget to be initialized
app
Returns
true if initialization was successful
void MenuWidget__render ( MenuWidget mw,
const ImVec2 &  window_pos,
const ImVec2 &  window_size,
const ImVec2 &  popup_pos,
const ImVec2 &  popup_size 
)

Render MenuWidget

Parameters
mwMenuWidget to be rendered
[in]window_posposition of MenuWidget window
[in]window_sizesize of MenuWidget window
bool MenuWidget__terminate ( MenuWidget mw)

Terminate MenuWidget before the application terminates

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

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