|
libsuit
0.1.1
SFML User Interface Toolkit
|
An area on the window that contains widgets. More...
#include <ui/Area.h>

Public Member Functions | |
| Area (const sf::FloatRect &rectangle) | |
| Construct an area for a part of the window. More... | |
| Area (float width, float height) | |
| Construct an area for top-left rectangle in the window. More... | |
| void | updateLayout () |
| Update the layout of the area and its widgets. More... | |
| void | onUp () |
| Change the active widget in the up direction. More... | |
| void | onDown () |
| Change the active widget in the down direction. More... | |
| void | onLeft () |
| Change the active widget in the left direction. More... | |
| void | onRight () |
| Change the active widget in the right direction. More... | |
| virtual void | onPrimaryAction () override |
| Do something if a primary action has been triggered. More... | |
| virtual void | onSecondaryAction () override |
| Do something if a secondary action has been triggered. More... | |
| virtual void | accept (WidgetVisitor &visitor) override |
| Accept the visitor. More... | |
Public Member Functions inherited from ui::Stack | |
| virtual | ~Stack () |
| void | addChild (Widget *widget) |
| Add a child to the stack. More... | |
| void | removeChild () |
| Remove the top child. More... | |
| bool | hasChildren () const |
| Tell whether the stack has children. More... | |
| Widget * | getTopChild () |
| Get the top child. More... | |
| virtual void | onClick (sf::Mouse::Button button, const sf::Vector2f &mouse) override |
| Do something when the widget is clicked. More... | |
| virtual void | layoutRequest () override |
| Compute the size hint of the widget. More... | |
| virtual void | layoutAllocation () override |
| Compute the size of the widget. More... | |
Public Member Functions inherited from ui::Widget | |
| Widget () | |
| Construct a widget. More... | |
| Widget (const Widget &)=delete | |
| Widget & | operator= (const Widget &)=delete |
| Widget (Widget &&)=delete | |
| Widget & | operator= (Widget &&)=delete |
| virtual | ~Widget () |
| Destroy a widget. More... | |
| void | setSizeHint (float width, float height) |
| Set the size hint of the widget. More... | |
| sf::Vector2f | getSizeHint () const |
| Get the size hint of the widget. More... | |
| void | setHorizontalPolicy (SizePolicy policy) |
| Set the horizontal size policy. More... | |
| void | setVerticalPolicy (SizePolicy policy) |
| Set the vertical size policy. More... | |
| void | setSizePolicy (SizePolicy horizontal, SizePolicy vertical) |
| Set the size policy. More... | |
| void | setHorizontalAlignment (Alignment alignment) |
| Set the horizontal alignment policy. More... | |
| void | setVerticalAlignment (Alignment alignment) |
| Set the vertical alignment policy. More... | |
| const Geometry & | getHorizontalGeometry () const |
| Get the horizontal geometry. More... | |
| Geometry & | getHorizontalGeometry () |
| Get the horizontal geometry. More... | |
| const Geometry & | getVerticalGeometry () const |
| Get the vertical geometry. More... | |
| Geometry & | getVerticalGeometry () |
| Get the vertical geometry. More... | |
| void | setGeometry (const sf::FloatRect &geometry) |
| Set the vertical geometry thanks to a rectangle. More... | |
| const sf::FloatRect | getGeometry () const |
| Get the geometry of the widget. More... | |
| sf::Vector2f | getCenter () const |
| Get the center of the widget. More... | |
An area on the window that contains widgets.
| ui::Area::Area | ( | const sf::FloatRect & | rectangle | ) |
Construct an area for a part of the window.
| rectangle | the part of the window for the area. |
| ui::Area::Area | ( | float | width, |
| float | height | ||
| ) |
Construct an area for top-left rectangle in the window.
| width | the width of the area. |
| height | the height of the area. |
|
overridevirtual |
| void ui::Area::onDown | ( | ) |
Change the active widget in the down direction.
| void ui::Area::onLeft | ( | ) |
Change the active widget in the left direction.
|
overridevirtual |
Do something if a primary action has been triggered.
Reimplemented from ui::Widget.
| void ui::Area::onRight | ( | ) |
Change the active widget in the right direction.
|
overridevirtual |
Do something if a secondary action has been triggered.
Reimplemented from ui::Widget.
| void ui::Area::onUp | ( | ) |
Change the active widget in the up direction.
| void ui::Area::updateLayout | ( | ) |
Update the layout of the area and its widgets.
1.8.7