BLGradient Class Referencefinal

Gradient [C++ API].

Member Functions

Construction & Destruction
Overloaded Operators
Common Functionality
Create Gradient
Accessors
Gradient Stops
Content Manipulation
Equality & Comparison
Transformations

Additional Inherited Members

- Public Attributes inherited from BLObjectCore

Member Function Documentation

BLGradientType BLGradient::type() const◆ 

Returns the type of the gradient.

BLResult BLGradient::setType(BLGradientType type)◆ 

Sets the type of the gradient.

BLExtendMode BLGradient::extendMode() const◆ 

Returns the gradient extend mode, see BLExtendMode.

BLResult BLGradient::setExtendMode(BLExtendMode extendMode)◆ 

Set the gradient extend mode, see BLExtendMode.

BLResult BLGradient::resetExtendMode()◆ 

Resets the gradient extend mode to BL_EXTEND_MODE_PAD.

bool BLGradient::empty() const◆ 

Tests whether the gradient is empty.

Empty gradient is considered any gradient that has no stops.

size_t BLGradient::size() const◆ 

Returns the number of stops the gradient has.

size_t BLGradient::capacity() const◆ 

Returns the gradient capacity [in stops].

BLResult BLGradient::reserve(size_t n)◆ 

Reserves the capacity of gradient for at least n stops.

BLResult BLGradient::shrink()◆ 

Shrinks the capacity of gradient stops to fit the current use.

const BLGradientStop* BLGradient::stops() const◆ 

Returns the gradient stop data.

const BLGradientStop& BLGradient::stopAt(size_t i) const◆ 

Returns a gradient stop at i.

BLResult BLGradient::_applyTransformOp(BLTransformOp opType, const void* opData)◆ 

Applies a matrix operation to the current transformation matrix (internal).