NSCollectionLayoutVisibleItem

Trait NSCollectionLayoutVisibleItem 

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

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

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

Available on crate feature objc2-core-foundation only.

Setter for center.

Source

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

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

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

Available on crate feature objc2-core-foundation only.

Setter for transform.

Source

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

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

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

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

Source

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

Source

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

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

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

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

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

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