UI.pkg 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 SetMaxFontTextureSize(int size);
  16. void SetNonFocusedMouseWheel(bool nonFocusedMouseWheel);
  17. void SetUseSystemClipBoard(bool enable);
  18. void SetUseMutableGlyphs(bool enable);
  19. UIElement* GetRoot() const;
  20. UIElement* GetRootModalElement() const;
  21. Cursor* GetCursor() const;
  22. UIElement* GetElementAt(const IntVector2& position, bool enabledOnly = true);
  23. UIElement* GetElementAt(int x, int y, bool enabledOnly = true);
  24. UIElement* GetFocusElement() const;
  25. UIElement* GetFrontElement() const;
  26. IntVector2 GetCursorPosition() const;
  27. const String& GetClipBoardText() const;
  28. float GetDoubleClickInterval() const;
  29. int GetMaxFontTextureSize() const;
  30. bool IsNonFocusedMouseWheel() const;
  31. bool GetUseSystemClipBoard() const;
  32. bool GetUseMutableGlyphs() const;
  33. bool HasModalElement() const;
  34. tolua_readonly tolua_property__get_set UIElement* root;
  35. tolua_readonly tolua_property__get_set UIElement* rootModalElement;
  36. tolua_property__get_set Cursor* cursor;
  37. tolua_readonly tolua_property__get_set UIElement* focusElement;
  38. tolua_readonly tolua_property__get_set UIElement* frontElement;
  39. tolua_readonly tolua_property__get_set IntVector2 cursorPosition;
  40. tolua_property__get_set String& clipBoardText;
  41. tolua_property__get_set float doubleClickInterval;
  42. tolua_property__get_set int maxFontTextureSize;
  43. tolua_property__is_set bool nonFocusedMouseWheel;
  44. tolua_property__get_set bool useSystemClipBoard;
  45. tolua_property__get_set bool useMutableGlyphs;
  46. tolua_readonly tolua_property__has_set bool modalElement;
  47. };