2
0

Window.pkg 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. $#include "Window.h"
  2. enum WindowDragMode
  3. {
  4. DRAG_NONE,
  5. DRAG_MOVE,
  6. DRAG_RESIZE_TOPLEFT,
  7. DRAG_RESIZE_TOP,
  8. DRAG_RESIZE_TOPRIGHT,
  9. DRAG_RESIZE_RIGHT,
  10. DRAG_RESIZE_BOTTOMRIGHT,
  11. DRAG_RESIZE_BOTTOM,
  12. DRAG_RESIZE_BOTTOMLEFT,
  13. DRAG_RESIZE_LEFT
  14. };
  15. class Window : public BorderImage
  16. {
  17. Window(Context* context);
  18. virtual ~Window();
  19. void SetMovable(bool enable);
  20. void SetResizable(bool enable);
  21. void SetFixedWidthResizing(bool enable);
  22. void SetFixedHeightResizing(bool enable);
  23. void SetResizeBorder(const IntRect& rect);
  24. void SetModal(bool modal);
  25. void SetModalShadeColor(const Color& color);
  26. void SetModalFrameColor(const Color& color);
  27. void SetModalFrameSize(const IntVector2& size);
  28. bool IsMovable() const;
  29. bool IsResizable() const;
  30. bool GetFixedWidthResizing() const;
  31. bool GetFixedHeightResizing() const;
  32. const IntRect& GetResizeBorder() const;
  33. bool IsModal() const;
  34. const Color& GetModalShadeColor() const;
  35. const Color& GetModalFrameColor() const;
  36. const IntVector2& GetModalFrameSize() const;
  37. tolua_property__is_set bool movable;
  38. tolua_property__is_set bool resizable;
  39. tolua_property__get_set bool fixedWidthResizing;
  40. tolua_property__get_set bool fixedHeightResizing;
  41. tolua_property__get_set IntRect& resizeBorder;
  42. tolua_property__is_set bool modal;
  43. tolua_property__get_set Color& modalShadeColor;
  44. tolua_property__get_set Color& modalFrameColor;
  45. tolua_property__get_set IntVector2& modalFrameSize;
  46. };