BorderImage.pkg 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. $#include "UI/BorderImage.h"
  2. enum BlendMode{};
  3. class BorderImage : public UIElement
  4. {
  5. BorderImage();
  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 SetImageBorder(const IntRect& rect);
  12. void SetHoverOffset(const IntVector2& offset);
  13. void SetHoverOffset(int x, int y);
  14. void SetDisabledOffset(const IntVector2& offset);
  15. void SetDisabledOffset(int x, int y);
  16. void SetBlendMode(BlendMode mode);
  17. void SetTiled(bool enable);
  18. Texture* GetTexture() const;
  19. const IntRect& GetImageRect() const;
  20. const IntRect& GetBorder() const;
  21. const IntRect& GetImageBorder() const;
  22. const IntVector2& GetHoverOffset() const;
  23. const IntVector2& GetDisabledOffset() const;
  24. BlendMode GetBlendMode() const;
  25. bool IsTiled() const;
  26. tolua_property__get_set Texture* texture;
  27. tolua_property__get_set Material* material;
  28. tolua_property__get_set IntRect& imageRect;
  29. tolua_property__get_set IntRect& border;
  30. tolua_property__get_set IntRect& imageBorder;
  31. tolua_property__get_set IntVector2& hoverOffset;
  32. tolua_property__get_set IntVector2& disabledOffset;
  33. tolua_property__get_set BlendMode blendMode;
  34. tolua_property__is_set bool tiled;
  35. };
  36. ${
  37. #define TOLUA_DISABLE_tolua_UILuaAPI_BorderImage_new00
  38. static int tolua_UILuaAPI_BorderImage_new00(lua_State* tolua_S)
  39. {
  40. return ToluaNewObject<BorderImage>(tolua_S);
  41. }
  42. #define TOLUA_DISABLE_tolua_UILuaAPI_BorderImage_new00_local
  43. static int tolua_UILuaAPI_BorderImage_new00_local(lua_State* tolua_S)
  44. {
  45. return ToluaNewObjectGC<BorderImage>(tolua_S);
  46. }
  47. $}