BorderImage.pkg 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. $#include "BorderImage.h"
  2. enum BlendMode{};
  3. class BorderImage : public UIElement
  4. {
  5. public:
  6. // Method:
  7. BorderImage(Context* context);
  8. virtual ~BorderImage();
  9. void SetTexture(Texture* texture);
  10. void SetImageRect(const IntRect& rect);
  11. void SetFullImageRect();
  12. void SetBorder(const IntRect& rect);
  13. void SetHoverOffset(const IntVector2& offset);
  14. void SetHoverOffset(int x, int y);
  15. void SetBlendMode(BlendMode mode);
  16. void SetTiled(bool enable);
  17. Texture* GetTexture() const;
  18. const IntRect& GetImageRect() const;
  19. const IntRect& GetBorder() const;
  20. const IntVector2& GetHoverOffset() const;
  21. BlendMode GetBlendMode() const;
  22. bool IsTiled() const;
  23. // Properties:
  24. tolua_property__get_set Texture* texture;
  25. tolua_property__get_set const IntRect& imageRect;
  26. tolua_property__get_set const IntRect& border;
  27. tolua_property__get_set const IntVector2& hoverOffset;
  28. tolua_property__get_set BlendMode blendMode;
  29. tolua_property__is_set bool tiled;
  30. };