Trait NSCollectionLayoutContainer

Source
pub unsafe trait NSCollectionLayoutContainer: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn contentSize(&self) -> CGSize
       where Self: Sized + Message { ... }
    unsafe fn effectiveContentSize(&self) -> CGSize
       where Self: Sized + Message { ... }
    unsafe fn contentInsets(&self) -> NSDirectionalEdgeInsets
       where Self: Sized + Message { ... }
    unsafe fn effectiveContentInsets(&self) -> NSDirectionalEdgeInsets
       where Self: Sized + Message { ... }
}
Available on crate feature UICollectionViewCompositionalLayout only.
Expand description

Provided Methods§

Source

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

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

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

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

unsafe fn contentInsets(&self) -> NSDirectionalEdgeInsets
where Self: Sized + Message,

Available on crate features UIGeometry and objc2-core-foundation only.
Source

unsafe fn effectiveContentInsets(&self) -> NSDirectionalEdgeInsets
where Self: Sized + Message,

Available on crate features UIGeometry and objc2-core-foundation only.

Trait Implementations§

Source§

impl ProtocolType for dyn NSCollectionLayoutContainer

Source§

const NAME: &'static str = "NSCollectionLayoutContainer"

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 NSCollectionLayoutContainer

Implementations on Foreign Types§

Source§

impl<T> NSCollectionLayoutContainer for ProtocolObject<T>

Implementors§