208 строки
8.5 KiB
XML
208 строки
8.5 KiB
XML
<Type Name="SKGLLayer" FullName="SkiaSharp.Views.tvOS.SKGLLayer">
|
||
<TypeSignature Language="C#" Value="public class SKGLLayer : CoreAnimation.CAEAGLLayer" />
|
||
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit SKGLLayer extends CoreAnimation.CAEAGLLayer" />
|
||
<AssemblyInfo>
|
||
<AssemblyName>SkiaSharp.Views.tvOS</AssemblyName>
|
||
<AssemblyVersion>1.55.0.0</AssemblyVersion>
|
||
<AssemblyVersion>1.56.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<Base>
|
||
<BaseTypeName>CoreAnimation.CAEAGLLayer</BaseTypeName>
|
||
</Base>
|
||
<Interfaces />
|
||
<Docs>
|
||
<summary>A CoreAnimation OpenGL layer that can be drawn on using SkiaSharp drawing commands.</summary>
|
||
<remarks>
|
||
<para></para>
|
||
</remarks>
|
||
</Docs>
|
||
<Members>
|
||
<Member MemberName=".ctor">
|
||
<MemberSignature Language="C#" Value="public SKGLLayer ();" />
|
||
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
|
||
<MemberType>Constructor</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.55.0.0</AssemblyVersion>
|
||
<AssemblyVersion>1.56.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<Parameters />
|
||
<Docs>
|
||
<summary>Default constructor that initializes a new instance of <see cref="T:SkiaSharp.Views.tvOS.SKGLLayer" />.</summary>
|
||
<remarks>
|
||
<para></para>
|
||
</remarks>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="CanvasSize">
|
||
<MemberSignature Language="C#" Value="public SkiaSharp.SKSize CanvasSize { get; }" />
|
||
<MemberSignature Language="ILAsm" Value=".property instance valuetype SkiaSharp.SKSize CanvasSize" />
|
||
<MemberType>Property</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.55.0.0</AssemblyVersion>
|
||
<AssemblyVersion>1.56.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>SkiaSharp.SKSize</ReturnType>
|
||
</ReturnValue>
|
||
<Docs>
|
||
<summary>Gets the current canvas size.</summary>
|
||
<value></value>
|
||
<remarks>The canvas size may be different to the view size as a result of the current device's pixel density.</remarks>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="Dispose">
|
||
<MemberSignature Language="C#" Value="protected override void Dispose (bool disposing);" />
|
||
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void Dispose(bool disposing) cil managed" />
|
||
<MemberType>Method</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.55.0.0</AssemblyVersion>
|
||
<AssemblyVersion>1.56.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>System.Void</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters>
|
||
<Parameter Name="disposing" Type="System.Boolean" />
|
||
</Parameters>
|
||
<Docs>
|
||
<param name="disposing">To be added.</param>
|
||
<summary>To be added.</summary>
|
||
<remarks>To be added.</remarks>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="DrawInSurface">
|
||
<MemberSignature Language="C#" Value="public virtual void DrawInSurface (SkiaSharp.SKSurface surface, SkiaSharp.GRBackendRenderTargetDesc renderTarget);" />
|
||
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void DrawInSurface(class SkiaSharp.SKSurface surface, valuetype SkiaSharp.GRBackendRenderTargetDesc renderTarget) cil managed" />
|
||
<MemberType>Method</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.55.0.0</AssemblyVersion>
|
||
<AssemblyVersion>1.56.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>System.Void</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters>
|
||
<Parameter Name="surface" Type="SkiaSharp.SKSurface" />
|
||
<Parameter Name="renderTarget" Type="SkiaSharp.GRBackendRenderTargetDesc" />
|
||
</Parameters>
|
||
<Docs>
|
||
<param name="surface">The surface to draw on.</param>
|
||
<param name="renderTarget">The render target that is currently being drawn.</param>
|
||
<summary>Implement this to draw on the canvas.</summary>
|
||
<remarks>
|
||
<para>There are two ways to draw on this surface: by overriding the <see cref="M:SkiaSharp.Views.tvOS.SKGLLayer.DrawInSurface" /> method, or by attaching a handler to the <see cref="E:SkiaSharp.Views.tvOS.SKGLLayer.PaintSurface" /> event. If the method is overriden, then the base must be called.</para>
|
||
<para></para>
|
||
<example>
|
||
<code lang="C#"><![CDATA[public override void DrawInSurface (SKSurface surface, SKBackendRenderTargetDesc renderTarget)
|
||
{
|
||
// call the base method
|
||
base.DrawInSurface (surface, renderTarget);
|
||
|
||
var surfaceWidth = renderTarget.Width;
|
||
var surfaceHeight = renderTarget.Height;
|
||
|
||
var canvas = surface.Canvas;
|
||
// draw on the canvas
|
||
canvas.Flush ();
|
||
}]]></code>
|
||
</example>
|
||
<para></para>
|
||
</remarks>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="Frame">
|
||
<MemberSignature Language="C#" Value="public override CoreGraphics.CGRect Frame { get; set; }" />
|
||
<MemberSignature Language="ILAsm" Value=".property instance valuetype CoreGraphics.CGRect Frame" />
|
||
<MemberType>Property</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.55.0.0</AssemblyVersion>
|
||
<AssemblyVersion>1.56.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>CoreGraphics.CGRect</ReturnType>
|
||
</ReturnValue>
|
||
<Docs>
|
||
<summary>Gets or sets the layer’s frame rectangle.</summary>
|
||
<value>
|
||
<para></para>
|
||
</value>
|
||
<remarks>
|
||
<para></para>
|
||
</remarks>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="PaintSurface">
|
||
<MemberSignature Language="C#" Value="public event EventHandler<SkiaSharp.Views.tvOS.SKPaintGLSurfaceEventArgs> PaintSurface;" />
|
||
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler`1<class SkiaSharp.Views.tvOS.SKPaintGLSurfaceEventArgs> PaintSurface" />
|
||
<MemberType>Event</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.55.0.0</AssemblyVersion>
|
||
<AssemblyVersion>1.56.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>System.EventHandler<SkiaSharp.Views.tvOS.SKPaintGLSurfaceEventArgs></ReturnType>
|
||
</ReturnValue>
|
||
<Docs>
|
||
<summary>Occurs when the the canvas needs to be re-drawn.</summary>
|
||
<remarks>
|
||
<para>There are two ways to draw on this surface: by overriding the <see cref="M:SkiaSharp.Views.tvOS.SKGLLayer.DrawInSurface" /> method, or by attaching a handler to the <see cref="E:SkiaSharp.Views.tvOS.SKGLLayer.PaintSurface" /> event.</para>
|
||
<para></para>
|
||
<example>
|
||
<code lang="C#"><![CDATA[SKGLLayer myLayer = ...;
|
||
|
||
myLayer.PaintSurface += (sender, e) => {
|
||
var surface = e.Surface;
|
||
var surfaceWidth = e.Info.Width;
|
||
var surfaceHeight = e.Info.Height;
|
||
|
||
var canvas = surface.Canvas;
|
||
// draw on the canvas
|
||
canvas.Flush ();
|
||
};]]></code>
|
||
</example>
|
||
</remarks>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="Render">
|
||
<MemberSignature Language="C#" Value="public virtual void Render ();" />
|
||
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Render() cil managed" />
|
||
<MemberType>Method</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.55.0.0</AssemblyVersion>
|
||
<AssemblyVersion>1.56.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>System.Void</ReturnType>
|
||
</ReturnValue>
|
||
<Parameters />
|
||
<Docs>
|
||
<summary>Redraws the layer’s contents.</summary>
|
||
<remarks>
|
||
<para></para>
|
||
</remarks>
|
||
</Docs>
|
||
</Member>
|
||
<Member MemberName="SKDelegate">
|
||
<MemberSignature Language="C#" Value="public SkiaSharp.Views.tvOS.ISKGLLayerDelegate SKDelegate { get; set; }" />
|
||
<MemberSignature Language="ILAsm" Value=".property instance class SkiaSharp.Views.tvOS.ISKGLLayerDelegate SKDelegate" />
|
||
<MemberType>Property</MemberType>
|
||
<AssemblyInfo>
|
||
<AssemblyVersion>1.55.0.0</AssemblyVersion>
|
||
<AssemblyVersion>1.56.0.0</AssemblyVersion>
|
||
</AssemblyInfo>
|
||
<ReturnValue>
|
||
<ReturnType>SkiaSharp.Views.tvOS.ISKGLLayerDelegate</ReturnType>
|
||
</ReturnValue>
|
||
<Docs>
|
||
<summary>Gets or sets the layer’s delegate object.</summary>
|
||
<value>
|
||
<para></para>
|
||
</value>
|
||
<remarks>
|
||
<para></para>
|
||
</remarks>
|
||
</Docs>
|
||
</Member>
|
||
</Members>
|
||
</Type>
|