TORCS  1.3.9
The Open Racing Car Simulator
tgfclient.h File Reference

The Gaming Framework API (client part). More...

#include <tgf.h>
#include <GL/glut.h>
#include <plib/js.h>
#include <screen_properties.h>
Include dependency graph for tgfclient.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ScrollBarInfo
 Scroll bar call-back information. More...
 
struct  MouseInfo
 
struct  tCtrlRef
 
struct  tCtrlJoyInfo
 Joystick Information Structure. More...
 
struct  tCtrlMouseInfo
 Mouse information structure. More...
 

Macros

#define NUM_JOY   8
 
#define GFUI_LABEL   0
 
#define GFUI_BUTTON   1
 
#define GFUI_GRBUTTON   2
 
#define GFUI_SCROLLIST   3
 
#define GFUI_SCROLLBAR   4
 
#define GFUI_EDITBOX   5
 
#define GFUI_ALIGN_HL_VB   0x00
 
#define GFUI_ALIGN_HL_VC   0x01
 
#define GFUI_ALIGN_HL_VT   0x02
 
#define GFUI_ALIGN_HC_VB   0x10
 
#define GFUI_ALIGN_HC_VC   0x11
 
#define GFUI_ALIGN_HC_VT   0x12
 
#define GFUI_ALIGN_HR_VB   0x20
 
#define GFUI_ALIGN_HR_VC   0x21
 
#define GFUI_ALIGN_HR_VT   0x22
 
#define GFUI_MOUSE_UP   0
 
#define GFUI_MOUSE_DOWN   1
 
#define GFUI_KEY_UP   0
 
#define GFUI_KEY_DOWN   1
 
#define GFUI_SB_NONE   0
 
#define GFUI_SB_RIGHT   1
 
#define GFUI_SB_LEFT   2
 
#define GFUI_SB_TOP   3
 
#define GFUI_SB_BOTTOM   4
 
#define GFUI_HORI_SCROLLBAR   0
 
#define GFUI_VERT_SCROLLBAR   1
 
#define GFUI_VISIBLE   1
 Object visibility flag. More...
 
#define GFUI_INVISIBLE   0
 Object invisibility flag. More...
 
#define GFUI_DISABLE   1
 
#define GFUI_ENABLE   0
 
#define GFUI_FONT_BIG   0
 
#define GFUI_FONT_LARGE   1
 
#define GFUI_FONT_MEDIUM   2
 
#define GFUI_FONT_SMALL   3
 
#define GFUI_FONT_BIG_C   4
 
#define GFUI_FONT_LARGE_C   5
 
#define GFUI_FONT_MEDIUM_C   6
 
#define GFUI_FONT_SMALL_C   7
 
#define GFUI_FONT_DIGIT   8
 
#define GFUI_BTNSZ   300
 
#define GFCTRL_JOY_UNTESTED   -1
 
#define GFCTRL_JOY_NONE   0
 
#define GFCTRL_JOY_PRESENT   1
 
#define GFCTRL_JOY_MAXBUTTON   32 /* Size of integer so don't change please */
 

Typedefs

typedef struct ScrollBarInfo tScrollBarInfo
 Scroll bar call-back information. More...
 
typedef void(* tfuiCallback) (void *)
 
typedef void(* tfuiSBCallback) (tScrollBarInfo *)
 
typedef int(* tfuiKeyCallback) (unsigned char key, int modifier, int state)
 return 1 to prevent normal key computing More...
 
typedef int(* tfuiSKeyCallback) (int key, int modifier, int state)
 return 1 to prevent normal key computing More...
 
typedef struct MouseInfo tMouseInfo
 

Enumerations

enum  GfCtrlType {
  GFCTRL_TYPE_NOT_AFFECTED = 0, GFCTRL_TYPE_JOY_AXIS = 1, GFCTRL_TYPE_JOY_BUT = 2, GFCTRL_TYPE_KEYBOARD = 3,
  GFCTRL_TYPE_MOUSE_BUT = 4, GFCTRL_TYPE_MOUSE_AXIS = 5, GFCTRL_TYPE_SKEYBOARD = 6
}
 

Functions

