28 #ifndef HPL_GUI_TYPES_H 29 #define HPL_GUI_TYPES_H 31 #include "common/keyboard.h" 32 #include "common/list.h" 33 #include "hpl1/engine/graphics/GraphicsTypes.h" 34 #include "hpl1/engine/input/InputTypes.h" 35 #include "hpl1/engine/math/MathTypes.h" 41 enum eGuiMouseButton {
42 eGuiMouseButton_Left = 0x00000001,
43 eGuiMouseButton_Middle = 0x00000002,
44 eGuiMouseButton_Right = 0x00000004,
45 eGuiMouseButton_LastEnum = 4
63 eGuiMaterial_FontNormal,
64 eGuiMaterial_Additive,
65 eGuiMaterial_Modulative,
66 eGuiMaterial_LastEnum,
92 eGuiSkinFont_Disabled,
93 eGuiSkinFont_WindowLabel,
100 enum eGuiSkinAttribute {
101 eGuiSkinAttribute_WindowLabelTextOffset,
103 eGuiSkinAttribute_ButtonPressedContentOffset,
105 eGuiSkinAttribute_SliderButtonSize,
107 eGuiSkinAttribute_ListBoxSliderWidth,
109 eGuiSkinAttribute_ComboBoxButtonWidth,
110 eGuiSkinAttribute_ComboBoxSliderWidth,
112 eGuiSkinAttribute_LastEnum
119 eGuiSkinGfx_PointerNormal,
120 eGuiSkinGfx_PointerText,
124 eGuiSkinGfx_WindowBorderRight,
125 eGuiSkinGfx_WindowBorderLeft,
126 eGuiSkinGfx_WindowBorderUp,
127 eGuiSkinGfx_WindowBorderDown,
129 eGuiSkinGfx_WindowCornerLU,
130 eGuiSkinGfx_WindowCornerRU,
131 eGuiSkinGfx_WindowCornerRD,
132 eGuiSkinGfx_WindowCornerLD,
134 eGuiSkinGfx_WindowLabel,
135 eGuiSkinGfx_WindowBackground,
139 eGuiSkinGfx_FrameBorderRight,
140 eGuiSkinGfx_FrameBorderLeft,
141 eGuiSkinGfx_FrameBorderUp,
142 eGuiSkinGfx_FrameBorderDown,
144 eGuiSkinGfx_FrameCornerLU,
145 eGuiSkinGfx_FrameCornerRU,
146 eGuiSkinGfx_FrameCornerRD,
147 eGuiSkinGfx_FrameCornerLD,
149 eGuiSkinGfx_FrameBackground,
153 eGuiSkinGfx_CheckBoxEnabledUnchecked,
154 eGuiSkinGfx_CheckBoxEnabledChecked,
155 eGuiSkinGfx_CheckBoxDisabledUnchecked,
156 eGuiSkinGfx_CheckBoxDisabledChecked,
160 eGuiSkinGfx_TextBoxBackground,
161 eGuiSkinGfx_TextBoxSelectedTextBack,
162 eGuiSkinGfx_TextBoxMarker,
166 eGuiSkinGfx_ListBoxBackground,
170 eGuiSkinGfx_ComboBoxButtonIcon,
172 eGuiSkinGfx_ComboBoxBorderRight,
173 eGuiSkinGfx_ComboBoxBorderLeft,
174 eGuiSkinGfx_ComboBoxBorderUp,
175 eGuiSkinGfx_ComboBoxBorderDown,
177 eGuiSkinGfx_ComboBoxCornerLU,
178 eGuiSkinGfx_ComboBoxCornerRU,
179 eGuiSkinGfx_ComboBoxCornerRD,
180 eGuiSkinGfx_ComboBoxCornerLD,
182 eGuiSkinGfx_ComboBoxBackground,
186 eGuiSkinGfx_SliderVertArrowUp,
187 eGuiSkinGfx_SliderVertArrowDown,
188 eGuiSkinGfx_SliderVertBackground,
190 eGuiSkinGfx_SliderHoriArrowUp,
191 eGuiSkinGfx_SliderHoriArrowDown,
192 eGuiSkinGfx_SliderHoriBackground,
196 eGuiSkinGfx_ButtonUpBorderRight,
197 eGuiSkinGfx_ButtonUpBorderLeft,
198 eGuiSkinGfx_ButtonUpBorderUp,
199 eGuiSkinGfx_ButtonUpBorderDown,
201 eGuiSkinGfx_ButtonUpCornerLU,
202 eGuiSkinGfx_ButtonUpCornerRU,
203 eGuiSkinGfx_ButtonUpCornerRD,
204 eGuiSkinGfx_ButtonUpCornerLD,
206 eGuiSkinGfx_ButtonUpBackground,
208 eGuiSkinGfx_ButtonDownBorderRight,
209 eGuiSkinGfx_ButtonDownBorderLeft,
210 eGuiSkinGfx_ButtonDownBorderUp,
211 eGuiSkinGfx_ButtonDownBorderDown,
213 eGuiSkinGfx_ButtonDownCornerLU,
214 eGuiSkinGfx_ButtonDownCornerRU,
215 eGuiSkinGfx_ButtonDownCornerRD,
216 eGuiSkinGfx_ButtonDownCornerLD,
218 eGuiSkinGfx_ButtonDownBackground,
220 eGuiSkinGfx_LastEnum,
225 enum eWidgetSliderOrientation {
226 eWidgetSliderOrientation_Horisontal,
227 eWidgetSliderOrientation_Vertical,
228 eWidgetSliderOrientation_LastEnum
234 eGuiMessage_MouseMove,
235 eGuiMessage_MouseDown,
237 eGuiMessage_MouseDoubleClick,
238 eGuiMessage_MouseEnter,
239 eGuiMessage_MouseLeave,
241 eGuiMessage_GotFocus,
242 eGuiMessage_LostFocus,
246 eGuiMessage_ButtonPressed,
248 eGuiMessage_TextChange,
250 eGuiMessage_CheckChange,
252 eGuiMessage_KeyPress,
254 eGuiMessage_SliderMove,
256 eGuiMessage_SelectionChange,
258 eGuiMessage_LastEnum,
281 mKeyPress = aKeyPress;
290 eGuiMessage mMessage;
299 #define kGuiCalllbackDeclarationEnd(FuncName) \ 300 static bool FuncName##_static_gui(void *apObject, iWidget *apWidget, cGuiMessageData &aData) 302 #define kGuiCalllbackDeclaredFuncEnd(ThisClass, FuncName) \ 303 bool ThisClass::FuncName##_static_gui(void *apObject, iWidget *apWidget, cGuiMessageData &aData) { \ 304 return ((ThisClass *)apObject)->FuncName(apWidget, aData); \ 307 #define kGuiCalllbackFuncEnd(ThisClass, FuncName) \ 308 static bool FuncName##_static_gui(void *apObject, iWidget *apWidget, cGuiMessageData &aData) { \ 309 return ((ThisClass *)apObject)->FuncName(apWidget, aData); \ 312 #define kGuiCallback(FuncName) &FuncName##_static_gui 330 #endif // HPL_GAME_TYPES_H
Definition: GuiGfxElement.h:72
Definition: GuiTypes.h:263
Definition: keyboard.h:294
Definition: list_intern.h:51