Platforms to show: All Mac Windows Linux Cross-Platform

Back to CGPathMBS class.

CGPathMBS.BoundingBox as CGRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Return the bounding box of path.

The bounding box is the smallest rectangle completely enclosing all points in the path, including control points for Bezier and quadratic curves. If the path is empty, then return (0,0,0,0).

CGPathMBS.Copy as CGPathMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a copy of the path.

Returns nil on any error.

CGPathMBS.CurrentPoint as CGPointMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Return the current point of the current subpath of path.

If there is no current point, then return (0,0).

CGPathMBS.Elements as CGPathElementMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 15.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Queries all the elements in a CGPath.
Example
dim m as new CGMutablePathMBS

m.MoveToPoint nil, 10, 10
m.AddLineToPoint nil, 20, 30

dim e() as CGPathElementMBS = m.Elements
Break // see in debugger

CGPathMBS.EqualToPath(path as CGPathMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Return true if the path self is equal to path; false otherwise.

Returns false if the path is nil.

CGPathMBS.IsEmpty as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Return true if path contains no elements, false otherwise.

CGPathMBS.IsRect(byref rect as CGRectMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Return true if path represents a rectangle, false otherwise.

CGPathMBS.MutableCopy as CGMutablePathMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 8.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Create a mutable copy of path.

Returns nil on any error.

The items on this page are in the following plugins: MBS MacCG Plugin.


The biggest plugin in space...