Edit

SKGLSurfaceView Class

Definition

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

public class SKGLSurfaceView : SkiaSharp.Views.Tizen.CustomRenderingView
Inheritance
ElmSharp.Widget
SKGLSurfaceView

Constructors

Name Description
SKGLSurfaceView(EvasObject)

Initializes a new instance of the SKGLSurfaceView class.

Fields

Name Description
evasImage

The pointer to the underlying control which provides the native drawing surface.

(Inherited from CustomRenderingView)

Properties

Name Description
CanvasSize

Gets the current canvas size.

(Inherited from CustomRenderingView)
GRContext

Gets the current GPU context.

RenderingMode

Gets or sets the rendering mode.

(Inherited from CustomRenderingView)

Methods

Name Description
CreateDrawingSurface()

Implemented by derived CustomRenderingView types to construct the drawing surface.

CreateHandle(EvasObject)

Implemented by derived CustomRenderingView types to creates a Widget handle.

(Inherited from CustomRenderingView)
CreateNativeResources(EvasObject)

Implemented by derived CustomRenderingView types to create the native resources which should be present throughout whole life of the control.

DestroyDrawingSurface()

Implemented by derived CustomRenderingView types to destroy the drawing surface.

DestroyNativeResources()

Implemented by derived CustomRenderingView types to destroy the native resources.

GetRawSurfaceSize()

Gets the raw pixel size of the drawing surface.

(Inherited from CustomRenderingView)
GetSurfaceSize()

Implemented by derived CustomRenderingView types to provide the dimensions of the current drawing surface.

Invalidate()

Invalidates the entire surface of the control and causes the control to be redrawn.

(Inherited from CustomRenderingView)
OnDrawFrame()

Implemented by derived CustomRenderingView types to draw the next frame or paint the control.

OnDrawFrame(SKPaintGLSurfaceEventArgs)

Implement this to draw on the canvas.

OnResized()

Indicate to the control that the it has been resized.

(Inherited from CustomRenderingView)
OnUnrealize()

Implemented by derived CustomRenderingView types to clean up resources used by the control.

(Inherited from CustomRenderingView)
UpdateSurfaceSize(Rect)

Implemented by derived CustomRenderingView types to update the drawing surface dimensions.

Events

Name Description
PaintSurface

Occurs when the surface needs to be redrawn.

Applies to