31 #include "common/list.h" 32 #include "hpl1/engine/graphics/GraphicsTypes.h" 33 #include "hpl1/engine/gui/GuiTypes.h" 34 #include "hpl1/std/multiset.h" 35 #include "hpl1/std/set.h" 60 class cWidgetCheckBox;
63 class cWidgetComboBox;
89 typedef tGuiRenderObjectSet::iterator tGuiRenderObjectSetIt;
107 tGuiClipRegionList mlstChildren;
122 void Update(
float afTimeStep);
124 void DrawAll(
float afTimeStep);
132 void SetDrawOffset(
const cVector3f &avOffset) { mvDrawOffset = avOffset; }
133 void SetCurrentClipRegion(
cGuiClipRegion *apRegion) { mpCurrentClipRegion = apRegion; }
139 eGuiMaterial aMaterial = eGuiMaterial_LastEnum);
140 void DrawFont(
const tWString &asText,
143 eFontAlign aAlign = eFontAlign_Left,
144 eGuiMaterial aMaterial = eGuiMaterial_FontNormal);
156 bool abDrawFrame =
false,
172 cWidgetSlider *CreateWidgetSlider(eWidgetSliderOrientation aOrientation,
194 eGuiMaterial aMaterial = eGuiMaterial_Alpha,
195 bool abAnimate =
false,
212 void DestroyWidget(
iWidget *apWidget);
218 void *apCallbackObject, tGuiCallbackFunc apCallback);
224 void SetActive(
bool abX);
225 bool IsActive() {
return mbActive; }
227 cGui *GetGui() {
return mpGui; }
229 void SetDrawMouse(
bool abX);
230 bool GetDrawMouse() {
return mbDrawMouse; }
232 void SetMouseZ(
float afZ) { mfMouseZ = afZ; }
233 float GetMouse() {
return mfMouseZ; }
235 void SetRootWidgetClips(
bool abX);
236 bool GetRootWidgetClips();
238 void SetVirtualSize(
const cVector2f &avSize,
float afMinZ,
float afMaxZ);
239 const cVector2f &GetVirtualSize() {
return mvVirtualSize; }
241 void SetFocusedWidget(
iWidget *apWidget);
242 iWidget *GetFocusedWidget() {
return mpFocusedWidget; }
244 void SetAttentionWidget(
iWidget *apWidget);
245 iWidget *GetAttentionWidget() {
return mpAttentionWidget; }
247 void SetIs3D(
bool abX);
248 bool Is3D() {
return mbIs3D; }
250 int GetDrawPriority() {
return mlDrawPrio; }
251 void SetDrawPriority(
int alPrio) { mlDrawPrio = alPrio; }
254 cGuiGfxElement *GetCurrentPointer() {
return mpGfxCurrentPointer; }
257 cVector3f Get3DSize() {
return mv3DSize; }
259 void SetCullBackface(
bool abX) { mbCullBackface = abX; }
260 bool GetCullBackface() {
return mbCullBackface; }
262 void Set3DTransform(
const cMatrixf &a_mtxTransform);
263 cMatrixf Get3DTransform() {
return m_mtx3DTransform; }
268 cGuiSkin *GetSkin() {
return mpSkin; }
270 cResources *GetResources() {
return mpResources; }
272 bool IsDestroyingSet() {
return mbDestroyingSet; }
275 void RenderClipRegion();
287 kGuiCalllbackDeclarationEnd(DrawMouse);
306 tGuiRenderObjectSet m_setRenderObjects;
328 tGuiPopUpList mlstPopUps;
333 bool mbDestroyingSet;
338 #endif // HPL_GUI_SET_H
Definition: WidgetTextBox.h:37
Definition: GuiGfxElement.h:72
Definition: font_data.h:67
Definition: GuiPopUp.h:38
Definition: GuiTypes.h:263
ListInternal::Iterator< t_T > iterator
Definition: list.h:52
Definition: Resources.h:160
Definition: list_intern.h:51
Definition: GuiMaterial.h:36
Definition: Graphics.h:46