UI.pkg 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. $#include "UI.h"
  2. class UI : public Object
  3. {
  4. void SetCursor(Cursor* cursor);
  5. void SetFocusElement(UIElement* element);
  6. bool SetModalElement(UIElement* modalElement, bool enable);
  7. void Clear();
  8. void Update(float timeStep);
  9. void RenderUpdate();
  10. void Render();
  11. void DebugDraw(UIElement* element);
  12. bool SaveLayout(Serializer& dest, UIElement* element);
  13. void SetClipBoardText(const String text);
  14. void SetDoubleClickInterval(float interval);
  15. void SetNonFocusedMouseWheel(bool nonFocusedMouseWheel);
  16. UIElement* GetRoot() const;
  17. UIElement* GetRootModalElement() const;
  18. Cursor* GetCursor() const;
  19. UIElement* GetElementAt(const IntVector2& position, bool enabledOnly = true);
  20. UIElement* GetElementAt(int x, int y, bool enabledOnly = true);
  21. UIElement* GetFocusElement() const;
  22. UIElement* GetFrontElement() const;
  23. IntVector2 GetCursorPosition() const;
  24. const String& GetClipBoardText() const;
  25. float GetDoubleClickInterval() const;
  26. bool IsNonFocusedMouseWheel() const;
  27. bool HasModalElement() const;
  28. tolua_readonly tolua_property__get_set UIElement* root;
  29. tolua_readonly tolua_property__get_set UIElement* rootModalElement;
  30. tolua_property__get_set Cursor* cursor;
  31. tolua_readonly tolua_property__get_set UIElement* focusElement;
  32. tolua_readonly tolua_property__get_set UIElement* frontElement;
  33. tolua_readonly tolua_property__get_set IntVector2 cursorPosition;
  34. tolua_property__get_set String& clipBoardText;
  35. tolua_property__get_set float doubleClickInterval;
  36. tolua_readonly tolua_property__is_set bool nonFocusedMouseWheel;
  37. tolua_readonly tolua_property__has_set bool modalElement;
  38. };