35#include <portability.h>
61 const int BUFSIZE = 1024;
80 const int BUFSIZE = 1024;
84 rmrpLaps = strtol(val, (
char **)NULL, 0);
88 snprintf(buf, BUFSIZE,
"%d",
rmrpLaps);
136 int y, x, x2, dy, dx;
137 const int BUFSIZE = 1024;
142 snprintf(buf, BUFSIZE,
"%s Options",
rp->title);
172 snprintf(buf, BUFSIZE,
"%d",
rmrpLaps);
184 "data/img/arrow-left.png",
"data/img/arrow-left-pushed.png",
188 "data/img/arrow-right.png",
"data/img/arrow-right-pushed.png",
void GfuiHelpScreen(void *prevScreen)
Generate a help screen.
void GfuiLabelSetText(void *scr, int id, const char *text)
Change the text of a label.
int GfuiFontHeight(int font)
Get the height of an initialized GUI font.
void GfuiScreenRelease(void *scr)
Release the given screen.
void GfuiAddKeyAction(void *scr, unsigned char key, const char *descr, const tGfuiAction &onKeyPressed, const tGfuiAction &onKeyReleased)
Add a Keyboard callback to a screen.
void GfuiScreenAddBgImg(void *scr, const char *filename)
Add an image background to a screen.
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.
void * GfuiMenuScreenCreate(const char *title)
Create a new menu screen.
void GfuiAddSKeyAction(void *scr, int key, const char *descr, const tGfuiAction &onKeyPressed, const tGfuiAction &onKeyReleased)
Add a Special Keyboard shortcut to the screen.
void GfuiEditboxSetString(void *scr, int id, const char *text)
Set a new string.
char * GfuiEditboxGetString(void *scr, int id)
Get the current text of an edit box.
int GfuiLabelCreate(void *scr, const char *text, int font, int x, int y, int align, int maxlen)
Add a label to a screen.
int GfuiGrButtonCreateAction(void *scr, const char *disabled, const char *enabled, const char *focused, const char *pushed, int x, int y, int align, int mouse, const tGfuiAction &onPush, const tGfuiAction &onFocus, const tGfuiAction &onFocusLost)
Add a graphical button to a screen.
void GfuiScreenActivate(void *screen)
Activate a screen and make it current.
int GfuiButtonCreateAction(void *scr, const char *text, int font, int x, int y, int width, int align, int mouse, const tGfuiAction &onPush, const tGfuiAction &onFocus, const tGfuiAction &onFocusLost)
Add a button to a screen.
const char * GfParmGetStr(void *parmHandle, const char *path, const char *key, const char *deflt)
Get a string parameter from the parameter set handle.
int GfParmSetStr(void *handle, const char *path, const char *key, const char *val)
Set a string parameter in the parameter set handle.
tdble GfParmGetNum(void *handle, const char *path, const char *key, const char *unit, tdble deflt)
Get a numerical parameter from the parameter set handle.
int GfParmSetNum(void *handle, const char *path, const char *key, const char *unit, tdble val)
Set a numerical parameter in the parameter set handle.
void GfuiScreenShot(void *)
Save a screen shot in png format.
#define RM_CONF_DISP_MODE
Structure for configuring parameters.
#define GFUI_FONT_MEDIUM_C
std::function< void()> tGfuiAction