CustomRenderingView 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.
An abstract view that can be inherited from to allow drawing on using SkiaSharp drawing commands.
public abstract class CustomRenderingView : ElmSharp.Widget
- Inheritance
-
ElmSharp.WidgetCustomRenderingView
- Derived
Constructors
| Name | Description |
|---|---|
| CustomRenderingView(EvasObject) |
Initializes a new instance of the CustomRenderingView class. |
Fields
| Name | Description |
|---|---|
| evasImage |
The pointer to the underlying control which provides the native drawing surface. |
Properties
| Name | Description |
|---|---|
| CanvasSize |
Gets the current canvas size. |
| RenderingMode |
Gets or sets the rendering mode. |
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. |
| 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. |
| 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. |
| OnDrawFrame() |
Invalidates the entire surface of the control and causes the control to be redrawn. |
| OnResized() |
Indicate to the control that the it has been resized. |
| OnUnrealize() |
Implemented by derived CustomRenderingView types to clean up resources used by the control. |
| UpdateSurfaceSize(Rect) |
Implemented by derived CustomRenderingView types to update the drawing surface dimensions. |