diff options
Diffstat (limited to 'src/others/irrlicht-1.8.1/include/EGUIElementTypes.h')
-rw-r--r-- | src/others/irrlicht-1.8.1/include/EGUIElementTypes.h | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/include/EGUIElementTypes.h b/src/others/irrlicht-1.8.1/include/EGUIElementTypes.h new file mode 100644 index 0000000..a02afad --- /dev/null +++ b/src/others/irrlicht-1.8.1/include/EGUIElementTypes.h | |||
@@ -0,0 +1,140 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | ||
2 | // This file is part of the "Irrlicht Engine". | ||
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | ||
4 | |||
5 | #ifndef __E_GUI_ELEMENT_TYPES_H_INCLUDED__ | ||
6 | #define __E_GUI_ELEMENT_TYPES_H_INCLUDED__ | ||
7 | |||
8 | #include "irrTypes.h" | ||
9 | |||
10 | namespace irr | ||
11 | { | ||
12 | namespace gui | ||
13 | { | ||
14 | |||
15 | //! List of all basic Irrlicht GUI elements. | ||
16 | /** An IGUIElement returns this when calling IGUIElement::getType(); */ | ||
17 | enum EGUI_ELEMENT_TYPE | ||
18 | { | ||
19 | //! A button (IGUIButton) | ||
20 | EGUIET_BUTTON = 0, | ||
21 | |||
22 | //! A check box (IGUICheckBox) | ||
23 | EGUIET_CHECK_BOX, | ||
24 | |||
25 | //! A combo box (IGUIComboBox) | ||
26 | EGUIET_COMBO_BOX, | ||
27 | |||
28 | //! A context menu (IGUIContextMenu) | ||
29 | EGUIET_CONTEXT_MENU, | ||
30 | |||
31 | //! A menu (IGUIMenu) | ||
32 | EGUIET_MENU, | ||
33 | |||
34 | //! An edit box (IGUIEditBox) | ||
35 | EGUIET_EDIT_BOX, | ||
36 | |||
37 | //! A file open dialog (IGUIFileOpenDialog) | ||
38 | EGUIET_FILE_OPEN_DIALOG, | ||
39 | |||
40 | //! A color select open dialog (IGUIColorSelectDialog) | ||
41 | EGUIET_COLOR_SELECT_DIALOG, | ||
42 | |||
43 | //! A in/out fader (IGUIInOutFader) | ||
44 | EGUIET_IN_OUT_FADER, | ||
45 | |||
46 | //! An image (IGUIImage) | ||
47 | EGUIET_IMAGE, | ||
48 | |||
49 | //! A list box (IGUIListBox) | ||
50 | EGUIET_LIST_BOX, | ||
51 | |||
52 | //! A mesh viewer (IGUIMeshViewer) | ||
53 | EGUIET_MESH_VIEWER, | ||
54 | |||
55 | //! A message box (IGUIWindow) | ||
56 | EGUIET_MESSAGE_BOX, | ||
57 | |||
58 | //! A modal screen | ||
59 | EGUIET_MODAL_SCREEN, | ||
60 | |||
61 | //! A scroll bar (IGUIScrollBar) | ||
62 | EGUIET_SCROLL_BAR, | ||
63 | |||
64 | //! A spin box (IGUISpinBox) | ||
65 | EGUIET_SPIN_BOX, | ||
66 | |||
67 | //! A static text (IGUIStaticText) | ||
68 | EGUIET_STATIC_TEXT, | ||
69 | |||
70 | //! A tab (IGUITab) | ||
71 | EGUIET_TAB, | ||
72 | |||
73 | //! A tab control | ||
74 | EGUIET_TAB_CONTROL, | ||
75 | |||
76 | //! A Table | ||
77 | EGUIET_TABLE, | ||
78 | |||
79 | //! A tool bar (IGUIToolBar) | ||
80 | EGUIET_TOOL_BAR, | ||
81 | |||
82 | //! A Tree View | ||
83 | EGUIET_TREE_VIEW, | ||
84 | |||
85 | //! A window | ||
86 | EGUIET_WINDOW, | ||
87 | |||
88 | //! Unknown type. | ||
89 | EGUIET_ELEMENT, | ||
90 | |||
91 | //! The root of the GUI | ||
92 | EGUIET_ROOT, | ||
93 | |||
94 | //! Not an element, amount of elements in there | ||
95 | EGUIET_COUNT, | ||
96 | |||
97 | //! This enum is never used, it only forces the compiler to compile this enumeration to 32 bit. | ||
98 | EGUIET_FORCE_32_BIT = 0x7fffffff | ||
99 | |||
100 | }; | ||
101 | |||
102 | //! Names for built-in element types | ||
103 | const c8* const GUIElementTypeNames[] = | ||
104 | { | ||
105 | "button", | ||
106 | "checkBox", | ||
107 | "comboBox", | ||
108 | "contextMenu", | ||
109 | "menu", | ||
110 | "editBox", | ||
111 | "fileOpenDialog", | ||
112 | "colorSelectDialog", | ||
113 | "inOutFader", | ||
114 | "image", | ||
115 | "listBox", | ||
116 | "meshViewer", | ||
117 | "messageBox", | ||
118 | "modalScreen", | ||
119 | "scrollBar", | ||
120 | "spinBox", | ||
121 | "staticText", | ||
122 | "tab", | ||
123 | "tabControl", | ||
124 | "table", | ||
125 | "toolBar", | ||
126 | "treeview", | ||
127 | "window", | ||
128 | "element", | ||
129 | "root", | ||
130 | 0 | ||
131 | }; | ||
132 | |||
133 | } // end namespace gui | ||
134 | } // end namespace irr | ||
135 | |||
136 | #endif | ||
137 | |||
138 | |||
139 | |||
140 | |||