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

Public Member Functions

MapWidgetMapWidget__create ()
 
bool MapWidget__init (MapWidget *mw, App *app)
 
void MapWidget__render (MapWidget *mw, const ImVec2 &window_pos, const ImVec2 &window_size)
 
bool MapWidget__terminate (MapWidget *mw)
 
void MapWidget__destroy (MapWidget *mw)
 

Public Attributes

Texture texTile
 
Appapp
 

Member Function Documentation

MapWidget * MapWidget__create ( )

Create new MapWidget instance

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

Destroy MapWidget

Parameters
[in]mwMapWidget to be destroyed
bool MapWidget__init ( MapWidget mw,
App app 
)

Initialize MapWidget at the start of the application

Remarks
Should only be called by App
Parameters
mwMapWidget to be initialized
app
Returns
true if initialization was successful
void MapWidget__render ( MapWidget mw,
const ImVec2 &  window_pos,
const ImVec2 &  window_size 
)

Render MapWidget

Parameters
mwMapWidget to be rendered
[in]window_posposition of MapWidget window
[in]window_sizesize of MapWidget window
bool MapWidget__terminate ( MapWidget mw)

Terminate MapWidget before the application terminates

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

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