void GfInitClient (void)
 
unsigned char * GfImgReadPng (const char *filename, int *widthp, int *heightp, float gamma)
 Load an image from disk to a buffer in RGBA mode. More...
 
int GfImgWritePng (unsigned char *img, const char *filename, int width, int height)
 Write a buffer to a png image on disk. More...
 
void GfImgFreeTex (GLuint tex)
 Free the texture. More...
 
GLuint GfImgReadTex (char *filename)
 Read a png image into a texture. More...
 
void GfScrInit (int argc, char *argv[])
 
void GfScrShutdown (void)
 Shutdown the screen. More...
 
void * GfScrMenuInit (void *precMenu)
 Create and activate the video options menu screen. More...
 
void GfTime2Str (char *result, int resultSize, tdble sec, int sgn)
 Convert a time in seconds (float) to an ascii string. More...
 
void GfScrGetSize (int *ScrW, int *ScrH, int *ViewW, int *ViewH)
 Get the screen and viewport sizes. More...
 
void GfScrReinit (void *)
 
void GfuiDisplay (void)
 Display function for the GUI to be called during redisplay of glut. More...
 
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 * 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 *screen)
 Release the given screen. More...
 
void GfuiScreenActivate (void *screen)
 Activate a screen and make it current. More...
 
int GfuiScreenIsActive (void *screen)
 Tell if the screen is active or not. 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 * 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 GfuiHelpScreen (void *prevScreen)
 Generate a help screen. More...
 
void GfuiScreenShot (void *notused)
 Save a screen shot in png format. More...
 
void GfuiScreenAddBgImg (void *scr, const char *filename)
 Add an image background to a screen. More...
 
void GfuiKeyEventRegister (void *scr, tfuiKeyCallback onKeyAction)
 
void GfuiSKeyEventRegister (void *scr, tfuiSKeyCallback onSKeyAction)
 
void GfuiKeyEventRegisterCurrent (tfuiKeyCallback onKeyAction)
 
void GfuiSKeyEventRegisterCurrent (tfuiSKeyCallback onSKeyAction)
 
tMouseInfoGfuiMouseInfo (void)
 Get the mouse information (position and buttons) More...
 
void GfuiMouseSetPos (int x, int y)
 Set the mouse position. More...
 
void GfuiMouseHide (void)
 Hide the mouse cursor. More...
 
void GfuiMouseShow (void)
 Show the mouse cursor. More...
 
void GfuiMouseSetHWPresent (void)
 Force the hardware mouse pointer. 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...
 
void GfuiUnSelectCurrent (void)
 Remove the focus on the current element. 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 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 GfuiTipCreate (void *scr, const char *text, int maxlen)
 Add a Tip (generally associated with a button). 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 GfuiPrintString (const char *text, float *fgColor, int font, int x, int y, int align)
 
int GfuiFontHeight (int font)
 
int GfuiFontWidth (int font, const char *text)
 
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...
 
int GfuiLeanButtonCreate (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)
 
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 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...
 
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=10)
 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...
 
int GfuiScrollListCreate (void *scr, int font, int x, int y, int align, int width, int height, int scrollbar, void *userDataOnSelect, tfuiCallback onSelect)
 Create a new 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...
 
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...
 
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...
 
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...
 
void GfuiScrollBarPosSet (void *scr, int id, int min, int max, int len, int start)
 Set new values for position. More...
 
int GfuiScrollBarPosGet (void *scr, int id)
 Get the current position of a scroll bar. 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...
 
void * GfuiMenuScreenCreate (const char *title)
 Create a new menu screen. More...
 
void GfuiMenuDefaultKeysAdd (void *scr)
 Add the default menu keyboard callback to a screen. More...
 
int GfuiMenuButtonCreate (void *menu, const char *text, const char *tip, void *userdata, tfuiCallback onpush)
 Add a button to a menu screen. More...
 
int GfuiMenuBackQuitButtonCreate (void *menu, const char *text, const char *tip, void *userdata, tfuiCallback onpush)
 Add the "Back" or "Quit" button at the bottom of the menu screen. More...
 
tCtrlJoyInfoGfctrlJoyInit (void)
 Initialize the joystick control. More...
 
