Struct objc2_ui_kit::UICollectionView

source ·
#[repr(C)]
pub struct UICollectionView { /* private fields */ }
Available on crate features UICollectionView and UIResponder and UIScrollView and UIView only.

Implementations§

source§

impl UICollectionView

source

pub unsafe fn initWithFrame_collectionViewLayout( this: Allocated<Self>, frame: CGRect, layout: &UICollectionViewLayout ) -> Retained<Self>

Available on crate feature UICollectionViewLayout only.
source

pub unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Option<Retained<Self>>

source

pub unsafe fn collectionViewLayout(&self) -> Retained<UICollectionViewLayout>

Available on crate feature UICollectionViewLayout only.
source

pub unsafe fn setCollectionViewLayout( &self, collection_view_layout: &UICollectionViewLayout )

Available on crate feature UICollectionViewLayout only.
source

pub unsafe fn delegate( &self ) -> Option<Retained<ProtocolObject<dyn UICollectionViewDelegate>>>

source

pub unsafe fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn UICollectionViewDelegate>> )

source

pub unsafe fn dataSource( &self ) -> Option<Retained<ProtocolObject<dyn UICollectionViewDataSource>>>

source

pub unsafe fn setDataSource( &self, data_source: Option<&ProtocolObject<dyn UICollectionViewDataSource>> )

source

pub unsafe fn prefetchDataSource( &self ) -> Option<Retained<ProtocolObject<dyn UICollectionViewDataSourcePrefetching>>>

source

pub unsafe fn setPrefetchDataSource( &self, prefetch_data_source: Option<&ProtocolObject<dyn UICollectionViewDataSourcePrefetching>> )

source

pub unsafe fn isPrefetchingEnabled(&self) -> bool

source

pub unsafe fn setPrefetchingEnabled(&self, prefetching_enabled: bool)

source

pub unsafe fn dragDelegate( &self ) -> Option<Retained<ProtocolObject<dyn UICollectionViewDragDelegate>>>

source

pub unsafe fn setDragDelegate( &self, drag_delegate: Option<&ProtocolObject<dyn UICollectionViewDragDelegate>> )

source

pub unsafe fn dropDelegate( &self ) -> Option<Retained<ProtocolObject<dyn UICollectionViewDropDelegate>>>

source

pub unsafe fn setDropDelegate( &self, drop_delegate: Option<&ProtocolObject<dyn UICollectionViewDropDelegate>> )

source

pub unsafe fn dragInteractionEnabled(&self) -> bool

source

pub unsafe fn setDragInteractionEnabled(&self, drag_interaction_enabled: bool)

source

pub unsafe fn contextMenuInteraction( &self ) -> Option<Retained<UIContextMenuInteraction>>

Available on crate feature UIContextMenuInteraction only.
source

pub unsafe fn reorderingCadence(&self) -> UICollectionViewReorderingCadence

source

pub unsafe fn setReorderingCadence( &self, reordering_cadence: UICollectionViewReorderingCadence )

source

pub unsafe fn selfSizingInvalidation( &self ) -> UICollectionViewSelfSizingInvalidation

source

pub unsafe fn setSelfSizingInvalidation( &self, self_sizing_invalidation: UICollectionViewSelfSizingInvalidation )

source

pub unsafe fn backgroundView(&self) -> Option<Retained<UIView>>

source

pub unsafe fn setBackgroundView(&self, background_view: Option<&UIView>)

source

pub unsafe fn registerClass_forCellWithReuseIdentifier( &self, cell_class: Option<&AnyClass>, identifier: &NSString )

source

pub unsafe fn registerNib_forCellWithReuseIdentifier( &self, nib: Option<&UINib>, identifier: &NSString )

👎Deprecated: Loading Interface Builder products will not be supported in a future version of visionOS.
Available on crate feature UINib only.
source

pub unsafe fn registerClass_forSupplementaryViewOfKind_withReuseIdentifier( &self, view_class: Option<&AnyClass>, element_kind: &NSString, identifier: &NSString )

source

pub unsafe fn registerNib_forSupplementaryViewOfKind_withReuseIdentifier( &self, nib: Option<&UINib>, kind: &NSString, identifier: &NSString )

👎Deprecated: Loading Interface Builder products will not be supported in a future version of visionOS.
Available on crate feature UINib only.
source

pub unsafe fn dequeueReusableCellWithReuseIdentifier_forIndexPath( &self, identifier: &NSString, index_path: &NSIndexPath ) -> Retained<UICollectionViewCell>

Available on crate feature UICollectionViewCell only.
source

pub unsafe fn dequeueReusableSupplementaryViewOfKind_withReuseIdentifier_forIndexPath( &self, element_kind: &NSString, identifier: &NSString, index_path: &NSIndexPath ) -> Retained<UICollectionReusableView>

Available on crate feature UICollectionViewCell only.
source

pub unsafe fn dequeueConfiguredReusableCellWithRegistration_forIndexPath_item( &self, registration: &UICollectionViewCellRegistration, index_path: &NSIndexPath, item: &AnyObject ) -> Retained<UICollectionViewCell>

Available on crate features UICollectionViewCell and UICollectionViewItemRegistration only.
source

pub unsafe fn dequeueConfiguredReusableSupplementaryViewWithRegistration_forIndexPath( &self, registration: &UICollectionViewSupplementaryRegistration, index_path: &NSIndexPath ) -> Retained<UICollectionReusableView>

Available on crate features UICollectionViewCell and UICollectionViewItemRegistration only.
source

pub unsafe fn allowsSelection(&self) -> bool

source

pub unsafe fn setAllowsSelection(&self, allows_selection: bool)

source

pub unsafe fn allowsMultipleSelection(&self) -> bool

source

pub unsafe fn setAllowsMultipleSelection(&self, allows_multiple_selection: bool)

source

pub unsafe fn indexPathsForSelectedItems( &self ) -> Option<Retained<NSArray<NSIndexPath>>>

source

pub unsafe fn selectItemAtIndexPath_animated_scrollPosition( &self, index_path: Option<&NSIndexPath>, animated: bool, scroll_position: UICollectionViewScrollPosition )

source

pub unsafe fn deselectItemAtIndexPath_animated( &self, index_path: &NSIndexPath, animated: bool )

source

pub unsafe fn hasUncommittedUpdates(&self) -> bool

source

pub unsafe fn reloadData(&self)

source

pub unsafe fn setCollectionViewLayout_animated( &self, layout: &UICollectionViewLayout, animated: bool )

Available on crate feature UICollectionViewLayout only.
source

pub unsafe fn setCollectionViewLayout_animated_completion( &self, layout: &UICollectionViewLayout, animated: bool, completion: Option<&Block<dyn Fn(Bool)>> )

Available on crate features UICollectionViewLayout and block2 only.
source

pub unsafe fn startInteractiveTransitionToCollectionViewLayout_completion( &self, layout: &UICollectionViewLayout, completion: UICollectionViewLayoutInteractiveTransitionCompletion ) -> Retained<UICollectionViewTransitionLayout>

Available on crate features UICollectionViewLayout and UICollectionViewTransitionLayout and block2 only.
source

pub unsafe fn finishInteractiveTransition(&self)

source

pub unsafe fn cancelInteractiveTransition(&self)

source

pub unsafe fn numberOfSections(&self) -> NSInteger

source

pub unsafe fn numberOfItemsInSection(&self, section: NSInteger) -> NSInteger

source

pub unsafe fn layoutAttributesForItemAtIndexPath( &self, index_path: &NSIndexPath ) -> Option<Retained<UICollectionViewLayoutAttributes>>

Available on crate feature UICollectionViewLayout only.
source

pub unsafe fn layoutAttributesForSupplementaryElementOfKind_atIndexPath( &self, kind: &NSString, index_path: &NSIndexPath ) -> Option<Retained<UICollectionViewLayoutAttributes>>

Available on crate feature UICollectionViewLayout only.
source

pub unsafe fn indexPathForItemAtPoint( &self, point: CGPoint ) -> Option<Retained<NSIndexPath>>

source

