Skip to main content

NSCollectionLayoutContainer

Trait NSCollectionLayoutContainer 

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

Provided Methods§

Source

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

Source

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

Source

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

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

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

Available on crate feature objc2-core-foundation 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§