struct VectorGraphicsPaint

Represents a solid color or a gradient to paint vector path fill or stroke.

Public

Constructors

VectorGraphicsPaint

VectorGraphicsPaint()

VectorGraphicsPaint

VectorGraphicsPaint(const Color &color)

Methods

GetType

VectorGraphicsPaintType GetType() const

Returns the type of paint stored by this object.

GetSolidPaint

const SolidPaint &GetSolidPaint() const

Returns information about a solid paint.

Caller must ensure the paint type is Solid before calling.

GetLinearGradientPaint

const LinearGradientPaint &GetLinearGradientPaint() const

Returns information about a linear gradient paint.

Caller must ensure the paint type is LinearGradient before calling.

GetBoxGradientPaint

const BoxGradientPaint &GetBoxGradientPaint() const

Returns information about a box gradient paint.

Caller must ensure the paint type is BoxGradient before calling.

GetRadialGradientPaint

const RadialGradientPaint &GetRadialGradientPaint() const

Returns information about a radial gradient paint.

Caller must ensure the paint type is RadialGradient before calling.

staticCreateSolid

static VectorGraphicsPaint CreateSolid(const Color &color)

Creates a paint with a solid color covering the entire painted area.

staticCreateLinearGradient

static VectorGraphicsPaint CreateLinearGradient(const Color &startColor, const Color &endColor, const Vector2 &startPoint, const Vector2 &endPoint)

Creates a paint with one color at one edge, and another at the other edge, interpolated between on a line.

staticCreateBoxGradient

static VectorGraphicsPaint CreateBoxGradient(const Color &innerColor, const Color &outerColor, const Area2 &area, float cornerRadius, float feather)

Creates a paint with on color at the center of a box, and another color at the edges/corners of the box.

staticCreateRadialGradient

static VectorGraphicsPaint CreateRadialGradient(const Color &innerColor, const Color &outerColor, const Vector2 &center, float innerRadius, float outerRadius)

Creates a paint with on color at the center of a circle, and another color at the radius of the circle.

Private

Fields