class EE::Graphics::ArcDrawable¶
#include <arcdrawable.hpp> class ArcDrawable: public EE::Graphics::PrimitiveDrawable { public: // construction ArcDrawable(); ArcDrawable(const Float& radius, Uint32 segmentsCount = 64, const Float& arcAngle = 360.f, const Float& arcStartAngle = 0.f); // methods static ArcDrawable* New(); static ArcDrawable* New(const Float& radius, Uint32 segmentsCount = 64, const Float& arcAngle = 360.f, const Float& arcStartAngle = 0.f); virtual Sizef getSize(); virtual Sizef getPixelsSize(); virtual void draw(); virtual void draw(const Vector2f& position); virtual void draw(const Vector2f& position, const Sizef& size); virtual bool isStateful(); Float getRadius() const; void setRadius(const Float& radius); Float getArcAngle() const; void setArcAngle(const Float& arcAngle); Float getArcStartAngle() const; void setArcStartAngle(const Float& arcStartAngle); Uint32 getSegmentsCount() const; void setSegmentsCount(const Uint32& segmentsCount); const Vector2f& getOffset() const; void setOffset(const Vector2f& offset); };
Inherited Members¶
public: // enums enum Type; // methods virtual Sizef getSize() = 0; virtual Sizef getPixelsSize() = 0; virtual void draw() = 0; virtual void draw(const Vector2f& position) = 0; virtual void draw(const Vector2f& position, const Sizef& size) = 0; virtual bool isStateful() = 0; void setAlpha(Uint8 alpha); const Uint8& getAlpha(); void setColor(const Color& color); const Color& getColor() const; void setColorFilter(const Color& color); RGB getColorFilter(); void clearColor(); void clearColorFilter(); void resetAlpha(); Type getDrawableType() const; const Vector2f& getPosition() const; void setPosition(const Vector2f& position); virtual bool isDrawableResource() const; virtual void draw(const Vector2f& position, const Sizef& size); virtual void setFillMode(const PrimitiveFillMode& Mode); const PrimitiveFillMode& getFillMode() const; virtual void setBlendMode(const BlendMode& Mode); const BlendMode& getBlendMode() const; virtual void setLineWidth(const Float& width); const Float& getLineWidth() const; bool isSmooth() const; void setSmooth(bool smooth);