UILayoutSupport

Trait UILayoutSupport 

Source
pub unsafe trait UILayoutSupport: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn length(&self) -> CGFloat
       where Self: Sized + Message { ... }
    fn topAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
       where Self: Sized + Message { ... }
    fn bottomAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
       where Self: Sized + Message { ... }
    fn heightAnchor(&self) -> Retained<NSLayoutDimension>
       where Self: Sized + Message { ... }
}
Available on crate feature NSLayoutConstraint only.
Expand description

Provided Methods§

Source

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

Available on crate feature objc2-core-foundation only.
Source

fn topAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
where Self: Sized + Message,

Available on crate feature NSLayoutAnchor only.
Source

fn bottomAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
where Self: Sized + Message,

Available on crate feature NSLayoutAnchor only.
Source

fn heightAnchor(&self) -> Retained<NSLayoutDimension>
where Self: Sized + Message,

Available on crate feature NSLayoutAnchor only.

Trait Implementations§

Source§

impl ProtocolType for dyn UILayoutSupport

Source§

const NAME: &'static str = "UILayoutSupport"

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 UILayoutSupport

Implementations on Foreign Types§

Source§

impl<T> UILayoutSupport for ProtocolObject<T>
where T: ?Sized + UILayoutSupport,

Implementors§