UI.pkg 2.2 KB

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