libsuit  0.1.1
SFML User Interface Toolkit
Classes | Typedefs | Enumerations | Functions
Widgets

A set of widgets. More...

Classes

class  ui::Area
 An area on the window that contains widgets. More...
 
class  ui::Bin
 A widget with a single child. More...
 
class  ui::Button
 A button widget. More...
 
class  ui::Container
 A widget that contains several other widgets. More...
 
class  ui::DebugVisitor
 A visitor to draw a debug view of the widgets. More...
 
class  ui::Form
 A form widget. More...
 
struct  ui::Geometry
 The geometry of a widget. More...
 
class  ui::HBox
 A horizontal box. More...
 
class  ui::Label
 A label widget. More...
 
class  ui::Leaf
 A leaf widget. More...
 
class  ui::Select
 A select widget. More...
 
class  ui::Stack
 A stack widget. More...
 
class  ui::Table
 A table widget. More...
 
class  ui::Toggle
 A toggle widget. More...
 
class  ui::VBox
 A vertical box. More...
 
class  ui::VideoConfigWidget
 A video configuration widget. More...
 
class  ui::Widget
 An element of the graphical interface. More...
 
class  ui::WidgetVisitor
 A widget visitor. More...
 

Typedefs

typedef std::function< void()> ui::Callback
 A generic callback function. More...
 

Enumerations

enum  ui::SizePolicy {
  ui::SizePolicy::EXACT,
  ui::SizePolicy::PREFERRED,
  ui::SizePolicy::MINIMUM
}
 The size policy of a widget. More...
 
enum  ui::Alignment {
  ui::Alignment::START,
  ui::Alignment::CENTER,
  ui::Alignment::END
}
 The alignement of a widget. More...
 

Functions

void ui::computeGeometry (const Geometry &parent, Geometry &child)
 Compute the geometry of a child widget thanks to the geometry of its parent widget. More...
 

Detailed Description

A set of widgets.

The widgets (descendant of ui::Widget) can be divided in two groups:

See also
ui::Widget, ui::Container, ui::Stack, ui::Bin, ui::Leaf

Typedef Documentation

typedef std::function<void()> ui::Callback

A generic callback function.

Enumeration Type Documentation

enum ui::Alignment
strong

The alignement of a widget.

Enumerator
START 

the widget should be aligned to the start (top or left)

CENTER 

the widget should be centered

END 

the widget should be aligned to the end (bottom or right)

enum ui::SizePolicy
strong

The size policy of a widget.

Enumerator
EXACT 

the size hint is the exact size of the widget and it must not grow

PREFERRED 

the size hint is the preferred size of the widget but it may grow (default policy)

MINIMUM 

the size hint is the minimum size and the widget must get the maximum space

Function Documentation

void ui::computeGeometry ( const Geometry &  parent,
Geometry &  child 
)

Compute the geometry of a child widget thanks to the geometry of its parent widget.

Parameters
parentthe parent widget.
childthe child widget.