UILayoutGuideAspectFitting

Trait UILayoutGuideAspectFitting 

Source
pub unsafe trait UILayoutGuideAspectFitting: NSObjectProtocol {
    // Provided methods
    fn aspectRatio(&self) -> CGFloat
       where Self: Sized + Message { ... }
    fn setAspectRatio(&self, aspect_ratio: CGFloat)
       where Self: Sized + Message { ... }
}
Available on crate feature UIWindow only.
Expand description

Provided Methods§

Source

fn aspectRatio(&self) -> CGFloat
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Update the aspect ratio (width / height) for the given content Defaults to 1.0. Must be > 0.0 and values may be clamped within a reasonable range of approximately 1:100 to 100:1.

Source

fn setAspectRatio(&self, aspect_ratio: CGFloat)
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Setter for aspectRatio.

Trait Implementations§

Source§

impl ProtocolType for dyn UILayoutGuideAspectFitting

Source§

const NAME: &'static str = "UILayoutGuideAspectFitting"

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 UILayoutGuideAspectFitting

Implementations on Foreign Types§

Source§

impl<T> UILayoutGuideAspectFitting for ProtocolObject<T>

Implementors§