#include <pebble.h>
#include "libs/magpebapp.h"
Go to the source code of this file.
|
MagPebApp_ErrCode | WndDataMenu_updateView (WndDataMenu *this) |
|
MagPebApp_ErrCode | WndDataMenu_setNumSections (WndDataMenu *this, const uint16_t) |
|
MagPebApp_ErrCode | WndDataMenu_setSectionTitle (WndDataMenu *this, const uint16_t, const char *) |
|
MagPebApp_ErrCode | WndDataMenu_buildSection (WndDataMenu *this, const uint16_t, const uint16_t, const char *) |
|
MagPebApp_ErrCode | WndDataMenu_buildRow (WndDataMenu *this, const uint16_t, const uint16_t, const char *, const char *) |
|
MagPebApp_ErrCode | WndDataMenu_setPalette (WndDataMenu *this, const WndDataMenu_Palette) |
|
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_destroy (WndDataMenu *this) |
|
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).
- Parameters
-
[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. |
- Returns
- MPA_SUCCESS on success MPA_INVALID_INPUT_ERR if sectIdx is not a valid section index or rowIdx is not a valid row index in that section. MPA_NULL_POINTER_ERR if parameters this or this->sections are NULL upon entry.
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.
- Parameters
-
[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. |
- Returns
- MPA_SUCCESS on success MPA_INVALID_INPUT_ERR if sectIdx is not a valid section index MPA_NULL_POINTER_ERR if parameters this or this->sections are NULL upon entry.
Creates a data menu window and pushes it on the window stack.
Sets the number of sections for this data menu.
- Parameters
-
[in,out] | this | Pointer to the WndDataMenu "object"; must be already allocated. |
[in] | num | Number of sections |
Sets the title for a section of this data menu.
- Parameters
-
[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. |
- Returns
- MPA_SUCCESS on success MPA_INVALID_INPUT_ERR if sectIdx is not a valid section index MPA_NULL_POINTER_ERR if parameters this or this->sections are NULL upon entry.