int GfctrlJoyIsPresent (void)
 Check if a joystick is present. More...
 
int GfctrlJoyGetCurrent (tCtrlJoyInfo *joyInfo)
 Get the joystick current values. More...
 
void GfctrlJoyRelease (tCtrlJoyInfo *joyInfo)
 Release the tCtrlJoyInfo structure. More...
 
tCtrlMouseInfoGfctrlMouseInit (void)
 Initialize the mouse control. More...
 
int GfctrlMouseGetCurrent (tCtrlMouseInfo *mouseInfo)
 Get the mouse current values. More...
 
void GfctrlMouseRelease (tCtrlMouseInfo *mouseInfo)
 Release the tCtrlMouseInfo structure. More...
 
void GfctrlMouseCenter (void)
 Recentre the mouse on the screen. More...
 
void GfctrlMouseInitCenter (void)
 Get the reference position. More...
 
void GfctrlGetRefByName (const char *name, tCtrlRef *ref)
 Get a control reference by its name. More...
 
const char * GfctrlGetNameByRef (GfCtrlType type, int index)
 Get a control name by its reference. More...
 
const char * GfctrlGetDefaultSection (GfCtrlType type)
 
bool GfctrlIsEventBlacklisted (void *parmHandle, const char *driversSection, const char *event)
 Check if given event is blacklisted (used for buttons or axis which fire a button AND move event). More...
 
int GfuiGlutExtensionSupported (const char *str)
 

Detailed Description

The Gaming Framework API (client part).

Author
Eric Espie
Version
$Id$

Definition in file tgfclient.h.

Macro Definition Documentation

◆ GFCTRL_JOY_MAXBUTTON

#define GFCTRL_JOY_MAXBUTTON   32 /* Size of integer so don't change please */

Definition at line 275 of file tgfclient.h.

◆ GFCTRL_JOY_NONE

#define GFCTRL_JOY_NONE   0

Definition at line 272 of file tgfclient.h.

◆ GFCTRL_JOY_PRESENT

#define GFCTRL_JOY_PRESENT   1

Definition at line 273 of file tgfclient.h.

◆ GFCTRL_JOY_UNTESTED

#define GFCTRL_JOY_UNTESTED   -1

Definition at line 271 of file tgfclient.h.

◆ GFUI_ALIGN_HC_VB

#define GFUI_ALIGN_HC_VB   0x10

Definition at line 72 of file tgfclient.h.

◆ GFUI_ALIGN_HC_VC

#define GFUI_ALIGN_HC_VC   0x11

Definition at line 73 of file tgfclient.h.

◆ GFUI_ALIGN_HC_VT

#define GFUI_ALIGN_HC_VT   0x12

Definition at line 74 of file tgfclient.h.

◆ GFUI_ALIGN_HL_VB

#define GFUI_ALIGN_HL_VB   0x00

Definition at line 69 of file tgfclient.h.

◆ GFUI_ALIGN_HL_VC

#define GFUI_ALIGN_HL_VC   0x01

Definition at line 70 of file tgfclient.h.

◆ GFUI_ALIGN_HL_VT

#define GFUI_ALIGN_HL_VT   0x02

Definition at line 71 of file tgfclient.h.

◆ GFUI_ALIGN_HR_VB

#define GFUI_ALIGN_HR_VB   0x20

Definition at line 75 of file tgfclient.h.

◆ GFUI_ALIGN_HR_VC

#define GFUI_ALIGN_HR_VC   0x21

Definition at line 76 of file tgfclient.h.

◆ GFUI_ALIGN_HR_VT

#define GFUI_ALIGN_HR_VT   0x22

Definition at line 77 of file tgfclient.h.

◆ GFUI_BTNSZ

#define GFUI_BTNSZ   300

Definition at line 192 of file tgfclient.h.

◆ GFUI_BUTTON

#define GFUI_BUTTON   1

Definition at line 62 of file tgfclient.h.

◆ GFUI_DISABLE

#define GFUI_DISABLE   1

Definition at line 161 of file tgfclient.h.

◆ GFUI_EDITBOX

