Trait NSCollectionLayoutVisibleItem

Source
pub unsafe trait NSCollectionLayoutVisibleItem:
    NSObjectProtocol
    + UIDynamicItem
    + MainThreadOnly {
Show 18 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) -> CGPoint where Self: Sized + Message { ... } unsafe fn setCenter(&self, center: CGPoint) where Self: Sized + Message { ... } unsafe fn transform(&self) -> CGAffineTransform where Self: Sized + Message { ... } unsafe fn setTransform(&self, transform: CGAffineTransform) where Self: Sized + Message { ... } unsafe fn transform3D(&self) -> CATransform3D where Self: Sized + Message { ... } unsafe fn setTransform3D(&self, transform3_d: CATransform3D) 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) -> CGRect where Self: Sized + Message { ... } unsafe fn bounds(&self) -> CGRect where Self: Sized + Message { ... } unsafe fn representedElementCategory(&self) -> UICollectionElementCategory where Self: Sized + Message { ... } unsafe fn representedElementKind(&self) -> Option<Retained<NSString>> where Self: Sized + Message { ... }
}
Available on crate features UICollectionViewCompositionalLayout and UIDynamicBehavior 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) -> CGPoint
where Self: Sized + Message,

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

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

Available on crate feature objc2-core-foundation only.

Setter for center.

Source

unsafe fn transform(&self) -> CGAffineTransform
where Self: Sized + Message,

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

unsafe fn setTransform(&self, transform: CGAffineTransform)
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

Setter for transform.

Source

unsafe fn transform3D(&self) -> CATransform3D
where Self: Sized + Message,

Available on crate feature objc2-quartz-core and non-watchOS only.
Source

unsafe fn setTransform3D(&self, transform3_d: CATransform3D)
where Self: Sized + Message,

Available on crate feature objc2-quartz-core and non-watchOS only.

Setter for transform3D.

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) -> CGRect
where Self: Sized + Message,

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

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

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

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

Available on crate feature UICollectionViewLayout 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§