BorderImage.pkg 1.1 KB

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