Skip to main content

NSViewLayerContentScaleDelegate

Trait NSViewLayerContentScaleDelegate 

Source
pub unsafe trait NSViewLayerContentScaleDelegate: NSObjectProtocol {
    // Provided method
    fn layer_shouldInheritContentsScale_fromWindow(
        &self,
        layer: &CALayer,
        new_scale: CGFloat,
        window: &NSWindow,
    ) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature NSView only.
Expand description

Provided Methods§

Source

fn layer_shouldInheritContentsScale_fromWindow( &self, layer: &CALayer, new_scale: CGFloat, window: &NSWindow, ) -> bool
where Self: Sized + Message,

Available on Apple and crate feature NSResponder and crate feature NSWindow and crate feature objc2-core-foundation and crate feature objc2-quartz-core only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSViewLayerContentScaleDelegate

Source§

impl ProtocolType for dyn NSViewLayerContentScaleDelegate

Source§

const NAME: &'static str = "NSViewLayerContentScaleDelegate"

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSViewLayerContentScaleDelegate for ProtocolObject<T>

Implementors§