TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
guilabel.cpp File Reference


GUI labels management. More...

#include <stdlib.h>
#include <tgfclient.h>
#include "gui.h"
#include "guifont.h"
Include dependency graph for guilabel.cpp:

Go to the source code of this file.

Functions

void gfuiLabelInit (void)
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).
int GfuiLabelCreate (void *scr, const char *text, int font, int x, int y, int align, int maxlen)
 Add a label to a screen.
int GfuiTipCreate (void *scr, const char *text, int maxlen)
 Add a Tip (generally associated with a button).
int GfuiTitleCreate (void *scr, const char *text, int maxlen)
 Add a Title to the screen.
void gfuiSetLabelText (tGfuiObject *curObject, tGfuiLabel *label, const char *text)
void GfuiLabelSetText (void *scr, int id, const char *text)
 Change the text of a label.
void GfuiLabelSetColor (void *scr, int id, float *color)
 Change the color of a label.
void gfuiDrawLabel (tGfuiObject *obj)
void gfuiReleaseLabel (tGfuiObject *obj)

Detailed Description


GUI labels management.

Author
Eric Espie

Definition in file guilabel.cpp.

Function Documentation

◆ gfuiDrawLabel()

void gfuiDrawLabel ( tGfuiObject * obj)

Definition at line 242 of file guilabel.cpp.

Here is the call graph for this function:

◆ gfuiLabelInit()

void gfuiLabelInit ( void )

Definition at line 32 of file guilabel.cpp.

◆ gfuiReleaseLabel()

void gfuiReleaseLabel ( tGfuiObject * obj)

Definition at line 261 of file guilabel.cpp.

◆ gfuiSetLabelText()

void gfuiSetLabelText ( tGfuiObject * curObject,
tGfuiLabel * label,
const char * text )

Definition at line 156 of file guilabel.cpp.

Here is the call graph for this function: