Trait objc2_app_kit::NSCollectionLayoutContainer

source ·
pub unsafe trait NSCollectionLayoutContainer: NSObjectProtocol {
    // Provided methods
    unsafe fn contentSize(&self) -> NSSize
       where Self: Sized + Message { ... }
    unsafe fn effectiveContentSize(&self) -> NSSize
       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 NSCollectionViewCompositionalLayout only.

Provided Methods§

source

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

source

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

source

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

source

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

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.
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§