Edit

Share via


MTLDrawable_Extensions Class

Definition

Extension methods to the IMTLDrawable interface to support all the methods from the MTLDrawable protocol.

public static class MTLDrawable_Extensions
type MTLDrawable_Extensions = class
Inheritance
MTLDrawable_Extensions

Remarks

The extension methods for IMTLDrawable allow developers to treat instances of the interface as having all the optional methods of the original MTLDrawable protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

AddPresentedHandler(IMTLDrawable, Action<IMTLDrawable>)

Causes the provided block to be run after the drawable is displayed.

GetDrawableID(IMTLDrawable)

Returns the positive integer that identifies the drawable.

GetPresentedTime(IMTLDrawable)

Returns the time, in seconds, when the host displayed this drawable.

PresentAfter(IMTLDrawable, Double)

Causes the drawable to be presented at least duration seconds after the previous drawable has been presented.

Applies to