UGDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes
ugdk::ui::Menu Class Reference

#include <menu.h>

Inheritance diagram for ugdk::ui::Menu:
Inheritance graph
[legend]
Collaboration diagram for ugdk::ui::Menu:
Collaboration graph
[legend]

List of all members.

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

Static Public Attributes

static const MenuCallback FINISH_MENU
static const MenuCallback INTERACT_MENU

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 
)

Member Function Documentation

void ugdk::ui::Menu::AddCallback ( input::Key  key,
MenuCallback  callback 
) [inline]
const UIElement* ugdk::ui::Menu::focused_element ( ) const [inline]
void ugdk::ui::Menu::OnSceneAdd ( action::Scene scene) [virtual]

Reimplemented from ugdk::action::Entity.

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines