UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ugdk::ui::Button Class Reference

#include <ugdk/ui/button.h>

Inheritance diagram for ugdk::ui::Button:
Collaboration diagram for ugdk::ui::Button:

Public Member Functions

 Button (const math::Vector2D &top_left, std::unique_ptr< Drawable > &&drawable, const ButtonCallback &function)
 
 ~Button ()
 
void Interact () const
 
structure::Box< 2 > GetBoundingBox () const
 
- Public Member Functions inherited from ugdk::ui::UIElement
virtual ~UIElement ()
 
void set_owner (Menu *owner)
 
Menuowner () const
 
std::shared_ptr< Nodenode () const
 

Additional Inherited Members

- Protected Member Functions inherited from ugdk::ui::UIElement
 UIElement ()
 

Constructor & Destructor Documentation

ugdk::ui::Button::Button ( const math::Vector2D top_left,
std::unique_ptr< Drawable > &&  drawable,
const ButtonCallback function 
)
ugdk::ui::Button::~Button ( )

Member Function Documentation

structure::Box<2> ugdk::ui::Button::GetBoundingBox ( ) const
virtual

Implements ugdk::ui::UIElement.

void ugdk::ui::Button::Interact ( ) const
inlinevirtual

Implements ugdk::ui::UIElement.


The documentation for this class was generated from the following file: