torcs - 1.2.2

src/libs/tgfclient/guilabel.cpp File Reference


Detailed Description

GUI labels management.

Author:
Eric Espie
Version:
Id
guilabel.cpp,v 1.2 2003/06/24 21:02:25 torcs Exp

#include <stdlib.h>
#include <string.h>
#include <tgfclient.h>
#include "gui.h"
#include "guifont.h"

Include dependency graph for guilabel.cpp:

Include dependency graph

Functions

void gfuiLabelInit (void)
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 GfuiTipCreate (void *scr, char *text, int maxlen)
 Add a Tip (generally associated with a button).

int GfuiTitleCreate (void *scr, char *text, int maxlen)
 Add a Title to the screen.

void gfuiSetLabelText (tGfuiObject *curObject, tGfuiLabel *label, char *text)
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 gfuiDrawLabel (tGfuiObject *obj)
void gfuiReleaseLabel (tGfuiObject *obj)

Function Documentation

void gfuiDrawLabel tGfuiObject obj  ) 
 

Here is the call graph for this function:

void gfuiLabelInit void   ) 
 

void gfuiReleaseLabel tGfuiObject obj  ) 
 

void gfuiSetLabelText tGfuiObject curObject,
tGfuiLabel label,
char *  text
 

Here is the call graph for this function:

int GfuiTipCreate void *  scr,
char *  text,
int  maxlen
 

Add a Tip (generally associated with a button).

Parameters:
scr Screen where to add the label
text Text of the label
maxlen Maximum length of the button string (used when the label is changed)
Returns:
label Id
See also:
GfuiSetLabelText

Here is the call graph for this function:


Generated at Thu Feb 26 21:53:11 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.