pub unsafe fn indexPathForCell( &self, cell: &UICollectionViewCell ) -> Option<Retained<NSIndexPath>>

Available on crate feature UICollectionViewCell only.
source

pub unsafe fn cellForItemAtIndexPath( &self, index_path: &NSIndexPath ) -> Option<Retained<UICollectionViewCell>>

Available on crate feature UICollectionViewCell only.
source

pub unsafe fn visibleCells(&self) -> Retained<NSArray<UICollectionViewCell>>

Available on crate feature UICollectionViewCell only.
source

pub unsafe fn indexPathsForVisibleItems(&self) -> Retained<NSArray<NSIndexPath>>

source

pub unsafe fn supplementaryViewForElementKind_atIndexPath( &self, element_kind: &NSString, index_path: &NSIndexPath ) -> Option<Retained<UICollectionReusableView>>

Available on crate feature UICollectionViewCell only.
source

pub unsafe fn visibleSupplementaryViewsOfKind( &self, element_kind: &NSString ) -> Retained<NSArray<UICollectionReusableView>>

Available on crate feature UICollectionViewCell only.
source

pub unsafe fn indexPathsForVisibleSupplementaryElementsOfKind( &self, element_kind: &NSString ) -> Retained<NSArray<NSIndexPath>>

source

pub unsafe fn scrollToItemAtIndexPath_atScrollPosition_animated( &self, index_path: &NSIndexPath, scroll_position: UICollectionViewScrollPosition, animated: bool )

source

pub unsafe fn insertSections(&self, sections: &NSIndexSet)

source

pub unsafe fn deleteSections(&self, sections: &NSIndexSet)

source

pub unsafe fn moveSection_toSection( &self, section: NSInteger, new_section: NSInteger )

source

pub unsafe fn reloadSections(&self, sections: &NSIndexSet)

source

pub unsafe fn insertItemsAtIndexPaths(&self, index_paths: &NSArray<NSIndexPath>)

source

pub unsafe fn deleteItemsAtIndexPaths(&self, index_paths: &NSArray<NSIndexPath>)

source

pub unsafe fn moveItemAtIndexPath_toIndexPath( &self, index_path: &NSIndexPath, new_index_path: &NSIndexPath )

source

pub unsafe fn reloadItemsAtIndexPaths(&self, index_paths: &NSArray<NSIndexPath>)

source

pub unsafe fn reconfigureItemsAtIndexPaths( &self, index_paths: &NSArray<NSIndexPath> )

source

pub unsafe fn performBatchUpdates_completion( &self, updates: Option<&Block<dyn Fn() + '_>>, completion: Option<&Block<dyn Fn(Bool)>> )

Available on crate feature block2 only.
source

pub unsafe fn beginInteractiveMovementForItemAtIndexPath( &self, index_path: &NSIndexPath ) -> bool

source

pub unsafe fn updateInteractiveMovementTargetPosition( &self, target_position: CGPoint )

source

pub unsafe fn endInteractiveMovement(&self)

source

pub unsafe fn cancelInteractiveMovement(&self)

source

pub unsafe fn remembersLastFocusedIndexPath(&self) -> bool

source

pub unsafe fn setRemembersLastFocusedIndexPath( &self, remembers_last_focused_index_path: bool )

source

pub unsafe fn selectionFollowsFocus(&self) -> bool

source

pub unsafe fn setSelectionFollowsFocus(&self, selection_follows_focus: bool)

source

pub unsafe fn allowsFocus(&self) -> bool

source

pub unsafe fn setAllowsFocus(&self, allows_focus: bool)

source

pub unsafe fn allowsFocusDuringEditing(&self) -> bool

source

pub unsafe fn setAllowsFocusDuringEditing( &self, allows_focus_during_editing: bool )

source

pub unsafe fn hasActiveDrag(&self) -> bool

source

pub unsafe fn hasActiveDrop(&self) -> bool

source

pub unsafe fn isEditing(&self) -> bool

source

pub unsafe fn setEditing(&self, editing: bool)

source

pub unsafe fn allowsSelectionDuringEditing(&self) -> bool

source

pub unsafe fn setAllowsSelectionDuringEditing( &self, allows_selection_during_editing: bool )

source

pub unsafe fn allowsMultipleSelectionDuringEditing(&self) -> bool

source

pub unsafe fn setAllowsMultipleSelectionDuringEditing( &self, allows_multiple_selection_during_editing: bool )

source§

impl UICollectionView

Methods declared on superclass UIView

source

pub unsafe fn initWithFrame( this: Allocated<Self>, frame: CGRect ) -> Retained<Self>

source§

impl UICollectionView

Methods declared on superclass NSObject

source

pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>

source

pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>

source§

impl UICollectionView

This impl block contains no items.

UIDragAndDrop

Methods from Deref<Target = UIScrollView>§

source

pub unsafe fn contentOffset(&self) -> CGPoint

source

pub unsafe fn setContentOffset(&self, content_offset: CGPoint)

source

pub unsafe fn contentSize(&self) -> CGSize

source

pub unsafe fn setContentSize(&self, content_size: CGSize)

source

pub unsafe fn contentInset(&self) -> UIEdgeInsets

Available on crate feature UIGeometry only.
source

pub unsafe fn setContentInset(&self, content_inset: UIEdgeInsets)

Available on crate feature UIGeometry only.
source

pub unsafe fn contentAlignmentPoint(&self) -> CGPoint

source

pub unsafe fn setContentAlignmentPoint(&self, content_alignment_point: CGPoint)

source

pub unsafe fn adjustedContentInset(&self) -> UIEdgeInsets

Available on crate feature UIGeometry only.
source

pub unsafe fn adjustedContentInsetDidChange(&self)

source

pub unsafe fn contentInsetAdjustmentBehavior( &self ) -> UIScrollViewContentInsetAdjustmentBehavior

source

pub unsafe fn setContentInsetAdjustmentBehavior( &self, content_inset_adjustment_behavior: UIScrollViewContentInsetAdjustmentBehavior )

source

pub unsafe fn automaticallyAdjustsScrollIndicatorInsets(&self) -> bool

source

pub unsafe fn setAutomaticallyAdjustsScrollIndicatorInsets( &self, automatically_adjusts_scroll_indicator_insets: bool )

source

pub unsafe fn contentLayoutGuide(&self) -> Retained<UILayoutGuide>

Available on crate feature UILayoutGuide only.
source

pub unsafe fn frameLayoutGuide(&self) -> Retained<UILayoutGuide>

Available on crate feature UILayoutGuide only.
source

pub unsafe fn delegate( &self ) -> Option<Retained<ProtocolObject<dyn UIScrollViewDelegate>>>

source

pub unsafe fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn UIScrollViewDelegate>> )

source

pub unsafe fn isDirectionalLockEnabled(&self) -> bool

source

pub unsafe fn setDirectionalLockEnabled(&self, directional_lock_enabled: bool)

source

pub unsafe fn bounces(&self) -> bool

source

pub unsafe fn setBounces(&self, bounces: bool)

source

pub unsafe fn bouncesHorizontally(&self) -> bool

source

pub unsafe fn setBouncesHorizontally(&self, bounces_horizontally: bool)

source

pub unsafe fn bouncesVertically(&self) -> bool

source

pub unsafe fn setBouncesVertically(&self, bounces_vertically: bool)

source

pub unsafe fn alwaysBounceVertical(&self) -> bool

source

pub unsafe fn setAlwaysBounceVertical(&self, always_bounce_vertical: bool)

source

pub unsafe fn alwaysBounceHorizontal(&self) -> bool

source

pub unsafe fn setAlwaysBounceHorizontal(&self, always_bounce_horizontal: bool)

source

pub unsafe fn isPagingEnabled(&self) -> bool

source

pub unsafe fn setPagingEnabled(&self, paging_enabled: bool)

source

pub unsafe fn isScrollEnabled(&self) -> bool

source

pub unsafe fn setScrollEnabled(&self, scroll_enabled: bool)

source

pub unsafe fn transfersHorizontalScrollingToParent(&self) -> bool

source

