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§
Sourcefn aspectRatio(&self) -> CGFloat
Available on crate feature objc2-core-foundation only.
fn aspectRatio(&self) -> CGFloat
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.
Sourcefn setAspectRatio(&self, aspect_ratio: CGFloat)
Available on crate feature objc2-core-foundation only.
fn setAspectRatio(&self, aspect_ratio: CGFloat)
objc2-core-foundation only.Setter for aspectRatio.