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

#include <ugdk/ui/menu.h>

Inheritance diagram for ugdk::ui::Menu:
Collaboration diagram for ugdk::ui::Menu:

Public Member Functions

 Menu (const ikdtree::Box< 2 > &tree_bounding_box, const Vector2D &offset, const graphic::Drawable::HookPoint &hook=graphic::Drawable::TOP_LEFT)
 
 ~Menu ()
 
void Update (double dt)
 
void OnSceneAdd (action::Scene *scene)
 
std::vector< UIElement * > * GetMouseCollision ()
 
void AddCallback (input::Key key, MenuCallback callback)
 
void SetOptionDrawable (graphic::Drawable *option_graphic, int index=0)
 
void AddObject (UIElement *obj)
 
void RemoveObject (UIElement *obj)
 
void RefreshObject (UIElement *obj)
 
graphic::Nodenode ()
 
const UIElementfocused_element () const
 
const InputCallbacksinput_callbacks () const
 
void FinishScene () const
 
- Public Member Functions inherited from ugdk::action::Entity
virtual ~Entity ()
 
virtual bool to_be_removed () const
 

Static Public Attributes

static const MenuCallback FINISH_MENU
 
static const MenuCallback INTERACT_MENU
 

Additional Inherited Members

- Protected Member Functions inherited from ugdk::action::Entity
 Entity ()
 
- Protected Attributes inherited from ugdk::action::Entity
bool to_be_removed_
 

Constructor & Destructor Documentation

ugdk::ui::Menu::Menu ( const ikdtree::Box< 2 > &  tree_bounding_box,
const Vector2D offset,
const graphic::Drawable::HookPoint hook = graphic::Drawable::TOP_LEFT 
)
ugdk::ui::Menu::~Menu ( )

Member Function Documentation

void ugdk::ui::Menu::AddCallback ( input::Key  key,
MenuCallback  callback 
)
inline
void ugdk::ui::Menu::AddObject ( UIElement obj)
void ugdk::ui::Menu::FinishScene ( ) const
const UIElement* ugdk::ui::Menu::focused_element ( ) const
inline
std::vector< UIElement * > * ugdk::ui::Menu::GetMouseCollision ( )
const InputCallbacks& ugdk::ui::Menu::input_callbacks ( ) const
inline
graphic::Node* ugdk::ui::Menu::node ( )
inline
void ugdk::ui::Menu::OnSceneAdd ( action::Scene scene)
virtual

Reimplemented from ugdk::action::Entity.

void ugdk::ui::Menu::RefreshObject ( UIElement obj)
void ugdk::ui::Menu::RemoveObject ( UIElement obj)
void ugdk::ui::Menu::SetOptionDrawable ( graphic::Drawable option_graphic,
int  index = 0 
)
inline
void ugdk::ui::Menu::Update ( double  dt)
virtual

Implements ugdk::action::Entity.

Member Data Documentation

const MenuCallback ugdk::ui::Menu::FINISH_MENU
static
const MenuCallback ugdk::ui::Menu::INTERACT_MENU
static

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