Skip to main content

NSCollectionLayoutContainer

Trait NSCollectionLayoutContainer 

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

Provided Methods§

Source

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

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

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

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

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

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

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

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

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSCollectionLayoutContainer

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSCollectionLayoutContainer for ProtocolObject<T>

Implementors§