pub unsafe fn setTransfersHorizontalScrollingToParent( &self, transfers_horizontal_scrolling_to_parent: bool )

source

pub unsafe fn transfersVerticalScrollingToParent(&self) -> bool

source

pub unsafe fn setTransfersVerticalScrollingToParent( &self, transfers_vertical_scrolling_to_parent: bool )

source

pub unsafe fn showsVerticalScrollIndicator(&self) -> bool

source

pub unsafe fn setShowsVerticalScrollIndicator( &self, shows_vertical_scroll_indicator: bool )

source

pub unsafe fn showsHorizontalScrollIndicator(&self) -> bool

source

pub unsafe fn setShowsHorizontalScrollIndicator( &self, shows_horizontal_scroll_indicator: bool )

source

pub unsafe fn indicatorStyle(&self) -> UIScrollViewIndicatorStyle

source

pub unsafe fn setIndicatorStyle( &self, indicator_style: UIScrollViewIndicatorStyle )

source

pub unsafe fn verticalScrollIndicatorInsets(&self) -> UIEdgeInsets

Available on crate feature UIGeometry only.
source

pub unsafe fn setVerticalScrollIndicatorInsets( &self, vertical_scroll_indicator_insets: UIEdgeInsets )

Available on crate feature UIGeometry only.
source

pub unsafe fn horizontalScrollIndicatorInsets(&self) -> UIEdgeInsets

Available on crate feature UIGeometry only.
source

pub unsafe fn setHorizontalScrollIndicatorInsets( &self, horizontal_scroll_indicator_insets: UIEdgeInsets )

Available on crate feature UIGeometry only.
source

pub unsafe fn scrollIndicatorInsets(&self) -> UIEdgeInsets

Available on crate feature UIGeometry only.
source

pub unsafe fn setScrollIndicatorInsets( &self, scroll_indicator_insets: UIEdgeInsets )

Available on crate feature UIGeometry only.
source

pub unsafe fn decelerationRate(&self) -> UIScrollViewDecelerationRate

source

pub unsafe fn setDecelerationRate( &self, deceleration_rate: UIScrollViewDecelerationRate )

source

pub unsafe fn indexDisplayMode(&self) -> UIScrollViewIndexDisplayMode

source

pub unsafe fn setIndexDisplayMode( &self, index_display_mode: UIScrollViewIndexDisplayMode )

source

pub unsafe fn setContentOffset_animated( &self, content_offset: CGPoint, animated: bool )

source

pub unsafe fn scrollRectToVisible_animated(&self, rect: CGRect, animated: bool)

source

pub unsafe fn flashScrollIndicators(&self)

source

pub unsafe fn withScrollIndicatorsShownForContentOffsetChanges( &self, changes: &Block<dyn Fn() + '_> )

Available on crate feature block2 only.
source

pub unsafe fn isTracking(&self) -> bool

source

pub unsafe fn isDragging(&self) -> bool

source

pub unsafe fn isDecelerating(&self) -> bool

source

pub unsafe fn isScrollAnimating(&self) -> bool

source

pub unsafe fn delaysContentTouches(&self) -> bool

source

pub unsafe fn setDelaysContentTouches(&self, delays_content_touches: bool)

source

pub unsafe fn canCancelContentTouches(&self) -> bool

source

pub unsafe fn setCanCancelContentTouches( &self, can_cancel_content_touches: bool )

source

pub unsafe fn touchesShouldBegin_withEvent_inContentView( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, view: &UIView ) -> bool

Available on crate features UIEvent and UITouch only.
source

pub unsafe fn touchesShouldCancelInContentView(&self, view: &UIView) -> bool

source

pub unsafe fn minimumZoomScale(&self) -> CGFloat

source

pub unsafe fn setMinimumZoomScale(&self, minimum_zoom_scale: CGFloat)

source

pub unsafe fn maximumZoomScale(&self) -> CGFloat

source

pub unsafe fn setMaximumZoomScale(&self, maximum_zoom_scale: CGFloat)

source

pub unsafe fn zoomScale(&self) -> CGFloat

source

pub unsafe fn setZoomScale(&self, zoom_scale: CGFloat)

source

pub unsafe fn setZoomScale_animated(&self, scale: CGFloat, animated: bool)

source

pub unsafe fn zoomToRect_animated(&self, rect: CGRect, animated: bool)

source

pub unsafe fn bouncesZoom(&self) -> bool

source

pub unsafe fn setBouncesZoom(&self, bounces_zoom: bool)

source

pub unsafe fn isZooming(&self) -> bool

source

pub unsafe fn isZoomBouncing(&self) -> bool

source

pub unsafe fn isZoomAnimating(&self) -> bool

source

pub unsafe fn scrollsToTop(&self) -> bool

source

pub unsafe fn setScrollsToTop(&self, scrolls_to_top: bool)

source

pub unsafe fn stopScrollingAndZooming(&self)

source

pub unsafe fn panGestureRecognizer(&self) -> Retained<UIPanGestureRecognizer>

Available on crate features UIGestureRecognizer and UIPanGestureRecognizer only.
source

pub unsafe fn pinchGestureRecognizer( &self ) -> Option<Retained<UIPinchGestureRecognizer>>

Available on crate features UIGestureRecognizer and UIPinchGestureRecognizer only.
source

pub unsafe fn directionalPressGestureRecognizer( &self ) -> Retained<UIGestureRecognizer>

👎Deprecated: Configuring the panGestureRecognizer for indirect scrolling automatically supports directional presses now, so this property is no longer useful.
Available on crate feature UIGestureRecognizer only.
source

pub unsafe fn keyboardDismissMode(&self) -> UIScrollViewKeyboardDismissMode

source

pub unsafe fn setKeyboardDismissMode( &self, keyboard_dismiss_mode: UIScrollViewKeyboardDismissMode )

source

pub unsafe fn refreshControl(&self) -> Option<Retained<UIRefreshControl>>

Available on crate features UIControl and UIRefreshControl only.
source

pub unsafe fn setRefreshControl( &self, refresh_control: Option<&UIRefreshControl> )

Available on crate features UIControl and UIRefreshControl only.
source

pub unsafe fn allowsKeyboardScrolling(&self) -> bool

source

pub unsafe fn setAllowsKeyboardScrolling(&self, allows_keyboard_scrolling: bool)

Methods from Deref<Target = UIView>§

source

pub unsafe fn accessibilityIgnoresInvertColors(&self) -> bool

Available on crate feature UIAccessibilityAdditions only.
source

pub unsafe fn setAccessibilityIgnoresInvertColors( &self, accessibility_ignores_invert_colors: bool )

Available on crate feature UIAccessibilityAdditions only.
source

pub unsafe fn hoverStyle(&self) -> Option<Retained<UIHoverStyle>>

Available on crate feature UIHoverStyle only.
source

pub unsafe fn setHoverStyle(&self, hover_style: Option<&UIHoverStyle>)

Available on crate feature UIHoverStyle only.
source

pub unsafe fn addInteraction( &self, interaction: &ProtocolObject<dyn UIInteraction> )

Available on crate feature UIInteraction only.
source

pub unsafe fn removeInteraction( &self, interaction: &ProtocolObject<dyn UIInteraction> )

Available on crate feature UIInteraction only.
source

pub unsafe fn interactions( &self ) -> Retained<NSArray<ProtocolObject<dyn UIInteraction>>>

Available on crate feature UIInteraction only.
source

pub unsafe fn setInteractions( &self, interactions: &NSArray<ProtocolObject<dyn UIInteraction>> )

Available on crate feature UIInteraction only.
source

pub unsafe fn showsLargeContentViewer(&self) -> bool

Available on crate feature UILargeContentViewer only.
source

pub unsafe fn setShowsLargeContentViewer( &self, shows_large_content_viewer: bool )

Available on crate feature UILargeContentViewer only.
source

pub unsafe fn largeContentTitle(&self) -> Option<Retained<NSString>>

Available on crate feature UILargeContentViewer only.
source

pub unsafe fn setLargeContentTitle( &self, large_content_title: Option<&NSString> )

Available on crate feature UILargeContentViewer only.
source

pub unsafe fn largeContentImage(&self) -> Option<Retained<UIImage>>

Available on crate features UILargeContentViewer and UIImage only.
source

pub unsafe fn setLargeContentImage(&self, large_content_image: Option<&UIImage>)

Available on crate features UILargeContentViewer and UIImage only.
source

pub unsafe fn scalesLargeContentImage(&self) -> bool

Available on crate feature UILargeContentViewer only.
source

pub unsafe fn setScalesLargeContentImage( &self, scales_large_content_image: bool )

Available on crate feature UILargeContentViewer only.
source

pub unsafe fn largeContentImageInsets(&self) -> UIEdgeInsets

Available on crate features UILargeContentViewer and UIGeometry only.
source

pub unsafe fn setLargeContentImageInsets( &self, large_content_image_insets: UIEdgeInsets )

Available on crate features UILargeContentViewer and UIGeometry only.
source

pub unsafe fn viewPrintFormatter(&self) -> Retained<UIViewPrintFormatter>

Available on crate feature UIPrintFormatter only.
source

pub unsafe fn drawRect_forViewPrintFormatter( &self, rect: CGRect, formatter: &UIViewPrintFormatter )

Available on crate feature UIPrintFormatter only.
source

pub unsafe fn endEditing(&self, force: bool) -> bool

Available on crate feature UITextField only.
source

pub unsafe fn isUserInteractionEnabled(&self) -> bool

source

pub unsafe fn setUserInteractionEnabled(&self, user_interaction_enabled: bool)

source

pub unsafe fn tag(&self) -> NSInteger

source

pub unsafe fn setTag(&self, tag: NSInteger)

source

pub fn layer(&self) -> Retained<CALayer>

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

pub unsafe fn canBecomeFocused(&self) -> bool

source

pub unsafe fn isFocused(&self) -> bool

source

pub unsafe fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>

source

pub unsafe fn setFocusGroupIdentifier( &self, focus_group_identifier: Option<&NSString> )

source

pub unsafe fn focusGroupPriority(&self) -> UIFocusGroupPriority

Available on crate feature UIFocus only.
source

pub unsafe fn setFocusGroupPriority( &self, focus_group_priority: UIFocusGroupPriority )

Available on crate feature UIFocus only.
source

pub unsafe fn focusEffect(&self) -> Option<Retained<UIFocusEffect>>

Available on crate feature UIFocusEffect only.
source

pub unsafe fn setFocusEffect(&self, focus_effect: Option<&UIFocusEffect>)

Available on crate feature UIFocusEffect only.
source

pub unsafe fn semanticContentAttribute(&self) -> UISemanticContentAttribute

source

pub unsafe fn setSemanticContentAttribute( &self, semantic_content_attribute: UISemanticContentAttribute )

source

pub unsafe fn effectiveUserInterfaceLayoutDirection( &self ) -> UIUserInterfaceLayoutDirection

Available on crate feature UIInterface only.
source

pub fn frame(&self) -> CGRect

source

pub fn setFrame(&self, frame: CGRect)

source

pub fn bounds(&self) -> CGRect

source

pub fn setBounds(&self, bounds: CGRect)

source

pub unsafe fn center(&self) -> CGPoint

source

pub unsafe fn setCenter(&self, center: CGPoint)

source

pub unsafe fn transform3D(&self) -> CATransform3D

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

pub unsafe fn setTransform3D(&self, transform3_d: CATransform3D)

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

pub fn contentScaleFactor(&self) -> CGFloat

source

pub fn setContentScaleFactor(&self, content_scale_factor: CGFloat)

source

pub unsafe fn anchorPoint(&self) -> CGPoint

source

pub unsafe fn setAnchorPoint(&self, anchor_point: CGPoint)

source

pub unsafe fn isMultipleTouchEnabled(&self) -> bool

source

pub fn setMultipleTouchEnabled(&self, multiple_touch_enabled: bool)

source

pub unsafe fn isExclusiveTouch(&self) -> bool

source

pub unsafe fn setExclusiveTouch(&self, exclusive_touch: bool)

source

pub unsafe fn hitTest_withEvent( &self, point: CGPoint, event: Option<&UIEvent> ) -> Option<Retained<UIView>>

Available on crate feature UIEvent only.
source

pub unsafe fn pointInside_withEvent( &self, point: CGPoint, event: Option<&UIEvent> ) -> bool

Available on crate feature UIEvent only.
source

pub unsafe fn convertPoint_toView( &self, point: CGPoint, view: Option<&UIView> ) -> CGPoint

source

pub unsafe fn convertPoint_fromView( &self, point: CGPoint, view: Option<&UIView> ) -> CGPoint

source

pub unsafe fn convertRect_toView( &self, rect: CGRect, view: Option<&UIView> ) -> CGRect

source

pub unsafe fn convertRect_fromView( &self, rect: CGRect, view: Option<&UIView> ) -> CGRect

source

pub unsafe fn autoresizesSubviews(&self) -> bool

source

pub unsafe fn setAutoresizesSubviews(&self, autoresizes_subviews: bool)

source

pub unsafe fn autoresizingMask(&self) -> UIViewAutoresizing

source

pub unsafe fn setAutoresizingMask(&self, autoresizing_mask: UIViewAutoresizing)

source

pub unsafe fn sizeThatFits(&self, size: CGSize) -> CGSize

source

pub unsafe fn sizeToFit(&self)

source

pub fn superview(&self) -> Option<Retained<UIView>>

source

pub fn subviews(&self) -> Retained<NSArray<UIView>>

source

pub fn window(&self) -> Option<Retained<UIWindow>>

Available on crate feature UIWindow only.
source

pub unsafe fn removeFromSuperview(&self)

source

pub unsafe fn insertSubview_atIndex(&self, view: &UIView, index: NSInteger)

source

pub unsafe fn exchangeSubviewAtIndex_withSubviewAtIndex( &self, index1: NSInteger, index2: NSInteger )

source

pub unsafe fn addSubview(&self, view: &UIView)

source

pub unsafe fn insertSubview_belowSubview( &self, view: &UIView, sibling_subview: &UIView )

source

pub unsafe fn insertSubview_aboveSubview( &self, view: &UIView, sibling_subview: &UIView )

source

pub unsafe fn bringSubviewToFront(&self, view: &UIView)

source

pub unsafe fn sendSubviewToBack(&self, view: &UIView)

source

pub unsafe fn didAddSubview(&self, subview: &UIView)

source

pub unsafe fn willRemoveSubview(&self, subview: &UIView)

source

pub unsafe fn willMoveToSuperview(&self, new_superview: Option<&UIView>)

source

pub unsafe fn didMoveToSuperview(&self)

source

pub unsafe fn willMoveToWindow(&self, new_window: Option<&UIWindow>)

Available on crate feature UIWindow only.
source

pub unsafe fn didMoveToWindow(&self)

source

pub unsafe fn isDescendantOfView(&self, view: &UIView) -> bool

source

pub unsafe fn viewWithTag(&self, tag: NSInteger) -> Option<Retained<UIView>>

source

pub unsafe fn setNeedsLayout(&self)

source

pub unsafe fn layoutIfNeeded(&self)

source

pub unsafe fn layoutSubviews(&self)

source

pub unsafe fn layoutMargins(&self) -> UIEdgeInsets

Available on crate feature UIGeometry only.
source

pub unsafe fn setLayoutMargins(&self, layout_margins: UIEdgeInsets)

Available on crate feature UIGeometry only.
source

pub unsafe fn directionalLayoutMargins(&self) -> NSDirectionalEdgeInsets

Available on crate feature UIGeometry only.
source

pub unsafe fn setDirectionalLayoutMargins( &self, directional_layout_margins: NSDirectionalEdgeInsets )

Available on crate feature UIGeometry only.
source

pub unsafe fn preservesSuperviewLayoutMargins(&self) -> bool

source

pub unsafe fn setPreservesSuperviewLayoutMargins( &self, preserves_superview_layout_margins: bool )

source

pub unsafe fn insetsLayoutMarginsFromSafeArea(&self) -> bool

source

pub unsafe fn setInsetsLayoutMarginsFromSafeArea( &self, insets_layout_margins_from_safe_area: bool )

source

pub unsafe fn layoutMarginsDidChange(&self)

source

pub fn safeAreaInsets(&self) -> UIEdgeInsets

Available on crate feature UIGeometry only.
source

pub unsafe fn safeAreaInsetsDidChange(&self)

source

pub unsafe fn layoutMarginsGuide(&self) -> Retained<UILayoutGuide>

Available on crate feature UILayoutGuide only.
source

pub unsafe fn readableContentGuide(&self) -> Retained<UILayoutGuide>

Available on crate feature UILayoutGuide only.
source

pub unsafe fn safeAreaLayoutGuide(&self) -> Retained<UILayoutGuide>

Available on crate feature UILayoutGuide only.
source

pub unsafe fn keyboardLayoutGuide(&self) -> Retained<UIKeyboardLayoutGuide>

Available on crate features UIKeyboardLayoutGuide and UILayoutGuide and UITrackingLayoutGuide only.
source

pub unsafe fn drawRect(&self, rect: CGRect)

source

pub fn setNeedsDisplay(&self)

source

pub unsafe fn setNeedsDisplayInRect(&self, rect: CGRect)

source

pub unsafe fn clipsToBounds(&self) -> bool

source

pub unsafe fn setClipsToBounds(&self, clips_to_bounds: bool)

source

pub fn backgroundColor(&self) -> Option<Retained<UIColor>>

Available on crate feature UIColor only.
source

pub fn setBackgroundColor(&self, background_color: Option<&UIColor>)

Available on crate feature UIColor only.
source

pub unsafe fn alpha(&self) -> CGFloat

source

pub unsafe fn setAlpha(&self, alpha: CGFloat)

source

pub unsafe fn isOpaque(&self) -> bool

source

pub unsafe fn setOpaque(&self, opaque: bool)

source

pub unsafe fn clearsContextBeforeDrawing(&self) -> bool

source

pub unsafe fn setClearsContextBeforeDrawing( &self, clears_context_before_drawing: bool )

source

pub fn isHidden(&self) -> bool

source

pub fn setHidden(&self, hidden: bool)

source

pub unsafe fn contentMode(&self) -> UIViewContentMode

source

pub unsafe fn setContentMode(&self, content_mode: UIViewContentMode)

source

pub unsafe fn contentStretch(&self) -> CGRect

👎Deprecated
source

pub unsafe fn setContentStretch(&self, content_stretch: CGRect)

👎Deprecated
source

pub unsafe fn maskView(&self) -> Option<Retained<UIView>>

source

pub unsafe fn setMaskView(&self, mask_view: Option<&UIView>)

source

pub unsafe fn tintColor(&self) -> Option<Retained<UIColor>>

Available on crate feature UIColor only.
source

pub unsafe fn setTintColor(&self, tint_color: Option<&UIColor>)

Available on crate feature UIColor only.
source

pub unsafe fn tintAdjustmentMode(&self) -> UIViewTintAdjustmentMode

source

pub unsafe fn setTintAdjustmentMode( &self, tint_adjustment_mode: UIViewTintAdjustmentMode )

source

pub unsafe fn tintColorDidChange(&self)

source

pub fn gestureRecognizers( &self ) -> Option<Retained<NSArray<UIGestureRecognizer>>>

Available on crate feature UIGestureRecognizer only.
source

pub unsafe fn setGestureRecognizers( &self, gesture_recognizers: Option<&NSArray<UIGestureRecognizer>> )

Available on crate feature UIGestureRecognizer only.
source

pub fn addGestureRecognizer(&self, gesture_recognizer: &UIGestureRecognizer)

Available on crate feature UIGestureRecognizer only.
source

pub fn removeGestureRecognizer(&self, gesture_recognizer: &UIGestureRecognizer)

Available on crate feature UIGestureRecognizer only.
source

pub fn gestureRecognizerShouldBegin( &self, gesture_recognizer: &UIGestureRecognizer ) -> bool

Available on crate feature UIGestureRecognizer only.
source

pub unsafe fn addMotionEffect(&self, effect: &UIMotionEffect)

Available on crate feature UIMotionEffect only.
source

pub unsafe fn removeMotionEffect(&self, effect: &UIMotionEffect)

Available on crate feature UIMotionEffect only.
source

pub unsafe fn motionEffects(&self) -> Retained<NSArray<UIMotionEffect>>

Available on crate feature UIMotionEffect only.
source

pub unsafe fn setMotionEffects(&self, motion_effects: &NSArray<UIMotionEffect>)

Available on crate feature UIMotionEffect only.
source

pub unsafe fn constraints(&self) -> Retained<NSArray<NSLayoutConstraint>>

Available on crate feature NSLayoutConstraint only.
source

pub unsafe fn addConstraint(&self, constraint: &NSLayoutConstraint)

Available on crate feature NSLayoutConstraint only.
source

pub unsafe fn addConstraints(&self, constraints: &NSArray<NSLayoutConstraint>)

Available on crate feature NSLayoutConstraint only.
source

pub unsafe fn removeConstraint(&self, constraint: &NSLayoutConstraint)

Available on crate feature NSLayoutConstraint only.
source

pub unsafe fn removeConstraints( &self, constraints: &NSArray<NSLayoutConstraint> )

Available on crate feature NSLayoutConstraint only.
source

pub unsafe fn updateConstraintsIfNeeded(&self)

source

pub unsafe fn updateConstraints(&self)

source

pub unsafe fn needsUpdateConstraints(&self) -> bool

source

pub unsafe fn setNeedsUpdateConstraints(&self)

source

pub unsafe fn translatesAutoresizingMaskIntoConstraints(&self) -> bool

source

pub unsafe fn setTranslatesAutoresizingMaskIntoConstraints( &self, translates_autoresizing_mask_into_constraints: bool )

source

pub unsafe fn alignmentRectForFrame(&self, frame: CGRect) -> CGRect

source

pub unsafe fn frameForAlignmentRect(&self, alignment_rect: CGRect) -> CGRect

source

pub unsafe fn alignmentRectInsets(&self) -> UIEdgeInsets

Available on crate feature UIGeometry only.
source

pub unsafe fn viewForBaselineLayout(&self) -> Retained<UIView>

👎Deprecated: Override -viewForFirstBaselineLayout or -viewForLastBaselineLayout as appropriate, instead
source

pub unsafe fn viewForFirstBaselineLayout(&self) -> Retained<UIView>

source

pub unsafe fn viewForLastBaselineLayout(&self) -> Retained<UIView>

source

pub unsafe fn intrinsicContentSize(&self) -> CGSize

source

pub unsafe fn invalidateIntrinsicContentSize(&self)

source

pub unsafe fn contentHuggingPriorityForAxis( &self, axis: UILayoutConstraintAxis ) -> UILayoutPriority

Available on crate feature NSLayoutConstraint only.
source

pub unsafe fn setContentHuggingPriority_forAxis( &self, priority: UILayoutPriority, axis: UILayoutConstraintAxis )

Available on crate feature NSLayoutConstraint only.
source

pub unsafe fn contentCompressionResistancePriorityForAxis( &self, axis: UILayoutConstraintAxis ) -> UILayoutPriority

Available on crate feature NSLayoutConstraint only.
source

pub unsafe fn setContentCompressionResistancePriority_forAxis( &self, priority: UILayoutPriority, axis: UILayoutConstraintAxis )

Available on crate feature NSLayoutConstraint only.
source

pub unsafe fn systemLayoutSizeFittingSize(&self, target_size: CGSize) -> CGSize

source

pub unsafe fn systemLayoutSizeFittingSize_withHorizontalFittingPriority_verticalFittingPriority( &self, target_size: CGSize, horizontal_fitting_priority: UILayoutPriority, vertical_fitting_priority: UILayoutPriority ) -> CGSize

Available on crate feature NSLayoutConstraint only.
source

pub unsafe fn layoutGuides(&self) -> Retained<NSArray<UILayoutGuide>>

Available on crate feature UILayoutGuide only.
source

pub unsafe fn addLayoutGuide(&self, layout_guide: &UILayoutGuide)

Available on crate feature UILayoutGuide only.
source

pub unsafe fn removeLayoutGuide(&self, layout_guide: &UILayoutGuide)

Available on crate feature UILayoutGuide only.
source

pub unsafe fn leadingAnchor(&self) -> Retained<NSLayoutXAxisAnchor>

Available on crate feature NSLayoutAnchor only.
source

pub unsafe fn trailingAnchor(&self) -> Retained<NSLayoutXAxisAnchor>

Available on crate feature NSLayoutAnchor only.
source

pub unsafe fn leftAnchor(&self) -> Retained<NSLayoutXAxisAnchor>

Available on crate feature NSLayoutAnchor only.
source

pub unsafe fn rightAnchor(&self) -> Retained<NSLayoutXAxisAnchor>

Available on crate feature NSLayoutAnchor only.
source

pub unsafe fn topAnchor(&self) -> Retained<NSLayoutYAxisAnchor>

Available on crate feature NSLayoutAnchor only.
source

pub unsafe fn bottomAnchor(&self) -> Retained<NSLayoutYAxisAnchor>

Available on crate feature NSLayoutAnchor only.
source

pub unsafe fn widthAnchor(&self) -> Retained<NSLayoutDimension>

Available on crate feature NSLayoutAnchor only.
source

pub unsafe fn heightAnchor(&self) -> Retained<NSLayoutDimension>

Available on crate feature NSLayoutAnchor only.
source

pub unsafe fn centerXAnchor(&self) -> Retained<NSLayoutXAxisAnchor>

Available on crate feature NSLayoutAnchor only.
source

pub unsafe fn centerYAnchor(&self) -> Retained<NSLayoutYAxisAnchor>

Available on crate feature NSLayoutAnchor only.
source

pub unsafe fn firstBaselineAnchor(&self) -> Retained<NSLayoutYAxisAnchor>

Available on crate feature NSLayoutAnchor only.
source

pub unsafe fn lastBaselineAnchor(&self) -> Retained<NSLayoutYAxisAnchor>

Available on crate feature NSLayoutAnchor only.
source

pub unsafe fn constraintsAffectingLayoutForAxis( &self, axis: UILayoutConstraintAxis ) -> Retained<NSArray<NSLayoutConstraint>>

Available on crate feature NSLayoutConstraint only.
source

pub unsafe fn hasAmbiguousLayout(&self) -> bool

source

pub unsafe fn exerciseAmbiguityInLayout(&self)

source

pub unsafe fn restorationIdentifier(&self) -> Option<Retained<NSString>>

source

pub unsafe fn setRestorationIdentifier( &self, restoration_identifier: Option<&NSString> )

source

pub unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)

