TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
guimenu.cpp File Reference


GUI menu management. More...

#include <stdio.h>
#include <stdlib.h>
#include <memory>
#include <GL/glut.h>
#include <tgfclient.h>
#include "gui.h"
#include "guimenu.h"
Include dependency graph for guimenu.cpp:

Go to the source code of this file.

Functions

void gfMenuInit (void)
void GfuiMenuDefaultKeysAdd (void *scr)
 Add the default menu keyboard callback to a screen.
void * GfuiMenuScreenCreate (const char *title)
 Create a new menu screen.
static void dispInfo (const tMnuCallbackInfo *cbinfo)
static void remInfo (const tMnuCallbackInfo *cbinfo)
int GfuiMenuButtonCreateActionWithDisabledTip (void *scr, const char *text, const char *tip, const char *disabledTip, const tGfuiAction &onpush)
 Add a button to a menu screen.
int GfuiMenuButtonCreateAction (void *scr, const char *text, const char *tip, const tGfuiAction &onpush)
 Add a menu button with a focus tip.
int GfuiMenuButtonCreate (void *scr, const char *text, const char *tip, void *userdata, tfuiCallback onpush)
 Add a menu button using a callback with caller-supplied data.
int GfuiMenuBackQuitButtonCreateAction (void *scr, const char *text, const char *tip, const tGfuiAction &onpush)
 Add the "Back" or "Quit" button at the bottom of the menu screen.
int GfuiMenuBackQuitButtonCreate (void *scr, const char *text, const char *tip, void *userdata, tfuiCallback onpush)
 Add the bottom Back/Quit menu button using a callback with caller-supplied data.

Detailed Description


GUI menu management.

Author
Eric Espie

Definition in file guimenu.cpp.

Function Documentation

◆ dispInfo()

void dispInfo ( const tMnuCallbackInfo * cbinfo)
static

Definition at line 90 of file guimenu.cpp.

Here is the call graph for this function:

◆ gfMenuInit()

void gfMenuInit ( void )

Definition at line 38 of file guimenu.cpp.

◆ remInfo()

void remInfo ( const tMnuCallbackInfo * cbinfo)
static

Definition at line 105 of file guimenu.cpp.

Here is the call graph for this function: