Symphony Of Empires
UI Namespace Reference

Classes

class  BarChart
 Bar chart that draws horizontal bar chart. More...
 
class  Button
 Button widget. More...
 
struct  CandleData
 
class  CandleChart
 A graph chart. More...
 
class  Chart
 A graph chart. More...
 
struct  Checkbox
 Checkbox widget. More...
 
class  CloseButton
 Button which kills the parent on click. More...
 
struct  Div
 A basic widget without any presets. More...
 
class  Group
 Grouping to keep widgets together without triggering events. More...
 
class  Image
 Image widget, can display pictures or effects on the screen. More...
 
class  AspectImage
 A version of the Image widget that keeps aspect ratio of the image (useful for flags) More...
 
class  Input
 Input widget for keyboard inputs. More...
 
class  Label
 Simple widget for drawing text on the screen, no multiline support. More...
 
class  NumericInput
 A version of the Input widget that only allows numbers. More...
 
class  PieChart
 Piechart widget. More...
 
class  ProgressBar
 
class  ScrollbarThumb
 The thumb of the scrollbar. More...
 
class  Scrollbar
 Scrollbar widget. More...
 
class  Slider
 Slider widget. More...
 
class  TableElement
 An element on a table, operates on a k=v fashion where the key is used for sorting the table. More...
 
class  TableRow
 A row of a table, contains table elements and specifies the width of the entire row. More...
 
class  Table
 A dynamic/smart table that can sort elements by ascending/descending order. More...
 
class  Text
 Multiline textbox that allows more descriptive paragraphs than the Label widget. More...
 
class  Tooltip
 Tooltip widget, used entirely for hovering purpouses, don't use any other widget for hovering unless it inherits from Tooltip. More...
 
class  Context
 The UI context that handles all the ui widgets. More...
 
struct  WaffleChart
 A graph chart. More...
 
class  ChartData
 Generalized chart data, used mostly by chart widgets, however it's not specific to any widget. More...
 
class  Border
 Border class that defines the texture and size of borders of the widgets. More...
 
class  Widget
 The master widget all the other widgets inherit from, do not use directly instead use one of the many derivated widgets - unless you're making a new widget type. More...
 
class  Window
 Window widget, this widget is similar to a Group widget, the key difference is that this one can be moved along the screen. More...
 

Typedefs

typedef void(* Callback) (UI::Widget &)
 

Enumerations

enum class  Direction { LEFT_TO_RIGHT , RIGHT_TO_LEFT , TOP_TO_BOTTOM , BOTTOM_TO_TOP }
 Progressbar widget. More...
 
enum class  ClickState { NOT_CLICKED = 0 , NOT_HANDLED = 1 , HANDLED = 2 }
 
enum class  Origin {
  CENTER , MIDDLE_LEFT , MIDDLE_RIGHT , UPPER_LEFT ,
  UPPER_MIDDLE , UPPER_RIGHT , LOWER_LEFT , LOWER_MIDDLE ,
  LOWER_RIGHT , CENTER_SCREEN , MIDDLE_LEFT_SCREEN , MIDDLE_RIGHT_SCREEN ,
  UPPER_LEFT_SCREEN , UPPER_MIDDLE_SCREEN , UPPER_RIGHT_SCREEN , LOWER_LEFT_SCREEN ,
  LOWER_MIDDLE_SCREEN , LOWER_RIGHT_SCREEN
}
 The origin of the widget. More...
 
enum class  WidgetType {
  DIV , BUTTON , INPUT , WINDOW ,
  TOOLTIP , LABEL , IMAGE , CHART ,
  CHECKBOX , PIE_CHART , BAR_CHART , PROGRESS_BAR ,
  SLIDER , GROUP , SCROLLBAR , TABLE ,
  TABLE_ROW , TABLE_ELEMENT , SCROLLBAR_THUMB
}
 The type of the widget, some widgets share types between them to keep simplicity. More...
 
enum class  Flex { NONE , ROW , COLUMN }
 Ordering mode for flex. More...
 
enum class  FlexJustify { START , END , SPACE_BETWEEN , SPACE_AROUND }
 Justification alignment for flex. More...
 
enum class  Align { START , END , CENTER }
 
enum class  Overflow { CLAMP , WRAP }
 

Variables

Contextg_ui_context = nullptr
 

Typedef Documentation

◆ Callback

typedef void(* UI::Callback) (UI::Widget &)

Definition at line 59 of file ui.hpp.

Enumeration Type Documentation

◆ Align

enum UI::Align
strong
Enumerator
START 
END 
CENTER 

Definition at line 115 of file widget.hpp.

◆ ClickState

enum UI::ClickState
strong
Enumerator
NOT_CLICKED 
NOT_HANDLED 
HANDLED 

Definition at line 51 of file ui.hpp.

◆ Overflow

enum UI::Overflow
strong
Enumerator
CLAMP 
WRAP 

Definition at line 121 of file widget.hpp.

Variable Documentation

◆ g_ui_context

UI::Context * UI::g_ui_context = nullptr
extern

Definition at line 63 of file ui.cpp.