![]() |
Global Lender
A Pebble app for finding new and interesting loans on kiva.org
|
Functions | |
MagPebApp_ErrCode | WndDataMenu_updateView (WndDataMenu *this) |
MagPebApp_ErrCode | WndDataMenu_setNumSections (WndDataMenu *this, const uint16_t numSections) |
MagPebApp_ErrCode | WndDataMenu_setSectionTitle (WndDataMenu *this, const uint16_t sectIdx, const char *headerTitle) |
MagPebApp_ErrCode | WndDataMenu_buildSection (WndDataMenu *this, const uint16_t sectIdx, const uint16_t numRows, const char *headerTitle) |
MagPebApp_ErrCode | WndDataMenu_buildRow (WndDataMenu *this, const uint16_t sectIdx, const uint16_t rowIdx, const char *rowTitle, const char *rowSubtitle) |
MagPebApp_ErrCode | WndDataMenu_setPalette (WndDataMenu *this, const WndDataMenu_Palette pal) |
MagPebApp_ErrCode | WndDataMenu_push (WndDataMenu *this) |
WndDataMenu * | WndDataMenu_create () |
Creates a data menu window and pushes it on the window stack. More... | |
MagPebApp_ErrCode | WndDataMenu_init (WndDataMenu *this) |
MagPebApp_ErrCode | WndDataMenu_destroy (WndDataMenu *this) |
Variables | |
const uint16_t | WndDataMenu_defaultNumSections = 1 |
const uint16_t | WndDataMenu_defaultNumRows = 1 |
const char * | WndDataMenu_defaultRowTitle = "Please wait..." |
MagPebApp_ErrCode WndDataMenu_buildRow | ( | WndDataMenu * | this, |
const uint16_t | sectIdx, | ||
const uint16_t | rowIdx, | ||
const char * | rowTitle, | ||
const char * | rowSubtitle | ||
) |
Sets up a row in a section of this data menu.
A call to this function must be preceded by a call to buildSection to allocate the number of rows in this data menu section (default is 1).
[in,out] | this | Pointer to the WndDataMenu "object"; must be already allocated. |
[in] | sectIdx | The index of the section that this function will build. |
[in] | rowIdx | The index of the row that this function will build. |
[in] | rowTitle | The title for this row. May be NULL. |
[in] | rowSubtitle | The subtitle for this section. May be NULL. |
MagPebApp_ErrCode WndDataMenu_buildSection | ( | WndDataMenu * | this, |
const uint16_t | sectIdx, | ||
const uint16_t | numRows, | ||
const char * | headerTitle | ||
) |
Sets up a section of this data menu.
A call to this function may be preceded by a call to setNumSections to indicate the number of sections in this data menu (default is 1). A call to this function should be followed by a call buildRow to setup the rows within this section.
[in,out] | this | Pointer to the WndDataMenu "object"; must be already allocated. |
[in] | sectIdx | The index of the section that this function will build. |
[in] | numRows | Indicates the number of rows this section will contain. |
[in] | headerTitle | The title for this section. May be NULL. |
WndDataMenu* WndDataMenu_create | ( | ) |
Creates a data menu window and pushes it on the window stack.
MagPebApp_ErrCode WndDataMenu_destroy | ( | WndDataMenu * | this | ) |
MagPebApp_ErrCode WndDataMenu_init | ( | WndDataMenu * | this | ) |
Internal initialization
[in,out] | this | Pointer to WndDataMenu; must be already allocated |
MagPebApp_ErrCode WndDataMenu_push | ( | WndDataMenu * | this | ) |
MagPebApp_ErrCode WndDataMenu_setNumSections | ( | WndDataMenu * | this, |
const uint16_t | numSections | ||
) |
Sets the number of sections for this data menu.
[in,out] | this | Pointer to the WndDataMenu "object"; must be already allocated. |
[in] | num | Number of sections |
MagPebApp_ErrCode WndDataMenu_setPalette | ( | WndDataMenu * | this, |
const WndDataMenu_Palette | pal | ||
) |
MagPebApp_ErrCode WndDataMenu_setSectionTitle | ( | WndDataMenu * | this, |
const uint16_t | sectIdx, | ||
const char * | headerTitle | ||
) |
Sets the title for a section of this data menu.
[in,out] | this | Pointer to the WndDataMenu "object"; must be already allocated. |
[in] | sectIdx | The index of the section that this function will build. |
[in] | headerTitle | The title for this section. May be NULL. |
MagPebApp_ErrCode WndDataMenu_updateView | ( | WndDataMenu * | this | ) |
const uint16_t WndDataMenu_defaultNumRows = 1 |
const uint16_t WndDataMenu_defaultNumSections = 1 |
const char* WndDataMenu_defaultRowTitle = "Please wait..." |