TORCS  1.3.9
The Open Racing Car Simulator
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). 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 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 gfuiSetLabelText (tGfuiObject *curObject, tGfuiLabel *label, const char *text)
 
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 gfuiDrawLabel (tGfuiObject *obj)
 
void gfuiReleaseLabel (tGfuiObject *obj)
 

Detailed Description

GUI labels management.

Author
Eric Espie
Version
$Id$

Definition in file guilabel.cpp.

Function Documentation

◆ gfuiDrawLabel()

void gfuiDrawLabel ( tGfuiObject obj)

Definition at line 260 of file guilabel.cpp.

Here is the call graph for this function:

◆ gfuiLabelInit()

void gfuiLabelInit ( void  )

Definition at line 35 of file guilabel.cpp.

◆ gfuiReleaseLabel()

void gfuiReleaseLabel ( tGfuiObject obj)

Definition at line 279 of file guilabel.cpp.

◆ gfuiSetLabelText()

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

Definition at line 176 of file guilabel.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: