pub unsafe trait UIDynamicItem: NSObjectProtocol + MainThreadOnly {
// Provided methods
unsafe fn center(&self) -> CGPoint
where Self: Sized + Message { ... }
unsafe fn setCenter(&self, center: CGPoint)
where Self: Sized + Message { ... }
unsafe fn bounds(&self) -> CGRect
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 collisionBoundsType(&self) -> UIDynamicItemCollisionBoundsType
where Self: Sized + Message { ... }
unsafe fn collisionBoundingPath(&self) -> Retained<UIBezierPath>
where Self: Sized + Message { ... }
}Available on crate feature
UIDynamicBehavior only.Expand description
Provided Methods§
unsafe fn center(&self) -> CGPoint
Available on crate feature
objc2-core-foundation only.Sourceunsafe fn setCenter(&self, center: CGPoint)
Available on crate feature objc2-core-foundation only.
unsafe fn setCenter(&self, center: CGPoint)
objc2-core-foundation only.Setter for center.
unsafe fn bounds(&self) -> CGRect
Available on crate feature
objc2-core-foundation only.unsafe fn transform(&self) -> CGAffineTransform
Available on crate feature
objc2-core-foundation only.Sourceunsafe fn setTransform(&self, transform: CGAffineTransform)
Available on crate feature objc2-core-foundation only.
unsafe fn setTransform(&self, transform: CGAffineTransform)
objc2-core-foundation only.Setter for transform.
Sourceunsafe fn collisionBoundsType(&self) -> UIDynamicItemCollisionBoundsType
unsafe fn collisionBoundsType(&self) -> UIDynamicItemCollisionBoundsType
The collision type represents how the dynamics system will evaluate collisions with respect to the dynamic item. defaults to UIDynamicItemCollisionBoundsTypeRectangle
Sourceunsafe fn collisionBoundingPath(&self) -> Retained<UIBezierPath>
Available on crate feature UIBezierPath only.
unsafe 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 features
UIResponder and UIView and UIActionSheet only.impl UIDynamicItem for UIActivityIndicatorView
Available on crate features
UIResponder and UIView and UIActivityIndicatorView only.impl UIDynamicItem for UIAlertView
Available on crate features
UIResponder and UIView and UIAlertView only.impl UIDynamicItem for UIButton
Available on crate features
UIControl and UIResponder and UIView and UIButton only.impl UIDynamicItem for UICalendarView
Available on crate features
UIResponder and UIView and UICalendarView only.impl UIDynamicItem for UICollectionReusableView
Available on crate features
UIResponder and UIView and UICollectionViewCell only.impl UIDynamicItem for UICollectionView
Available on crate features
UIResponder and UIScrollView and UIView and UICollectionView only.impl UIDynamicItem for UICollectionViewCell
Available on crate features
UIResponder and UIView and UICollectionViewCell only.impl UIDynamicItem for UICollectionViewLayoutAttributes
Available on crate feature
UICollectionViewLayout only.impl UIDynamicItem for UICollectionViewListCell
Available on crate features
UICollectionViewCell and UIResponder and UIView and UICollectionViewListCell only.impl UIDynamicItem for UIColorWell
Available on crate features
UIControl and UIResponder and UIView and UIColorWell only.impl UIDynamicItem for UIControl
Available on crate features
UIResponder and UIView and UIControl only.impl UIDynamicItem for UIDatePicker
Available on crate features
UIControl and UIResponder and UIView and UIDatePicker only.impl UIDynamicItem for UIDynamicItemGroup
impl UIDynamicItem for UIEventAttributionView
Available on crate features
UIResponder and UIView and UIEventAttributionView only.impl UIDynamicItem for UIImageView
Available on crate features
UIResponder and UIView and UIImageView only.impl UIDynamicItem for UIInputView
Available on crate features
UIResponder and UIView and UIInputView only.impl UIDynamicItem for UILabel
Available on crate features
UIResponder and UIView and UILabel only.impl UIDynamicItem for UIListContentView
Available on crate features
UIResponder and UIView and UIListContentConfiguration only.impl UIDynamicItem for UIPageControl
Available on crate features
UIControl and UIResponder and UIView and UIPageControl only.impl UIDynamicItem for UIPasteControl
Available on crate features
UIControl and UIResponder and UIView and UIPasteControl only.impl UIDynamicItem for UIPickerView
Available on crate features
UIResponder and UIView and UIPickerView only.impl UIDynamicItem for UIPopoverBackgroundView
Available on crate features
UIResponder and UIView and UIPopoverBackgroundView only.impl UIDynamicItem for UIProgressView
Available on crate features
UIResponder and UIView and UIProgressView only.impl UIDynamicItem for UIRefreshControl
Available on crate features
UIControl and UIResponder and UIView and UIRefreshControl only.impl UIDynamicItem for UIScrollView
Available on crate features
UIResponder and UIView and UIScrollView only.impl UIDynamicItem for UISearchBar
Available on crate features
UIResponder and UIView and UISearchBar only.impl UIDynamicItem for UISearchTextField
Available on crate features
UIControl and UIResponder and UITextField and UIView and UISearchTextField only.impl UIDynamicItem for UISegmentedControl
Available on crate features
UIControl and UIResponder and UIView and UISegmentedControl only.impl UIDynamicItem for UISlider
Available on crate features
UIControl and UIResponder and UIView and UISlider only.impl UIDynamicItem for UIStackView
Available on crate features
UIResponder and UIView and UIStackView only.impl UIDynamicItem for UIStandardTextCursorView
Available on crate features
UIResponder and UIView and UIStandardTextCursorView only.impl UIDynamicItem for UIStepper
Available on crate features
UIControl and UIResponder and UIView and UIStepper only.impl UIDynamicItem for UISwitch
Available on crate features
UIControl and UIResponder and UIView and UISwitch only.impl UIDynamicItem for UITabBar
Available on crate features
UIResponder and UIView and UITabBar only.impl UIDynamicItem for UITableView
Available on crate features
UIResponder and UIScrollView and UIView and UITableView only.impl UIDynamicItem for UITableViewCell
Available on crate features
UIResponder and UIView and UITableViewCell only.impl UIDynamicItem for UITextField
Available on crate features
UIControl and UIResponder and UIView and UITextField only.impl UIDynamicItem for UITextView
Available on crate features
UIResponder and UIScrollView and UIView and UITextView only.impl UIDynamicItem for UIToolbar
Available on crate features
UIResponder and UIView and UIToolbar only.impl UIDynamicItem for UIView
Available on crate features
UIResponder and UIView only.impl UIDynamicItem for UIVisualEffectView
Available on crate features
UIResponder and UIView and UIVisualEffectView only.impl UIDynamicItem for UIWebView
Available on crate features
UIResponder and UIView and UIWebView only.impl UIDynamicItem for UIWindow
Available on crate features
UIResponder and UIView and UIWindow only.