NSCollectionLayoutVisibleItem

Trait NSCollectionLayoutVisibleItem 

Source
pub unsafe trait NSCollectionLayoutVisibleItem: NSObjectProtocol + MainThreadOnly {
Show 14 methods // Provided methods fn alpha(&self) -> CGFloat where Self: Sized + Message { ... } fn setAlpha(&self, alpha: CGFloat) where Self: Sized + Message { ... } fn zIndex(&self) -> NSInteger where Self: Sized + Message { ... } fn setZIndex(&self, z_index: NSInteger) where Self: Sized + Message { ... } fn isHidden(&self) -> bool where Self: Sized + Message { ... } fn setHidden(&self, hidden: bool) where Self: Sized + Message { ... } fn center(&self) -> NSPoint where Self: Sized + Message { ... } fn setCenter(&self, center: NSPoint) where Self: Sized + Message { ... } fn name(&self) -> Retained<NSString> where Self: Sized + Message { ... } fn indexPath(&self) -> Retained<NSIndexPath> where Self: Sized + Message { ... } fn frame(&self) -> NSRect where Self: Sized + Message { ... } fn bounds(&self) -> NSRect where Self: Sized + Message { ... } fn representedElementCategory(&self) -> NSCollectionElementCategory where Self: Sized + Message { ... } fn representedElementKind(&self) -> Option<Retained<NSString>> where Self: Sized + Message { ... }
}
Available on crate feature NSCollectionViewCompositionalLayout only.
Expand description

Provided Methods§

Source

fn alpha(&self) -> CGFloat
where Self: Sized + Message,

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

fn setAlpha(&self, alpha: CGFloat)
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Setter for alpha.

Source

fn zIndex(&self) -> NSInteger
where Self: Sized + Message,

Source

fn setZIndex(&self, z_index: NSInteger)
where Self: Sized + Message,

Setter for zIndex.

Source

fn isHidden(&self) -> bool
where Self: Sized + Message,

Source

fn setHidden(&self, hidden: bool)
where Self: Sized + Message,

Setter for isHidden.

Source

fn center(&self) -> NSPoint
where Self: Sized + Message,

Source

fn setCenter(&self, center: NSPoint)
where Self: Sized + Message,

Setter for center.

Source

fn name(&self) -> Retained<NSString>
where Self: Sized + Message,

Source

fn indexPath(&self) -> Retained<NSIndexPath>
where Self: Sized + Message,

Source

fn frame(&self) -> NSRect
where Self: Sized + Message,

Source

fn bounds(&self) -> NSRect
where Self: Sized + Message,

Source

fn representedElementCategory(&self) -> NSCollectionElementCategory
where Self: Sized + Message,

Available on crate feature NSCollectionViewLayout only.
Source

fn representedElementKind(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn NSCollectionLayoutVisibleItem

Source§

const NAME: &'static str = "NSCollectionLayoutVisibleItem"

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 NSCollectionLayoutVisibleItem

Implementations on Foreign Types§

Source§

impl<T> NSCollectionLayoutVisibleItem for ProtocolObject<T>

Implementors§