source

pub unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)

source

pub unsafe fn snapshotViewAfterScreenUpdates( &self, after_updates: bool ) -> Option<Retained<UIView>>

source

pub unsafe fn resizableSnapshotViewFromRect_afterScreenUpdates_withCapInsets( &self, rect: CGRect, after_updates: bool, cap_insets: UIEdgeInsets ) -> Option<Retained<UIView>>

Available on crate feature UIGeometry only.
source

pub unsafe fn drawViewHierarchyInRect_afterScreenUpdates( &self, rect: CGRect, after_updates: bool ) -> bool

source

pub unsafe fn overrideUserInterfaceStyle(&self) -> UIUserInterfaceStyle

Available on crate feature UIInterface only.
source

pub unsafe fn setOverrideUserInterfaceStyle( &self, override_user_interface_style: UIUserInterfaceStyle )

Available on crate feature UIInterface only.
source

pub unsafe fn minimumContentSizeCategory( &self ) -> Option<Retained<UIContentSizeCategory>>

Available on crate feature UIContentSizeCategory only.
source

pub unsafe fn setMinimumContentSizeCategory( &self, minimum_content_size_category: Option<&UIContentSizeCategory> )

Available on crate feature UIContentSizeCategory only.
source

pub unsafe fn maximumContentSizeCategory( &self ) -> Option<Retained<UIContentSizeCategory>>

Available on crate feature UIContentSizeCategory only.
source

pub unsafe fn setMaximumContentSizeCategory( &self, maximum_content_size_category: Option<&UIContentSizeCategory> )

Available on crate feature UIContentSizeCategory only.
source

pub unsafe fn appliedContentSizeCategoryLimitsDescription( &self ) -> Retained<NSString>

source

pub unsafe fn traitOverrides( &self ) -> Retained<ProtocolObject<dyn UITraitOverrides>>

Available on crate feature UITraitCollection only.
source

pub unsafe fn updateTraitsIfNeeded(&self)

Methods from Deref<Target = UIResponder>§

source

pub unsafe fn nextResponder(&self) -> Option<Retained<UIResponder>>

source

pub unsafe fn canBecomeFirstResponder(&self) -> bool

source

pub unsafe fn becomeFirstResponder(&self) -> bool

source

pub unsafe fn canResignFirstResponder(&self) -> bool

source

pub unsafe fn resignFirstResponder(&self) -> bool

source

pub unsafe fn isFirstResponder(&self) -> bool

source

pub unsafe fn touchesBegan_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )

Available on crate features UIEvent and UITouch only.
source

pub unsafe fn touchesMoved_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )

Available on crate features UIEvent and UITouch only.
source

pub unsafe fn touchesEnded_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )

Available on crate features UIEvent and UITouch only.
source

pub unsafe fn touchesCancelled_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )

Available on crate features UIEvent and UITouch only.
source

pub unsafe fn touchesEstimatedPropertiesUpdated(&self, touches: &NSSet<UITouch>)

Available on crate feature UITouch only.
source

pub unsafe fn pressesBegan_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )

Available on crate features UIEvent and UIPress and UIPressesEvent only.
source

pub unsafe fn pressesChanged_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )

Available on crate features UIEvent and UIPress and UIPressesEvent only.
source

pub unsafe fn pressesEnded_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )

Available on crate features UIEvent and UIPress and UIPressesEvent only.
source

pub unsafe fn pressesCancelled_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )

Available on crate features UIEvent and UIPress and UIPressesEvent only.
source

pub unsafe fn motionBegan_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )

Available on crate feature UIEvent only.
source

pub unsafe fn motionEnded_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )

Available on crate feature UIEvent only.
source

pub unsafe fn motionCancelled_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )

Available on crate feature UIEvent only.
source

pub unsafe fn remoteControlReceivedWithEvent(&self, event: Option<&UIEvent>)

Available on crate feature UIEvent only.
source

pub unsafe fn canPerformAction_withSender( &self, action: Sel, sender: Option<&AnyObject> ) -> bool

source

pub unsafe fn targetForAction_withSender( &self, action: Sel, sender: Option<&AnyObject> ) -> Option<Retained<AnyObject>>

source

pub unsafe fn buildMenuWithBuilder( &self, builder: &ProtocolObject<dyn UIMenuBuilder> )

Available on crate feature UIMenuBuilder only.
source

pub unsafe fn validateCommand(&self, command: &UICommand)

Available on crate features UICommand and UIMenuElement only.
source

pub unsafe fn undoManager(&self) -> Option<Retained<NSUndoManager>>

source

pub unsafe fn editingInteractionConfiguration( &self ) -> UIEditingInteractionConfiguration

source

pub unsafe fn keyCommands(&self) -> Option<Retained<NSArray<UIKeyCommand>>>

Available on crate features UICommand and UIKeyCommand and UIMenuElement only.
source

pub unsafe fn inputView(&self) -> Option<Retained<UIView>>

source

pub unsafe fn inputAccessoryView(&self) -> Option<Retained<UIView>>

source

pub unsafe fn inputAssistantItem(&self) -> Retained<UITextInputAssistantItem>

Available on crate feature UITextInput only.
source

pub unsafe fn inputViewController( &self ) -> Option<Retained<UIInputViewController>>

Available on crate features UIInputViewController and UIViewController only.
source

pub unsafe fn inputAccessoryViewController( &self ) -> Option<Retained<UIInputViewController>>

