Window.pkg 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 SetResizeBorder(const IntRect& rect);
  22. void SetModal(bool modal);
  23. void SetModalShadeColor(const Color& color);
  24. void SetModalFrameColor(const Color& color);
  25. void SetModalFrameSize(const IntVector2& size);
  26. bool IsMovable() const;
  27. bool IsResizable() const;
  28. const IntRect& GetResizeBorder() const;
  29. bool IsModal() const;
  30. const Color& GetModalShadeColor() const;
  31. const Color& GetModalFrameColor() const;
  32. const IntVector2& GetModalFrameSize() const;
  33. tolua_property__is_set bool movable;
  34. tolua_property__is_set bool resizable;
  35. tolua_property__get_set IntRect& resizeBorder;
  36. tolua_property__is_set bool modal;
  37. tolua_property__get_set Color& modalShadeColor;
  38. tolua_property__get_set Color& modalFrameColor;
  39. tolua_property__get_set IntVector2& modalFrameSize;
  40. };