Platforms to show: All Mac Windows Linux Cross-Platform
Back to MKOverlayPathRendererMBS class.
MKOverlayPathRendererMBS.applyFillProperties(context as CGContextMBS, zoomScale as double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MapKit | MBS MacFrameworks Plugin | 19.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
context: The graphics context used to draw the view’s contents.
zoomScale: The current zoom scale used for drawing.
This is a convenience method for applying all of the drawing properties used when filling a path. This method applies the current fill color to the specified graphics context.
MKOverlayPathRendererMBS.applyStrokeProperties(context as CGContextMBS, zoomScale as double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MapKit | MBS MacFrameworks Plugin | 19.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
context: The graphics context used to draw the view’s contents.
zoomScale: The current zoom scale used for drawing.
This is a convenience method for applying all of the drawing properties used when stroking a path. This method applies the stroke color, line width, line join, line cap, miter limit, line dash phase, and line dash attributes to the specified graphics context. This method applies the scale factor in the zoomScale parameter to the line width and line dash pattern automatically so that lines scale appropriately.
This method does not save the current graphics state before applying the new attributes. If you want to preserve the existing state, you must save it yourself and restore it later when you finish drawing.
MKOverlayPathRendererMBS.Constructor Private
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MapKit | MBS MacFrameworks Plugin | 19.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
See also:
MKOverlayPathRendererMBS.Constructor(Handle as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MapKit | MBS MacFrameworks Plugin | 21.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Useful if you get a MKOverlayPathRenderer reference from a declare.
The object is retained.
See also:
MKOverlayPathRendererMBS.createPath
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MapKit | MBS MacFrameworks Plugin | 19.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
The default implementation of this method does nothing. Subclasses should override it and use it to create the CGPathRef data type to be used for drawing. After creating the path, your implementation should assign it to the path property.
MKOverlayPathRendererMBS.fillPath(path as CGPathMBS, context as CGContextMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MapKit | MBS MacFrameworks Plugin | 19.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
path: The path to fill.
context: The graphics context in which to draw the path.
You must set the current fill color before calling this method. Typically you do this by calling the applyFillProperties method prior to drawing. If the fillColor property is currently nil, this method does nothing.
MKOverlayPathRendererMBS.GetLineDashPattern as Integer()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MapKit | MBS MacFrameworks Plugin | 19.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
The array contains one or more numbers that indicate the lengths (measured in points) of the line segments and gaps in the pattern. The values in the array alternate, starting with the first line segment length, followed by the first gap length, followed by the second line segment length, and so on.
This property is set to nil by default, which indicates no line dash pattern.
MKOverlayPathRendererMBS.invalidatePath
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MapKit | MBS MacFrameworks Plugin | 19.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Call this method when a change in the path information would require you to recreate the overlay’s path. This method sets the path property to nil and tells the overlay renderer to redisplay its contents.
MKOverlayPathRendererMBS.SetLineDashPattern(values() as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MapKit | MBS MacFrameworks Plugin | 19.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
The array contains one or more numbers that indicate the lengths (measured in points) of the line segments and gaps in the pattern. The values in the array alternate, starting with the first line segment length, followed by the first gap length, followed by the second line segment length, and so on.
This property is set to nil by default, which indicates no line dash pattern.
MKOverlayPathRendererMBS.strokePath(path as CGPathMBS, context as CGContextMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | MapKit | MBS MacFrameworks Plugin | 19.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
path: The path to draw.
context: The graphics context in which to draw the path.
You must set the current stroke color before calling this method. Typically you do this by calling the applyStrokePropertiesToContext method prior to drawing. If the strokeColor property is currently nil, this method does nothing.
The items on this page are in the following plugins: MBS MacFrameworks Plugin.