Available on crate features UIInputViewController and UIViewController only.
source

pub unsafe fn textInputMode(&self) -> Option<Retained<UITextInputMode>>

Available on crate feature UITextInput only.
source

pub unsafe fn textInputContextIdentifier(&self) -> Option<Retained<NSString>>

source

pub unsafe fn reloadInputViews(&self)

source

pub unsafe fn userActivity(&self) -> Option<Retained<NSUserActivity>>

source

pub unsafe fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)

source

pub unsafe fn updateUserActivityState(&self, activity: &NSUserActivity)

source

pub unsafe fn restoreUserActivityState(&self, activity: &NSUserActivity)

source

pub unsafe fn captureTextFromCamera(&self, sender: Option<&AnyObject>)

source

pub unsafe fn activityItemsConfiguration( &self ) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationReading>>>

Available on crate features UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.
source

pub unsafe fn setActivityItemsConfiguration( &self, activity_items_configuration: Option<&ProtocolObject<dyn UIActivityItemsConfigurationReading>> )

Available on crate features UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.

Methods from Deref<Target = NSObject>§

source

pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !

Handle messages the object doesn’t recognize.

See Apple’s documentation for details.

Methods from Deref<Target = AnyObject>§

source

pub fn class(&self) -> &'static AnyClass

Available on crate feature UIIndirectScribbleInteraction only.

Dynamically find the class of this object.

§Example

Check that an instance of NSObject has the precise class NSObject.

use objc2::ClassType;
use objc2::runtime::NSObject;

let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
source

pub unsafe fn get_ivar<T>(&self, name: &str) -> &T
where T: Encode,

👎Deprecated: this is difficult to use correctly, use Ivar::load instead.
Available on crate feature UIIndirectScribbleInteraction only.

Use Ivar::load instead.

§Safety

The object must have an instance variable with the given name, and it must be of type T.

See Ivar::load_ptr for details surrounding this.

source

pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut T
where T: Encode,

👎Deprecated: this is difficult to use correctly, use Ivar::load_mut instead.
Available on crate feature UIIndirectScribbleInteraction only.

Use Ivar::load_mut instead.

§Safety

The object must have an instance variable with the given name, and it must be of type T.

See Ivar::load_ptr for details surrounding this.

Trait Implementations§

source§

impl AsMut<AnyObject> for UICollectionView

source§

fn as_mut(&mut self) -> &mut AnyObject

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<NSObject> for UICollectionView

source§

fn as_mut(&mut self) -> &mut NSObject

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UICollectionView> for UICollectionView

source§

fn as_mut(&mut self) -> &mut Self

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIResponder> for UICollectionView

source§

fn as_mut(&mut self) -> &mut UIResponder

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIScrollView> for UICollectionView

source§

fn as_mut(&mut self) -> &mut UIScrollView

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<UIView> for UICollectionView

source§

fn as_mut(&mut self) -> &mut UIView

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<AnyObject> for UICollectionView

source§

fn as_ref(&self) -> &AnyObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<NSObject> for UICollectionView

source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UICollectionView> for UICollectionView

source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIResponder> for UICollectionView

source§

fn as_ref(&self) -> &UIResponder

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIScrollView> for UICollectionView

source§

fn as_ref(&self) -> &UIScrollView

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<UIView> for UICollectionView

source§

fn as_ref(&self) -> &UIView

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<AnyObject> for UICollectionView

source§

fn borrow(&self) -> &AnyObject

Immutably borrows from an owned value. Read more
source§

impl Borrow<NSObject> for UICollectionView

source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIResponder> for UICollectionView

source§

fn borrow(&self) -> &UIResponder

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIScrollView> for UICollectionView

source§

fn borrow(&self) -> &UIScrollView

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIView> for UICollectionView

source§

fn borrow(&self) -> &UIView

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<AnyObject> for UICollectionView

source§

fn borrow_mut(&mut self) -> &mut AnyObject

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<NSObject> for UICollectionView

source§

fn borrow_mut(&mut self) -> &mut NSObject

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIResponder> for UICollectionView

source§

fn borrow_mut(&mut self) -> &mut UIResponder

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIScrollView> for UICollectionView

source§

fn borrow_mut(&mut self) -> &mut UIScrollView

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIView> for UICollectionView

source§

fn borrow_mut(&mut self) -> &mut UIView

Mutably borrows from an owned value. Read more
source§

impl CALayerDelegate for UICollectionView

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

unsafe fn displayLayer(&self, layer: &CALayer)
where Self: Sized + Message,

source§

unsafe fn layerWillDraw(&self, layer: &CALayer)
where Self: Sized + Message,

source§

unsafe fn layoutSublayersOfLayer(&self, layer: &CALayer)
where Self: Sized + Message,

source§

unsafe fn actionForLayer_forKey( &self, layer: &CALayer, event: &NSString ) -> Option<Retained<ProtocolObject<dyn CAAction>>>
where Self: Sized + Message,

source§

impl ClassType for UICollectionView

§

type Super = UIScrollView

The superclass of this class. Read more
§

type Mutability = MainThreadOnly

Whether the type is mutable or immutable. Read more
source§

const NAME: &'static str = "UICollectionView"

The name of the Objective-C class that this type represents. Read more
source§

fn class() -> &'static AnyClass

Get a reference to the Objective-C class that this type represents. Read more
source§

fn as_super(&self) -> &Self::Super

Get an immutable reference to the superclass.
source§

fn as_super_mut(&mut self) -> &mut Self::Super

Get a mutable reference to the superclass.
source§

fn retain(&self) -> Retained<Self>
where Self: IsRetainable + Sized,

Increment the reference count of the receiver. Read more
source§

impl Debug for UICollectionView

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for UICollectionView

§

type Target = UIScrollView

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for UICollectionView

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl Hash for UICollectionView

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl NSCoding for UICollectionView

source§

unsafe fn encodeWithCoder(&self, coder: &NSCoder)
where Self: Sized + Message,

Available on crate feature NSCoder only.
source§

unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Option<Retained<Self>>
where Self: Sized + Message,

Available on crate feature NSCoder only.
source§

impl NSObjectProtocol for UICollectionView

source§

fn isEqual(&self, other: &AnyObject) -> bool
where Self: Sized + Message,

Check whether the object is equal to an arbitrary other object. Read more
source§

fn hash(&self) -> usize
where Self: Sized + Message,

An integer that can be used as a table address in a hash table structure. Read more
source§

fn isKindOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

Check if the object is an instance of the class, or one of its subclasses. Read more
source§

fn is_kind_of<T>(&self) -> bool
where T: ClassType, Self: Sized + Message,

Check if the object is an instance of the class type, or one of its subclasses. Read more
source§

fn isMemberOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

Check if the object is an instance of a specific class, without checking subclasses. Read more
source§

fn respondsToSelector(&self, aSelector: Sel) -> bool
where Self: Sized + Message,

Check whether the object implements or inherits a method with the given selector. Read more
source§

fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
where Self: Sized + Message,

Check whether the object conforms to a given protocol. Read more
source§

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

A textual representation of the object. Read more
source§

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

A textual representation of the object to use when debugging. Read more
source§

fn isProxy(&self) -> bool
where Self: Sized + Message,

Check whether the receiver is a subclass of the NSProxy root class instead of the usual NSObject. Read more
source§

fn retainCount(&self) -> usize
where Self: Sized + Message,

The reference count of the object. Read more
source§

impl PartialEq for UICollectionView

source§

fn eq(&self, other: &UICollectionView) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl RefEncode for UICollectionView

source§

const ENCODING_REF: Encoding = <UIScrollView as ::objc2::RefEncode>::ENCODING_REF

The Objective-C type-encoding for a reference of this type. Read more
source§

impl UIAppearance for UICollectionView

Available on crate feature UIAppearance only.
source§

unsafe fn appearance(mtm: MainThreadMarker) -> Retained<Self>
where Self: Sized + ClassType,

source§

unsafe fn appearanceWhenContainedInInstancesOfClasses( container_types: &NSArray<TodoClass>, mtm: MainThreadMarker ) -> Retained<Self>
where Self: Sized + ClassType,

