119 ypos = 380 - 30 * nbItems;
122 GfTrace(
"Too many items in that menu !!!\n");
126 ypos = 380 - 30 * (nbItems - 11);
179 GfuiAddKey(scr, (
unsigned char)27, tip, userdata, onpush, NULL);
int GfuiButtonCreate(void *scr, const char *text, int font, int x, int y, int width, int align, int mouse, void *userDataOnPush, tfuiCallback onPush, void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost)
Add a button to a screen.
int GfuiMenuButtonCreate(void *scr, const char *text, const char *tip, void *userdata, tfuiCallback onpush)
Add a button to a menu screen.
void GfuiAddKey(void *scr, unsigned char key, const char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased)
Add a Keyboard callback to a screen.
void * GfuiMenuScreenCreate(const char *title)
Create a new menu screen.
The Gaming Framework API (client part).
void GfuiMenuDefaultKeysAdd(void *scr)
Add the default menu keyboard callback to a screen.
void(* tfuiCallback)(void *)
void GfuiAddSKey(void *scr, int key, const char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased)
Add a Special Keyboard shortcut to the screen.
void gfuiSelectPrev(void *)
void GfuiHelpScreen(void *prevScreen)
Generate a help screen.
void GfuiScreenShot(void *)
Save a screen shot in png format.
int GfuiTitleCreate(void *scr, const char *text, int maxlen)
Add a Title to the screen.
void * GfuiScreenCreate(void)
Create a new screen.
void gfuiMouseAction(void *action)
int GfuiVisibilitySet(void *scr, int id, int visible)
Set/unset the visibility attribute of an object.
int GfuiTipCreate(void *scr, const char *text, int maxlen)
Add a Tip (generally associated with a button).
int GfuiMenuBackQuitButtonCreate(void *scr, const char *text, const char *tip, void *userdata, tfuiCallback onpush)
Add the "Back" or "Quit" button at the bottom of the menu screen.
void gfuiSelectNext(void *)