|
| TabBody (TabBody &&)=delete |
|
| TabBody (const TabBody &)=delete |
|
TabBody & | operator= (TabBody &&)=delete |
|
TabBody & | operator= (const TabBody &)=delete |
|
void | initializeComposite () override |
| See Widget::initializeComposite()
|
|
void | draw (sdl::Renderer &renderer, Rectangle parentRect) override |
| See Widget::draw()
|
|
Rectangle | widgetLayout (sdl::Renderer &renderer, Rectangle available, uint layoutStage) override |
| See Widget::widgetLayout()
|
|
bool | mouseButtonEvent (const Position &mousePos, int button, bool down, int modifiers) override |
| Handle a mouse button event (default implementation: propagate to children)
|
|
bool | mouseMotionEvent (const Position &cursorPosition, const Position &rel, int button, int modifiers) override |
| Handle a mouse motion event (default implementation: propagate to children)
|
|
bool | mouseDragEvent (const Position &p, const Position &rel, int button, int modifiers) override |
| Handle a mouse drag event (default implementation: do nothing)
|
|
bool | mouseEnterEvent (const Position &p, bool enter) override |
| Handle a mouse enter/leave event (default implementation: record this fact, but do nothing)
|
|
bool | scrollEvent (const Position &p, int32_t x, int32_t y) override |
| Handle a mouse scroll event (default implementation: propagate to children)
|
|
bool | focusEvent (bool focused) override |
| Handle a focus change event (default implementation: record the focus status, but do nothing)
|
|
bool | keyboardCharacterEvent (unsigned int codepoint) override |
| Handle text input (UTF-32 format) (default implementation: do nothing)
|
|
std::shared_ptr< Widget > | findWidget (const Position &pos) override |
| Find the Widget which uniquely contains the position. More...
|
|
std::shared_ptr< Widget > | findWidget (const Id &id) override |
| Find a Widget with the specified Id. More...
|
|
std::string_view | nodeId () const noexcept override |
|
virtual void | add (const std::shared_ptr< Node > &node) |
|
void | remove (const std::shared_ptr< Node > &node) |
|
| Node (const std::shared_ptr< Container > &container) |
| Create a node and add it to a Container. More...
|
|
void | setId (const Id &nodeId) noexcept |
| Set Id.
|
|
std::string_view | getId () const |
| Get Id.
|
|
IdPath | getIdPath () const |
| Get the Id Path.
|
|
virtual void | addedToContainer () |
| Called when a Node is added to a Container. More...
|
|
std::shared_ptr< Container > | container () |
|
std::shared_ptr< Container > | container () const |
|
template<typename C > |
std::shared_ptr< C > | containerAs () |
|
template<typename C > |
std::shared_ptr< C > | containerAs () const |
|
std::shared_ptr< const Node > | getNode () const |
| Get a const std::shared_ptr to this node. More...
|
|
std::shared_ptr< Node > | getNode () |
| Get a std::shared_ptr to this node. More...
|
|
template<typename NodeType > |
std::shared_ptr< const Node > | getNode () const |
| Get a std::shared_ptr<const NodeType> to this node. More...
|
|
template<typename NodeType > |
std::shared_ptr< NodeType > | getNode () |
| Get a std::shared_ptr<NodeType> to this node. More...
|
|
std::shared_ptr< Node > | remove () |
|
|
using | NodePtr = std::shared_ptr< Node > |
|
template<typename NodeType > |
static std::shared_ptr< NodeType > | create () |
| Create a Node with no arguments. More...
|
|
template<typename NodeType , typename ... Args> |
static std::shared_ptr< NodeType > | create (Args ... args) |
| Create a Node with arguments. More...
|
|
template<typename NodeType , typename ContainerType , typename ... Args> |
static std::shared_ptr< NodeType > | add (ContainerType container, Args ... args) |
| Create a Node with arguments and add to a Container. More...
|
|
static constexpr std::string_view | id = "Container" |
|
static constexpr std::string_view | id = "Node" |
|
std::weak_ptr< Container > | mContainer {} |
| The Container that holds the Node. More...
|
|
Id | mId {} |
|
A TabBody manages a number of TabPages.