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


GUI Edit Box Management. More...

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

Go to the source code of this file.

Functions

void gfuiEditboxInit (void)
int GfuiEditboxCreateAction (void *scr, const char *text, int font, int x, int y, int width, int maxlen, const tGfuiAction &onFocus, const tGfuiAction &onFocusLost, int margin)
 Add an edit box to a screen.
int GfuiEditboxCreate (void *scr, const char *text, int font, int x, int y, int width, int maxlen, void *userDataOnFocus, tfuiCallback onFocus, tfuiCallback onFocusLost, int margin)
 Create an edit box using callbacks with caller-supplied data.
int GfuiEditboxGetFocused (void)
 Get the Id of the editbox focused in the current screen.
void gfuiDrawEditbox (tGfuiObject *obj)
void gfuiEditboxAction (int mouse)
static void gfuiEditboxRecalcCursor (tGfuiObject *obj)
void gfuiEditboxKey (tGfuiObject *obj, int key, int modifier)
char * GfuiEditboxGetString (void *scr, int id)
 Get the current text of an edit box.
void GfuiEditboxSetString (void *scr, int id, const char *text)
 Set a new string.
void gfuiReleaseEditbox (tGfuiObject *curObject)

Detailed Description


GUI Edit Box Management.

Author
Eric Espie

Definition in file guiedit.cpp.

Function Documentation

◆ gfuiDrawEditbox()

void gfuiDrawEditbox ( tGfuiObject * obj)

Definition at line 165 of file guiedit.cpp.

Here is the call graph for this function:

◆ gfuiEditboxAction()

void gfuiEditboxAction ( int mouse)

Definition at line 219 of file guiedit.cpp.

Here is the call graph for this function:

◆ gfuiEditboxInit()

void gfuiEditboxInit ( void )

Definition at line 33 of file guiedit.cpp.

◆ gfuiEditboxKey()

void gfuiEditboxKey ( tGfuiObject * obj,
int key,
int modifier )

Definition at line 274 of file guiedit.cpp.

Here is the call graph for this function:

◆ gfuiEditboxRecalcCursor()

void gfuiEditboxRecalcCursor ( tGfuiObject * obj)
static

Definition at line 259 of file guiedit.cpp.

Here is the call graph for this function:

◆ gfuiReleaseEditbox()

void gfuiReleaseEditbox ( tGfuiObject * curObject)

Definition at line 411 of file guiedit.cpp.

Here is the call graph for this function: