| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- $#include "UI.h"
- class UI : public Object
- {
- void SetCursor(Cursor* cursor);
- void SetFocusElement(UIElement* element);
- bool SetModalElement(UIElement* modalElement, bool enable);
- void Clear();
- void Update(float timeStep);
- void RenderUpdate();
- void Render();
- void DebugDraw(UIElement* element);
- bool SaveLayout(Serializer& dest, UIElement* element);
-
- void SetClipBoardText(const String text);
-
- void SetDoubleClickInterval(float interval);
- void SetNonFocusedMouseWheel(bool nonFocusedMouseWheel);
- UIElement* GetRoot() const;
- UIElement* GetRootModalElement() const;
- Cursor* GetCursor() const;
-
- UIElement* GetElementAt(const IntVector2& position, bool enabledOnly = true);
- UIElement* GetElementAt(int x, int y, bool enabledOnly = true);
-
- UIElement* GetFocusElement() const;
- UIElement* GetFrontElement() const;
- IntVector2 GetCursorPosition() const;
- const String& GetClipBoardText() const;
- float GetDoubleClickInterval() const;
- bool IsNonFocusedMouseWheel() const;
- bool HasModalElement() const;
-
- tolua_readonly tolua_property__get_set UIElement* root;
- tolua_readonly tolua_property__get_set UIElement* rootModalElement;
- tolua_property__get_set Cursor* cursor;
- tolua_readonly tolua_property__get_set UIElement* focusElement;
- tolua_readonly tolua_property__get_set UIElement* frontElement;
- tolua_readonly tolua_property__get_set IntVector2 cursorPosition;
- tolua_property__get_set String& clipBoardText;
- tolua_property__get_set float doubleClickInterval;
- tolua_readonly tolua_property__is_set bool nonFocusedMouseWheel;
- tolua_readonly tolua_property__has_set bool modalElement;
- };
|