Share via


IMTKViewDelegate Interface

Definition

Delegate object for MTKView objects. Provides methods called when the view is drawn and laid out.

[Foundation.Protocol(Name="MTKViewDelegate", WrapperType=typeof(MetalKit.MTKViewDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DrawableSizeWillChange", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(MetalKit.MTKView), typeof(CoreGraphics.CGSize) }, Selector="mtkView:drawableSizeWillChange:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="Draw", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(MetalKit.MTKView) }, Selector="drawInMTKView:")]
public interface IMTKViewDelegate : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="MTKViewDelegate", WrapperType=typeof(MetalKit.MTKViewDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="DrawableSizeWillChange", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(MetalKit.MTKView), typeof(CoreGraphics.CGSize) }, Selector="mtkView:drawableSizeWillChange:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="Draw", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(MetalKit.MTKView) }, Selector="drawInMTKView:")>]
type IMTKViewDelegate = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

Name Description
Draw(MTKView)

Method to draw the contents of the view.

DrawableSizeWillChange(MTKView, CGSize)

Method to redraw the view when its layout is changed.

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to

See also