source§

unsafe fn appearanceForTraitCollection( trait: &UITraitCollection, mtm: MainThreadMarker ) -> Retained<Self>
where Self: Sized + ClassType,

Available on crate feature UITraitCollection only.
source§

unsafe fn appearanceForTraitCollection_whenContainedInInstancesOfClasses( trait: &UITraitCollection, container_types: &NSArray<TodoClass>, mtm: MainThreadMarker ) -> Retained<Self>
where Self: Sized + ClassType,

Available on crate feature UITraitCollection only.
source§

impl UICoordinateSpace for UICollectionView

source§

fn convertPoint_toCoordinateSpace( &self, point: CGPoint, coordinate_space: &ProtocolObject<dyn UICoordinateSpace> ) -> CGPoint
where Self: Sized + Message,

source§

fn convertPoint_fromCoordinateSpace( &self, point: CGPoint, coordinate_space: &ProtocolObject<dyn UICoordinateSpace> ) -> CGPoint
where Self: Sized + Message,

source§

fn convertRect_toCoordinateSpace( &self, rect: CGRect, coordinate_space: &ProtocolObject<dyn UICoordinateSpace> ) -> CGRect
where Self: Sized + Message,

source§

fn convertRect_fromCoordinateSpace( &self, rect: CGRect, coordinate_space: &ProtocolObject<dyn UICoordinateSpace> ) -> CGRect
where Self: Sized + Message,

source§

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

source§

impl UIDataSourceTranslating for UICollectionView

Available on crate feature UIDataSourceTranslating only.
source§

unsafe fn presentationSectionIndexForDataSourceSectionIndex( &self, data_source_section_index: NSInteger ) -> NSInteger
where Self: Sized + Message,

source§

unsafe fn dataSourceSectionIndexForPresentationSectionIndex( &self, presentation_section_index: NSInteger ) -> NSInteger
where Self: Sized + Message,

source§

unsafe fn presentationIndexPathForDataSourceIndexPath( &self, data_source_index_path: Option<&NSIndexPath> ) -> Option<Retained<NSIndexPath>>
where Self: Sized + Message,

source§

unsafe fn dataSourceIndexPathForPresentationIndexPath( &self, presentation_index_path: Option<&NSIndexPath> ) -> Option<Retained<NSIndexPath>>
where Self: Sized + Message,

source§

unsafe fn performUsingPresentationValues( &self, actions_to_translate: &Block<dyn Fn() + '_> )
where Self: Sized + Message,

Available on crate feature block2 only.
source§

impl UIDynamicItem for UICollectionView

Available on crate feature UIDynamicBehavior only.
source§

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

source§

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

source§

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

source§

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

source§

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

source§

unsafe fn collisionBoundsType(&self) -> UIDynamicItemCollisionBoundsType
where Self: Sized + Message,

source§

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

Available on crate feature UIBezierPath only.
source§

impl UIFocusEnvironment for UICollectionView

Available on crate feature UIFocus only.
source§

unsafe fn preferredFocusEnvironments( &self ) -> Retained<NSArray<ProtocolObject<dyn UIFocusEnvironment>>>
where Self: Sized + Message,

source§

unsafe fn parentFocusEnvironment( &self ) -> Option<Retained<ProtocolObject<dyn UIFocusEnvironment>>>
where Self: Sized + Message,

source§

unsafe fn focusItemContainer( &self ) -> Option<Retained<ProtocolObject<dyn UIFocusItemContainer>>>
where Self: Sized + Message,

source§

unsafe fn setNeedsFocusUpdate(&self)
where Self: Sized + Message,

source§

unsafe fn updateFocusIfNeeded(&self)
where Self: Sized + Message,

source§

unsafe fn shouldUpdateFocusInContext( &self, context: &UIFocusUpdateContext ) -> bool
where Self: Sized + Message,

source§

unsafe fn didUpdateFocusInContext_withAnimationCoordinator( &self, context: &UIFocusUpdateContext, coordinator: &UIFocusAnimationCoordinator )
where Self: Sized + Message,

Available on crate feature UIFocusAnimationCoordinator only.
source§

unsafe fn soundIdentifierForFocusUpdateInContext( &self, context: &UIFocusUpdateContext ) -> Option<Retained<UIFocusSoundIdentifier>>
where Self: Sized + Message,

source§

unsafe fn preferredFocusedView(&self) -> Option<Retained<UIView>>
where Self: Sized + Message,

👎Deprecated
source§

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

source§

impl UIFocusItem for UICollectionView

Available on crate feature UIFocus only.
source§

unsafe fn canBecomeFocused(&self) -> bool
where Self: Sized + Message,

source§

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

source§

unsafe fn focusEffect(&self) -> Option<Retained<UIFocusEffect>>
where Self: Sized + Message,

Available on crate feature UIFocusEffect only.
source§

unsafe fn focusGroupPriority(&self) -> UIFocusGroupPriority
where Self: Sized + Message,

source§

unsafe fn isTransparentFocusItem(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn didHintFocusMovement(&self, hint: &UIFocusMovementHint)
where Self: Sized + Message,

Available on crate feature UIFocusMovementHint only.
source§

impl UIFocusItemContainer for UICollectionView

Available on crate feature UIFocus only.
source§

unsafe fn coordinateSpace( &self ) -> Retained<ProtocolObject<dyn UICoordinateSpace>>
where Self: Sized + Message,

source§

unsafe fn focusItemsInRect( &self, rect: CGRect ) -> Retained<NSArray<ProtocolObject<dyn UIFocusItem>>>
where Self: Sized + Message,

source§

impl UIFocusItemScrollableContainer for UICollectionView

Available on crate feature UIFocus only.
source§

unsafe fn contentOffset(&self) -> CGPoint
where Self: Sized + Message,

source§

unsafe fn setContentOffset(&self, content_offset: CGPoint)
where Self: Sized + Message,

source§

unsafe fn contentSize(&self) -> CGSize
where Self: Sized + Message,

source§

unsafe fn visibleSize(&self) -> CGSize
where Self: Sized + Message,

source§

impl UIResponderStandardEditActions for UICollectionView

source§

unsafe fn cut(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn copy(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn paste(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn pasteAndMatchStyle(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn pasteAndGo(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn pasteAndSearch(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn select(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn selectAll(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn delete(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn toggleBoldface(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn toggleItalics(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn toggleUnderline(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn increaseSize(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn decreaseSize(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn find(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn findAndReplace(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn findNext(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn findPrevious(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn useSelectionForFind(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn updateTextAttributesWithConversionHandler( &self, conversion_handler: UITextAttributesConversionHandler )
where Self: Sized + Message,

Available on crate feature block2 only.
source§

unsafe fn print(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn rename(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn duplicate(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn move(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

unsafe fn export(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source§

impl UISpringLoadedInteractionSupporting for UICollectionView

Available on crate feature UISpringLoadedInteractionSupporting only.
source§

unsafe fn isSpringLoaded(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setSpringLoaded(&self, spring_loaded: bool)
where Self: Sized + Message,

source§

impl UITraitEnvironment for UICollectionView

Available on crate feature UITraitCollection only.
source§

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

source§

unsafe fn traitCollectionDidChange( &self, previous_trait_collection: Option<&UITraitCollection> )
where Self: Sized + Message,

👎Deprecated: Use the trait change registration APIs declared in the UITraitChangeObservable protocol
source§

impl Eq for UICollectionView

source§

impl Message for UICollectionView

source§

impl StructuralPartialEq for UICollectionView

source§

impl UIAppearanceContainer for UICollectionView

Available on crate feature UIAppearance only.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CounterpartOrSelf for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityCounterpartOrSelf<T>,

§

type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable

The immutable counterpart of the type, or Self if the type has no immutable counterpart. Read more
§

type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable

The mutable counterpart of the type, or Self if the type has no mutable counterpart. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,

source§

impl<T> IsIdCloneable for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsIdCloneable,

source§

impl<T> IsMainThreadOnly for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsMainThreadOnly,

source§

impl<T> IsRetainable for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsRetainable,