StaticSprite2D.pkg 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. $#include "Urho2D/StaticSprite2D.h"
  2. class StaticSprite2D : public Drawable2D
  3. {
  4. public:
  5. void SetSprite(Sprite2D* sprite);
  6. void SetBlendMode(BlendMode mode);
  7. void SetFlip(bool flipX, bool flipY, bool swapXY = false);
  8. void SetFlipX(bool flipX);
  9. void SetFlipY(bool flipY);
  10. void SetSwapXY(bool swapXY);
  11. void SetColor(const Color& color);
  12. void SetAlpha(float alpha);
  13. void SetUseHotSpot(bool useHotSpot);
  14. void SetHotSpot(const Vector2& hotspot);
  15. void SetUseDrawRect(bool useDrawRect);
  16. void SetDrawRect(const Rect &rect);
  17. void SetUseTextureRect(bool useTextureRect);
  18. void SetTextureRect(const Rect &rect);
  19. void SetCustomMaterial(Material* customMaterial);
  20. Sprite2D* GetSprite() const;
  21. BlendMode GetBlendMode() const;
  22. bool GetFlipX() const;
  23. bool GetFlipY() const;
  24. bool GetSwapXY() const;
  25. const Color& GetColor() const;
  26. float GetAlpha() const;
  27. bool GetUseHotSpot() const;
  28. const Vector2& GetHotSpot() const;
  29. bool GetUseDrawRect() const;
  30. const Rect& GetDrawRect() const;
  31. bool GetUseTextureRect() const;
  32. const Rect& GetTextureRect() const;
  33. Material* GetCustomMaterial() const;
  34. tolua_property__get_set Sprite2D* sprite;
  35. tolua_property__get_set BlendMode blendMode;
  36. tolua_property__get_set bool flipX;
  37. tolua_property__get_set bool flipY;
  38. tolua_property__get_set bool swapXY;
  39. tolua_property__get_set Color& color;
  40. tolua_property__get_set float alpha;
  41. tolua_property__get_set bool useHotSpot;
  42. tolua_property__get_set Vector2 hotSpot;
  43. tolua_property__get_set Material* customMaterial;
  44. tolua_property__get_set Rect drawRect;
  45. tolua_property__get_set bool useDrawRect;
  46. tolua_property__get_set Rect textureRect;
  47. tolua_property__get_set bool useTextureRect;
  48. };