Trait NSCollectionLayoutVisibleItem

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

Provided Methods§

Source

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

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

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

Available on crate feature objc2-core-foundation only.

Setter for alpha.

Source

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

Source

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

Setter for zIndex.

Source

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

Source

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

Setter for isHidden.

Source

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

Source

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

Setter for center.

Source

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

Source

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

Source

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

Source

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

Source

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

Available on crate feature NSCollectionViewLayout only.
Source

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