CGPathElementMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

CGPathElementMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class CoreGraphics MBS MacCG Plugin 15.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The class for CGPath elements.
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

Type Constants

Constant Value Description
kTypeAddCurveToPoint 3 The path element that adds a cubic curve from the current point to the specified point. The element holds two control points and a destination point.
kTypeAddLineToPoint 1 The path element that adds a line from the current point to a new point. The element holds a single point for the destination.
kTypeAddQuadCurveToPoint 2 The path element that adds a quadratic curve from the current point to the specified point. The element holds a control point and a destination point.
kTypeCloseSubpath 4 The path element that closes and completes a subpath. The element does not contain any points.
kTypeMoveToPoint 0 The path element that starts a new subpath. The element holds a single point for the destination.

This class has no sub classes.

Some methods using this class:

Blog Entries

Xojo Developer Magazine


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


CGMutablePathMBS   -   CGPathMBS


💬 Ask a question or report a problem