Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

CGPathElementMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class CoreGraphics MBS MacOSXCG Plugin 15.1 Yes No No Yes, macOS only No
Function: 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

Feedback, Comments & Corrections

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:


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


CGMutablePathMBS   -   CGPathMBS




Links
MBS Xojo blog