#include <UICanvas.hpp>


Public Member Functions | |
| UICanvas (const Frame &frame, const Color &color=Color::NONE) | |
| void | onRender () override |
| ~UICanvas () override | |
Public Member Functions inherited from Sh::UIWindow | |
| template<int SomeState, typename... Args> | |
| UIWindow * | applyStyle (Args &&... args) |
| template<typename SomeShape , typename... Args> | |
| UIWindow * | applyShape (Args &&... args) |
| template<typename SomeBehavior , typename... Args> | |
| UIWindow * | setBehavior (Args &&... args) |
| int | getState () const |
| void | setState (int new_state) |
| bool | contains (const Vector2< double > &point) const override |
| void | translate (const Vector2< double > &delta) override |
| void | setPos (const Vector2< double > &pos) override |
| void | setParent (Window *new_parent) override |
| Behavior * | getBehavior () const |
| ~UIWindow () override | |
Public Member Functions inherited from Sh::Window | |
| Window ()=delete | |
| ~Window () override=default | |
| Window (const Window &other)=delete | |
| Window & | operator= (const Window &other)=delete |
| const Window * | getParent () const |
| template<typename SomeWindow , typename... Args> | |
| SomeWindow * | attach (Args &&... args) |
| template<typename SomeWindow > | |
| SomeWindow * | attach (SomeWindow *child) |
| Window * | detach (Window *child) |
| const Frame & | getFrame () const |
| const Vector2< double > & | getSize () const |
| const Vector2< double > & | getPos () const |
| const std::list< Window * > & | getChildren () |
Public Member Functions inherited from Sh::Listener | |
| virtual | ~Listener () |
Protected Attributes | |
| Image | canvas |
Additional Inherited Members | |
Public Types inherited from Sh::UIWindow | |
| enum | States { NORMAL, HOVER, CLICK, HOLD, SELECTED } |
Protected Types inherited from Sh::UIWindow | |
| using | StyleMap = std::unordered_map< int, StylePack > |
Protected Member Functions inherited from Sh::UIWindow | |
| UIWindow (const Frame &viewport) | |
| void | onRender () override |
| StyleMap & | styles () |
| const Shape2D & | shape () const |
| void | notifyBehavior () |
Protected Member Functions inherited from Sh::Window | |
| Window (const Frame &frame) | |
|
explicit |
|
override |
|
overridevirtual |
Reimplemented from Sh::Window.
|
protected |