SKGLView Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
SKGLView() |
Default constructor that initializes a new instance of SKGLView. |
SKGLView(CGRect) |
Initializes the SKGLView with the specified frame. |
SKGLView(IntPtr) |
A constructor used when creating managed representations of unmanaged objects; Called by the runtime. |
Properties
CanvasSize |
Gets the current canvas size. |
GRContext |
Gets the current GPU context. |
Methods
AwakeFromNib() |
Called after the object has been loaded from the nib file. Overriders must call the base method. |
DrawInSurface(SKSurface, GRBackendRenderTargetDesc) |
Obsolete.
Implement this to draw on the canvas. |
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
PaintSurface |
Occurs when the surface needs to be redrawn. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for