CALayoutManager

Trait CALayoutManager 

Source
pub unsafe trait CALayoutManager: NSObjectProtocol {
    // Provided methods
    unsafe fn preferredSizeOfLayer(&self, layer: &CALayer) -> CGSize
       where Self: Sized + Message { ... }
    unsafe fn invalidateLayoutOfLayer(&self, layer: &CALayer)
       where Self: Sized + Message { ... }
    unsafe fn layoutSublayersOfLayer(&self, layer: &CALayer)
       where Self: Sized + Message { ... }
}
Available on crate feature CALayer only.
Expand description

Layout manager protocol. *

See also Apple’s documentation

Provided Methods§

Source

unsafe fn preferredSizeOfLayer(&self, layer: &CALayer) -> CGSize
where Self: Sized + Message,

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

unsafe fn invalidateLayoutOfLayer(&self, layer: &CALayer)
where Self: Sized + Message,

Source

unsafe fn layoutSublayersOfLayer(&self, layer: &CALayer)
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn CALayoutManager

Source§

const NAME: &'static str = "CALayoutManager"

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 CALayoutManager

Implementations on Foreign Types§

Source§

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

Implementors§

Source§

impl CALayoutManager for CAConstraintLayoutManager

Available on crate feature CAConstraintLayoutManager only.