TORCS  1.3.9
The Open Racing Car Simulator
guiscrollist.cpp File Reference

GUI scroll-list management. More...

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

Go to the source code of this file.

Functions

void gfuiScrListInit (void)
 
static void gfuiScroll (tScrollBarInfo *sinfo)
 
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. More...
 
static void gfuiScrollListInsElt (tGfuiScrollList *scrollist, tGfuiListElement *elt, int index)
 
static tGfuiListElementgfuiScrollListRemElt (tGfuiScrollList *scrollist, int index)
 
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...
 
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...
 
int GfuiScrollListInsertElement (void *scr, int Id, char *element, int index, void *userData)
 Insert an element in a scroll list. More...
 
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. More...
 
void gfuiReleaseScrollist (tGfuiObject *curObject)
 

Detailed Description

GUI scroll-list management.

Author
Eric Espie
Version
$Id$

Definition in file guiscrollist.cpp.

Function Documentation

◆ gfuiDrawScrollist()

void gfuiDrawScrollist ( tGfuiObject obj)

Definition at line 526 of file guiscrollist.cpp.

Here is the call graph for this function:

◆ gfuiReleaseScrollist()

void gfuiReleaseScrollist ( tGfuiObject curObject)

Definition at line 726 of file guiscrollist.cpp.

Here is the call graph for this function:

◆ gfuiScrListInit()

void gfuiScrListInit ( void  )

Definition at line 38 of file guiscrollist.cpp.

◆ gfuiScroll()

static void gfuiScroll ( tScrollBarInfo sinfo)
static

Definition at line 43 of file guiscrollist.cpp.

◆ gfuiScrollListAction()

void gfuiScrollListAction ( int  mouse)

Definition at line 628 of file guiscrollist.cpp.

Here is the call graph for this function:

◆ gfuiScrollListDeselectAll()

void gfuiScrollListDeselectAll ( void  )

Definition at line 608 of file guiscrollist.cpp.

◆ gfuiScrollListInsElt()

static void gfuiScrollListInsElt ( tGfuiScrollList scrollist,
tGfuiListElement elt,
int  index 
)
static

Definition at line 197 of file guiscrollist.cpp.

◆ gfuiScrollListNextElt()

void gfuiScrollListNextElt ( tGfuiObject object)

Definition at line 70 of file guiscrollist.cpp.

Here is the call graph for this function:

◆ gfuiScrollListPrevElt()

void gfuiScrollListPrevElt ( tGfuiObject object)

Definition at line 101 of file guiscrollist.cpp.

Here is the call graph for this function:

◆ gfuiScrollListRemElt()

static tGfuiListElement* gfuiScrollListRemElt ( tGfuiScrollList scrollist,
int  index 
)
static

Definition at line 231 of file guiscrollist.cpp.