General management for menu, dialog boxes ...
More...
Go to the source code of this file.
- Author
- FL
- Date
- 07/2007
-
10/2008
- Version
- 3.0 Add Primer 2 and ST library v2.0.3
-
4.0 Add Open4 Primer
- Date
- 10/2009
Definition in file menu.c.
void MENU_ClearCurrentCommand |
( |
void |
) | |
|
Set CurrentCommand to 0.
Definition at line 993 of file menu.c.
void MENU_ClearCurrentMenu |
( |
void |
) | |
|
Set CurrentMenu to 0
Definition at line 1009 of file menu.c.
color_t MENU_GetBGndColor |
( |
void |
) | |
|
Return the background color used for menu.
- Returns
- Menu background color.
Definition at line 803 of file menu.c.
color_t MENU_GetTextColor |
( |
void |
) | |
|
Return the color used for text menu.
- Returns
- Menu text color.
Definition at line 767 of file menu.c.
void MENU_Print |
( |
const u8 * |
str) | |
|
Display a popup menu with a string.
- Parameters
-
[in] | str | The string to display. |
Definition at line 1027 of file menu.c.
void MENU_Question |
( |
const u8 * |
str, |
|
|
bool * |
answer |
|
) |
| |
Dedicated menu for ask question and yes/no responses.
- Parameters
-
[in] | str | A pointer to the string containing the question. |
[out] | answer | 1 for yes, 0 for no. |
Definition at line 974 of file menu.c.
Leave the current menu (stand for "cancel") and clear screen.
- Return values
-
Definition at line 731 of file menu.c.
void MENU_Remove |
( |
void |
) | |
|
Remove current menu, clear screen and set pointer "on".
Definition at line 819 of file menu.c.
void MENU_RestoreAppliDivider |
( |
void |
) | |
|
Restore the default divider (MENU) for the application divider
Definition at line 1067 of file menu.c.
void MENU_Set |
( |
tMenu * |
mptr) | |
|
Display provided menu.
- Parameters
-
[in] | mptr | A pointer to the menu to display. |
Definition at line 845 of file menu.c.
void MENU_SetAppliDivider |
( |
divider_t |
divider) | |
|
Set new value of the call time application divider. Upon each systick, CircleOS will have the opportunity to call your application or not, depending on this divider. If divider = 1, your application will be called upon each systick interrupt. If divider == 2 your application will be called only every other systick occurrence.
- Parameters
-
[in] | divider | : The new value of the divider. |
Definition at line 1051 of file menu.c.
void MENU_SetBGndColor |
( |
color_t |
bgndColor) | |
|
Set the background color used for menu.
- Parameters
-
[in] | bgndColor | New menu background color. |
Definition at line 785 of file menu.c.
void MENU_SetTextColor |
( |
color_t |
TxtColor) | |
|
Set the color used for text menu.
- Parameters
-
[in] | TxtColor | New color used for menu text. |
Definition at line 749 of file menu.c.