StaticSprite2D.pkg 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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);
  8. void SetFlipX(bool flipX);
  9. void SetFlipY(bool flipY);
  10. void SetColor(const Color& color);
  11. void SetAlpha(float alpha);
  12. void SetUseHotSpot(bool useHotSpot);
  13. void SetHotSpot(const Vector2& hotspot);
  14. void SetUseDrawRect(bool useDrawRect);
  15. void SetDrawRect(const Rect &rect);
  16. void SetUseTextureRect(bool useTextureRect);
  17. void SetTextureRect(const Rect &rect);
  18. void SetCustomMaterial(Material* customMaterial);
  19. Sprite2D* GetSprite() const;
  20. BlendMode GetBlendMode() const;
  21. bool GetFlipX() const;
  22. bool GetFlipY() const;
  23. const Color& GetColor() const;
  24. float GetAlpha() const;
  25. bool GetUseHotSpot() const;
  26. const Vector2& GetHotSpot() const;
  27. bool GetUseDrawRect() const;
  28. const Rect& GetDrawRect() const;
  29. bool GetUseTextureRect() const;
  30. const Rect& GetTextureRect() const;
  31. Material* GetCustomMaterial() const;
  32. tolua_property__get_set Sprite2D* sprite;
  33. tolua_property__get_set BlendMode blendMode;
  34. tolua_property__get_set bool flipX;
  35. tolua_property__get_set bool flipY;
  36. tolua_property__get_set Color& color;
  37. tolua_property__get_set float alpha;
  38. tolua_property__get_set bool useHotSpot;
  39. tolua_property__get_set Vector2 hotSpot;
  40. tolua_property__get_set Material* customMaterial;
  41. tolua_property__get_set Rect drawRect;
  42. tolua_property__get_set bool useDrawRect;
  43. tolua_property__get_set Rect textureRect;
  44. tolua_property__get_set bool useTextureRect;
  45. };