|
NasNas
An intuitive and beginner friendly 2D game framework for C++
|
Public Member Functions | |
| void | setCamera (Camera &cam) |
| auto | getMousePosition () const -> sf::Vector2f |
| auto | getTouchPosition (unsigned finger) const -> sf::Vector2f |
| void | setMaxFingersCount (int finger_count) |
| auto | getMaxFingersCount () const -> int |
Public Member Functions inherited from ns::ui::Container | |
| template<typename T > | |
| auto | addWidget () -> T & |
| void | setSize (float x, float y) |
| void | setSize (const sf::Vector2f &size) |
| auto | getSize () const -> sf::Vector2f |
| auto | getGlobalBounds () const -> sf::FloatRect override |
| auto | contains (const sf::Vector2f &pos) const -> bool override |
| void | onEvent (const sf::Event &event) |
| void | render () override |
Public Member Functions inherited from ns::ui::Widget | |
| void | setCallback (CursorCallback cb_type, std::function< void(Widget *)> cb) |
| auto | isHovered () const -> bool |
| auto | isFocused () const -> bool |
Public Member Functions inherited from ns::ShaderHolder | |
| void | setShader (sf::Shader *shader) |
| Set the shader to be applied when rendering. More... | |
| auto | getShader () const -> sf::Shader * |
| Get the current Shader. More... | |
| void | toggleShader () |
| Toggle shader. | |
| void | clearShader () |
| Remove the shader. More... | |
Additional Inherited Members | |
Public Types inherited from ns::ui::StyledWidget< style::Basic > | |
| using | Style = style::Basic |
Static Public Member Functions inherited from ns::AppAccess<> | |
| static constexpr auto | app () -> App & |
Public Attributes inherited from ns::ui::StyledWidget< style::Basic > | |
| style::Basic | style |
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) |
| virtual void | call (ClickCallback cb_type) |
Protected Attributes inherited from ns::ui::Widget | |
| GuiRoot * | m_root = nullptr |
| Container * | m_parent = nullptr |
| unsigned | m_type = Type::None |
Static Protected Attributes inherited from ns::detail::AppComponent | |
| static App * | app |
Definition at line 16 of file GuiRoot.hpp.
1.8.13