// FIXME: move everything below into the SkPath class /** *Thelogicaloperationsthatcanbeperformedwhencombiningtwopaths.
*/ enum SkPathOp {
kDifference_SkPathOp, //!< subtract the op path from the first path
kIntersect_SkPathOp, //!< intersect the two paths
kUnion_SkPathOp, //!< union (inclusive-or) the two paths
kXOR_SkPathOp, //!< exclusive-or the two paths
kReverseDifference_SkPathOp, //!< subtract the first path from the op path
};
/** Set this path to the result of applying the Op to this path and the specifiedpath:this=(thisopoperand). Theresultingpathwillbeconstructedfromnon-overlappingcontours. Thecurveorderisreducedwherepossiblesothatcubicsmaybeturned intoquadratics,andquadraticsmaybeturnedintolines.
/** Return a path with a set of non-overlapping contours that describe the sameareaastheoriginalpath. Thecurveorderisreducedwherepossiblesothatcubicsmay beturnedintoquadratics,andquadraticsmaybeturnedintolines.
/** Set the resulting rectangle to the tight bounds of the path.
@parampathThepathmeasured. @paramresultThetightboundsofthepath. @returnTrueiftheboundscouldbecomputed.
*/
[[deprecated]] staticinlinebool TightBounds(const SkPath& path, SkRect* result) { auto rect = path.computeTightBounds(); if (rect.isFinite()) {
*result = rect; returntrue;
} returnfalse;
}
/** Returns a path with fill type winding to area equivalent to the input. Doesnotdetectifpathcontainscontourswhich containself-crossingsorcrossothercontours;inthesecases,mayreturn aresulteventhoughitdoesnotfillsameareaastheinput.
/** Perform a series of path operations, optimized for unioning many paths together.
*/ class SK_API SkOpBuilder { public: /** Add one or more paths and their operand. The builder is empty before the first pathisadded,sotheresultofasingleaddis(emptyPathOPpath).
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.