Edit

SKGLView Class

Definition

A hardware-accelerated view that can be drawn on using SkiaSharp drawing commands.

[Foundation.Register("SKGLView")]
public class SKGLView : AppKit.NSOpenGLView
Inheritance
SKGLView
Attributes

Constructors

Name Description
SKGLView()

Initializes a new instance of the SKGLView class.

SKGLView(CGRect)

Initializes the SKGLView with the specified frame.

SKGLView(IntPtr)

Initializes a new instance of the SKGLView class from a native handle.

Properties

Name Description
CanvasSize

Gets the current canvas size.

GRContext

Gets the current GPU context.

Methods

Name Description
AwakeFromNib()

Called after the object has been loaded from the nib file. Overriders must call the base method.

DrawRect(CGRect)

Draws the view within the passed-in rectangle.

OnPaintSurface(SKPaintGLSurfaceEventArgs)

Implement this to draw on the canvas.

PrepareOpenGL()

Used by subclasses to initialize OpenGL state.

Reshape()

Called by Cocoa when the view's visible rectangle or bounds change.

Events

Name Description
PaintSurface

Occurs when the surface needs to be redrawn.

Applies to