pub unsafe trait UIDynamicItem: NSObjectProtocol + MainThreadOnly {
// Provided methods
fn center(&self) -> CGPoint
where Self: Sized + Message { ... }
fn setCenter(&self, center: CGPoint)
where Self: Sized + Message { ... }
fn bounds(&self) -> CGRect
where Self: Sized + Message { ... }
fn transform(&self) -> CGAffineTransform
where Self: Sized + Message { ... }
fn setTransform(&self, transform: CGAffineTransform)
where Self: Sized + Message { ... }
fn collisionBoundsType(&self) -> UIDynamicItemCollisionBoundsType
where Self: Sized + Message { ... }
fn collisionBoundingPath(&self) -> Retained<UIBezierPath>
where Self: Sized + Message { ... }
}Available on crate feature
UIDynamicBehavior only.Expand description
Provided Methods§
fn center(&self) -> CGPoint
Available on crate feature
objc2-core-foundation only.Sourcefn setCenter(&self, center: CGPoint)
Available on crate feature objc2-core-foundation only.
fn setCenter(&self, center: CGPoint)
objc2-core-foundation only.Setter for center.
fn bounds(&self) -> CGRect
Available on crate feature
objc2-core-foundation only.fn transform(&self) -> CGAffineTransform
Available on crate feature
objc2-core-foundation only.Sourcefn setTransform(&self, transform: CGAffineTransform)
Available on crate feature objc2-core-foundation only.
fn setTransform(&self, transform: CGAffineTransform)
objc2-core-foundation only.Setter for transform.
Sourcefn collisionBoundsType(&self) -> UIDynamicItemCollisionBoundsType
fn collisionBoundsType(&self) -> UIDynamicItemCollisionBoundsType
The collision type represents how the dynamics system will evaluate collisions with respect to the dynamic item. defaults to UIDynamicItemCollisionBoundsTypeRectangle
Sourcefn collisionBoundingPath(&self) -> Retained<UIBezierPath>
Available on crate feature UIBezierPath only.
fn collisionBoundingPath(&self) -> Retained<UIBezierPath>
UIBezierPath only.The path must represent a convex polygon with counter clockwise winding and no self intersection. The point (0,0) in the path corresponds to the dynamic item’s center.
Trait Implementations§
Source§impl ProtocolType for dyn UIDynamicItem
impl ProtocolType for dyn UIDynamicItem
impl<T> ImplementedBy<T> for dyn UIDynamicItem
Implementations on Foreign Types§
impl<T> UIDynamicItem for ProtocolObject<T>where
T: ?Sized + UIDynamicItem,
Implementors§
impl UIDynamicItem for UIActionSheet
Available on crate feature
UIActionSheet only.impl UIDynamicItem for UIActivityIndicatorView
Available on crate feature
UIActivityIndicatorView only.impl UIDynamicItem for UIAlertView
Available on crate feature
UIAlertView only.impl UIDynamicItem for UIBackgroundExtensionView
Available on crate feature
UIBackgroundExtensionView only.impl UIDynamicItem for UIButton
Available on crate feature
UIButton only.impl UIDynamicItem for UICalendarView
Available on crate feature
UICalendarView only.impl UIDynamicItem for UICollectionReusableView
Available on crate feature
UICollectionViewCell only.impl UIDynamicItem for UICollectionView
Available on crate feature
UICollectionView only.impl UIDynamicItem for UICollectionViewCell
Available on crate feature
UICollectionViewCell only.impl UIDynamicItem for UICollectionViewLayoutAttributes
Available on crate feature
UICollectionViewLayout only.impl UIDynamicItem for UICollectionViewListCell
Available on crate feature
UICollectionViewListCell only.impl UIDynamicItem for UIColorWell
Available on crate feature
UIColorWell only.impl UIDynamicItem for UIControl
Available on crate feature
UIControl only.impl UIDynamicItem for UIDatePicker
Available on crate feature
UIDatePicker only.impl UIDynamicItem for UIDynamicItemGroup
impl UIDynamicItem for UIEventAttributionView
Available on crate feature
UIEventAttributionView only.impl UIDynamicItem for UIImageView
Available on crate feature
UIImageView only.impl UIDynamicItem for UIInputView
Available on crate feature
UIInputView only.impl UIDynamicItem for UILabel
Available on crate feature
UILabel only.impl UIDynamicItem for UIListContentView
Available on crate feature
UIListContentConfiguration only.impl UIDynamicItem for UIPageControl
Available on crate feature
UIPageControl only.impl UIDynamicItem for UIPasteControl
Available on crate feature
UIPasteControl only.impl UIDynamicItem for UIPickerView
Available on crate feature
UIPickerView only.impl UIDynamicItem for UIPopoverBackgroundView
Available on crate feature
UIPopoverBackgroundView only.impl UIDynamicItem for UIProgressView
Available on crate feature
UIProgressView only.impl UIDynamicItem for UIRefreshControl
Available on crate feature
UIRefreshControl only.impl UIDynamicItem for UIScrollView
Available on crate feature
UIScrollView only.impl UIDynamicItem for UISearchBar
Available on crate feature
UISearchBar only.impl UIDynamicItem for UISearchTextField
Available on crate feature
UISearchTextField only.impl UIDynamicItem for UISegmentedControl
Available on crate feature
UISegmentedControl only.impl UIDynamicItem for UISlider
Available on crate feature
UISlider only.impl UIDynamicItem for UIStackView
Available on crate feature
UIStackView only.impl UIDynamicItem for UIStandardTextCursorView
Available on crate feature
UIStandardTextCursorView only.impl UIDynamicItem for UIStepper
Available on crate feature
UIStepper only.impl UIDynamicItem for UISwitch
Available on crate feature
UISwitch only.impl UIDynamicItem for UITabBar
Available on crate feature
UITabBar only.impl UIDynamicItem for UITableView
Available on crate feature
UITableView only.impl UIDynamicItem for UITableViewCell
Available on crate feature
UITableViewCell only.impl UIDynamicItem for UITextField
Available on crate feature
UITextField only.impl UIDynamicItem for UITextView
Available on crate feature
UITextView only.impl UIDynamicItem for UIToolbar
Available on crate feature
UIToolbar only.impl UIDynamicItem for UIView
Available on crate feature
UIView only.impl UIDynamicItem for UIVisualEffectView
Available on crate feature
UIVisualEffectView only.impl UIDynamicItem for UIWebView
Available on crate feature
UIWebView only.impl UIDynamicItem for UIWindow
Available on crate feature
UIWindow only.