UGDK
0.4.1
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
uielement.h
Go to the documentation of this file.
1
#ifndef UGDK_UI_UIELEMENT_H_
2
#define UGDK_UI_UIELEMENT_H_
3
4
#include <
ugdk/ui.h
>
5
#include <
ugdk/util.h
>
6
#include <
ugdk/graphic.h
>
7
8
namespace
ugdk {
9
namespace
ui {
10
11
class
UIElement
{
12
public
:
13
virtual
~UIElement
();
14
15
void
set_owner
(
Menu
* owner) {
owner_
= owner; }
16
graphic::Node
*
node
()
const
{
return
node_
; }
17
18
virtual
void
Interact
()
const
= 0;
19
virtual
ikdtree::Box<2>
GetBoundingBox
()
const
= 0;
20
21
protected
:
22
UIElement
();
23
24
Menu
*
owner_
;
25
graphic::Node
*
node_
;
26
};
27
28
}
// namespace ui
29
}
// namespace ugdk
30
31
#endif
/* UGDK_UIELEMENT_H_ */
src
ugdk
ui
uielement.h
Generated on Sat Oct 13 2012 02:25:11 for UGDK by
1.8.2