menu.c File Reference

General management for menu, dialog boxes ... More...


Functions

enum MENU_code MENU_Quit (void)
void MENU_SetTextColor (int TextColor)
int MENU_GetTextColor (void)
void MENU_SetBGndColor (int BGndColor)
int MENU_GetBGndColor (void)
void MENU_Remove (void)
void MENU_Set (tMenu *mptr)
void MENU_Question (char *str, int *answer)
void MENU_ClearCurrentCommand (void)
void MENU_ClearCurrentMenu (void)
void MENU_Print (char *str)


Detailed Description

Author:
FL
Date:
07/2007

Function Documentation

void MENU_ClearCurrentCommand ( void   ) 

Set CurrentCommand to 0.

void MENU_ClearCurrentMenu ( void   ) 

Set CurrentMenu to 0

int MENU_GetBGndColor ( void   ) 

Return the background color used for menu.

Returns:
Menu background color.

int MENU_GetTextColor ( void   ) 

Return the color used for text menu.

Returns:
Menu text color.

void MENU_Print ( char *  str  ) 

Display a popup menu with a string.

Parameters:
[in] str The string to display.

void MENU_Question ( char *  str,
int *  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.

enum MENU_code MENU_Quit ( void   ) 

Leave the current menu (stand for "cancel") and clear screen.

Return values:
MENU_LEAVE 

void MENU_Remove ( void   ) 

Remove current menu, clear screen and set pointer "on".

void MENU_Set ( tMenu mptr  ) 

Display provdided menu.

Parameters:
[in] mptr A pointer to the menu to display.

void MENU_SetBGndColor ( int  BGndColor  ) 

Set the background color used for menu.

Parameters:
[in] BGndColor New menu background color.

void MENU_SetTextColor ( int  TextColor  ) 

Set the color used for text menu.

Parameters:
[in] TextColor New color used for menu text.