This is an interface to manage menus. More...
Files | |
| file | gui.cpp |
| This API is used to manage all the menu screens. | |
| file | guibutton.cpp |
| GUI Buttons Management. | |
| file | guiedit.cpp |
| GUI Edit Box Management. | |
| file | guihelp.cpp |
| GUI help screen management. | |
| file | guiimage.cpp |
| GUI Images management. | |
| file | guilabel.cpp |
| GUI labels management. | |
| file | guimenu.cpp |
| GUI menu management. | |
| file | guiscrollbar.cpp |
| GUI scrollbar management. | |
| file | guiscrollist.cpp |
| GUI scroll-list management. | |
Functions | |
| void | GfuiDisplayNothing (void) |
| Dummy display function for glut. More... | |
| void | GfuiIdle (void) |
| Idle function for the GUI to be called during Idle loop of glut. More... | |
| void | GfuiDisplay (void) |
| Display function for the GUI to be called during redisplay of glut. More... | |
| void | GfuiMouseHide (void) |
| Hide the mouse cursor. More... | |
| void | GfuiMouseShow (void) |
| Show the mouse cursor. More... | |
| tMouseInfo * | GfuiMouseInfo (void) |
| Get the mouse information (position and buttons) More... | |
| void | GfuiMouseSetPos (int x, int y) |
| Set the mouse position. More... | |
| int | GfuiScreenIsActive (void *screen) |
| Tell if the screen is active or not. More... | |
| void | GfuiScreenActivate (void *screen) |
| Activate a screen and make it current. More... | |
| void | GfuiScreenReplace (void *screen) |
| Activate a screen and make it current plus release the current screen. More... | |
| void | GfuiScreenDeactivate (void) |
| Deactivate the current screen. More... | |
| void * | GfuiScreenCreate (void) |
| Create a new screen. More... | |
| void * | GfuiScreenCreateEx (float *bgColor, void *userDataOnActivate, tfuiCallback onActivate, void *userDataOnDeactivate, tfuiCallback onDeactivate, int mouseAllowed) |
| Create a screen. More... | |
| void | GfuiScreenRelease (void *scr) |
| Release the given screen. More... | |
| void * | GfuiHookCreate (void *userDataOnActivate, tfuiCallback onActivate) |
| Create a callback hook. More... | |
| void | GfuiHookRelease (void *hook) |
| Release the given hook. More... | |
| void | GfuiAddKey (void *scr, unsigned char key, const char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased) |
| Add a Keyboard callback to a screen. More... | |
| void | GfuiRegisterKey (unsigned char key, char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased) |
| Add a Keyboard callback to the current screen. More... | |
| void | GfuiAddSKey (void *scr, int key, const char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased) |
| Add a Special Keyboard shortcut to the screen. More... | |
| void | GfuiScreenAddBgImg (void *scr, const char *filename) |
| Add an image background to a screen. More... | |
| int | GfuiGrButtonCreate (void *scr, const char *disabled, const char *enabled, const char *focused, const char *pushed, int x, int y, int align, int mouse, void *userDataOnPush, tfuiCallback onPush, void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost) |
| Add a graphical button to a screen. More... | |
| int | GfuiButtonStateCreate (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 state button to a screen. More... | |
| 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. More... | |
| void | GfuiButtonSetText (void *scr, int id, const char *text) |
| Change the label of a button. More... | |
| int | GfuiButtonGetFocused (void) |
| Get the Id of the button focused in the current screen. More... | |
| int | GfuiEditboxCreate (void *scr, const char *text, int font, int x, int y, int width, int maxlen, void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost, int margin) |
| Add a editbox to a screen. More... | |
| int | GfuiEditboxGetFocused (void) |
| Get the Id of the editbox focused in the current screen. More... | |
| char * | GfuiEditboxGetString (void *scr, int id) |
| Get the string. More... | |
| void | GfuiEditboxSetString (void *scr, int id, const char *text) |
| Set a new string. More... | |
| void | GfuiHelpScreen (void *prevScreen) |
| Generate a help screen. More... | |
| int | GfuiStaticImageCreate (void *scr, int x, int y, int w, int h, char *name) |
| Create a new static image. More... | |
| void | GfuiStaticImageSet (void *scr, int id, char *name) |
| Replace an image by another one. More... | |
| int | GfuiLabelCreateEx (void *scr, const char *text, float *fgColor, int font, int x, int y, int align, int maxlen) |
| Create a new label (extended version). More... | |
| int | GfuiLabelCreate (void *scr, const char *text, int font, int x, int y, int align, int maxlen) |
| Add a label to a screen. More... | |
| int | GfuiTitleCreate (void *scr, const char *text, int maxlen) |
| Add a Title to the screen. More... | |
| void | GfuiLabelSetText (void *scr, int id, const char *text) |
| Change the text of a label. More... | |
| void | GfuiLabelSetColor (void *scr, int id, float *color) |
| Change the color of a label. More... | |
| void | GfuiMenuDefaultKeysAdd (void *scr) |
| Add the default menu keyboard callback to a screen. More... | |
| void * | GfuiMenuScreenCreate (const char *title) |
| Create a new menu screen. More... | |
| int | GfuiMenuButtonCreate (void *scr, const char *text, const char *tip, void *userdata, tfuiCallback onpush) |
| Add a button to a menu screen. More... | |
| 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. More... | |
| void | GfuiUnSelectCurrent (void) |
| Remove the focus on the current element. More... | |
| int | GfuiVisibilitySet (void *scr, int id, int visible) |
| Set/unset the visibility attribute of an object. More... | |
| int | GfuiEnable (void *scr, int id, int flag) |
| Enable / Disable an object. More... | |
| int | GfuiScrollBarCreate (void *scr, int x, int y, int align, int width, int orientation, int min, int max, int len, int start, void *userData, tfuiSBCallback onScroll) |
| Create a new scroll bar. More... | |
| int | GfuiScrollBarPosGet (void *scr, int id) |
| Get the current position of a scroll bar. More... | |
| void | GfuiScrollBarPosSet (void *scr, int id, int min, int max, int len, int start) |
| Set new values for position. More... | |
| int | GfuiScrollListCreate (void *scr, int font, int x, int y, int align, int width, int height, int scrollBarPos, void *userDataOnSelect, tfuiCallback onSelect) |
| Create a new scroll list. More... | |
| char * | GfuiScrollListGetSelectedElement (void *scr, int Id, void **userData) |
| Get the selected element from the scroll list. More... | |
| char * | GfuiScrollListGetElement (void *scr, int Id, int index, void **userData) |
| Get the specified element from the scroll list. More... | |
| char * | GfuiScrollListExtractSelectedElement (void *scr, int Id, void **userData) |
| Extract the selected element from the scroll list (removed). More... | |
| char * | GfuiScrollListExtractElement (void *scr, int Id, int index, void **userData) |
| Extract the specified element from the scroll list. More... | |
| int | GfuiScrollListInsertElement (void *scr, int Id, char *element, int index, void *userData) |
| Insert an element in a scroll list. More... | |
| int | GfuiScrollListMoveSelectedElement (void *scr, int Id, int delta) |
| Move the selected element within the scroll list. More... | |
This is an interface to manage menus.
| void GfuiAddKey | ( | void * | scr, |
| unsigned char | key, | ||
| const char * | descr, | ||
| void * | userData, | ||
| tfuiCallback | onKeyPressed, | ||
| tfuiCallback | onKeyReleased | ||
| ) |
| void GfuiAddSKey | ( | void * | scr, |
| int | key, | ||
| const char * | descr, | ||
| void * | userData, | ||
| tfuiCallback | onKeyPressed, | ||
| tfuiCallback | onKeyReleased | ||
| ) |
Add a Special Keyboard shortcut to the screen.
(see glut for normal and special keys)
| scr | Screen |
| key | Key code (glut value) |
| descr | Description for help screen |
| userData | Parameter to the callback function |
| onKeyPressed | Callback function |
| onKeyReleased | Callback function |
| 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.
| scr | Screen |
| text | Button label |
| font | Font id |
| x | X position on screen |
| y | Y position on screen (0 = bottom) |
| width | width of the button (0 = text size) |
| align | Button alignment: GFUI_ALIGN_HR_VB horizontal right, vertical bottom GFUI_ALIGN_HR_VC horizontal right, vertical center GFUI_ALIGN_HR_VT horizontal right, vertical top GFUI_ALIGN_HC_VB horizontal center, vertical bottom GFUI_ALIGN_HC_VC horizontal center, vertical center GFUI_ALIGN_HC_VT horizontal center, vertical top GFUI_ALIGN_HL_VB horizontal left, vertical bottom GFUI_ALIGN_HL_VC horizontal left, vertical center GFUI_ALIGN_HL_VT horizontal left, vertical top |
| mouse | Mouse behavior: GFUI_MOUSE_UP Action performed when the mouse right button is released GFUI_MOUSE_DOWN Action performed when the mouse right button is pushed |
| userDataOnPush | Parameter to the Push callback |
| onPush | Push callback function |
| userDataOnFocus | Parameter to the Focus (and lost) callback |
| onFocus | Focus callback function |
| onFocusLost | Focus Lost callback function |
Definition at line 248 of file guibutton.cpp.

| int GfuiButtonGetFocused | ( | void | ) |
Get the Id of the button focused in the current screen.
Definition at line 387 of file guibutton.cpp.
| void GfuiButtonSetText | ( | void * | scr, |
| int | id, | ||
| const char * | text | ||
| ) |
Change the label of a button.
| scr | Screen |
| id | Button Id |
| text | New label of the button |
Definition at line 357 of file guibutton.cpp.

| int GfuiButtonStateCreate | ( | 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 state button to a screen.
| scr | Screen |
| text | Button label |
| font | Font id |
| x | X position on screen |
| y | Y position on screen (0 = bottom) |
| width | width of the button (0 = text size) |
| align | Button alignment: GFUI_ALIGN_HR_VB horizontal right, vertical bottom GFUI_ALIGN_HR_VC horizontal right, vertical center GFUI_ALIGN_HR_VT horizontal right, vertical top GFUI_ALIGN_HC_VB horizontal center, vertical bottom GFUI_ALIGN_HC_VC horizontal center, vertical center GFUI_ALIGN_HC_VT horizontal center, vertical top GFUI_ALIGN_HL_VB horizontal left, vertical bottom GFUI_ALIGN_HL_VC horizontal left, vertical center GFUI_ALIGN_HL_VT horizontal left, vertical top |
| mouse | Mouse behavior: GFUI_MOUSE_UP Action performed when the mouse right button is released GFUI_MOUSE_DOWN Action performed when the mouse right button is pushed |
| userDataOnPush | Parameter to the Push callback |
| onPush | Push callback function |
| userDataOnFocus | Parameter to the Focus (and lost) callback |
| onFocus | Focus callback function |
| onFocusLost | Focus Lost callback function |
Definition at line 188 of file guibutton.cpp.

| void GfuiDisplay | ( | void | ) |
| void GfuiDisplayNothing | ( | void | ) |
| int GfuiEditboxCreate | ( | void * | scr, |
| const char * | text, | ||
| int | font, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | maxlen, | ||
| void * | userDataOnFocus, | ||
| tfuiCallback | onFocus, | ||
| tfuiCallback | onFocusLost, | ||
| int | margin | ||
| ) |
Add a editbox to a screen.
| scr | Screen |
| text | Editbox start text |
| font | Font id |
| x | X position on screen |
| y | Y position on screen (0 = bottom) |
| width | width of the editbox (0 = text size) |
| maxlen | Max lenght of text (0 = text size) |
| userDataOnFocus | Parameter to the Focus (and lost) callback |
| onFocus | Focus callback function |
| onFocusLost | Focus Lost callback function |
| margin | Margin adjustment, default is 10 pixels |
Definition at line 57 of file guiedit.cpp.

| int GfuiEditboxGetFocused | ( | void | ) |
Get the Id of the editbox focused in the current screen.
Definition at line 138 of file guiedit.cpp.
| char* GfuiEditboxGetString | ( | void * | scr, |
| int | id | ||
| ) |
Get the string.
| scr | Screen |
| id | Edit box Id |
Definition at line 358 of file guiedit.cpp.

| void GfuiEditboxSetString | ( | void * | scr, |
| int | id, | ||
| const char * | text | ||
| ) |
Set a new string.
| scr | Screen |
| id | Edit box Id |
| text | text to set |
Definition at line 383 of file guiedit.cpp.

| int GfuiEnable | ( | void * | scr, |
| int | id, | ||
| int | flag | ||
| ) |
Enable / Disable an object.
| scr | Screen |
| id | Object id |
| flag | GFUI_ENABLE or GFUI_DISABLE |
0 ... Ok -1 .. Error Definition at line 434 of file guiobject.cpp.

| int GfuiGrButtonCreate | ( | void * | scr, |
| const char * | disabled, | ||
| const char * | enabled, | ||
| const char * | focused, | ||
| const char * | pushed, | ||
| int | x, | ||
| int | y, | ||
| int | align, | ||
| int | mouse, | ||
| void * | userDataOnPush, | ||
| tfuiCallback | onPush, | ||
| void * | userDataOnFocus, | ||
| tfuiCallback | onFocus, | ||
| tfuiCallback | onFocusLost | ||
| ) |
Add a graphical button to a screen.
| scr | Screen |
| disabled | filename of the image when the button is disabled |
| enabled | filename of the image when the button is enabled |
| focused | filename of the image when the button is focused |
| pushed | filename of the image when the button is pushed |
| x | X position on screen |
| y | Y position on screen (0 = bottom) |
| align | Button alignment |
| mouse | Mouse behavior: GFUI_MOUSE_UP Action performed when the mouse right button is released GFUI_MOUSE_DOWN Action performed when the mouse right button is pushed |
| userDataOnPush | Parameter to the Push callback |
| onPush | Push callback function |
| userDataOnFocus | Parameter to the Focus (and lost) callback |
| onFocus | Focus callback function |
| onFocusLost | Focus Lost callback function |
Definition at line 62 of file guibutton.cpp.

| void GfuiHelpScreen | ( | void * | prevScreen | ) |
Generate a help screen.
| prevScreen | Previous screen to return to |
Definition at line 48 of file guihelp.cpp.

| void* GfuiHookCreate | ( | void * | userDataOnActivate, |
| tfuiCallback | onActivate | ||
| ) |
| void GfuiHookRelease | ( | void * | hook | ) |
| void GfuiIdle | ( | void | ) |
| int GfuiLabelCreate | ( | void * | scr, |
| const char * | text, | ||
| int | font, | ||
| int | x, | ||
| int | y, | ||
| int | align, | ||
| int | maxlen | ||
| ) |
Add a label to a screen.
| scr | Screen where to add the label |
| text | Text of the label |
| font | Font id |
| x | Position of the label on the screen |
| y | Position of the label on the screen |
| align | Alignment: GFUI_ALIGN_HR_VB horizontal right, vertical bottom GFUI_ALIGN_HR_VC horizontal right, vertical center GFUI_ALIGN_HR_VT horizontal right, vertical top GFUI_ALIGN_HC_VB horizontal center, vertical bottom GFUI_ALIGN_HC_VB horizontal center, vertical center GFUI_ALIGN_HC_VB horizontal center, vertical top GFUI_ALIGN_HL_VB horizontal left, vertical bottom GFUI_ALIGN_HL_VB horizontal left, vertical center GFUI_ALIGN_HL_VB horizontal left, vertical top |
| maxlen | Maximum length of the button string (used when the label is changed) 0 for the text length. |
Definition at line 142 of file guilabel.cpp.

| int GfuiLabelCreateEx | ( | void * | scr, |
| const char * | text, | ||
| float * | fgColor, | ||
| int | font, | ||
| int | x, | ||
| int | y, | ||
| int | align, | ||
| int | maxlen | ||
| ) |
Create a new label (extended version).
| scr | Screen where to add the label |
| text | Text of the label |
| fgColor | Pointer on color static array (RGBA) |
| font | Font id |
| x | Position of the label on the screen |
| y | Position of the label on the screen |
| align | Alignment: GFUI_ALIGN_HR_VB horizontal right, vertical bottom GFUI_ALIGN_HR_VC horizontal right, vertical center GFUI_ALIGN_HR_VT horizontal right, vertical top GFUI_ALIGN_HC_VB horizontal center, vertical bottom GFUI_ALIGN_HC_VB horizontal center, vertical center GFUI_ALIGN_HC_VB horizontal center, vertical top GFUI_ALIGN_HL_VB horizontal left, vertical bottom GFUI_ALIGN_HL_VB horizontal left, vertical center GFUI_ALIGN_HL_VB horizontal left, vertical top |
| maxlen | Maximum length of the button string (used when the label is changed) 0 for the text length. |
Definition at line 63 of file guilabel.cpp.

| void GfuiLabelSetColor | ( | void * | scr, |
| int | id, | ||
| float * | color | ||
| ) |
Change the color of a label.
| scr | Screen where to add the label |
| id | Id of the label |
| color | an array of 4 floats (RGBA) |
Definition at line 239 of file guilabel.cpp.

| void GfuiLabelSetText | ( | void * | scr, |
| int | id, | ||
| const char * | text | ||
| ) |
Change the text of a label.
| scr | Screen where to add the label |
| id | Id of the label |
| text | Text of the label |
Definition at line 212 of file guilabel.cpp.

| 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.
| scr | Screen or Menu handle |
| text | Text of the button |
| tip | Text to display when the button is focused |
| userdata | Parameter of the Push function |
| onpush | Callback when the button is pushed |
Definition at line 156 of file guimenu.cpp.

| int GfuiMenuButtonCreate | ( | void * | scr, |
| const char * | text, | ||
| const char * | tip, | ||
| void * | userdata, | ||
| tfuiCallback | onpush | ||
| ) |
Add a button to a menu screen.
| scr | Screen (menu) handle |
| text | Text of the button |
| tip | Text of the tip displayed when the button is focused |
| userdata | Parameter of the Push function |
| onpush | Callback when the button is pushed |
Definition at line 110 of file guimenu.cpp.

| void GfuiMenuDefaultKeysAdd | ( | void * | scr | ) |
Add the default menu keyboard callback to a screen.
The keys are:
Up Arrow .... Select Previous Entry
Down Arrow .. Select Next Entry
F1 .......... Help
Tab ......... Select Next Entry
Enter ....... Perform Action
Escape ...... Quit the menu
| scr | Screen Id |
Definition at line 55 of file guimenu.cpp.

| void* GfuiMenuScreenCreate | ( | const char * | title | ) |
Create a new menu screen.
Set the title of the menu Add the default keyboard callbacks to the menu.
| title | title of the screen |
Definition at line 76 of file guimenu.cpp.

| void GfuiMouseHide | ( | void | ) |
| tMouseInfo* GfuiMouseInfo | ( | void | ) |
| void GfuiMouseSetPos | ( | int | x, |
| int | y | ||
| ) |
| void GfuiMouseShow | ( | void | ) |
| void GfuiRegisterKey | ( | unsigned char | key, |
| char * | descr, | ||
| void * | userData, | ||
| tfuiCallback | onKeyPressed, | ||
| tfuiCallback | onKeyReleased | ||
| ) |
Add a Keyboard callback to the current screen.
| key | Key code (glut value) |
| descr | Description for help screen |
| userData | Parameter to the callback function |
| onKeyPressed | Callback function called when the specified key is pressed |
| onKeyReleased | Callback function |
Definition at line 800 of file gui.cpp.

| void GfuiScreenActivate | ( | void * | screen | ) |
| void GfuiScreenAddBgImg | ( | void * | scr, |
| const char * | filename | ||
| ) |
| void* GfuiScreenCreate | ( | void | ) |
| void* GfuiScreenCreateEx | ( | float * | bgColor, |
| void * | userDataOnActivate, | ||
| tfuiCallback | onActivate, | ||
| void * | userDataOnDeactivate, | ||
| tfuiCallback | onDeactivate, | ||
| int | mouseAllowed | ||
| ) |
Create a screen.
| bgColor | pointer on color array (RGBA) (if NULL default color is used) |
| userDataOnActivate | Parameter to the activate function |
| onActivate | Function called when the screen is activated |
| userDataOnDeactivate | Parameter to the deactivate function |
| onDeactivate | Function called when the screen is deactivated |
| mouseAllowed | Flag to tell if the mouse cursor can be displayed |
Definition at line 578 of file gui.cpp.

| void GfuiScreenDeactivate | ( | void | ) |
| int GfuiScreenIsActive | ( | void * | screen | ) |
| void GfuiScreenRelease | ( | void * | scr | ) |
| void GfuiScreenReplace | ( | void * | screen | ) |
| int GfuiScrollBarCreate | ( | void * | scr, |
| int | x, | ||
| int | y, | ||
| int | align, | ||
| int | width, | ||
| int | orientation, | ||
| int | min, | ||
| int | max, | ||
| int | len, | ||
| int | start, | ||
| void * | userData, | ||
| tfuiSBCallback | onScroll | ||
| ) |
Create a new scroll bar.
| scr | Screen where to create the scroll bar |
| x | X position |
| y | Y position |
| align | Position of the specified point: GFUI_ALIGN_HR_VB horizontal right, vertical bottom GFUI_ALIGN_HR_VC horizontal right, vertical center GFUI_ALIGN_HR_VT horizontal right, vertical top GFUI_ALIGN_HC_VB horizontal center, vertical bottom GFUI_ALIGN_HC_VC horizontal center, vertical center GFUI_ALIGN_HC_VT horizontal center, vertical top GFUI_ALIGN_HL_VB horizontal left, vertical bottom GFUI_ALIGN_HL_VC horizontal left, vertical center GFUI_ALIGN_HL_VT horizontal left, vertical top |
| width | width including the arrows |
| orientation | Scroll bar orientation: GFUI_HORI_SCROLLBAR Horizontal GFUI_VERT_SCROLLBAR Vertical |
| min | Minimum value |
| max | Maximum value |
| len | Visible length |
| start | Starting position |
| userData | User data given to the call back function |
| onScroll | Call back function called when the position change |
Definition at line 118 of file guiscrollbar.cpp.

| int GfuiScrollBarPosGet | ( | void * | scr, |
| int | id | ||
| ) |
Get the current position of a scroll bar.
| scr | Screen |
| id | Scroll bar Id |
Definition at line 387 of file guiscrollbar.cpp.

| void GfuiScrollBarPosSet | ( | void * | scr, |
| int | id, | ||
| int | min, | ||
| int | max, | ||
| int | len, | ||
| int | start | ||
| ) |
Set new values for position.
| scr | Screen |
| id | Scroll bar Id |
| min | New minimum value |
| max | New maximum value |
| len | New visible length |
| start | New starting position |
Definition at line 413 of file guiscrollbar.cpp.

| int GfuiScrollListCreate | ( | void * | scr, |
| int | font, | ||
| int | x, | ||
| int | y, | ||
| int | align, | ||
| int | width, | ||
| int | height, | ||
| int | scrollBarPos, | ||
| void * | userDataOnSelect, | ||
| tfuiCallback | onSelect | ||
| ) |
Create a new scroll list.
| scr | Current screen |
| font | Current font |
| x | X Position |
| y | Y Position |
| align | Box Alignement (Horizontal and Vertical) |
| width | Width of the box |
| height | Height of the box |
| scrollBarPos | Position of the scrollbar: GFUI_SB_NONE No scroll bar GFUI_SB_RIGHT Right scroll bar GFUI_SB_LEFT Left scroll bar |
| userDataOnSelect | User data to pass to the onSelect callback |
| onSelect | Callback when the selection is done |
Definition at line 150 of file guiscrollist.cpp.

| char* GfuiScrollListExtractElement | ( | void * | scr, |
| int | Id, | ||
| int | index, | ||
| void ** | userData | ||
| ) |
Extract the specified element from the scroll list.
| scr | Current screen |
| Id | Scroll list Id |
| index | Position where to extract the element |
| userData | address of the userData of the element to retrieve |
Definition at line 438 of file guiscrollist.cpp.

| char* GfuiScrollListExtractSelectedElement | ( | void * | scr, |
| int | Id, | ||
| void ** | userData | ||
| ) |
Extract the selected element from the scroll list (removed).
| scr | Current screen |
| Id | Scroll list Id |
| userData | address of the userData of the element to retrieve |
Definition at line 390 of file guiscrollist.cpp.

| char* GfuiScrollListGetElement | ( | void * | scr, |
| int | Id, | ||
| int | index, | ||
| void ** | userData | ||
| ) |
Get the specified element from the scroll list.
| scr | Current screen |
| Id | Scroll list Id |
| index | Position where to get the element |
| userData | address of the userData of the element to retrieve |
Definition at line 334 of file guiscrollist.cpp.

| char* GfuiScrollListGetSelectedElement | ( | void * | scr, |
| int | Id, | ||
| void ** | userData | ||
| ) |
Get the selected element from the scroll list.
| scr | Current screen |
| Id | Scroll list Id |
| userData | address of the userData of the element to retrieve |
Definition at line 276 of file guiscrollist.cpp.

| int GfuiScrollListInsertElement | ( | void * | scr, |
| int | Id, | ||
| char * | element, | ||
| int | index, | ||
| void * | userData | ||
| ) |
Insert an element in a scroll list.
| scr | Current screen |
| Id | Scroll list Id |
| element | New element |
| index | Position where to insert the element |
| userData | User defined data |
0 ... Ok -1 .. Error Definition at line 488 of file guiscrollist.cpp.

| int GfuiScrollListMoveSelectedElement | ( | void * | scr, |
| int | Id, | ||
| int | delta | ||
| ) |
Move the selected element within the scroll list.
| scr | Current screen |
| Id | Scroll list Id |
| delta | displacement |
0 ... Ok -1 .. Error Definition at line 664 of file guiscrollist.cpp.

| int GfuiStaticImageCreate | ( | void * | scr, |
| int | x, | ||
| int | y, | ||
| int | w, | ||
| int | h, | ||
| char * | name | ||
| ) |
Create a new static image.
This kind of image is not clickable.
| scr | Screen where to add the label |
| x | Position of the left of the image on the screen |
| y | Position of the bottom of the image on the screen |
| w | Width of the image on the screen |
| h | Height of the image on the screen |
| name | Filename on the image (png) |
Definition at line 48 of file guiimage.cpp.

| void GfuiStaticImageSet | ( | void * | scr, |
| int | id, | ||
| char * | name | ||
| ) |
Replace an image by another one.
| scr | Screen where to add the label |
| id | Image Id |
| name | Filename on the image (png) |
Definition at line 86 of file guiimage.cpp.

| int GfuiTitleCreate | ( | void * | scr, |
| const char * | text, | ||
| int | maxlen | ||
| ) |
Add a Title to the screen.
| scr | Screen where to add the label |
| text | Text of the title |
| maxlen | Maximum length of the button string (used when the label is changed) 0 for the text length. |
Definition at line 170 of file guilabel.cpp.

| void GfuiUnSelectCurrent | ( | void | ) |
Remove the focus on the current element.
Definition at line 162 of file guiobject.cpp.
| int GfuiVisibilitySet | ( | void * | scr, |
| int | id, | ||
| int | visible | ||
| ) |
Set/unset the visibility attribute of an object.
| scr | Screen |
| id | Object id |
| visible | GFUI_VISIBLE or GFUI_INVISIBLE |
0 ... Ok -1 .. Error Definition at line 404 of file guiobject.cpp.
