| NasNas
    An intuitive and beginner friendly 2D game framework for C++ | 
 
  
 | Public Member Functions | |
| 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 | 
|  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 | 
Definition at line 20 of file Container.hpp.
 1.8.13
 1.8.13