29#include <portability.h>
48 const char *versionName;
51 const int BUFSIZE = 1024;
74 const int BUFSIZE = 1024;
117 int x,
y, x2, x3, x4, dy;
139 "data/img/arrow-left.png",
"data/img/arrow-left-pushed.png",
143 "data/img/arrow-right.png",
"data/img/arrow-right-pushed.png",
static void onActivate(void)
static float LabelColor[]
void * GfuiScreenCreateExAction(float *bgColor, const tGfuiAction &onActivate, const tGfuiAction &onDeactivate, int mouseAllowed)
Create a screen.
void GfuiLabelSetText(void *scr, int id, const char *text)
Change the text of a label.
int GfuiTitleCreate(void *scr, const char *text, int maxlen)
Add a Title to the 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.
void GfuiAddSKeyAction(void *scr, int key, const char *descr, const tGfuiAction &onKeyPressed, const tGfuiAction &onKeyReleased)
Add a Special Keyboard shortcut to the screen.
int GfuiLabelCreate(void *scr, const char *text, int font, int x, int y, int align, int maxlen)
Add a label to a screen.
void GfuiLabelSetColor(void *scr, int id, float *color)
Change the color of a label.
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.
void GfParmReleaseHandle(void *parmHandle)
Release given parameter set handle parmHandle.
int GfParmWriteFile(const char *file, void *parmHandle, const char *name)
Write parameter set into file.
void * GfParmReadFile(const char *file, int mode)
Read parameter set from file and return handle to parameter set.
void GfuiScreenShot(void *)
Save a screen shot in png format.
void * SimuMenuInit(void *prevMenu)
static const int nbVersions
static void ChangeSimuVersion(int delta)
static void SaveSimuVersion(void)
static void ReadSimuCfg(void)
static void onActivate(void)
static const char * simuVersionList[]
#define GFPARM_RMODE_CREAT
Allow an empty in-memory set on file-open failure; does not write a file.
#define GFPARM_RMODE_REREAD
Clear shared cached data and reread the file.
#define GFUI_FONT_MEDIUM_C
std::function< void()> tGfuiAction