#define GFUI_EDITBOX   5

Definition at line 66 of file tgfclient.h.

◆ GFUI_ENABLE

#define GFUI_ENABLE   0

Definition at line 162 of file tgfclient.h.

◆ GFUI_FONT_BIG

#define GFUI_FONT_BIG   0

Definition at line 167 of file tgfclient.h.

◆ GFUI_FONT_BIG_C

#define GFUI_FONT_BIG_C   4

Definition at line 171 of file tgfclient.h.

◆ GFUI_FONT_DIGIT

#define GFUI_FONT_DIGIT   8

Definition at line 175 of file tgfclient.h.

◆ GFUI_FONT_LARGE

#define GFUI_FONT_LARGE   1

Definition at line 168 of file tgfclient.h.

◆ GFUI_FONT_LARGE_C

#define GFUI_FONT_LARGE_C   5

Definition at line 172 of file tgfclient.h.

◆ GFUI_FONT_MEDIUM

#define GFUI_FONT_MEDIUM   2

Definition at line 169 of file tgfclient.h.

◆ GFUI_FONT_MEDIUM_C

#define GFUI_FONT_MEDIUM_C   6

Definition at line 173 of file tgfclient.h.

◆ GFUI_FONT_SMALL

#define GFUI_FONT_SMALL   3

Definition at line 170 of file tgfclient.h.

◆ GFUI_FONT_SMALL_C

#define GFUI_FONT_SMALL_C   7

Definition at line 174 of file tgfclient.h.

◆ GFUI_GRBUTTON

#define GFUI_GRBUTTON   2

Definition at line 63 of file tgfclient.h.

◆ GFUI_HORI_SCROLLBAR

#define GFUI_HORI_SCROLLBAR   0

Definition at line 95 of file tgfclient.h.

◆ GFUI_INVISIBLE

#define GFUI_INVISIBLE   0

Object invisibility flag.

Definition at line 159 of file tgfclient.h.

◆ GFUI_KEY_DOWN

#define GFUI_KEY_DOWN   1

Definition at line 85 of file tgfclient.h.

◆ GFUI_KEY_UP

#define GFUI_KEY_UP   0

Definition at line 84 of file tgfclient.h.

◆ GFUI_LABEL

#define GFUI_LABEL   0

Definition at line 61 of file tgfclient.h.

◆ GFUI_MOUSE_DOWN

#define GFUI_MOUSE_DOWN   1

Definition at line 81 of file tgfclient.h.

◆ GFUI_MOUSE_UP

#define GFUI_MOUSE_UP   0

Definition at line 80 of file tgfclient.h.

◆ GFUI_SB_BOTTOM

#define GFUI_SB_BOTTOM   4

Definition at line 92 of file tgfclient.h.

◆ GFUI_SB_LEFT

#define GFUI_SB_LEFT   2

Definition at line 90 of file tgfclient.h.

◆ GFUI_SB_NONE

#define GFUI_SB_NONE   0

Definition at line 88 of file tgfclient.h.

◆ GFUI_SB_RIGHT

#define GFUI_SB_RIGHT   1

Definition at line 89 of file tgfclient.h.

◆ GFUI_SB_TOP

#define GFUI_SB_TOP   3

Definition at line 91 of file tgfclient.h.

◆ GFUI_SCROLLBAR

#define GFUI_SCROLLBAR   4

Definition at line 65 of file tgfclient.h.

◆ GFUI_SCROLLIST

#define GFUI_SCROLLIST   3

Definition at line 64 of file tgfclient.h.

◆ GFUI_VERT_SCROLLBAR

#define GFUI_VERT_SCROLLBAR   1

Definition at line 96 of file tgfclient.h.

◆ GFUI_VISIBLE

#define GFUI_VISIBLE   1

Object visibility flag.

Definition at line 158 of file tgfclient.h.

◆ NUM_JOY

#define NUM_JOY   8

Definition at line 35 of file tgfclient.h.

Typedef Documentation

◆ tfuiCallback

typedef void(* tfuiCallback) (void *)

Definition at line 105 of file tgfclient.h.

◆ tfuiKeyCallback

