39 const char* _windowName;
58 void _Menu_DrawCursorParams(
short x,
short y,
short w,
short h,
Color4f* color);
109 void Menu_StartInput(
short x,
short y,
short width, vec2 cursorPosition,
bool buttonPress,
bool buttonHeld);
121 void Menu_Start(
short x,
short y,
short width);
182 bool Menu_Toggle(
const char* text,
bool* valueRef);
189 void Menu_Flag(
const char* text,
bool enabled);
199 bool Menu_Slider(
const char* text,
float minValue,
float maxValue,
float* valueRef);
Color struct and functions.
Class for loading fonts and drawing text with them.
void Menu_TextF(const char *format,...)
Draws formatted text.
Definition mgdl-gui.cpp:155
void Menu_Flag(const char *text, bool enabled)
Draws a text label with can be highlighted.
Definition mgdl-gui.cpp:268
void Menu_SetColors(Color4f *bg, Color4f *text, Color4f *highlight)
Sets the colors used in the menu.
Definition mgdl-gui.cpp:135
void Menu_Text(const char *text)
Draws text.
Definition mgdl-gui.cpp:161
bool Menu_Button(const char *text)
Draws a button that can be clicked.
Definition mgdl-gui.cpp:183
bool Menu_Slider(const char *text, float minValue, float maxValue, float *valueRef)
Draws a slider that can be adjusted with mouse or by pressing buttons.
void _Menu_TitleBar(void)
Draws the window title bar.
Definition mgdl-gui.cpp:106
void _Menu_Borders(void)
Draws the window borders.
Definition mgdl-gui.cpp:121
Menu * Menu_CreateWindowed(Font *font, float textHeight, float rowHeightEm, short width, short height, const char *title)
Creates a windowed menu.
Definition mgdl-gui.cpp:57
void Menu_ReadDefaultInputs(void)
reads the default cursor and mouse status into the gui system
Definition mgdl-gui.cpp:17
void Menu_DrawCursor(void)
Draws a cursor using the Default font and default values.
Definition mgdl-gui.cpp:300
Menu * Menu_Create(Font *font, float textHeigh, float rowHeightEm)
Creates a MenuCreator using font and parameters.
Definition mgdl-gui.cpp:35
bool Menu_Toggle(const char *text, bool *valueRef)
Draws a toggle that can be clicked.
Definition mgdl-gui.cpp:216
void Menu_Start(short x, short y, short width)
Starts the menu from given position and uses default inputs.
Definition mgdl-gui.cpp:72
void Menu_StartInput(short x, short y, short width, vec2 cursorPosition, bool buttonPress, bool buttonHeld)
Starts the menu from given position and takes the input status.
Definition mgdl-gui.cpp:77
void Menu_SetActive(Menu *menu)
Set the menu to which the other functions are applied to.
Definition mgdl-gui.cpp:25
void Menu_Separator(void)
Draws a line separating elements.
Definition mgdl-gui.cpp:290
Menu * Menu_CreateDefault(void)
Creates a MenuCreator using default font and settings.
Definition mgdl-gui.cpp:30
void Menu_Skip(short height)
Leaves empty space for custom elements.
Definition mgdl-gui.cpp:295
void Menu_Icon(IconSymbol icon, Color4f *color)
Draws a colored icon.
Definition mgdl-gui.cpp:172
Library types, macros, defines and enums header.
Definition mgdl-color.h:54
Represents a font that can be used to draw text.
Definition mgdl-font.h:16