|
enum | orientation : uint32_t {
TEXT_LEFT
, TEXT_CENTER
, TEXT_RIGHT
, TEXT_JUSTIFIED
,
LINE_LOW
, LINE_NORMAL
, LINE_HIGH
, FRAME_LEFT
,
FRAME_RIGHT
, FRAME_TOP
, FRAME_BOTTOM
, FRAME_LEFT_INV
,
FRAME_RIGHT_INV
, FRAME_TOP_INV
, FRAME_BOTTOM_INV
, FRAME_INSET
} |
|
enum | widget : glyph_t {
WIDGET_TOP_LEFT = 0
, WIDGET_TOP_MIDDLE = 1
, WIDGET_TOP_RIGHT = 2
, WIDGET_MIDDLE_LEFT = 3
,
WIDGET_MIDDLE_MIDDLE = 4
, WIDGET_MIDDLE_RIGHT = 5
, WIDGET_BOTTOM_LEFT = 6
, WIDGET_BOTTOM_MIDDLE = 7
,
WIDGET_BOTTOM_RIGHT = 8
, WIDGET_LEFT = 0
, WIDGET_MIDDLE = 1
, WIDGET_RIGHT = 2
,
WIDGET_BUTTON = 0
, WIDGET_BUTTON_PRESSED = 9
, WIDGET_BUTTON_SELECTED_ENABLED = 18
, WIDGET_BUTTON_SELECTED_DISABLED = 27
,
WIDGET_BUTTON_DISABLED = 36
, WIDGET_BUTTON_PRESSED_DISABLED = 45
, WIDGET_WINDOW = 54
, WIDGET_REVERSE_WINDOW = 63
,
WIDGET_SELECT_BOX = 72
, WIDGET_SELECT_BOX_PRESSED = 81
, WIDGET_SELECT_BOX_SELECTED = 90
, WIDGET_TEXT_BOX = 99
,
WIDGET_TEXT_BOX_DISABLED = 108
, WIDGET_BORDER = 117
, WIDGET_SCROLL_BAR_TRACK_VERTICAL = 126
, WIDGET_SCROLL_BAR_TRACK_HORIZONTAL = 129
,
WIDGET_DIVIDER_HORIZONTAL = 132
, WIDGET_DIVIDER_VERTICAL = 135
, WIDGET_SLIDER_TRACK_VERTICAL = 138
, WIDGET_SLIDER_TRACK_HORIZONTAL = 138
,
WIDGET_SCROLL_BAR_VERTICAL = 144
, WIDGET_SCROLL_BAR_HORIZONTAL = 147
, WIDGET_TAB = 150
, WIDGET_PROGESS_BAR = 153
,
WIDGET_RADIO_BUTTON = 156
, WIDGET_CHECK_BUTTON = 162
, WIDGET_SLIDER_VERTICAL = 168
, WIDGET_SLIDER_HORIZONTAL = 174
,
WIDGET_BUTTON_UP = 180
, WIDGET_BUTTON_DOWN = 186
, WIDGET_BUTTON_LEFT = 192
, WIDGET_BUTTON_RIGHT = 198
,
WIDGET_BUTTON_EXIT = 204
, WIDGET_BUTTON_HELP = 210
, WIDGET_BUTTON_2_WINDOW = 216
, WIDGET_BUTTON_1_WINDOW = 222
,
WIDGET_DEFAULT = 255
} |
|
|
void | SetColor (vec3 color) |
|
void | SetScaling (uint32_t scale) |
|
uint32_t | GetScaling () |
|
void | Init () |
| Performs initialization of the GUI system. More...
|
|
void | UpdateDrawListFonts () |
| Submits registered fonts to the renderer. More...
|
|
void | Update () |
| Submits all of the glyphs for rendering. More...
|
|
font_t | RegisterFont (Render::Sprite *sprite) |
| Registers a font. More...
|
|
void | SetGlyph (float x, float y, float z, float w, float h, float tex_x, float tex_y, float tex_w, float tex_h, const vec3 &color, font_t font) |
| Adds a glyph to rendering list. More...
|
|
uint32_t | GlyphWidth (font_t font, glyph_t glyph) |
|
uint32_t | GlyphHeight (font_t font, glyph_t glyph) |
|
uint32_t | GlyphBorderV (font_t font, glyph_t glyph) |
|
void | DrawGlyph (font_t font, glyph_t glyph, uint32_t x, uint32_t y, uint32_t w=0, uint32_t h=0) |
|
void | Glyph (font_t font, glyph_t glyph) |
|
void | DrawBox (font_t font, glyph_t glyph, uint32_t x, uint32_t y, uint32_t w, uint32_t h) |
| Draws a glyph box. More...
|
|
uint32_t | TextWidth (font_t font, const char *text) |
|
void | Text (font_t font, const char *text, uint32_t orientation) |
|
void | DrawBoxHorizontal (font_t font, glyph_t glyph, uint32_t x, uint32_t y, uint32_t w) |
|
void | PushFrame (uint32_t x, uint32_t y, uint32_t w, uint32_t h) |
|
void | PushFrameRelative (uint32_t orientation, uint32_t offset) |
|
void | PopFrame () |
|
bool | CursorOver (uint32_t x, uint32_t y, uint32_t w, uint32_t h) |
|
bool | ClickHandled () |
|
bool | Clicked () |
|
bool | Button (const char *text, bool enabled, uint32_t width) |
|
bool | RadioButton (uint32_t index, uint32_t &selected, const char *text, bool enabled) |
|
bool | CheckBox (bool &selected, const char *text, bool enabled) |
|
bool | Slider (float &value, bool enabled, uint32_t width) |
|
void | NewLine (uint32_t line) |
|
void | HorizontalDivider () |
|
void | FillFrame (font_t font, glyph_t glyph) |
|
bool | TextBox (char *text, uint32_t length, bool enabled, uint32_t w, uint32_t h) |
|
void | TextBox (const char *text, uint32_t w, uint32_t h) |
|
void | Begin () |
|
void | End () |
|