ThorVG
v0.1
ThorVG is a platform-independent portable library for drawing vector-based scene and animation. It's an open-source software that is freely used by a variety of software platforms and applications. ThorVG provides neat and easy APIs, its library has no dependencies and keeps cheap and super compact size. It serves as the vector graphics engine for Tizen OS that powers many products.
|
A class representing the radial gradient fill of the Shape object. More...
Public Member Functions | |
Result | radial (float cx, float cy, float radius) noexcept |
Sets the radial gradient bounds. More... | |
Result | radial (float *cx, float *cy, float *radius) const noexcept |
Gets the radial gradient bounds. More... | |
![]() | |
Result | colorStops (const ColorStop *colorStops, uint32_t cnt) noexcept |
Sets the parameters of the colors of the gradient and their position. More... | |
Result | spread (FillSpread s) noexcept |
Sets the FillSpread value, which specifies how to fill the area outside the gradient bounds. More... | |
uint32_t | colorStops (const ColorStop **colorStops) const noexcept |
Gets the parameters of the colors of the gradient, their position and number. More... | |
FillSpread | spread () const noexcept |
Gets the FillSpread value of the fill. More... | |
Fill * | duplicate () const noexcept |
Creates a copy of the Fill object. More... | |
Static Public Member Functions | |
static std::unique_ptr< RadialGradient > | gen () noexcept |
Creates a new RadialGradient object. More... | |
A class representing the radial gradient fill of the Shape object.
|
staticnoexcept |
Creates a new RadialGradient object.
|
noexcept |
Sets the radial gradient bounds.
The radial gradient bounds are defined as a circle centered in a given point (cx
, cy
) of a given radius.
[in] | cx | The horizontal coordinate of the center of the bounding circle. |
[in] | cy | The vertical coordinate of the center of the bounding circle. |
[in] | radius | The radius of the bounding circle. |
|
noexcept |
Gets the radial gradient bounds.
The radial gradient bounds are defined as a circle centered in a given point (cx
, cy
) of a given radius.
[out] | cx | The horizontal coordinate of the center of the bounding circle. |
[out] | cy | The vertical coordinate of the center of the bounding circle. |
[out] | radius | The radius of the bounding circle. |