UI.pkg 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. $#include "UI.h"
  2. class UI : public Object
  3. {
  4. void SetCursor(Cursor* cursor);
  5. void SetFocusElement(UIElement* element, bool byKey = false);
  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 SetDragBeginInterval(float interval);
  16. void SetDragBeginDistance(int pixels);
  17. void SetDefaultToolTipDelay(float delay);
  18. void SetMaxFontTextureSize(int size);
  19. void SetNonFocusedMouseWheel(bool nonFocusedMouseWheel);
  20. void SetUseSystemClipBoard(bool enable);
  21. void SetUseScreenKeyboard(bool enable);
  22. void SetUseMutableGlyphs(bool enable);
  23. void SetForceAutoHint(bool enable);
  24. UIElement* GetRoot() const;
  25. UIElement* GetRootModalElement() const;
  26. Cursor* GetCursor() const;
  27. IntVector2 GetCursorPosition() const;
  28. UIElement* GetElementAt(const IntVector2& position, bool enabledOnly = true);
  29. UIElement* GetElementAt(int x, int y, bool enabledOnly = true);
  30. UIElement* GetFocusElement() const;
  31. UIElement* GetFrontElement() const;
  32. UIElement* GetDragElement() const;
  33. const String GetClipBoardText() const;
  34. float GetDoubleClickInterval() const;
  35. float GetDragBeginInterval() const;
  36. int GetDragBeginDistance() const;
  37. float GetDefaultToolTipDelay() const;
  38. int GetMaxFontTextureSize() const;
  39. bool IsNonFocusedMouseWheel() const;
  40. bool GetUseSystemClipBoard() const;
  41. bool GetUseScreenKeyboard() const;
  42. bool GetUseMutableGlyphs() const;
  43. bool GetForceAutoHint() const;
  44. bool HasModalElement() const;
  45. tolua_readonly tolua_property__get_set UIElement* root;
  46. tolua_readonly tolua_property__get_set UIElement* rootModalElement;
  47. tolua_property__get_set Cursor* cursor;
  48. tolua_readonly tolua_property__get_set IntVector2 cursorPosition;
  49. tolua_readonly tolua_property__get_set UIElement* focusElement;
  50. tolua_readonly tolua_property__get_set UIElement* frontElement;
  51. tolua_readonly tolua_property__get_set UIElement* dragElement;
  52. tolua_property__get_set String& clipBoardText;
  53. tolua_property__get_set float doubleClickInterval;
  54. tolua_property__get_set float dragBeginInterval;
  55. tolua_property__get_set int dragBeginDistance;
  56. tolua_property__get_set float defaultToolTipDelay;
  57. tolua_property__get_set int maxFontTextureSize;
  58. tolua_property__is_set bool nonFocusedMouseWheel;
  59. tolua_property__get_set bool useSystemClipBoard;
  60. tolua_property__get_set bool useScreenKeyboard;
  61. tolua_property__get_set bool useMutableGlyphs;
  62. tolua_property__get_set bool forceAutoHint;
  63. tolua_readonly tolua_property__has_set bool modalElement;
  64. };