Inkscape
Vector Graphics Editor
|
SPGradient, SPStop, SPLinearGradient, SPRadialGradient, SPMeshGradient, SPMeshRow, SPMeshPatch. More...
Go to the source code of this file.
Functions | |
static SPGradient * | chase_hrefs (SPGradient *const src, bool(*match)(SPGradient const *)) |
Returns the first of {src, src->ref->getObject(), src->ref->getObject()->ref->getObject(),...} for which match is true, or NULL if none found. | |
static bool | has_stopsFN (SPGradient const *gr) |
True if gradient has stops. | |
static bool | has_patchesFN (SPGradient const *gr) |
True if gradient has patches (i.e. | |
static bool | has_spread_set (SPGradient const *gr) |
True if gradient has spread set. | |
static bool | has_units_set (SPGradient const *gr) |
True if gradient has units set. | |
void | sp_gradient_pattern_common_setup (cairo_pattern_t *cp, SPGradient *gr, Geom::OptRect const &bbox, double opacity) |
SPGradient, SPStop, SPLinearGradient, SPRadialGradient, SPMeshGradient, SPMeshRow, SPMeshPatch.
Definition in file sp-gradient.cpp.
|
static |
Returns the first of {src, src->ref->getObject(), src->ref->getObject()->ref->getObject(),...} for which match is true, or NULL if none found.
The raison d'ĂȘtre of this routine is that it correctly handles cycles in the href chain (e.g., if a gradient gives itself as its href, or if each of two gradients gives the other as its href).
Definition at line 773 of file sp-gradient.cpp.
References SPGradientReference::getObject(), and SPGradient::ref.
Referenced by SPGradient::fetchSpread(), SPGradient::fetchUnits(), SPGradient::getArray(), and SPGradient::getVector().
|
static |
True if gradient has patches (i.e.
a mesh).
Definition at line 815 of file sp-gradient.cpp.
References SPGradient::hasPatches().
Referenced by SPGradient::getArray().
|
static |
True if gradient has spread set.
Definition at line 823 of file sp-gradient.cpp.
References SPGradient::isSpreadSet().
Referenced by SPGradient::fetchSpread().
|
static |
True if gradient has stops.
Definition at line 807 of file sp-gradient.cpp.
References SPGradient::hasStops().
Referenced by SPGradient::getVector().
|
static |
True if gradient has units set.
Definition at line 832 of file sp-gradient.cpp.
References SPGradient::isUnitsSet().
Referenced by SPGradient::fetchUnits().
void sp_gradient_pattern_common_setup | ( | cairo_pattern_t * | cp, |
SPGradient * | gr, | ||
Geom::OptRect const & | bbox, | ||
double | opacity | ||
) |
Definition at line 1148 of file sp-gradient.cpp.
References SPGradient::getSpread(), SPGradient::getUnits(), SPGradient::gradientTransform, ink_cairo_pattern_add_color_stop(), ink_cairo_pattern_set_matrix(), Geom::Affine::inverse(), SP_GRADIENT_SPREAD_PAD, SP_GRADIENT_SPREAD_REFLECT, SP_GRADIENT_SPREAD_REPEAT, SP_GRADIENT_UNITS_OBJECTBOUNDINGBOX, SPGradientVector::stops, and SPGradient::vector.