|
NasNas
An intuitive and beginner friendly 2D game framework for C++
|
Public Member Functions | |
| void | setCallback (ClickCallback cb_type, std::function< void(Widget *)> cb) |
Public Member Functions inherited from ns::ui::Widget | |
| virtual auto | getGlobalBounds () const -> sf::FloatRect=0 |
| virtual auto | contains (const sf::Vector2f &pos) const -> bool=0 |
| void | setCallback (CursorCallback cb_type, std::function< void(Widget *)> cb) |
| auto | isHovered () const -> bool |
| auto | isFocused () const -> bool |
Additional Inherited Members | |
Protected Types inherited from ns::ui::Widget | |
| enum | Type { None = 0, Parent = 1 << 0, Styled = 1 << 1, Clickable = 1 << 2 } |
Protected Member Functions inherited from ns::ui::Widget | |
| void | call (CursorCallback cb_type) |
Protected Attributes inherited from ns::ui::Widget | |
| GuiRoot * | m_root = nullptr |
| Container * | m_parent = nullptr |
| unsigned | m_type = Type::None |
Definition at line 66 of file Widget.hpp.
1.8.13