TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
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 GfuiScrollListCreateAction (void *scr, int font, int x, int y, int align, int width, int height, int scrollBarPos, const tGfuiAction &onSelect)
 Create a new scroll list.
int GfuiScrollListCreate (void *scr, int font, int x, int y, int align, int width, int height, int scrollBarPos, void *userDataOnSelect, tfuiCallback onSelect)
 Create a scrolling list using a callback with caller-supplied data.
static void gfuiScrollListInsElt (tGfuiScrollList *scrollist, tGfuiListElement *elt, int index)
static tGfuiListElement * gfuiScrollListRemElt (tGfuiScrollList *scrollist, int index)
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)

Detailed Description

GUI scroll-list management.

Author
Eric Espie

Definition in file guiscrollist.cpp.

Function Documentation

◆ gfuiDrawScrollist()

void gfuiDrawScrollist ( tGfuiObject * obj)

Definition at line 534 of file guiscrollist.cpp.

Here is the call graph for this function:

◆ gfuiReleaseScrollist()

void gfuiReleaseScrollist ( tGfuiObject * curObject)

Definition at line 732 of file guiscrollist.cpp.

Here is the call graph for this function:

◆ gfuiScrListInit()

void gfuiScrListInit ( void )

Definition at line 35 of file guiscrollist.cpp.

◆ gfuiScroll()

void gfuiScroll ( tScrollBarInfo * sinfo)
static

Definition at line 40 of file guiscrollist.cpp.

◆ gfuiScrollListAction()

void gfuiScrollListAction ( int mouse)

Definition at line 636 of file guiscrollist.cpp.

Here is the call graph for this function:

◆ gfuiScrollListDeselectAll()

void gfuiScrollListDeselectAll ( void )

Definition at line 616 of file guiscrollist.cpp.

◆ gfuiScrollListInsElt()

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 67 of file guiscrollist.cpp.

Here is the call graph for this function:

◆ gfuiScrollListPrevElt()

void gfuiScrollListPrevElt ( tGfuiObject * object)

Definition at line 96 of file guiscrollist.cpp.

Here is the call graph for this function:

◆ gfuiScrollListRemElt()

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

Definition at line 231 of file guiscrollist.cpp.