UI.pkg 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 SetDragBeginInterval(float interval);
  16. void SetDragBeginDistance(int pixels);
  17. void SetMaxFontTextureSize(int size);
  18. void SetNonFocusedMouseWheel(bool nonFocusedMouseWheel);
  19. void SetUseSystemClipBoard(bool enable);
  20. void SetUseMutableGlyphs(bool enable);
  21. void SetForceAutoHint(bool enable);
  22. UIElement* GetRoot() const;
  23. UIElement* GetRootModalElement() const;
  24. Cursor* GetCursor() const;
  25. IntVector2 GetCursorPosition() const;
  26. UIElement* GetElementAt(const IntVector2& position, bool enabledOnly = true);
  27. UIElement* GetElementAt(int x, int y, bool enabledOnly = true);
  28. UIElement* GetFocusElement() const;
  29. UIElement* GetFrontElement() const;
  30. UIElement* GetDragElement() const;
  31. const String GetClipBoardText() const;
  32. float GetDoubleClickInterval() const;
  33. float GetDragBeginInterval() const;
  34. int GetDragBeginDistance() const;
  35. int GetMaxFontTextureSize() const;
  36. bool IsNonFocusedMouseWheel() const;
  37. bool GetUseSystemClipBoard() const;
  38. bool GetUseMutableGlyphs() const;
  39. bool GetForceAutoHint() const;
  40. bool HasModalElement() const;
  41. tolua_readonly tolua_property__get_set UIElement* root;
  42. tolua_readonly tolua_property__get_set UIElement* rootModalElement;
  43. tolua_property__get_set Cursor* cursor;
  44. tolua_readonly tolua_property__get_set IntVector2 cursorPosition;
  45. tolua_readonly tolua_property__get_set UIElement* focusElement;
  46. tolua_readonly tolua_property__get_set UIElement* frontElement;
  47. tolua_readonly tolua_property__get_set UIElement* dragElement;
  48. tolua_property__get_set String& clipBoardText;
  49. tolua_property__get_set float doubleClickInterval;
  50. tolua_property__get_set float dragBeginInterval;
  51. tolua_property__get_set int dragBeginDistance;
  52. tolua_property__get_set int maxFontTextureSize;
  53. tolua_property__is_set bool nonFocusedMouseWheel;
  54. tolua_property__get_set bool useSystemClipBoard;
  55. tolua_property__get_set bool useMutableGlyphs;
  56. tolua_property__get_set bool forceAutoHint;
  57. tolua_readonly tolua_property__has_set bool modalElement;
  58. };