![]() |
torcs - 1.2.2 | ![]() |
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. | |
void | GfuiIdle (void) |
Idle function for the GUI to be called during Idle loop of glut. | |
void | GfuiDisplay (void) |
Display function for the GUI to be called during redisplay of glut. | |
void | GfuiMouseHide (void) |
Hide the mouse cursor. | |
void | GfuiMouseShow (void) |
Show the mouse cursor. | |
tMouseInfo * | GfuiMouseInfo (void) |
Get the mouse information (position and buttons). | |
void | GfuiMouseSetPos (int x, int y) |
Set the mouse position. | |
int | GfuiScreenIsActive (void *screen) |
Tell if the screen is active or not. | |
void | GfuiScreenActivate (void *screen) |
Activate a screen and make it current. | |
void | GfuiScreenReplace (void *screen) |
Activate a screen and make it current plus release the current screen. | |
void | GfuiScreenDeactivate (void) |
Deactivate the current screen. | |
void * | GfuiScreenCreate (void) |
Create a new screen. | |
void * | GfuiScreenCreateEx (float *bgColor, void *userDataOnActivate, tfuiCallback onActivate, void *userDataOnDeactivate, tfuiCallback onDeactivate, int mouseAllowed) |
Create a screen. | |
void | GfuiScreenRelease (void *scr) |
Release the given screen. | |
void * | GfuiHookCreate (void *userDataOnActivate, tfuiCallback onActivate) |
Create a callback hook. | |
void | GfuiHookRelease (void *hook) |
Release the given hook. | |
void | GfuiAddKey (void *scr, unsigned char key, char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased) |
Add a Keyboard callback to a screen. | |
void | GfuiRegisterKey (unsigned char key, char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased) |
Add a Keyboard callback to the current screen. | |
void | GfuiAddSKey (void *scr, int key, char *descr, void *userData, tfuiCallback onKeyPressed, tfuiCallback onKeyReleased) |
Add a Special Keyboard shortcut to the screen. | |
void | GfuiScreenAddBgImg (void *scr, char *filename) |
Add an image background to a screen. | |
int | GfuiGrButtonCreate (void *scr, char *disabled, char *enabled, char *focused, 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. | |
int | GfuiButtonStateCreate (void *scr, 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. | |
int | GfuiButtonCreate (void *scr, 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. | |
void | GfuiButtonSetText (void *scr, int id, char *text) |
Change the label of a button. | |
int | GfuiButtonGetFocused (void) |
Get the Id of the button focused in the current screen. | |
int | GfuiEditboxCreate (void *scr, char *text, int font, int x, int y, int width, int maxlen, void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost) |
Add a editbox to a screen. | |
int | GfuiEditboxGetFocused (void) |
Get the Id of the editbox focused in the current screen. | |
char * | GfuiEditboxGetString (void *scr, int id) |
Get the string. | |
void | GfuiEditboxSetString (void *scr, int id, char *text) |
Set a new string. | |
void | GfuiHelpScreen (void *prevScreen) |
Generate a help screen. | |
int | GfuiStaticImageCreate (void *scr, int x, int y, int w, int h, char *name) |
Create a new static image. | |
void | GfuiStaticImageSet (void *scr, int id, char *name) |
Replace an image by another one. | |
int | GfuiLabelCreateEx (void *scr, char *text, float *fgColor, int font, int x, int y, int align, int maxlen) |
Create a new label (extended version). | |
int | GfuiLabelCreate (void *scr, char *text, int font, int x, int y, int align, int maxlen) |
Add a label to a screen. | |
int | GfuiTitleCreate (void *scr, char *text, int maxlen) |
Add a Title to the screen. | |
void | GfuiLabelSetText (void *scr, int id, char *text) |
Change the text of a label. | |
void | GfuiLabelSetColor (void *scr, int id, float *color) |
Change the color of a label. | |
void | GfuiMenuDefaultKeysAdd (void *scr) |
Add the default menu keyboard callback to a screen. | |
void * | GfuiMenuScreenCreate (char *title) |
Create a new menu screen. | |
int | GfuiMenuButtonCreate (void *scr, char *text, char *tip, void *userdata, tfuiCallback onpush) |
Add a button to a menu screen. | |
int | GfuiMenuBackQuitButtonCreate (void *scr, char *text, char *tip, void *userdata, tfuiCallback onpush) |
Add the "Back" or "Quit" button at the bottom of the menu screen. | |
void | GfuiUnSelectCurrent (void) |
Remove the focus on the current element. | |
int | GfuiVisibilitySet (void *scr, int id, int visible) |
Set/unset the visibility attribute of an object. | |
int | GfuiEnable (void *scr, int id, int flag) |
Enable / Disable an object. | |
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. | |
int | GfuiScrollBarPosGet (void *scr, int id) |
Get the current position of a scroll bar. | |
void | GfuiScrollBarPosSet (void *scr, int id, int min, int max, int len, int start) |
Set new values for position. | |
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. | |
char * | GfuiScrollListGetSelectedElement (void *scr, int Id, void **userData) |
Get the selected element from the scroll list. | |
char * | GfuiScrollListGetElement (void *scr, int Id, int index, void **userData) |
Get the specified element from the scroll list. | |
char * | GfuiScrollListExtractSelectedElement (void *scr, int Id, void **userData) |
Extract the selected element from the scroll list (removed). | |
char * | GfuiScrollListExtractElement (void *scr, int Id, int index, void **userData) |
Extract the specified element from the scroll list. | |
int | GfuiScrollListInsertElement (void *scr, int Id, char *element, int index, void *userData) |
Insert an element in a scroll list. | |
int | GfuiScrollListMoveSelectedElement (void *scr, int Id, int delta) |
Move the selected element within the scroll list. |
|
Add a Keyboard callback to a screen.
|
|
Add a Special Keyboard shortcut to the screen. (see glut for normal and special keys)
|
|
Add a button to a screen.
|
Here is the call graph for this function:
|
Get the Id of the button focused in the current screen.
|
|
Change the label of a button.
|
Here is the call graph for this function:
|
Add a state button to a screen.
|
Here is the call graph for this function:
|
Display function for the GUI to be called during redisplay of glut.
|
Here is the call graph for this function:
|
Dummy display function for glut. Declare this function to glut if nothing is to be displayed by the redisplay mechanism. |
|
Add a editbox to a screen.
|
Here is the call graph for this function:
|
Get the Id of the editbox focused in the current screen.
|
|
Get the string.
|
Here is the call graph for this function:
|
Set a new string.
|
Here is the call graph for this function:
|
Enable / Disable an object.
|
Here is the call graph for this function:
|
Add a graphical button to a screen.
|
Here is the call graph for this function:
|
Generate a help screen.
|
Here is the call graph for this function:
|
Create a callback hook.
|
|
Release the given hook.
|
|
Idle function for the GUI to be called during Idle loop of glut.
|
Here is the call graph for this function:
|
Add a label to a screen.
|
Here is the call graph for this function:
|
Create a new label (extended version).
|
Here is the call graph for this function:
|
Change the color of a label.
|
|
Change the text of a label.
|
Here is the call graph for this function:
|
Add the "Back" or "Quit" button at the bottom of the menu screen.
|
Here is the call graph for this function:
|
Add a button to a menu screen.
|
Here is the call graph for this function:
|
Add the default menu keyboard callback to a screen.
The keys are:
|
Here is the call graph for this function:
|
Create a new menu screen. Set the title of the menu Add the default keyboard callbacks to the menu.
|
Here is the call graph for this function:
|
Hide the mouse cursor.
|
|
Get the mouse information (position and buttons).
|
|
Set the mouse position.
|
|
Show the mouse cursor.
|
|
Add a Keyboard callback to the current screen.
|
Here is the call graph for this function:
|
Activate a screen and make it current.
|
Here is the call graph for this function:
|
Add an image background to a screen.
|
Here is the call graph for this function:
|
Create a new screen.
|
|
Create a screen.
|
|
Deactivate the current screen.
|
Here is the call graph for this function:
|
Tell if the screen is active or not.
|
|
Release the given screen.
|
Here is the call graph for this function:
|
Activate a screen and make it current plus release the current screen.
|
Here is the call graph for this function:
|
Create a new scroll bar.
|
Here is the call graph for this function:
|
Get the current position of a scroll bar.
|
Here is the call graph for this function:
|
Set new values for position.
|
Here is the call graph for this function:
|
Create a new scroll list.
|
Here is the call graph for this function:
|
Extract the specified element from the scroll list.
|
Here is the call graph for this function:
|
Extract the selected element from the scroll list (removed).
|
Here is the call graph for this function:
|
Get the specified element from the scroll list.
|
Here is the call graph for this function:
|
Get the selected element from the scroll list.
|
Here is the call graph for this function:
|
Insert an element in a scroll list.
|
Here is the call graph for this function:
|
Move the selected element within the scroll list.
|
Here is the call graph for this function:
|
Create a new static image. This kind of image is not clickable.
|
Here is the call graph for this function:
|
Replace an image by another one.
|
Here is the call graph for this function:
|
Add a Title to the screen.
|
Here is the call graph for this function:
|
Remove the focus on the current element.
|
|
Set/unset the visibility attribute of an object.
|
Here is the call graph for this function: