NSViewLayerContentScaleDelegate

Trait NSViewLayerContentScaleDelegate 

Source
pub unsafe trait NSViewLayerContentScaleDelegate: NSObjectProtocol {
    // Provided method
    unsafe 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

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

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

Trait Implementations§

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
Source§

impl<T> ImplementedBy<T> for dyn NSViewLayerContentScaleDelegate

Implementations on Foreign Types§

Source§

impl<T> NSViewLayerContentScaleDelegate for ProtocolObject<T>

Implementors§