FlatUI
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Enumerations Groups Pages
flatui_common.h File Reference
#include "fplbase/material.h"

Go to the source code of this file.

Namespaces

 flatui
 Namespace for FlatUI library.
 

Enumerations

enum  flatui::ButtonProperty { kButtonPropertyDisabled = 1, kButtonPropertyImageLeft = 2, kButtonPropertyImageRight = 4 }
 Specifies the button properties used in common widgets. More...
 

Functions

ButtonProperty flatui::operator| (ButtonProperty a, ButtonProperty b)
 The bitwise OR operator for ButtonProperties. More...
 
ButtonProperty flatui::operator|= (ButtonProperty &a, const ButtonProperty &b)
 The bitwise OR assignment operator for ButtonProperties. More...
 
void flatui::SetHoverClickColor (const mathfu::vec4 &hover_color, const mathfu::vec4 &click_color)
 Some of the widgets provide user feedback by rendering a transparent background color to signal that the user is hovering over or clicking/touching/interacting with the widget. More...
 
Event flatui::TextButton (const char *text, float size, const Margin &margin)
 A simple button showing clickable text. More...
 
Event flatui::ImageButton (const fplbase::Texture &texture, float size, const Margin &margin, const char *id)
 A simple button showing a clickable image. More...
 
Event flatui::ToggleImageButton (const fplbase::Texture &up_texture, const fplbase::Texture &down_texture, float size, const Margin &margin, const char *id)
 A button showing a different image when clicked or not. More...
 
Event flatui::TextButton (const fplbase::Texture &texture, const Margin &texture_margin, const char *text, float size, const Margin &margin, const ButtonProperty property)
 A simple button showing clickable text with an image shown beside it. More...
 
Event flatui::CheckBox (const fplbase::Texture &texture_checked, const fplbase::Texture &texture_unchecked, const char *label, float size, const Margin &margin, bool *is_checked)
 A checkbox with a label next to it. More...
 
Event flatui::Slider (const fplbase::Texture &tex_bar, const fplbase::Texture &tex_knob, const mathfu::vec2 &size, float bar_height, const char *id, float *slider_value)
 A clider to change a numeric value. More...
 
Event flatui::ScrollBar (const fplbase::Texture &tex_background, const fplbase::Texture &tex_foreground, const mathfu::vec2 &size, float bar_size, const char *id, float *scroll_value)
 A scrollbar to indicate position in a scroll view. More...
 
void flatui::EventBackground (Event event)
 Sets a background color of the widget based on the event status. More...