Trait VZGraphicsDisplayObserver

Source
pub unsafe trait VZGraphicsDisplayObserver: NSObjectProtocol {
    // Provided methods
    unsafe fn displayDidBeginReconfiguration(&self, display: &VZGraphicsDisplay)
       where Self: Sized + Message { ... }
    unsafe fn displayDidEndReconfiguration(&self, display: &VZGraphicsDisplay)
       where Self: Sized + Message { ... }
}
Available on crate feature VZGraphicsDisplay only.
Expand description

VZGraphicsDisplayObserver observes a VZGraphicsDisplay for state changes.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn displayDidBeginReconfiguration(&self, display: &VZGraphicsDisplay)
where Self: Sized + Message,

A reconfiguration operation has begun.

A configuration change, such as a resize, has been issued and new frames are expected with a new size or configuration. This method will be invoked on the virtual machine’s queue.

Parameter display: The display whose state is changing.

Source

unsafe fn displayDidEndReconfiguration(&self, display: &VZGraphicsDisplay)
where Self: Sized + Message,

A reconfiguration operation has ended.

Frame updates have arrived at the most recently requested display size and configuration. This method will be invoked on the virtual machine’s queue.

Parameter display: The display whose state is changing.

Trait Implementations§

Source§

impl ProtocolType for dyn VZGraphicsDisplayObserver

Source§

const NAME: &'static str = "VZGraphicsDisplayObserver"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn VZGraphicsDisplayObserver

Implementations on Foreign Types§

Source§

impl<T> VZGraphicsDisplayObserver for ProtocolObject<T>

Implementors§