torcs - 1.2.2

src/libs/tgfclient/guiscrollist.cpp File Reference


Detailed Description

GUI scroll-list management.

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

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

Include dependency graph for guiscrollist.cpp:

Include dependency graph

Functions

void gfuiScrListInit (void)
void gfuiScrollListNextElt (tGfuiObject *object)
void gfuiScrollListPrevElt (tGfuiObject *object)
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.

void gfuiDrawScrollist (tGfuiObject *obj)
void gfuiScrollListDeselectAll (void)
void gfuiScrollListAction (int mouse)
int GfuiScrollListMoveSelectedElement (void *scr, int Id, int delta)
 Move the selected element within the scroll list.

void gfuiReleaseScrollist (tGfuiObject *curObject)

Function Documentation

void gfuiDrawScrollist tGfuiObject obj  ) 
 

Here is the call graph for this function:

void gfuiReleaseScrollist tGfuiObject curObject  ) 
 

void gfuiScrListInit void   ) 
 

void gfuiScrollListAction int  mouse  ) 
 

Here is the call graph for this function:

void gfuiScrollListDeselectAll void   ) 
 

void gfuiScrollListNextElt tGfuiObject object  ) 
 

Here is the call graph for this function:

void gfuiScrollListPrevElt tGfuiObject object  ) 
 

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.