Trait UIDynamicItem

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

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

Available on crate feature objc2-core-foundation only.
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 collisionBoundsType(&self) -> UIDynamicItemCollisionBoundsType
where Self: Sized + Message,

The collision type represents how the dynamics system will evaluate collisions with respect to the dynamic item. defaults to UIDynamicItemCollisionBoundsTypeRectangle

Source

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

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

Source§

const NAME: &'static str = "UIDynamicItem"

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 UIDynamicItem
where T: ?Sized + Message + UIDynamicItem,

Implementations on Foreign Types§

Source§

impl<T> UIDynamicItem for ProtocolObject<T>
where T: ?Sized + UIDynamicItem,

Implementors§

Source§

impl UIDynamicItem for UIActionSheet

Available on crate feature UIActionSheet only.
Source§

impl UIDynamicItem for UIActivityIndicatorView

Available on crate feature UIActivityIndicatorView only.
Source§

impl UIDynamicItem for UIAlertView

Available on crate feature UIAlertView only.
Source§

impl UIDynamicItem for UIButton

Available on crate feature UIButton only.
Source§

impl UIDynamicItem for UICalendarView

Available on crate feature UICalendarView only.
Source§

impl UIDynamicItem for UICollectionReusableView

Available on crate feature UICollectionViewCell only.
Source§

impl UIDynamicItem for UICollectionView

Available on crate feature UICollectionView only.
Source§

impl UIDynamicItem for UICollectionViewCell

Available on crate feature UICollectionViewCell only.
Source§

impl UIDynamicItem for UICollectionViewLayoutAttributes

Available on crate feature UICollectionViewLayout only.
Source§

impl UIDynamicItem for UICollectionViewListCell

Available on crate feature UICollectionViewListCell only.
Source§

impl UIDynamicItem for UIColorWell

Available on crate feature UIColorWell only.
Source§

impl UIDynamicItem for UIContentUnavailableView

Available on crate feature UIContentUnavailableView only.
Source§

impl UIDynamicItem for UIControl

Available on crate feature UIControl only.
Source§

impl UIDynamicItem for UIDatePicker

Available on crate feature UIDatePicker only.
Source§

impl UIDynamicItem for UIDynamicItemGroup

Source§

impl UIDynamicItem for UIEventAttributionView

Available on crate feature UIEventAttributionView only.
Source§

impl UIDynamicItem for UIImageView

Available on crate feature UIImageView only.
Source§

impl UIDynamicItem for UIInputView

Available on crate feature UIInputView only.
Source§

impl UIDynamicItem for UILabel

Available on crate feature UILabel only.
Source§

impl UIDynamicItem for UIListContentView

Available on crate feature UIListContentConfiguration only.
Source§

impl UIDynamicItem for UINavigationBar

Available on crate feature UINavigationBar only.
Source§

impl UIDynamicItem for UIPageControl

Available on crate feature UIPageControl only.
Source§

impl UIDynamicItem for UIPasteControl

Available on crate feature UIPasteControl only.
Source§

impl UIDynamicItem for UIPickerView

Available on crate feature UIPickerView only.
Source§

impl UIDynamicItem for UIPopoverBackgroundView

Available on crate feature UIPopoverBackgroundView only.
Source§

impl UIDynamicItem for UIProgressView

Available on crate feature UIProgressView only.
Source§

impl UIDynamicItem for UIRefreshControl

Available on crate feature UIRefreshControl only.
Source§

impl UIDynamicItem for UIScrollView

Available on crate feature UIScrollView only.
Source§

impl UIDynamicItem for UISearchBar

Available on crate feature UISearchBar only.
Source§

impl UIDynamicItem for UISearchTextField

Available on crate feature UISearchTextField only.
Source§

impl UIDynamicItem for UISegmentedControl

Available on crate feature UISegmentedControl only.
Source§

impl UIDynamicItem for UISlider

Available on crate feature UISlider only.
Source§

impl UIDynamicItem for UIStackView

Available on crate feature UIStackView only.
Source§

impl UIDynamicItem for UIStandardTextCursorView

Available on crate feature UIStandardTextCursorView only.
Source§

impl UIDynamicItem for UIStepper

Available on crate feature UIStepper only.
Source§

impl UIDynamicItem for UISwitch

Available on crate feature UISwitch only.
Source§

impl UIDynamicItem for UITabBar

Available on crate feature UITabBar only.
Source§

impl UIDynamicItem for UITableView

Available on crate feature UITableView only.
Source§

impl UIDynamicItem for UITableViewCell

Available on crate feature UITableViewCell only.
Source§

impl UIDynamicItem for UITableViewHeaderFooterView

Available on crate feature UITableViewHeaderFooterView only.
Source§

impl UIDynamicItem for UITextField

Available on crate feature UITextField only.
Source§

impl UIDynamicItem for UITextView

Available on crate feature UITextView only.
Source§

impl UIDynamicItem for UIToolbar

Available on crate feature UIToolbar only.
Source§

impl UIDynamicItem for UIView

Available on crate feature UIView only.
Source§

impl UIDynamicItem for UIVisualEffectView

Available on crate feature UIVisualEffectView only.
Source§

impl UIDynamicItem for UIWebView

Available on crate feature UIWebView only.
Source§

impl UIDynamicItem for UIWindow

Available on crate feature UIWindow only.