Struct objc2_ui_kit::UITableView
source · #[repr(C)]pub struct UITableView { /* private fields */ }Available on crate features
UIResponder and UIScrollView and UITableView and UIView only.Implementations§
source§impl UITableView
impl UITableView
pub unsafe fn initWithFrame_style( this: Allocated<Self>, frame: CGRect, style: UITableViewStyle ) -> Retained<Self>
pub unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Option<Retained<Self>>
pub unsafe fn style(&self) -> UITableViewStyle
pub unsafe fn dataSource( &self ) -> Option<Retained<ProtocolObject<dyn UITableViewDataSource>>>
pub unsafe fn setDataSource( &self, data_source: Option<&ProtocolObject<dyn UITableViewDataSource>> )
pub unsafe fn delegate( &self ) -> Option<Retained<ProtocolObject<dyn UITableViewDelegate>>>
pub unsafe fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn UITableViewDelegate>> )
pub unsafe fn prefetchDataSource( &self ) -> Option<Retained<ProtocolObject<dyn UITableViewDataSourcePrefetching>>>
pub unsafe fn setPrefetchDataSource( &self, prefetch_data_source: Option<&ProtocolObject<dyn UITableViewDataSourcePrefetching>> )
pub unsafe fn isPrefetchingEnabled(&self) -> bool
pub unsafe fn setPrefetchingEnabled(&self, prefetching_enabled: bool)
pub unsafe fn dragDelegate( &self ) -> Option<Retained<ProtocolObject<dyn UITableViewDragDelegate>>>
pub unsafe fn setDragDelegate( &self, drag_delegate: Option<&ProtocolObject<dyn UITableViewDragDelegate>> )
pub unsafe fn dropDelegate( &self ) -> Option<Retained<ProtocolObject<dyn UITableViewDropDelegate>>>
pub unsafe fn setDropDelegate( &self, drop_delegate: Option<&ProtocolObject<dyn UITableViewDropDelegate>> )
pub unsafe fn rowHeight(&self) -> CGFloat
pub unsafe fn setRowHeight(&self, row_height: CGFloat)
pub unsafe fn sectionHeaderHeight(&self) -> CGFloat
pub unsafe fn setSectionHeaderHeight(&self, section_header_height: CGFloat)
pub unsafe fn estimatedRowHeight(&self) -> CGFloat
pub unsafe fn setEstimatedRowHeight(&self, estimated_row_height: CGFloat)
pub unsafe fn estimatedSectionHeaderHeight(&self) -> CGFloat
pub unsafe fn setEstimatedSectionHeaderHeight( &self, estimated_section_header_height: CGFloat )
pub unsafe fn fillerRowHeight(&self) -> CGFloat
pub unsafe fn setFillerRowHeight(&self, filler_row_height: CGFloat)
pub unsafe fn sectionHeaderTopPadding(&self) -> CGFloat
pub unsafe fn setSectionHeaderTopPadding( &self, section_header_top_padding: CGFloat )
pub unsafe fn separatorInset(&self) -> UIEdgeInsets
Available on crate feature
UIGeometry only.pub unsafe fn setSeparatorInset(&self, separator_inset: UIEdgeInsets)
Available on crate feature
UIGeometry only.pub unsafe fn separatorInsetReference( &self ) -> UITableViewSeparatorInsetReference
pub unsafe fn setSeparatorInsetReference( &self, separator_inset_reference: UITableViewSeparatorInsetReference )
pub unsafe fn selfSizingInvalidation(&self) -> UITableViewSelfSizingInvalidation
pub unsafe fn setSelfSizingInvalidation( &self, self_sizing_invalidation: UITableViewSelfSizingInvalidation )
pub unsafe fn backgroundView(&self) -> Option<Retained<UIView>>
pub unsafe fn setBackgroundView(&self, background_view: Option<&UIView>)
pub unsafe fn contextMenuInteraction( &self ) -> Option<Retained<UIContextMenuInteraction>>
Available on crate feature
UIContextMenuInteraction only.pub unsafe fn numberOfSections(&self) -> NSInteger
pub unsafe fn numberOfRowsInSection(&self, section: NSInteger) -> NSInteger
pub unsafe fn rectForSection(&self, section: NSInteger) -> CGRect
pub unsafe fn rectForHeaderInSection(&self, section: NSInteger) -> CGRect
pub unsafe fn rectForRowAtIndexPath(&self, index_path: &NSIndexPath) -> CGRect
pub unsafe fn indexPathForRowAtPoint( &self, point: CGPoint ) -> Option<Retained<NSIndexPath>>
pub unsafe fn indexPathForCell( &self, cell: &UITableViewCell ) -> Option<Retained<NSIndexPath>>
Available on crate feature
UITableViewCell only.pub unsafe fn indexPathsForRowsInRect( &self, rect: CGRect ) -> Option<Retained<NSArray<NSIndexPath>>>
pub unsafe fn cellForRowAtIndexPath( &self, index_path: &NSIndexPath ) -> Option<Retained<UITableViewCell>>
Available on crate feature
UITableViewCell only.pub unsafe fn visibleCells(&self) -> Retained<NSArray<UITableViewCell>>
Available on crate feature
UITableViewCell only.pub unsafe fn indexPathsForVisibleRows( &self ) -> Option<Retained<NSArray<NSIndexPath>>>
pub unsafe fn headerViewForSection( &self, section: NSInteger ) -> Option<Retained<UITableViewHeaderFooterView>>
Available on crate feature
UITableViewHeaderFooterView only.Available on crate feature
UITableViewHeaderFooterView only.pub unsafe fn scrollToRowAtIndexPath_atScrollPosition_animated( &self, index_path: &NSIndexPath, scroll_position: UITableViewScrollPosition, animated: bool )
pub unsafe fn scrollToNearestSelectedRowAtScrollPosition_animated( &self, scroll_position: UITableViewScrollPosition, animated: bool )
pub unsafe fn performBatchUpdates_completion( &self, updates: Option<&Block<dyn Fn() + '_>>, completion: Option<&Block<dyn Fn(Bool)>> )
Available on crate feature
block2 only.pub unsafe fn beginUpdates(&self)
pub unsafe fn endUpdates(&self)
pub unsafe fn insertSections_withRowAnimation( &self, sections: &NSIndexSet, animation: UITableViewRowAnimation )
pub unsafe fn deleteSections_withRowAnimation( &self, sections: &NSIndexSet, animation: UITableViewRowAnimation )
pub unsafe fn moveSection_toSection( &self, section: NSInteger, new_section: NSInteger )
pub unsafe fn reloadSections_withRowAnimation( &self, sections: &NSIndexSet, animation: UITableViewRowAnimation )
pub unsafe fn insertRowsAtIndexPaths_withRowAnimation( &self, index_paths: &NSArray<NSIndexPath>, animation: UITableViewRowAnimation )
pub unsafe fn deleteRowsAtIndexPaths_withRowAnimation( &self, index_paths: &NSArray<NSIndexPath>, animation: UITableViewRowAnimation )
pub unsafe fn moveRowAtIndexPath_toIndexPath( &self, index_path: &NSIndexPath, new_index_path: &NSIndexPath )
pub unsafe fn reloadRowsAtIndexPaths_withRowAnimation( &self, index_paths: &NSArray<NSIndexPath>, animation: UITableViewRowAnimation )
pub unsafe fn reconfigureRowsAtIndexPaths( &self, index_paths: &NSArray<NSIndexPath> )
pub unsafe fn hasUncommittedUpdates(&self) -> bool
pub unsafe fn reloadData(&self)
pub unsafe fn reloadSectionIndexTitles(&self)
pub unsafe fn isEditing(&self) -> bool
pub unsafe fn setEditing(&self, editing: bool)
pub unsafe fn setEditing_animated(&self, editing: bool, animated: bool)
pub unsafe fn allowsSelection(&self) -> bool
pub unsafe fn setAllowsSelection(&self, allows_selection: bool)
pub unsafe fn allowsSelectionDuringEditing(&self) -> bool
pub unsafe fn setAllowsSelectionDuringEditing( &self, allows_selection_during_editing: bool )
pub unsafe fn allowsMultipleSelection(&self) -> bool
pub unsafe fn setAllowsMultipleSelection(&self, allows_multiple_selection: bool)
pub unsafe fn allowsMultipleSelectionDuringEditing(&self) -> bool
pub unsafe fn setAllowsMultipleSelectionDuringEditing( &self, allows_multiple_selection_during_editing: bool )
pub unsafe fn indexPathForSelectedRow(&self) -> Option<Retained<NSIndexPath>>
pub unsafe fn indexPathsForSelectedRows( &self ) -> Option<Retained<NSArray<NSIndexPath>>>
pub unsafe fn selectRowAtIndexPath_animated_scrollPosition( &self, index_path: Option<&NSIndexPath>, animated: bool, scroll_position: UITableViewScrollPosition )
pub unsafe fn deselectRowAtIndexPath_animated( &self, index_path: &NSIndexPath, animated: bool )
pub unsafe fn sectionIndexMinimumDisplayRowCount(&self) -> NSInteger
pub unsafe fn setSectionIndexMinimumDisplayRowCount( &self, section_index_minimum_display_row_count: NSInteger )
pub unsafe fn sectionIndexColor(&self) -> Option<Retained<UIColor>>
Available on crate feature
UIColor only.pub unsafe fn setSectionIndexColor(&self, section_index_color: Option<&UIColor>)
Available on crate feature
UIColor only.pub unsafe fn sectionIndexBackgroundColor(&self) -> Option<Retained<UIColor>>
Available on crate feature
UIColor only.pub unsafe fn setSectionIndexBackgroundColor( &self, section_index_background_color: Option<&UIColor> )
Available on crate feature
UIColor only.pub unsafe fn sectionIndexTrackingBackgroundColor( &self ) -> Option<Retained<UIColor>>
Available on crate feature
UIColor only.pub unsafe fn setSectionIndexTrackingBackgroundColor( &self, section_index_tracking_background_color: Option<&UIColor> )
Available on crate feature
UIColor only.pub unsafe fn separatorStyle(&self) -> UITableViewCellSeparatorStyle
Available on crate feature
UITableViewCell only.pub unsafe fn setSeparatorStyle( &self, separator_style: UITableViewCellSeparatorStyle )
Available on crate feature
UITableViewCell only.pub unsafe fn separatorColor(&self) -> Option<Retained<UIColor>>
Available on crate feature
UIColor only.pub unsafe fn setSeparatorColor(&self, separator_color: Option<&UIColor>)
Available on crate feature
UIColor only.pub unsafe fn separatorEffect(&self) -> Option<Retained<UIVisualEffect>>
Available on crate feature
UIVisualEffect only.pub unsafe fn setSeparatorEffect( &self, separator_effect: Option<&UIVisualEffect> )
Available on crate feature
UIVisualEffect only.pub unsafe fn cellLayoutMarginsFollowReadableWidth(&self) -> bool
pub unsafe fn setCellLayoutMarginsFollowReadableWidth( &self, cell_layout_margins_follow_readable_width: bool )
pub unsafe fn insetsContentViewsToSafeArea(&self) -> bool
pub unsafe fn setInsetsContentViewsToSafeArea( &self, insets_content_views_to_safe_area: bool )
pub unsafe fn tableHeaderView(&self) -> Option<Retained<UIView>>
pub unsafe fn setTableHeaderView(&self, table_header_view: Option<&UIView>)
pub unsafe fn dequeueReusableCellWithIdentifier( &self, identifier: &NSString ) -> Option<Retained<UITableViewCell>>
Available on crate feature
UITableViewCell only.pub unsafe fn dequeueReusableCellWithIdentifier_forIndexPath( &self, identifier: &NSString, index_path: &NSIndexPath ) -> Retained<UITableViewCell>
Available on crate feature
UITableViewCell only.Available on crate feature
UITableViewHeaderFooterView only.pub unsafe fn registerNib_forCellReuseIdentifier( &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.pub unsafe fn registerClass_forCellReuseIdentifier( &self, cell_class: Option<&AnyClass>, identifier: &NSString )
👎Deprecated: Loading Interface Builder products will not be supported in a future version of visionOS.
Available on crate feature
UINib only.pub unsafe fn remembersLastFocusedIndexPath(&self) -> bool
pub unsafe fn setRemembersLastFocusedIndexPath( &self, remembers_last_focused_index_path: bool )
pub unsafe fn selectionFollowsFocus(&self) -> bool
pub unsafe fn setSelectionFollowsFocus(&self, selection_follows_focus: bool)
pub unsafe fn allowsFocus(&self) -> bool
pub unsafe fn setAllowsFocus(&self, allows_focus: bool)
pub unsafe fn allowsFocusDuringEditing(&self) -> bool
pub unsafe fn setAllowsFocusDuringEditing( &self, allows_focus_during_editing: bool )
pub unsafe fn dragInteractionEnabled(&self) -> bool
pub unsafe fn setDragInteractionEnabled(&self, drag_interaction_enabled: bool)
pub unsafe fn hasActiveDrag(&self) -> bool
pub unsafe fn hasActiveDrop(&self) -> bool
source§impl UITableView
impl UITableView
Methods declared on superclass UIView
pub unsafe fn initWithFrame( this: Allocated<Self>, frame: CGRect ) -> Retained<Self>
source§impl UITableView
impl UITableView
Methods declared on superclass NSObject
impl UITableView
This impl block contains no items.
UIDragAndDrop
Methods from Deref<Target = UIScrollView>§
pub unsafe fn contentOffset(&self) -> CGPoint
pub unsafe fn setContentOffset(&self, content_offset: CGPoint)
pub unsafe fn contentSize(&self) -> CGSize
pub unsafe fn setContentSize(&self, content_size: CGSize)
pub unsafe fn contentInset(&self) -> UIEdgeInsets
Available on crate feature
UIGeometry only.pub unsafe fn setContentInset(&self, content_inset: UIEdgeInsets)
Available on crate feature
UIGeometry only.pub unsafe fn contentAlignmentPoint(&self) -> CGPoint
pub unsafe fn setContentAlignmentPoint(&self, content_alignment_point: CGPoint)
pub unsafe fn adjustedContentInset(&self) -> UIEdgeInsets
Available on crate feature
UIGeometry only.pub unsafe fn adjustedContentInsetDidChange(&self)
pub unsafe fn contentInsetAdjustmentBehavior( &self ) -> UIScrollViewContentInsetAdjustmentBehavior
pub unsafe fn setContentInsetAdjustmentBehavior( &self, content_inset_adjustment_behavior: UIScrollViewContentInsetAdjustmentBehavior )
pub unsafe fn automaticallyAdjustsScrollIndicatorInsets(&self) -> bool
pub unsafe fn setAutomaticallyAdjustsScrollIndicatorInsets( &self, automatically_adjusts_scroll_indicator_insets: bool )
pub unsafe fn contentLayoutGuide(&self) -> Retained<UILayoutGuide>
Available on crate feature
UILayoutGuide only.pub unsafe fn frameLayoutGuide(&self) -> Retained<UILayoutGuide>
Available on crate feature
UILayoutGuide only.pub unsafe fn delegate( &self ) -> Option<Retained<ProtocolObject<dyn UIScrollViewDelegate>>>
pub unsafe fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn UIScrollViewDelegate>> )
pub unsafe fn isDirectionalLockEnabled(&self) -> bool
pub unsafe fn setDirectionalLockEnabled(&self, directional_lock_enabled: bool)
pub unsafe fn bounces(&self) -> bool
pub unsafe fn setBounces(&self, bounces: bool)
pub unsafe fn bouncesHorizontally(&self) -> bool
pub unsafe fn setBouncesHorizontally(&self, bounces_horizontally: bool)
pub unsafe fn bouncesVertically(&self) -> bool
pub unsafe fn setBouncesVertically(&self, bounces_vertically: bool)
pub unsafe fn alwaysBounceVertical(&self) -> bool
pub unsafe fn setAlwaysBounceVertical(&self, always_bounce_vertical: bool)
pub unsafe fn alwaysBounceHorizontal(&self) -> bool
pub unsafe fn setAlwaysBounceHorizontal(&self, always_bounce_horizontal: bool)
pub unsafe fn isPagingEnabled(&self) -> bool
pub unsafe fn setPagingEnabled(&self, paging_enabled: bool)
pub unsafe fn isScrollEnabled(&self) -> bool
pub unsafe fn setScrollEnabled(&self, scroll_enabled: bool)
pub unsafe fn transfersHorizontalScrollingToParent(&self) -> bool
pub unsafe fn setTransfersHorizontalScrollingToParent( &self, transfers_horizontal_scrolling_to_parent: bool )
pub unsafe fn transfersVerticalScrollingToParent(&self) -> bool
pub unsafe fn setTransfersVerticalScrollingToParent( &self, transfers_vertical_scrolling_to_parent: bool )
pub unsafe fn showsVerticalScrollIndicator(&self) -> bool
pub unsafe fn setShowsVerticalScrollIndicator( &self, shows_vertical_scroll_indicator: bool )
pub unsafe fn showsHorizontalScrollIndicator(&self) -> bool
pub unsafe fn setShowsHorizontalScrollIndicator( &self, shows_horizontal_scroll_indicator: bool )
pub unsafe fn indicatorStyle(&self) -> UIScrollViewIndicatorStyle
pub unsafe fn setIndicatorStyle( &self, indicator_style: UIScrollViewIndicatorStyle )
pub unsafe fn verticalScrollIndicatorInsets(&self) -> UIEdgeInsets
Available on crate feature
UIGeometry only.pub unsafe fn setVerticalScrollIndicatorInsets( &self, vertical_scroll_indicator_insets: UIEdgeInsets )
Available on crate feature
UIGeometry only.pub unsafe fn horizontalScrollIndicatorInsets(&self) -> UIEdgeInsets
Available on crate feature
UIGeometry only.pub unsafe fn setHorizontalScrollIndicatorInsets( &self, horizontal_scroll_indicator_insets: UIEdgeInsets )
Available on crate feature
UIGeometry only.pub unsafe fn scrollIndicatorInsets(&self) -> UIEdgeInsets
Available on crate feature
UIGeometry only.pub unsafe fn setScrollIndicatorInsets( &self, scroll_indicator_insets: UIEdgeInsets )
Available on crate feature
UIGeometry only.pub unsafe fn decelerationRate(&self) -> UIScrollViewDecelerationRate
pub unsafe fn setDecelerationRate( &self, deceleration_rate: UIScrollViewDecelerationRate )
pub unsafe fn indexDisplayMode(&self) -> UIScrollViewIndexDisplayMode
pub unsafe fn setIndexDisplayMode( &self, index_display_mode: UIScrollViewIndexDisplayMode )
pub unsafe fn setContentOffset_animated( &self, content_offset: CGPoint, animated: bool )
pub unsafe fn scrollRectToVisible_animated(&self, rect: CGRect, animated: bool)
pub unsafe fn flashScrollIndicators(&self)
pub unsafe fn withScrollIndicatorsShownForContentOffsetChanges( &self, changes: &Block<dyn Fn() + '_> )
Available on crate feature
block2 only.pub unsafe fn isTracking(&self) -> bool
pub unsafe fn isDragging(&self) -> bool
pub unsafe fn isDecelerating(&self) -> bool
pub unsafe fn isScrollAnimating(&self) -> bool
pub unsafe fn delaysContentTouches(&self) -> bool
pub unsafe fn setDelaysContentTouches(&self, delays_content_touches: bool)
pub unsafe fn canCancelContentTouches(&self) -> bool
pub unsafe fn setCanCancelContentTouches( &self, can_cancel_content_touches: bool )
pub unsafe fn touchesShouldBegin_withEvent_inContentView( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, view: &UIView ) -> bool
Available on crate features
UIEvent and UITouch only.pub unsafe fn touchesShouldCancelInContentView(&self, view: &UIView) -> bool
pub unsafe fn minimumZoomScale(&self) -> CGFloat
pub unsafe fn setMinimumZoomScale(&self, minimum_zoom_scale: CGFloat)
pub unsafe fn maximumZoomScale(&self) -> CGFloat
pub unsafe fn setMaximumZoomScale(&self, maximum_zoom_scale: CGFloat)
pub unsafe fn zoomScale(&self) -> CGFloat
pub unsafe fn setZoomScale(&self, zoom_scale: CGFloat)
pub unsafe fn setZoomScale_animated(&self, scale: CGFloat, animated: bool)
pub unsafe fn zoomToRect_animated(&self, rect: CGRect, animated: bool)
pub unsafe fn bouncesZoom(&self) -> bool
pub unsafe fn setBouncesZoom(&self, bounces_zoom: bool)
pub unsafe fn isZooming(&self) -> bool
pub unsafe fn isZoomBouncing(&self) -> bool
pub unsafe fn isZoomAnimating(&self) -> bool
pub unsafe fn scrollsToTop(&self) -> bool
pub unsafe fn setScrollsToTop(&self, scrolls_to_top: bool)
pub unsafe fn stopScrollingAndZooming(&self)
pub unsafe fn panGestureRecognizer(&self) -> Retained<UIPanGestureRecognizer>
Available on crate features
UIGestureRecognizer and UIPanGestureRecognizer only.pub unsafe fn pinchGestureRecognizer( &self ) -> Option<Retained<UIPinchGestureRecognizer>>
Available on crate features
UIGestureRecognizer and UIPinchGestureRecognizer only.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.pub unsafe fn keyboardDismissMode(&self) -> UIScrollViewKeyboardDismissMode
pub unsafe fn setKeyboardDismissMode( &self, keyboard_dismiss_mode: UIScrollViewKeyboardDismissMode )
pub unsafe fn refreshControl(&self) -> Option<Retained<UIRefreshControl>>
Available on crate features
UIControl and UIRefreshControl only.pub unsafe fn setRefreshControl( &self, refresh_control: Option<&UIRefreshControl> )
Available on crate features
UIControl and UIRefreshControl only.pub unsafe fn allowsKeyboardScrolling(&self) -> bool
pub unsafe fn setAllowsKeyboardScrolling(&self, allows_keyboard_scrolling: bool)
Methods from Deref<Target = UIView>§
pub unsafe fn accessibilityIgnoresInvertColors(&self) -> bool
Available on crate feature
UIAccessibilityAdditions only.pub unsafe fn setAccessibilityIgnoresInvertColors( &self, accessibility_ignores_invert_colors: bool )
Available on crate feature
UIAccessibilityAdditions only.pub unsafe fn hoverStyle(&self) -> Option<Retained<UIHoverStyle>>
Available on crate feature
UIHoverStyle only.pub unsafe fn setHoverStyle(&self, hover_style: Option<&UIHoverStyle>)
Available on crate feature
UIHoverStyle only.pub unsafe fn addInteraction( &self, interaction: &ProtocolObject<dyn UIInteraction> )
Available on crate feature
UIInteraction only.pub unsafe fn removeInteraction( &self, interaction: &ProtocolObject<dyn UIInteraction> )
Available on crate feature
UIInteraction only.pub unsafe fn interactions( &self ) -> Retained<NSArray<ProtocolObject<dyn UIInteraction>>>
Available on crate feature
UIInteraction only.pub unsafe fn setInteractions( &self, interactions: &NSArray<ProtocolObject<dyn UIInteraction>> )
Available on crate feature
UIInteraction only.pub unsafe fn showsLargeContentViewer(&self) -> bool
Available on crate feature
UILargeContentViewer only.pub unsafe fn setShowsLargeContentViewer( &self, shows_large_content_viewer: bool )
Available on crate feature
UILargeContentViewer only.pub unsafe fn largeContentTitle(&self) -> Option<Retained<NSString>>
Available on crate feature
UILargeContentViewer only.pub unsafe fn setLargeContentTitle( &self, large_content_title: Option<&NSString> )
Available on crate feature
UILargeContentViewer only.pub unsafe fn largeContentImage(&self) -> Option<Retained<UIImage>>
Available on crate features
UILargeContentViewer and UIImage only.pub unsafe fn setLargeContentImage(&self, large_content_image: Option<&UIImage>)
Available on crate features
UILargeContentViewer and UIImage only.pub unsafe fn scalesLargeContentImage(&self) -> bool
Available on crate feature
UILargeContentViewer only.pub unsafe fn setScalesLargeContentImage( &self, scales_large_content_image: bool )
Available on crate feature
UILargeContentViewer only.pub unsafe fn largeContentImageInsets(&self) -> UIEdgeInsets
Available on crate features
UILargeContentViewer and UIGeometry only.pub unsafe fn setLargeContentImageInsets( &self, large_content_image_insets: UIEdgeInsets )
Available on crate features
UILargeContentViewer and UIGeometry only.pub unsafe fn viewPrintFormatter(&self) -> Retained<UIViewPrintFormatter>
Available on crate feature
UIPrintFormatter only.pub unsafe fn drawRect_forViewPrintFormatter( &self, rect: CGRect, formatter: &UIViewPrintFormatter )
Available on crate feature
UIPrintFormatter only.pub unsafe fn endEditing(&self, force: bool) -> bool
Available on crate feature
UITextField only.pub unsafe fn isUserInteractionEnabled(&self) -> bool
pub unsafe fn setUserInteractionEnabled(&self, user_interaction_enabled: bool)
pub unsafe fn tag(&self) -> NSInteger
pub unsafe fn setTag(&self, tag: NSInteger)
pub fn layer(&self) -> Retained<CALayer>
Available on crate feature
objc2-quartz-core and non-watchOS only.pub unsafe fn canBecomeFocused(&self) -> bool
pub unsafe fn isFocused(&self) -> bool
pub unsafe fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>
pub unsafe fn setFocusGroupIdentifier( &self, focus_group_identifier: Option<&NSString> )
pub unsafe fn focusGroupPriority(&self) -> UIFocusGroupPriority
Available on crate feature
UIFocus only.pub unsafe fn setFocusGroupPriority( &self, focus_group_priority: UIFocusGroupPriority )
Available on crate feature
UIFocus only.pub unsafe fn focusEffect(&self) -> Option<Retained<UIFocusEffect>>
Available on crate feature
UIFocusEffect only.pub unsafe fn setFocusEffect(&self, focus_effect: Option<&UIFocusEffect>)
Available on crate feature
UIFocusEffect only.pub unsafe fn semanticContentAttribute(&self) -> UISemanticContentAttribute
pub unsafe fn setSemanticContentAttribute( &self, semantic_content_attribute: UISemanticContentAttribute )
pub unsafe fn effectiveUserInterfaceLayoutDirection( &self ) -> UIUserInterfaceLayoutDirection
Available on crate feature
UIInterface only.pub fn frame(&self) -> CGRect
pub fn setFrame(&self, frame: CGRect)
pub fn bounds(&self) -> CGRect
pub fn setBounds(&self, bounds: CGRect)
pub unsafe fn center(&self) -> CGPoint
pub unsafe fn setCenter(&self, center: CGPoint)
pub unsafe fn transform3D(&self) -> CATransform3D
Available on crate feature
objc2-quartz-core and non-watchOS only.pub unsafe fn setTransform3D(&self, transform3_d: CATransform3D)
Available on crate feature
objc2-quartz-core and non-watchOS only.pub fn contentScaleFactor(&self) -> CGFloat
pub fn setContentScaleFactor(&self, content_scale_factor: CGFloat)
pub unsafe fn anchorPoint(&self) -> CGPoint
pub unsafe fn setAnchorPoint(&self, anchor_point: CGPoint)
pub unsafe fn isMultipleTouchEnabled(&self) -> bool
pub fn setMultipleTouchEnabled(&self, multiple_touch_enabled: bool)
pub unsafe fn isExclusiveTouch(&self) -> bool
pub unsafe fn setExclusiveTouch(&self, exclusive_touch: bool)
pub unsafe fn hitTest_withEvent( &self, point: CGPoint, event: Option<&UIEvent> ) -> Option<Retained<UIView>>
Available on crate feature
UIEvent only.pub unsafe fn pointInside_withEvent( &self, point: CGPoint, event: Option<&UIEvent> ) -> bool
Available on crate feature
UIEvent only.pub unsafe fn convertPoint_toView( &self, point: CGPoint, view: Option<&UIView> ) -> CGPoint
pub unsafe fn convertPoint_fromView( &self, point: CGPoint, view: Option<&UIView> ) -> CGPoint
pub unsafe fn convertRect_toView( &self, rect: CGRect, view: Option<&UIView> ) -> CGRect
pub unsafe fn convertRect_fromView( &self, rect: CGRect, view: Option<&UIView> ) -> CGRect
pub unsafe fn autoresizesSubviews(&self) -> bool
pub unsafe fn setAutoresizesSubviews(&self, autoresizes_subviews: bool)
pub unsafe fn autoresizingMask(&self) -> UIViewAutoresizing
pub unsafe fn setAutoresizingMask(&self, autoresizing_mask: UIViewAutoresizing)
pub unsafe fn sizeThatFits(&self, size: CGSize) -> CGSize
pub unsafe fn sizeToFit(&self)
pub fn superview(&self) -> Option<Retained<UIView>>
pub fn subviews(&self) -> Retained<NSArray<UIView>>
pub fn window(&self) -> Option<Retained<UIWindow>>
Available on crate feature
UIWindow only.pub unsafe fn removeFromSuperview(&self)
pub unsafe fn insertSubview_atIndex(&self, view: &UIView, index: NSInteger)
pub unsafe fn exchangeSubviewAtIndex_withSubviewAtIndex( &self, index1: NSInteger, index2: NSInteger )
pub unsafe fn addSubview(&self, view: &UIView)
pub unsafe fn insertSubview_belowSubview( &self, view: &UIView, sibling_subview: &UIView )
pub unsafe fn insertSubview_aboveSubview( &self, view: &UIView, sibling_subview: &UIView )
pub unsafe fn bringSubviewToFront(&self, view: &UIView)
pub unsafe fn sendSubviewToBack(&self, view: &UIView)
pub unsafe fn didAddSubview(&self, subview: &UIView)
pub unsafe fn willRemoveSubview(&self, subview: &UIView)
pub unsafe fn willMoveToSuperview(&self, new_superview: Option<&UIView>)
pub unsafe fn didMoveToSuperview(&self)
pub unsafe fn willMoveToWindow(&self, new_window: Option<&UIWindow>)
Available on crate feature
UIWindow only.pub unsafe fn didMoveToWindow(&self)
pub unsafe fn isDescendantOfView(&self, view: &UIView) -> bool
pub unsafe fn viewWithTag(&self, tag: NSInteger) -> Option<Retained<UIView>>
pub unsafe fn setNeedsLayout(&self)
pub unsafe fn layoutIfNeeded(&self)
pub unsafe fn layoutSubviews(&self)
pub unsafe fn layoutMargins(&self) -> UIEdgeInsets
Available on crate feature
UIGeometry only.pub unsafe fn setLayoutMargins(&self, layout_margins: UIEdgeInsets)
Available on crate feature
UIGeometry only.pub unsafe fn directionalLayoutMargins(&self) -> NSDirectionalEdgeInsets
Available on crate feature
UIGeometry only.pub unsafe fn setDirectionalLayoutMargins( &self, directional_layout_margins: NSDirectionalEdgeInsets )
Available on crate feature
UIGeometry only.pub unsafe fn preservesSuperviewLayoutMargins(&self) -> bool
pub unsafe fn setPreservesSuperviewLayoutMargins( &self, preserves_superview_layout_margins: bool )
pub unsafe fn insetsLayoutMarginsFromSafeArea(&self) -> bool
pub unsafe fn setInsetsLayoutMarginsFromSafeArea( &self, insets_layout_margins_from_safe_area: bool )
pub unsafe fn layoutMarginsDidChange(&self)
pub fn safeAreaInsets(&self) -> UIEdgeInsets
Available on crate feature
UIGeometry only.pub unsafe fn safeAreaInsetsDidChange(&self)
pub unsafe fn layoutMarginsGuide(&self) -> Retained<UILayoutGuide>
Available on crate feature
UILayoutGuide only.pub unsafe fn readableContentGuide(&self) -> Retained<UILayoutGuide>
Available on crate feature
UILayoutGuide only.pub unsafe fn safeAreaLayoutGuide(&self) -> Retained<UILayoutGuide>
Available on crate feature
UILayoutGuide only.pub unsafe fn keyboardLayoutGuide(&self) -> Retained<UIKeyboardLayoutGuide>
Available on crate features
UIKeyboardLayoutGuide and UILayoutGuide and UITrackingLayoutGuide only.pub unsafe fn drawRect(&self, rect: CGRect)
pub fn setNeedsDisplay(&self)
pub unsafe fn setNeedsDisplayInRect(&self, rect: CGRect)
pub unsafe fn clipsToBounds(&self) -> bool
pub unsafe fn setClipsToBounds(&self, clips_to_bounds: bool)
pub fn backgroundColor(&self) -> Option<Retained<UIColor>>
Available on crate feature
UIColor only.pub fn setBackgroundColor(&self, background_color: Option<&UIColor>)
Available on crate feature
UIColor only.pub unsafe fn alpha(&self) -> CGFloat
pub unsafe fn setAlpha(&self, alpha: CGFloat)
pub unsafe fn isOpaque(&self) -> bool
pub unsafe fn setOpaque(&self, opaque: bool)
pub unsafe fn clearsContextBeforeDrawing(&self) -> bool
pub unsafe fn setClearsContextBeforeDrawing( &self, clears_context_before_drawing: bool )
pub fn isHidden(&self) -> bool
pub fn setHidden(&self, hidden: bool)
pub unsafe fn contentMode(&self) -> UIViewContentMode
pub unsafe fn setContentMode(&self, content_mode: UIViewContentMode)
pub unsafe fn contentStretch(&self) -> CGRect
👎Deprecated
pub unsafe fn setContentStretch(&self, content_stretch: CGRect)
👎Deprecated
pub unsafe fn maskView(&self) -> Option<Retained<UIView>>
pub unsafe fn setMaskView(&self, mask_view: Option<&UIView>)
pub unsafe fn tintColor(&self) -> Option<Retained<UIColor>>
Available on crate feature
UIColor only.pub unsafe fn setTintColor(&self, tint_color: Option<&UIColor>)
Available on crate feature
UIColor only.pub unsafe fn tintAdjustmentMode(&self) -> UIViewTintAdjustmentMode
pub unsafe fn setTintAdjustmentMode( &self, tint_adjustment_mode: UIViewTintAdjustmentMode )
pub unsafe fn tintColorDidChange(&self)
pub fn gestureRecognizers( &self ) -> Option<Retained<NSArray<UIGestureRecognizer>>>
Available on crate feature
UIGestureRecognizer only.pub unsafe fn setGestureRecognizers( &self, gesture_recognizers: Option<&NSArray<UIGestureRecognizer>> )
Available on crate feature
UIGestureRecognizer only.pub fn addGestureRecognizer(&self, gesture_recognizer: &UIGestureRecognizer)
Available on crate feature
UIGestureRecognizer only.pub fn removeGestureRecognizer(&self, gesture_recognizer: &UIGestureRecognizer)
Available on crate feature
UIGestureRecognizer only.pub fn gestureRecognizerShouldBegin( &self, gesture_recognizer: &UIGestureRecognizer ) -> bool
Available on crate feature
UIGestureRecognizer only.pub unsafe fn addMotionEffect(&self, effect: &UIMotionEffect)
Available on crate feature
UIMotionEffect only.pub unsafe fn removeMotionEffect(&self, effect: &UIMotionEffect)
Available on crate feature
UIMotionEffect only.pub unsafe fn motionEffects(&self) -> Retained<NSArray<UIMotionEffect>>
Available on crate feature
UIMotionEffect only.pub unsafe fn setMotionEffects(&self, motion_effects: &NSArray<UIMotionEffect>)
Available on crate feature
UIMotionEffect only.pub unsafe fn constraints(&self) -> Retained<NSArray<NSLayoutConstraint>>
Available on crate feature
NSLayoutConstraint only.pub unsafe fn addConstraint(&self, constraint: &NSLayoutConstraint)
Available on crate feature
NSLayoutConstraint only.pub unsafe fn addConstraints(&self, constraints: &NSArray<NSLayoutConstraint>)
Available on crate feature
NSLayoutConstraint only.pub unsafe fn removeConstraint(&self, constraint: &NSLayoutConstraint)
Available on crate feature
NSLayoutConstraint only.pub unsafe fn removeConstraints( &self, constraints: &NSArray<NSLayoutConstraint> )
Available on crate feature
NSLayoutConstraint only.pub unsafe fn updateConstraintsIfNeeded(&self)
pub unsafe fn updateConstraints(&self)
pub unsafe fn needsUpdateConstraints(&self) -> bool
pub unsafe fn setNeedsUpdateConstraints(&self)
pub unsafe fn translatesAutoresizingMaskIntoConstraints(&self) -> bool
pub unsafe fn setTranslatesAutoresizingMaskIntoConstraints( &self, translates_autoresizing_mask_into_constraints: bool )
pub unsafe fn alignmentRectForFrame(&self, frame: CGRect) -> CGRect
pub unsafe fn frameForAlignmentRect(&self, alignment_rect: CGRect) -> CGRect
pub unsafe fn alignmentRectInsets(&self) -> UIEdgeInsets
Available on crate feature
UIGeometry only.pub unsafe fn viewForBaselineLayout(&self) -> Retained<UIView>
👎Deprecated: Override -viewForFirstBaselineLayout or -viewForLastBaselineLayout as appropriate, instead
pub unsafe fn viewForFirstBaselineLayout(&self) -> Retained<UIView>
pub unsafe fn viewForLastBaselineLayout(&self) -> Retained<UIView>
pub unsafe fn intrinsicContentSize(&self) -> CGSize
pub unsafe fn invalidateIntrinsicContentSize(&self)
pub unsafe fn contentHuggingPriorityForAxis( &self, axis: UILayoutConstraintAxis ) -> UILayoutPriority
Available on crate feature
NSLayoutConstraint only.pub unsafe fn setContentHuggingPriority_forAxis( &self, priority: UILayoutPriority, axis: UILayoutConstraintAxis )
Available on crate feature
NSLayoutConstraint only.pub unsafe fn contentCompressionResistancePriorityForAxis( &self, axis: UILayoutConstraintAxis ) -> UILayoutPriority
Available on crate feature
NSLayoutConstraint only.pub unsafe fn setContentCompressionResistancePriority_forAxis( &self, priority: UILayoutPriority, axis: UILayoutConstraintAxis )
Available on crate feature
NSLayoutConstraint only.pub unsafe fn systemLayoutSizeFittingSize(&self, target_size: CGSize) -> CGSize
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.pub unsafe fn layoutGuides(&self) -> Retained<NSArray<UILayoutGuide>>
Available on crate feature
UILayoutGuide only.pub unsafe fn addLayoutGuide(&self, layout_guide: &UILayoutGuide)
Available on crate feature
UILayoutGuide only.pub unsafe fn removeLayoutGuide(&self, layout_guide: &UILayoutGuide)
Available on crate feature
UILayoutGuide only.pub unsafe fn leadingAnchor(&self) -> Retained<NSLayoutXAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn trailingAnchor(&self) -> Retained<NSLayoutXAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn leftAnchor(&self) -> Retained<NSLayoutXAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn rightAnchor(&self) -> Retained<NSLayoutXAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn topAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn bottomAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn widthAnchor(&self) -> Retained<NSLayoutDimension>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn heightAnchor(&self) -> Retained<NSLayoutDimension>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn centerXAnchor(&self) -> Retained<NSLayoutXAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn centerYAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn firstBaselineAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn lastBaselineAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn constraintsAffectingLayoutForAxis( &self, axis: UILayoutConstraintAxis ) -> Retained<NSArray<NSLayoutConstraint>>
Available on crate feature
NSLayoutConstraint only.pub unsafe fn hasAmbiguousLayout(&self) -> bool
pub unsafe fn exerciseAmbiguityInLayout(&self)
pub unsafe fn restorationIdentifier(&self) -> Option<Retained<NSString>>
pub unsafe fn setRestorationIdentifier( &self, restoration_identifier: Option<&NSString> )
pub unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
pub unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
pub unsafe fn snapshotViewAfterScreenUpdates( &self, after_updates: bool ) -> Option<Retained<UIView>>
pub unsafe fn resizableSnapshotViewFromRect_afterScreenUpdates_withCapInsets( &self, rect: CGRect, after_updates: bool, cap_insets: UIEdgeInsets ) -> Option<Retained<UIView>>
Available on crate feature
UIGeometry only.pub unsafe fn drawViewHierarchyInRect_afterScreenUpdates( &self, rect: CGRect, after_updates: bool ) -> bool
pub unsafe fn overrideUserInterfaceStyle(&self) -> UIUserInterfaceStyle
Available on crate feature
UIInterface only.pub unsafe fn setOverrideUserInterfaceStyle( &self, override_user_interface_style: UIUserInterfaceStyle )
Available on crate feature
UIInterface only.pub unsafe fn minimumContentSizeCategory( &self ) -> Option<Retained<UIContentSizeCategory>>
Available on crate feature
UIContentSizeCategory only.pub unsafe fn setMinimumContentSizeCategory( &self, minimum_content_size_category: Option<&UIContentSizeCategory> )
Available on crate feature
UIContentSizeCategory only.pub unsafe fn maximumContentSizeCategory( &self ) -> Option<Retained<UIContentSizeCategory>>
Available on crate feature
UIContentSizeCategory only.pub unsafe fn setMaximumContentSizeCategory( &self, maximum_content_size_category: Option<&UIContentSizeCategory> )
Available on crate feature
UIContentSizeCategory only.pub unsafe fn appliedContentSizeCategoryLimitsDescription( &self ) -> Retained<NSString>
pub unsafe fn traitOverrides( &self ) -> Retained<ProtocolObject<dyn UITraitOverrides>>
Available on crate feature
UITraitCollection only.pub unsafe fn updateTraitsIfNeeded(&self)
Methods from Deref<Target = UIResponder>§
pub unsafe fn nextResponder(&self) -> Option<Retained<UIResponder>>
pub unsafe fn canBecomeFirstResponder(&self) -> bool
pub unsafe fn becomeFirstResponder(&self) -> bool
pub unsafe fn canResignFirstResponder(&self) -> bool
pub unsafe fn resignFirstResponder(&self) -> bool
pub unsafe fn isFirstResponder(&self) -> bool
pub unsafe fn touchesBegan_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )
Available on crate features
UIEvent and UITouch only.pub unsafe fn touchesMoved_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )
Available on crate features
UIEvent and UITouch only.pub unsafe fn touchesEnded_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )
Available on crate features
UIEvent and UITouch only.pub unsafe fn touchesCancelled_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )
Available on crate features
UIEvent and UITouch only.pub unsafe fn touchesEstimatedPropertiesUpdated(&self, touches: &NSSet<UITouch>)
Available on crate feature
UITouch only.pub unsafe fn pressesBegan_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )
Available on crate features
UIEvent and UIPress and UIPressesEvent only.pub unsafe fn pressesChanged_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )
Available on crate features
UIEvent and UIPress and UIPressesEvent only.pub unsafe fn pressesEnded_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )
Available on crate features
UIEvent and UIPress and UIPressesEvent only.pub unsafe fn pressesCancelled_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )
Available on crate features
UIEvent and UIPress and UIPressesEvent only.pub unsafe fn motionBegan_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )
Available on crate feature
UIEvent only.pub unsafe fn motionEnded_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )
Available on crate feature
UIEvent only.pub unsafe fn motionCancelled_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )
Available on crate feature
UIEvent only.pub unsafe fn remoteControlReceivedWithEvent(&self, event: Option<&UIEvent>)
Available on crate feature
UIEvent only.pub unsafe fn canPerformAction_withSender( &self, action: Sel, sender: Option<&AnyObject> ) -> bool
pub unsafe fn targetForAction_withSender( &self, action: Sel, sender: Option<&AnyObject> ) -> Option<Retained<AnyObject>>
pub unsafe fn buildMenuWithBuilder( &self, builder: &ProtocolObject<dyn UIMenuBuilder> )
Available on crate feature
UIMenuBuilder only.pub unsafe fn validateCommand(&self, command: &UICommand)
Available on crate features
UICommand and UIMenuElement only.pub unsafe fn undoManager(&self) -> Option<Retained<NSUndoManager>>
pub unsafe fn editingInteractionConfiguration( &self ) -> UIEditingInteractionConfiguration
pub unsafe fn keyCommands(&self) -> Option<Retained<NSArray<UIKeyCommand>>>
Available on crate features
UICommand and UIKeyCommand and UIMenuElement only.pub unsafe fn inputView(&self) -> Option<Retained<UIView>>
pub unsafe fn inputAccessoryView(&self) -> Option<Retained<UIView>>
pub unsafe fn inputAssistantItem(&self) -> Retained<UITextInputAssistantItem>
Available on crate feature
UITextInput only.pub unsafe fn inputViewController( &self ) -> Option<Retained<UIInputViewController>>
Available on crate features
UIInputViewController and UIViewController only.pub unsafe fn inputAccessoryViewController( &self ) -> Option<Retained<UIInputViewController>>
Available on crate features
UIInputViewController and UIViewController only.pub unsafe fn textInputMode(&self) -> Option<Retained<UITextInputMode>>
Available on crate feature
UITextInput only.pub unsafe fn textInputContextIdentifier(&self) -> Option<Retained<NSString>>
pub unsafe fn reloadInputViews(&self)
pub unsafe fn userActivity(&self) -> Option<Retained<NSUserActivity>>
pub unsafe fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
pub unsafe fn updateUserActivityState(&self, activity: &NSUserActivity)
pub unsafe fn restoreUserActivityState(&self, activity: &NSUserActivity)
pub unsafe fn captureTextFromCamera(&self, sender: Option<&AnyObject>)
pub unsafe fn activityItemsConfiguration( &self ) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationReading>>>
Available on crate features
UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.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>§
sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
sourcepub fn class(&self) -> &'static AnyClass
Available on crate feature UIIndirectScribbleInteraction only.
pub fn class(&self) -> &'static AnyClass
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());sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load instead.Available on crate feature UIIndirectScribbleInteraction only.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load instead.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.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut instead.Available on crate feature UIIndirectScribbleInteraction only.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut instead.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 UITableView
impl AsMut<AnyObject> for UITableView
source§impl AsMut<NSObject> for UITableView
impl AsMut<NSObject> for UITableView
source§impl AsMut<UIResponder> for UITableView
impl AsMut<UIResponder> for UITableView
source§fn as_mut(&mut self) -> &mut UIResponder
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 UITableView
impl AsMut<UIScrollView> for UITableView
source§fn as_mut(&mut self) -> &mut UIScrollView
fn as_mut(&mut self) -> &mut UIScrollView
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<UITableView> for UITableView
impl AsMut<UITableView> for UITableView
source§impl AsMut<UIView> for UITableView
impl AsMut<UIView> for UITableView
source§impl AsRef<AnyObject> for UITableView
impl AsRef<AnyObject> for UITableView
source§impl AsRef<NSObject> for UITableView
impl AsRef<NSObject> for UITableView
source§impl AsRef<UIResponder> for UITableView
impl AsRef<UIResponder> for UITableView
source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<UIScrollView> for UITableView
impl AsRef<UIScrollView> for UITableView
source§fn as_ref(&self) -> &UIScrollView
fn as_ref(&self) -> &UIScrollView
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<UITableView> for UITableView
impl AsRef<UITableView> for UITableView
source§impl AsRef<UIView> for UITableView
impl AsRef<UIView> for UITableView
source§impl Borrow<AnyObject> for UITableView
impl Borrow<AnyObject> for UITableView
source§impl Borrow<NSObject> for UITableView
impl Borrow<NSObject> for UITableView
source§impl Borrow<UIResponder> for UITableView
impl Borrow<UIResponder> for UITableView
source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Immutably borrows from an owned value. Read more
source§impl Borrow<UIScrollView> for UITableView
impl Borrow<UIScrollView> for UITableView
source§fn borrow(&self) -> &UIScrollView
fn borrow(&self) -> &UIScrollView
Immutably borrows from an owned value. Read more
source§impl Borrow<UIView> for UITableView
impl Borrow<UIView> for UITableView
source§impl BorrowMut<AnyObject> for UITableView
impl BorrowMut<AnyObject> for UITableView
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSObject> for UITableView
impl BorrowMut<NSObject> for UITableView
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Mutably borrows from an owned value. Read more
source§impl BorrowMut<UIResponder> for UITableView
impl BorrowMut<UIResponder> for UITableView
source§fn borrow_mut(&mut self) -> &mut UIResponder
fn borrow_mut(&mut self) -> &mut UIResponder
Mutably borrows from an owned value. Read more
source§impl BorrowMut<UIScrollView> for UITableView
impl BorrowMut<UIScrollView> for UITableView
source§fn borrow_mut(&mut self) -> &mut UIScrollView
fn borrow_mut(&mut self) -> &mut UIScrollView
Mutably borrows from an owned value. Read more
source§impl BorrowMut<UIView> for UITableView
impl BorrowMut<UIView> for UITableView
source§fn borrow_mut(&mut self) -> &mut UIView
fn borrow_mut(&mut self) -> &mut UIView
Mutably borrows from an owned value. Read more
source§impl CALayerDelegate for UITableView
Available on crate feature objc2-quartz-core and non-watchOS only.
impl CALayerDelegate for UITableView
Available on crate feature
objc2-quartz-core and non-watchOS only.unsafe fn displayLayer(&self, layer: &CALayer)
unsafe fn layerWillDraw(&self, layer: &CALayer)
unsafe fn layoutSublayersOfLayer(&self, layer: &CALayer)
unsafe fn actionForLayer_forKey( &self, layer: &CALayer, event: &NSString ) -> Option<Retained<ProtocolObject<dyn CAAction>>>
source§impl ClassType for UITableView
impl ClassType for UITableView
§type Super = UIScrollView
type Super = UIScrollView
The superclass of this class. Read more
§type Mutability = MainThreadOnly
type Mutability = MainThreadOnly
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "UITableView"
const NAME: &'static str = "UITableView"
The name of the Objective-C class that this type represents. Read more
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
Get a reference to the Objective-C class that this type represents. Read more
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
Get a mutable reference to the superclass.
source§impl Debug for UITableView
impl Debug for UITableView
source§impl Deref for UITableView
impl Deref for UITableView
source§impl DerefMut for UITableView
impl DerefMut for UITableView
source§impl Hash for UITableView
impl Hash for UITableView
source§impl NSCoding for UITableView
impl NSCoding for UITableView
source§impl NSObjectProtocol for UITableView
impl NSObjectProtocol for UITableView
source§fn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
Check whether the object is equal to an arbitrary other object. Read more
source§fn hash(&self) -> usize
fn hash(&self) -> usize
An integer that can be used as a table address in a hash table
structure. Read more
source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
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
fn is_kind_of<T>(&self) -> bool
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
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of a specific class, without
checking subclasses. Read more
source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Check whether the object implements or inherits a method with the
given selector. Read more
source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Check whether the object conforms to a given protocol. Read more
source§fn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
A textual representation of the object to use when debugging. Read more
source§impl PartialEq for UITableView
impl PartialEq for UITableView
source§fn eq(&self, other: &UITableView) -> bool
fn eq(&self, other: &UITableView) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl RefEncode for UITableView
impl RefEncode for UITableView
source§const ENCODING_REF: Encoding = <UIScrollView as ::objc2::RefEncode>::ENCODING_REF
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 UITableView
Available on crate feature UIAppearance only.
impl UIAppearance for UITableView
Available on crate feature
UIAppearance only.unsafe fn appearance(mtm: MainThreadMarker) -> Retained<Self>
unsafe fn appearanceWhenContainedInInstancesOfClasses( container_types: &NSArray<TodoClass>, mtm: MainThreadMarker ) -> Retained<Self>
source§unsafe fn appearanceForTraitCollection(
trait: &UITraitCollection,
mtm: MainThreadMarker
) -> Retained<Self>
unsafe fn appearanceForTraitCollection( trait: &UITraitCollection, mtm: MainThreadMarker ) -> Retained<Self>
Available on crate feature
UITraitCollection only.source§unsafe fn appearanceForTraitCollection_whenContainedInInstancesOfClasses(
trait: &UITraitCollection,
container_types: &NSArray<TodoClass>,
mtm: MainThreadMarker
) -> Retained<Self>
unsafe fn appearanceForTraitCollection_whenContainedInInstancesOfClasses( trait: &UITraitCollection, container_types: &NSArray<TodoClass>, mtm: MainThreadMarker ) -> Retained<Self>
Available on crate feature
UITraitCollection only.source§impl UICoordinateSpace for UITableView
impl UICoordinateSpace for UITableView
fn convertPoint_toCoordinateSpace( &self, point: CGPoint, coordinate_space: &ProtocolObject<dyn UICoordinateSpace> ) -> CGPoint
fn convertPoint_fromCoordinateSpace( &self, point: CGPoint, coordinate_space: &ProtocolObject<dyn UICoordinateSpace> ) -> CGPoint
fn convertRect_toCoordinateSpace( &self, rect: CGRect, coordinate_space: &ProtocolObject<dyn UICoordinateSpace> ) -> CGRect
fn convertRect_fromCoordinateSpace( &self, rect: CGRect, coordinate_space: &ProtocolObject<dyn UICoordinateSpace> ) -> CGRect
fn bounds(&self) -> CGRect
source§impl UIDataSourceTranslating for UITableView
Available on crate feature UIDataSourceTranslating only.
impl UIDataSourceTranslating for UITableView
Available on crate feature
UIDataSourceTranslating only.unsafe fn presentationSectionIndexForDataSourceSectionIndex( &self, data_source_section_index: NSInteger ) -> NSInteger
unsafe fn dataSourceSectionIndexForPresentationSectionIndex( &self, presentation_section_index: NSInteger ) -> NSInteger
unsafe fn presentationIndexPathForDataSourceIndexPath( &self, data_source_index_path: Option<&NSIndexPath> ) -> Option<Retained<NSIndexPath>>
unsafe fn dataSourceIndexPathForPresentationIndexPath( &self, presentation_index_path: Option<&NSIndexPath> ) -> Option<Retained<NSIndexPath>>
source§impl UIDynamicItem for UITableView
Available on crate feature UIDynamicBehavior only.
impl UIDynamicItem for UITableView
Available on crate feature
UIDynamicBehavior only.unsafe fn center(&self) -> CGPoint
unsafe fn setCenter(&self, center: CGPoint)
unsafe fn bounds(&self) -> CGRect
unsafe fn transform(&self) -> CGAffineTransform
unsafe fn setTransform(&self, transform: CGAffineTransform)
unsafe fn collisionBoundsType(&self) -> UIDynamicItemCollisionBoundsType
source§unsafe fn collisionBoundingPath(&self) -> Retained<UIBezierPath>
unsafe fn collisionBoundingPath(&self) -> Retained<UIBezierPath>
Available on crate feature
UIBezierPath only.source§impl UIFocusEnvironment for UITableView
Available on crate feature UIFocus only.
impl UIFocusEnvironment for UITableView
Available on crate feature
UIFocus only.unsafe fn preferredFocusEnvironments( &self ) -> Retained<NSArray<ProtocolObject<dyn UIFocusEnvironment>>>
unsafe fn parentFocusEnvironment( &self ) -> Option<Retained<ProtocolObject<dyn UIFocusEnvironment>>>
unsafe fn focusItemContainer( &self ) -> Option<Retained<ProtocolObject<dyn UIFocusItemContainer>>>
unsafe fn setNeedsFocusUpdate(&self)
unsafe fn updateFocusIfNeeded(&self)
unsafe fn shouldUpdateFocusInContext( &self, context: &UIFocusUpdateContext ) -> bool
source§unsafe fn didUpdateFocusInContext_withAnimationCoordinator(
&self,
context: &UIFocusUpdateContext,
coordinator: &UIFocusAnimationCoordinator
)
unsafe fn didUpdateFocusInContext_withAnimationCoordinator( &self, context: &UIFocusUpdateContext, coordinator: &UIFocusAnimationCoordinator )
Available on crate feature
UIFocusAnimationCoordinator only.unsafe fn soundIdentifierForFocusUpdateInContext( &self, context: &UIFocusUpdateContext ) -> Option<Retained<UIFocusSoundIdentifier>>
unsafe fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>
source§impl UIFocusItem for UITableView
Available on crate feature UIFocus only.
impl UIFocusItem for UITableView
Available on crate feature
UIFocus only.unsafe fn canBecomeFocused(&self) -> bool
unsafe fn frame(&self) -> CGRect
source§unsafe fn focusEffect(&self) -> Option<Retained<UIFocusEffect>>
unsafe fn focusEffect(&self) -> Option<Retained<UIFocusEffect>>
Available on crate feature
UIFocusEffect only.unsafe fn focusGroupPriority(&self) -> UIFocusGroupPriority
unsafe fn isTransparentFocusItem(&self) -> bool
source§unsafe fn didHintFocusMovement(&self, hint: &UIFocusMovementHint)
unsafe fn didHintFocusMovement(&self, hint: &UIFocusMovementHint)
Available on crate feature
UIFocusMovementHint only.source§impl UIFocusItemContainer for UITableView
Available on crate feature UIFocus only.
impl UIFocusItemContainer for UITableView
Available on crate feature
UIFocus only.unsafe fn coordinateSpace( &self ) -> Retained<ProtocolObject<dyn UICoordinateSpace>>
unsafe fn focusItemsInRect( &self, rect: CGRect ) -> Retained<NSArray<ProtocolObject<dyn UIFocusItem>>>
source§impl UIFocusItemScrollableContainer for UITableView
Available on crate feature UIFocus only.
impl UIFocusItemScrollableContainer for UITableView
Available on crate feature
UIFocus only.unsafe fn contentOffset(&self) -> CGPoint
unsafe fn setContentOffset(&self, content_offset: CGPoint)
unsafe fn contentSize(&self) -> CGSize
unsafe fn visibleSize(&self) -> CGSize
source§impl UIResponderStandardEditActions for UITableView
impl UIResponderStandardEditActions for UITableView
unsafe fn cut(&self, sender: Option<&AnyObject>)
unsafe fn copy(&self, sender: Option<&AnyObject>)
unsafe fn paste(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndMatchStyle(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndGo(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndSearch(&self, sender: Option<&AnyObject>)
unsafe fn select(&self, sender: Option<&AnyObject>)
unsafe fn selectAll(&self, sender: Option<&AnyObject>)
unsafe fn delete(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
unsafe fn toggleBoldface(&self, sender: Option<&AnyObject>)
unsafe fn toggleItalics(&self, sender: Option<&AnyObject>)
unsafe fn toggleUnderline(&self, sender: Option<&AnyObject>)
unsafe fn increaseSize(&self, sender: Option<&AnyObject>)
unsafe fn decreaseSize(&self, sender: Option<&AnyObject>)
unsafe fn find(&self, sender: Option<&AnyObject>)
unsafe fn findAndReplace(&self, sender: Option<&AnyObject>)
unsafe fn findNext(&self, sender: Option<&AnyObject>)
unsafe fn findPrevious(&self, sender: Option<&AnyObject>)
unsafe fn useSelectionForFind(&self, sender: Option<&AnyObject>)
source§unsafe fn updateTextAttributesWithConversionHandler(
&self,
conversion_handler: UITextAttributesConversionHandler
)
unsafe fn updateTextAttributesWithConversionHandler( &self, conversion_handler: UITextAttributesConversionHandler )
Available on crate feature
block2 only.unsafe fn print(&self, sender: Option<&AnyObject>)
unsafe fn rename(&self, sender: Option<&AnyObject>)
unsafe fn duplicate(&self, sender: Option<&AnyObject>)
unsafe fn move(&self, sender: Option<&AnyObject>)
unsafe fn export(&self, sender: Option<&AnyObject>)
source§impl UISpringLoadedInteractionSupporting for UITableView
Available on crate feature UISpringLoadedInteractionSupporting only.
impl UISpringLoadedInteractionSupporting for UITableView
Available on crate feature
UISpringLoadedInteractionSupporting only.source§impl UITraitEnvironment for UITableView
Available on crate feature UITraitCollection only.
impl UITraitEnvironment for UITableView
Available on crate feature
UITraitCollection only.fn traitCollection(&self) -> Retained<UITraitCollection>
source§unsafe fn traitCollectionDidChange(
&self,
previous_trait_collection: Option<&UITraitCollection>
)
unsafe fn traitCollectionDidChange( &self, previous_trait_collection: Option<&UITraitCollection> )
👎Deprecated: Use the trait change registration APIs declared in the UITraitChangeObservable protocol
impl Eq for UITableView
impl Message for UITableView
impl StructuralPartialEq for UITableView
impl UIAppearanceContainer for UITableView
Available on crate feature
UIAppearance only.Auto Trait Implementations§
impl !Freeze for UITableView
impl !RefUnwindSafe for UITableView
impl !Send for UITableView
impl !Sync for UITableView
impl !Unpin for UITableView
impl !UnwindSafe for UITableView
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CounterpartOrSelf for T
impl<T> CounterpartOrSelf for T
§type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
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
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