15 #ifndef FPL_FLATUI_COMMON_H
16 #define FPL_FLATUI_COMMON_H
18 #include "fplbase/material.h"
47 kButtonPropertyDisabled = 1,
48 kButtonPropertyImageLeft = 2,
49 kButtonPropertyImageRight = 4,
64 return static_cast<ButtonProperty>(
static_cast<int>(a) | static_cast<int>(b));
96 const mathfu::vec4 &click_color);
120 const Margin &margin,
const char *
id);
132 const fplbase::Texture &down_texture,
float size,
133 const Margin &margin,
const char *
id);
148 Event TextButton(
const fplbase::Texture &texture,
const Margin &texture_margin,
149 const char *text,
float size,
const Margin &margin,
167 const fplbase::Texture &texture_unchecked,
const char *label,
168 float size,
const Margin &margin,
bool *is_checked);
183 Event Slider(
const fplbase::Texture &tex_bar,
const fplbase::Texture &tex_knob,
184 const mathfu::vec2 &size,
float bar_height,
const char *
id,
185 float *slider_value);
202 const fplbase::Texture &tex_foreground,
203 const mathfu::vec2 &size,
float bar_size,
const char *
id,
204 float *scroll_value);
218 #endif // FPL_FLATUI_COMMON_H
Event
Event types are returned by most interactive elements. These are flags, because multiple events may o...
Definition: flatui.h:255