typedef int(* tfuiKeyCallback) (unsigned char key, int modifier, int state)

return 1 to prevent normal key computing

Definition at line 107 of file tgfclient.h.

◆ tfuiSBCallback

typedef void(* tfuiSBCallback) (tScrollBarInfo *)

Definition at line 106 of file tgfclient.h.

◆ tfuiSKeyCallback

typedef int(* tfuiSKeyCallback) (int key, int modifier, int state)

return 1 to prevent normal key computing

Definition at line 108 of file tgfclient.h.

◆ tMouseInfo

typedef struct MouseInfo tMouseInfo

◆ tScrollBarInfo

typedef struct ScrollBarInfo tScrollBarInfo

Scroll bar call-back information.

Enumeration Type Documentation

◆ GfCtrlType

enum GfCtrlType
Enumerator
GFCTRL_TYPE_NOT_AFFECTED 
GFCTRL_TYPE_JOY_AXIS 
GFCTRL_TYPE_JOY_BUT 
GFCTRL_TYPE_KEYBOARD 
GFCTRL_TYPE_MOUSE_BUT 
GFCTRL_TYPE_MOUSE_AXIS 
GFCTRL_TYPE_SKEYBOARD 

Definition at line 254 of file tgfclient.h.

Function Documentation

◆ GfctrlGetDefaultSection()

const char* GfctrlGetDefaultSection ( GfCtrlType  type)

Definition at line 284 of file control.cpp.

◆ GfInitClient()

void GfInitClient ( void  )

Definition at line 31 of file tgfclient.cpp.

Here is the call graph for this function:

◆ GfScrInit()

void GfScrInit ( int  argc,
char *  argv[] 
)

Definition at line 261 of file screen.cpp.

Here is the call graph for this function:

◆ GfScrReinit()

void GfScrReinit ( void *  )

Definition at line 512 of file screen.cpp.

Here is the call graph for this function:

◆ GfuiFontHeight()

int GfuiFontHeight ( int  font)

Definition at line 65 of file guiobject.cpp.

Here is the call graph for this function:

◆ GfuiFontWidth()

int GfuiFontWidth ( int  font,
const char *  text 
)

Definition at line 70 of file guiobject.cpp.

Here is the call graph for this function:

◆ GfuiGlutExtensionSupported()

int GfuiGlutExtensionSupported ( const char *  str)

Definition at line 944 of file screen.cpp.

◆ GfuiKeyEventRegister()

void GfuiKeyEventRegister ( void *  scr,
tfuiKeyCallback  onKeyAction 
)

Definition at line 702 of file gui.cpp.

Here is the call graph for this function:

◆ GfuiKeyEventRegisterCurrent()

void GfuiKeyEventRegisterCurrent ( tfuiKeyCallback  onKeyAction)

Definition at line 719 of file gui.cpp.

Here is the call graph for this function:

◆ GfuiLeanButtonCreate()

int GfuiLeanButtonCreate ( 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 
)

Definition at line 332 of file guibutton.cpp.

Here is the call graph for this function:

◆ GfuiPrintString()

void GfuiPrintString ( const char *  text,
float *  fgColor,
int  font,
int  x,
int  y,
int  align 
)

Definition at line 43 of file guiobject.cpp.

Here is the call graph for this function:

◆ GfuiSKeyEventRegister()

void GfuiSKeyEventRegister ( void *  scr,
tfuiSKeyCallback  onSKeyAction 
)

Definition at line 711 of file gui.cpp.

Here is the call graph for this function:

◆ GfuiSKeyEventRegisterCurrent()

void GfuiSKeyEventRegisterCurrent ( tfuiSKeyCallback  onSKeyAction)

Definition at line 726 of file gui.cpp.

Here is the call graph for this function:

◆ GfuiTipCreate()

int GfuiTipCreate ( void *  scr,
const char *  text,
int  maxlen 
)

Add a Tip (generally associated with a button).

Parameters
scrScreen where to add the label
textText of the label
maxlenMaximum length of the button string (used when the label is changed)
Returns
label Id
See also
GfuiSetLabelText

Definition at line 155 of file guilabel.cpp.

Here is the call graph for this function: