pub struct UITextView { /* private fields */ }UIResponder and UIScrollView and UITextView and UIView only.Expand description
Implementations§
Source§impl UITextView
impl UITextView
pub fn delegate( &self, ) -> Option<Retained<ProtocolObject<dyn UITextViewDelegate>>>
Sourcepub unsafe fn setDelegate(
&self,
delegate: Option<&ProtocolObject<dyn UITextViewDelegate>>,
)
pub unsafe fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn UITextViewDelegate>>, )
Setter for delegate.
This is a weak property.
pub fn text(&self) -> Retained<NSString>
pub fn font(&self) -> Option<Retained<UIFont>>
UIFont only.Sourcepub fn setFont(&self, font: Option<&UIFont>)
Available on crate feature UIFont only.
pub fn setFont(&self, font: Option<&UIFont>)
UIFont only.Setter for font.
pub fn textColor(&self) -> Option<Retained<UIColor>>
UIColor only.Sourcepub fn setTextColor(&self, text_color: Option<&UIColor>)
Available on crate feature UIColor only.
pub fn setTextColor(&self, text_color: Option<&UIColor>)
UIColor only.Setter for textColor.
pub fn textAlignment(&self) -> NSTextAlignment
NSText only.Sourcepub fn setTextAlignment(&self, text_alignment: NSTextAlignment)
Available on crate feature NSText only.
pub fn setTextAlignment(&self, text_alignment: NSTextAlignment)
NSText only.Setter for textAlignment.
Sourcepub fn selectedRange(&self) -> NSRange
👎Deprecated
pub fn selectedRange(&self) -> NSRange
A union of all the selectedRanges.
Sourcepub fn setSelectedRange(&self, selected_range: NSRange)
👎Deprecated
pub fn setSelectedRange(&self, selected_range: NSRange)
Setter for selectedRange.
Sourcepub fn selectedRanges(&self) -> Retained<NSArray<NSValue>>
pub fn selectedRanges(&self) -> Retained<NSArray<NSValue>>
The NSRanges of the selection. In most cases, there will only be a single selected range. For cases where bidirectional text is selected, there may be multiple discontiguous ranges. These selected ranges will always be in the normal form, which means they are sorted in ascending order and there are no overlaps. The selected ranges will always be converted to its normal form when they are set. There will always be at least one selected range in this array. So if this array is set to an empty array then the selection will be cleared and a single selected range will be left behind where the length will be 0 and the location will be the location at the end of the selection.
Sourcepub fn setSelectedRanges(&self, selected_ranges: &NSArray<NSValue>)
pub fn setSelectedRanges(&self, selected_ranges: &NSArray<NSValue>)
Setter for selectedRanges.
This is copied when set.
pub fn isEditable(&self) -> bool
Sourcepub fn setEditable(&self, editable: bool)
pub fn setEditable(&self, editable: bool)
Setter for isEditable.
pub fn isSelectable(&self) -> bool
Sourcepub fn setSelectable(&self, selectable: bool)
pub fn setSelectable(&self, selectable: bool)
Setter for isSelectable.
pub fn dataDetectorTypes(&self) -> UIDataDetectorTypes
UIDataDetectors only.Sourcepub fn setDataDetectorTypes(&self, data_detector_types: UIDataDetectorTypes)
Available on crate feature UIDataDetectors only.
pub fn setDataDetectorTypes(&self, data_detector_types: UIDataDetectorTypes)
UIDataDetectors only.Setter for dataDetectorTypes.
pub fn allowsEditingTextAttributes(&self) -> bool
Sourcepub fn setAllowsEditingTextAttributes(
&self,
allows_editing_text_attributes: bool,
)
pub fn setAllowsEditingTextAttributes( &self, allows_editing_text_attributes: bool, )
Setter for allowsEditingTextAttributes.
pub fn attributedText(&self) -> Retained<NSAttributedString>
Sourcepub fn setAttributedText(&self, attributed_text: Option<&NSAttributedString>)
pub fn setAttributedText(&self, attributed_text: Option<&NSAttributedString>)
Setter for attributedText.
This is copied when set.
pub fn typingAttributes( &self, ) -> Retained<NSDictionary<NSAttributedStringKey, AnyObject>>
Sourcepub unsafe fn setTypingAttributes(
&self,
typing_attributes: &NSDictionary<NSAttributedStringKey, AnyObject>,
)
pub unsafe fn setTypingAttributes( &self, typing_attributes: &NSDictionary<NSAttributedStringKey, AnyObject>, )
Setter for typingAttributes.
This is copied when set.
§Safety
typing_attributes generic should be of the correct type.
pub fn scrollRangeToVisible(&self, range: NSRange)
pub fn inputView(&self) -> Option<Retained<UIView>>
Sourcepub fn setInputView(&self, input_view: Option<&UIView>)
pub fn setInputView(&self, input_view: Option<&UIView>)
Setter for inputView.
pub fn inputAccessoryView(&self) -> Option<Retained<UIView>>
Sourcepub fn setInputAccessoryView(&self, input_accessory_view: Option<&UIView>)
pub fn setInputAccessoryView(&self, input_accessory_view: Option<&UIView>)
Setter for inputAccessoryView.
pub fn clearsOnInsertion(&self) -> bool
Sourcepub fn setClearsOnInsertion(&self, clears_on_insertion: bool)
pub fn setClearsOnInsertion(&self, clears_on_insertion: bool)
Setter for clearsOnInsertion.
pub fn initWithFrame_textContainer( this: Allocated<Self>, frame: CGRect, text_container: Option<&NSTextContainer>, ) -> Retained<Self>
NSTextContainer and objc2-core-foundation only.pub fn textViewUsingTextLayoutManager( using_text_layout_manager: bool, mtm: MainThreadMarker, ) -> Retained<Self>
Sourcepub unsafe fn initWithCoder(
this: Allocated<Self>,
coder: &NSCoder,
) -> Option<Retained<Self>>
pub unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder, ) -> Option<Retained<Self>>
§Safety
coder possibly has further requirements.
pub fn textContainer(&self) -> Retained<NSTextContainer>
NSTextContainer only.pub fn textContainerInset(&self) -> UIEdgeInsets
UIGeometry and objc2-core-foundation only.Sourcepub fn setTextContainerInset(&self, text_container_inset: UIEdgeInsets)
Available on crate features UIGeometry and objc2-core-foundation only.
pub fn setTextContainerInset(&self, text_container_inset: UIEdgeInsets)
UIGeometry and objc2-core-foundation only.Setter for textContainerInset.
pub fn textLayoutManager(&self) -> Option<Retained<NSTextLayoutManager>>
NSTextLayoutManager only.pub fn layoutManager(&self) -> Retained<NSLayoutManager>
NSLayoutManager only.pub fn textStorage(&self) -> Retained<NSTextStorage>
NSTextStorage only.pub fn linkTextAttributes( &self, ) -> Retained<NSDictionary<NSAttributedStringKey, AnyObject>>
Sourcepub unsafe fn setLinkTextAttributes(
&self,
link_text_attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
)
pub unsafe fn setLinkTextAttributes( &self, link_text_attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, )
Setter for linkTextAttributes.
This is copied when set.
§Safety
link_text_attributes generic should be of the correct type.
pub fn usesStandardTextScaling(&self) -> bool
Sourcepub fn setUsesStandardTextScaling(&self, uses_standard_text_scaling: bool)
pub fn setUsesStandardTextScaling(&self, uses_standard_text_scaling: bool)
Setter for usesStandardTextScaling.
Sourcepub fn findInteraction(&self) -> Option<Retained<UIFindInteraction>>
Available on crate feature UIFindInteraction only.
pub fn findInteraction(&self) -> Option<Retained<UIFindInteraction>>
UIFindInteraction only.If findInteractionEnabled is set to true, returns this text view’s built-in find interaction. Otherwise, nil.
Sourcepub fn isFindInteractionEnabled(&self) -> bool
pub fn isFindInteractionEnabled(&self) -> bool
Enables this text view’s built-in find interaction.
Sourcepub fn setFindInteractionEnabled(&self, find_interaction_enabled: bool)
pub fn setFindInteractionEnabled(&self, find_interaction_enabled: bool)
Setter for isFindInteractionEnabled.
Sourcepub fn borderStyle(&self) -> UITextViewBorderStyle
pub fn borderStyle(&self) -> UITextViewBorderStyle
The border style for the text field.
Sourcepub fn setBorderStyle(&self, border_style: UITextViewBorderStyle)
pub fn setBorderStyle(&self, border_style: UITextViewBorderStyle)
Setter for borderStyle.
pub fn textHighlightAttributes( &self, ) -> Retained<NSDictionary<NSAttributedStringKey, AnyObject>>
Sourcepub unsafe fn setTextHighlightAttributes(
&self,
text_highlight_attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
)
pub unsafe fn setTextHighlightAttributes( &self, text_highlight_attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, )
Setter for textHighlightAttributes.
This is copied when set.
§Safety
text_highlight_attributes generic should be of the correct type.
pub fn drawTextHighlightBackgroundForTextRange_origin( &self, text_range: &NSTextRange, origin: CGPoint, )
NSTextRange and objc2-core-foundation only.Sourcepub fn isWritingToolsActive(&self) -> bool
pub fn isWritingToolsActive(&self) -> bool
Convenience for tracking whether Writing Tools is active
Returns: Returns
YESwhile Writing Tools is interacting with the receiver (after
-textViewWritingToolsWillBegin:completes until
-textViewWritingToolsDidEnd:completes)
pub fn writingToolsBehavior(&self) -> UIWritingToolsBehavior
UITextInputTraits only.Sourcepub fn setWritingToolsBehavior(
&self,
writing_tools_behavior: UIWritingToolsBehavior,
)
Available on crate feature UITextInputTraits only.
pub fn setWritingToolsBehavior( &self, writing_tools_behavior: UIWritingToolsBehavior, )
UITextInputTraits only.Setter for writingToolsBehavior.
pub fn allowedWritingToolsResultOptions(&self) -> UIWritingToolsResultOptions
UITextInputTraits only.Sourcepub fn setAllowedWritingToolsResultOptions(
&self,
allowed_writing_tools_result_options: UIWritingToolsResultOptions,
)
Available on crate feature UITextInputTraits only.
pub fn setAllowedWritingToolsResultOptions( &self, allowed_writing_tools_result_options: UIWritingToolsResultOptions, )
UITextInputTraits only.Setter for allowedWritingToolsResultOptions.
pub fn subclassForWritingToolsCoordinator(&self) -> &'static AnyClass
pub fn writingToolsCoordinator(&self) -> Retained<UIWritingToolsCoordinator>
UIWritingToolsCoordinator only.Sourcepub fn textFormattingConfiguration(
&self,
) -> Option<Retained<UITextFormattingViewControllerConfiguration>>
Available on crate feature UITextFormattingViewControllerConfiguration only.
pub fn textFormattingConfiguration( &self, ) -> Option<Retained<UITextFormattingViewControllerConfiguration>>
UITextFormattingViewControllerConfiguration only.For text views that have flag allowsEditingTextAttributes set,
this configuration will be used for UITextFormattingViewController
when its presentation is requested.
It has a non-nil default value.
Sourcepub fn setTextFormattingConfiguration(
&self,
text_formatting_configuration: Option<&UITextFormattingViewControllerConfiguration>,
)
Available on crate feature UITextFormattingViewControllerConfiguration only.
pub fn setTextFormattingConfiguration( &self, text_formatting_configuration: Option<&UITextFormattingViewControllerConfiguration>, )
UITextFormattingViewControllerConfiguration only.Setter for textFormattingConfiguration.
This is copied when set.
Source§impl UITextView
Methods declared on superclass UIView.
impl UITextView
Methods declared on superclass UIView.
Source§impl UITextView
Methods declared on superclass NSObject.
impl UITextView
Methods declared on superclass NSObject.
pub fn new(mtm: MainThreadMarker) -> Retained<Self>
Source§impl UITextView
UIInteractionStateRestorable.
impl UITextView
UIInteractionStateRestorable.
pub fn interactionState(&self) -> Retained<AnyObject>
Sourcepub unsafe fn setInteractionState(&self, interaction_state: &AnyObject)
pub unsafe fn setInteractionState(&self, interaction_state: &AnyObject)
Setter for interactionState.
This is copied when set.
§Safety
interaction_state should be of the correct type.
Methods from Deref<Target = UIScrollView>§
pub fn contentOffset(&self) -> CGPoint
objc2-core-foundation only.Sourcepub fn setContentOffset(&self, content_offset: CGPoint)
Available on crate feature objc2-core-foundation only.
pub fn setContentOffset(&self, content_offset: CGPoint)
objc2-core-foundation only.Setter for contentOffset.
pub fn contentSize(&self) -> CGSize
objc2-core-foundation only.Sourcepub fn setContentSize(&self, content_size: CGSize)
Available on crate feature objc2-core-foundation only.
pub fn setContentSize(&self, content_size: CGSize)
objc2-core-foundation only.Setter for contentSize.
pub fn contentInset(&self) -> UIEdgeInsets
UIGeometry and objc2-core-foundation only.Sourcepub fn setContentInset(&self, content_inset: UIEdgeInsets)
Available on crate features UIGeometry and objc2-core-foundation only.
pub fn setContentInset(&self, content_inset: UIEdgeInsets)
UIGeometry and objc2-core-foundation only.Setter for contentInset.
pub fn contentAlignmentPoint(&self) -> CGPoint
objc2-core-foundation only.Sourcepub fn setContentAlignmentPoint(&self, content_alignment_point: CGPoint)
Available on crate feature objc2-core-foundation only.
pub fn setContentAlignmentPoint(&self, content_alignment_point: CGPoint)
objc2-core-foundation only.Setter for contentAlignmentPoint.
pub fn adjustedContentInset(&self) -> UIEdgeInsets
UIGeometry and objc2-core-foundation only.pub fn adjustedContentInsetDidChange(&self)
pub fn contentInsetAdjustmentBehavior( &self, ) -> UIScrollViewContentInsetAdjustmentBehavior
Sourcepub fn setContentInsetAdjustmentBehavior(
&self,
content_inset_adjustment_behavior: UIScrollViewContentInsetAdjustmentBehavior,
)
pub fn setContentInsetAdjustmentBehavior( &self, content_inset_adjustment_behavior: UIScrollViewContentInsetAdjustmentBehavior, )
Setter for contentInsetAdjustmentBehavior.
pub fn automaticallyAdjustsScrollIndicatorInsets(&self) -> bool
Sourcepub fn setAutomaticallyAdjustsScrollIndicatorInsets(
&self,
automatically_adjusts_scroll_indicator_insets: bool,
)
pub fn setAutomaticallyAdjustsScrollIndicatorInsets( &self, automatically_adjusts_scroll_indicator_insets: bool, )
Setter for automaticallyAdjustsScrollIndicatorInsets.
pub fn contentLayoutGuide(&self) -> Retained<UILayoutGuide>
UILayoutGuide only.pub fn frameLayoutGuide(&self) -> Retained<UILayoutGuide>
UILayoutGuide only.pub fn delegate( &self, ) -> Option<Retained<ProtocolObject<dyn UIScrollViewDelegate>>>
Sourcepub unsafe fn setDelegate(
&self,
delegate: Option<&ProtocolObject<dyn UIScrollViewDelegate>>,
)
pub unsafe fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn UIScrollViewDelegate>>, )
Setter for delegate.
This is a weak property.
pub fn isDirectionalLockEnabled(&self) -> bool
Sourcepub fn setDirectionalLockEnabled(&self, directional_lock_enabled: bool)
pub fn setDirectionalLockEnabled(&self, directional_lock_enabled: bool)
Setter for isDirectionalLockEnabled.
pub fn bounces(&self) -> bool
Sourcepub fn setBounces(&self, bounces: bool)
pub fn setBounces(&self, bounces: bool)
Setter for bounces.
pub fn bouncesHorizontally(&self) -> bool
Sourcepub fn setBouncesHorizontally(&self, bounces_horizontally: bool)
pub fn setBouncesHorizontally(&self, bounces_horizontally: bool)
Setter for bouncesHorizontally.
pub fn bouncesVertically(&self) -> bool
Sourcepub fn setBouncesVertically(&self, bounces_vertically: bool)
pub fn setBouncesVertically(&self, bounces_vertically: bool)
Setter for bouncesVertically.
pub fn alwaysBounceVertical(&self) -> bool
Sourcepub fn setAlwaysBounceVertical(&self, always_bounce_vertical: bool)
pub fn setAlwaysBounceVertical(&self, always_bounce_vertical: bool)
Setter for alwaysBounceVertical.
pub fn alwaysBounceHorizontal(&self) -> bool
Sourcepub fn setAlwaysBounceHorizontal(&self, always_bounce_horizontal: bool)
pub fn setAlwaysBounceHorizontal(&self, always_bounce_horizontal: bool)
Setter for alwaysBounceHorizontal.
pub fn isPagingEnabled(&self) -> bool
Sourcepub fn setPagingEnabled(&self, paging_enabled: bool)
pub fn setPagingEnabled(&self, paging_enabled: bool)
Setter for isPagingEnabled.
pub fn isScrollEnabled(&self) -> bool
Sourcepub fn setScrollEnabled(&self, scroll_enabled: bool)
pub fn setScrollEnabled(&self, scroll_enabled: bool)
Setter for isScrollEnabled.
pub fn transfersHorizontalScrollingToParent(&self) -> bool
Sourcepub fn setTransfersHorizontalScrollingToParent(
&self,
transfers_horizontal_scrolling_to_parent: bool,
)
pub fn setTransfersHorizontalScrollingToParent( &self, transfers_horizontal_scrolling_to_parent: bool, )
Setter for transfersHorizontalScrollingToParent.
pub fn transfersVerticalScrollingToParent(&self) -> bool
Sourcepub fn setTransfersVerticalScrollingToParent(
&self,
transfers_vertical_scrolling_to_parent: bool,
)
pub fn setTransfersVerticalScrollingToParent( &self, transfers_vertical_scrolling_to_parent: bool, )
Setter for transfersVerticalScrollingToParent.
pub fn showsVerticalScrollIndicator(&self) -> bool
Sourcepub fn setShowsVerticalScrollIndicator(
&self,
shows_vertical_scroll_indicator: bool,
)
pub fn setShowsVerticalScrollIndicator( &self, shows_vertical_scroll_indicator: bool, )
Setter for showsVerticalScrollIndicator.
pub fn showsHorizontalScrollIndicator(&self) -> bool
Sourcepub fn setShowsHorizontalScrollIndicator(
&self,
shows_horizontal_scroll_indicator: bool,
)
pub fn setShowsHorizontalScrollIndicator( &self, shows_horizontal_scroll_indicator: bool, )
Setter for showsHorizontalScrollIndicator.
pub fn indicatorStyle(&self) -> UIScrollViewIndicatorStyle
Sourcepub fn setIndicatorStyle(&self, indicator_style: UIScrollViewIndicatorStyle)
pub fn setIndicatorStyle(&self, indicator_style: UIScrollViewIndicatorStyle)
Setter for indicatorStyle.
pub fn verticalScrollIndicatorInsets(&self) -> UIEdgeInsets
UIGeometry and objc2-core-foundation only.Sourcepub fn setVerticalScrollIndicatorInsets(
&self,
vertical_scroll_indicator_insets: UIEdgeInsets,
)
Available on crate features UIGeometry and objc2-core-foundation only.
pub fn setVerticalScrollIndicatorInsets( &self, vertical_scroll_indicator_insets: UIEdgeInsets, )
UIGeometry and objc2-core-foundation only.Setter for verticalScrollIndicatorInsets.
pub fn horizontalScrollIndicatorInsets(&self) -> UIEdgeInsets
UIGeometry and objc2-core-foundation only.Sourcepub fn setHorizontalScrollIndicatorInsets(
&self,
horizontal_scroll_indicator_insets: UIEdgeInsets,
)
Available on crate features UIGeometry and objc2-core-foundation only.
pub fn setHorizontalScrollIndicatorInsets( &self, horizontal_scroll_indicator_insets: UIEdgeInsets, )
UIGeometry and objc2-core-foundation only.Setter for horizontalScrollIndicatorInsets.
pub fn scrollIndicatorInsets(&self) -> UIEdgeInsets
UIGeometry and objc2-core-foundation only.Sourcepub fn setScrollIndicatorInsets(&self, scroll_indicator_insets: UIEdgeInsets)
Available on crate features UIGeometry and objc2-core-foundation only.
pub fn setScrollIndicatorInsets(&self, scroll_indicator_insets: UIEdgeInsets)
UIGeometry and objc2-core-foundation only.Setter for scrollIndicatorInsets.
pub fn decelerationRate(&self) -> UIScrollViewDecelerationRate
objc2-core-foundation only.Sourcepub fn setDecelerationRate(
&self,
deceleration_rate: UIScrollViewDecelerationRate,
)
Available on crate feature objc2-core-foundation only.
pub fn setDecelerationRate( &self, deceleration_rate: UIScrollViewDecelerationRate, )
objc2-core-foundation only.Setter for decelerationRate.
pub fn indexDisplayMode(&self) -> UIScrollViewIndexDisplayMode
Sourcepub fn setIndexDisplayMode(
&self,
index_display_mode: UIScrollViewIndexDisplayMode,
)
pub fn setIndexDisplayMode( &self, index_display_mode: UIScrollViewIndexDisplayMode, )
Setter for indexDisplayMode.
pub fn setContentOffset_animated(&self, content_offset: CGPoint, animated: bool)
objc2-core-foundation only.pub fn scrollRectToVisible_animated(&self, rect: CGRect, animated: bool)
objc2-core-foundation only.pub fn flashScrollIndicators(&self)
pub fn withScrollIndicatorsShownForContentOffsetChanges( &self, changes: &DynBlock<dyn Fn() + '_>, )
block2 only.Sourcepub fn topEdgeEffect(&self) -> Retained<UIScrollEdgeEffect>
pub fn topEdgeEffect(&self) -> Retained<UIScrollEdgeEffect>
The effect for the top edge of the scroll view.
Sourcepub fn leftEdgeEffect(&self) -> Retained<UIScrollEdgeEffect>
pub fn leftEdgeEffect(&self) -> Retained<UIScrollEdgeEffect>
The effect for the left edge of the scroll view.
Sourcepub fn bottomEdgeEffect(&self) -> Retained<UIScrollEdgeEffect>
pub fn bottomEdgeEffect(&self) -> Retained<UIScrollEdgeEffect>
The effect for the bottom edge of the scroll view.
Sourcepub fn rightEdgeEffect(&self) -> Retained<UIScrollEdgeEffect>
pub fn rightEdgeEffect(&self) -> Retained<UIScrollEdgeEffect>
The effect for the right edge of the scroll view.
pub fn isTracking(&self) -> bool
pub fn isDragging(&self) -> bool
pub fn isDecelerating(&self) -> bool
pub fn isScrollAnimating(&self) -> bool
pub fn delaysContentTouches(&self) -> bool
Sourcepub fn setDelaysContentTouches(&self, delays_content_touches: bool)
pub fn setDelaysContentTouches(&self, delays_content_touches: bool)
Setter for delaysContentTouches.
pub fn canCancelContentTouches(&self) -> bool
Sourcepub fn setCanCancelContentTouches(&self, can_cancel_content_touches: bool)
pub fn setCanCancelContentTouches(&self, can_cancel_content_touches: bool)
Setter for canCancelContentTouches.
pub fn touchesShouldBegin_withEvent_inContentView( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, view: &UIView, ) -> bool
UIEvent and UITouch only.pub fn touchesShouldCancelInContentView(&self, view: &UIView) -> bool
pub fn minimumZoomScale(&self) -> CGFloat
objc2-core-foundation only.Sourcepub fn setMinimumZoomScale(&self, minimum_zoom_scale: CGFloat)
Available on crate feature objc2-core-foundation only.
pub fn setMinimumZoomScale(&self, minimum_zoom_scale: CGFloat)
objc2-core-foundation only.Setter for minimumZoomScale.
pub fn maximumZoomScale(&self) -> CGFloat
objc2-core-foundation only.Sourcepub fn setMaximumZoomScale(&self, maximum_zoom_scale: CGFloat)
Available on crate feature objc2-core-foundation only.
pub fn setMaximumZoomScale(&self, maximum_zoom_scale: CGFloat)
objc2-core-foundation only.Setter for maximumZoomScale.
pub fn zoomScale(&self) -> CGFloat
objc2-core-foundation only.Sourcepub fn setZoomScale(&self, zoom_scale: CGFloat)
Available on crate feature objc2-core-foundation only.
pub fn setZoomScale(&self, zoom_scale: CGFloat)
objc2-core-foundation only.Setter for zoomScale.
pub fn setZoomScale_animated(&self, scale: CGFloat, animated: bool)
objc2-core-foundation only.pub fn zoomToRect_animated(&self, rect: CGRect, animated: bool)
objc2-core-foundation only.pub fn bouncesZoom(&self) -> bool
Sourcepub fn setBouncesZoom(&self, bounces_zoom: bool)
pub fn setBouncesZoom(&self, bounces_zoom: bool)
Setter for bouncesZoom.
pub fn isZooming(&self) -> bool
pub fn isZoomBouncing(&self) -> bool
pub fn isZoomAnimating(&self) -> bool
pub fn scrollsToTop(&self) -> bool
Sourcepub fn setScrollsToTop(&self, scrolls_to_top: bool)
pub fn setScrollsToTop(&self, scrolls_to_top: bool)
Setter for scrollsToTop.
pub fn stopScrollingAndZooming(&self)
pub fn panGestureRecognizer(&self) -> Retained<UIPanGestureRecognizer>
UIGestureRecognizer and UIPanGestureRecognizer only.pub fn pinchGestureRecognizer( &self, ) -> Option<Retained<UIPinchGestureRecognizer>>
UIGestureRecognizer and UIPinchGestureRecognizer only.pub fn directionalPressGestureRecognizer(&self) -> Retained<UIGestureRecognizer>
UIGestureRecognizer only.pub fn keyboardDismissMode(&self) -> UIScrollViewKeyboardDismissMode
Sourcepub fn setKeyboardDismissMode(
&self,
keyboard_dismiss_mode: UIScrollViewKeyboardDismissMode,
)
pub fn setKeyboardDismissMode( &self, keyboard_dismiss_mode: UIScrollViewKeyboardDismissMode, )
Setter for keyboardDismissMode.
pub fn refreshControl(&self) -> Option<Retained<UIRefreshControl>>
UIControl and UIRefreshControl only.Sourcepub fn setRefreshControl(&self, refresh_control: Option<&UIRefreshControl>)
Available on crate features UIControl and UIRefreshControl only.
pub fn setRefreshControl(&self, refresh_control: Option<&UIRefreshControl>)
UIControl and UIRefreshControl only.Setter for refreshControl.
Sourcepub fn allowsKeyboardScrolling(&self) -> bool
pub fn allowsKeyboardScrolling(&self) -> bool
Set this to YES to make the scroll view animate its content offset in response to keys like Page Up/Down, Home/End, and the arrow keys. The scroll view must be focused or first responder in order to receive these key events. Default is YES for apps linked after iOS 17.0.
Sourcepub fn setAllowsKeyboardScrolling(&self, allows_keyboard_scrolling: bool)
pub fn setAllowsKeyboardScrolling(&self, allows_keyboard_scrolling: bool)
Setter for allowsKeyboardScrolling.
Sourcepub fn lookToScrollAxes(&self) -> UIAxis
Available on crate feature UIGeometry only.
pub fn lookToScrollAxes(&self) -> UIAxis
UIGeometry only.Defines which axes are considered for Look to Scroll. Does not affect when isPagingEnabled is true.
Sourcepub fn setLookToScrollAxes(&self, look_to_scroll_axes: UIAxis)
Available on crate feature UIGeometry only.
pub fn setLookToScrollAxes(&self, look_to_scroll_axes: UIAxis)
UIGeometry only.Setter for lookToScrollAxes.
Methods from Deref<Target = UIView>§
pub fn accessibilityIgnoresInvertColors(&self) -> bool
UIAccessibilityAdditions only.Sourcepub fn setAccessibilityIgnoresInvertColors(
&self,
accessibility_ignores_invert_colors: bool,
)
Available on crate feature UIAccessibilityAdditions only.
pub fn setAccessibilityIgnoresInvertColors( &self, accessibility_ignores_invert_colors: bool, )
UIAccessibilityAdditions only.Setter for accessibilityIgnoresInvertColors.
Sourcepub fn hoverStyle(&self) -> Option<Retained<UIHoverStyle>>
Available on crate feature UIHoverStyle only.
pub fn hoverStyle(&self) -> Option<Retained<UIHoverStyle>>
UIHoverStyle only.The hover style associated with this view. Defaults to nil,
indicating that this view should not have any hover effect.
Subclasses may configure this style to use a different default value.
Sourcepub fn setHoverStyle(&self, hover_style: Option<&UIHoverStyle>)
Available on crate feature UIHoverStyle only.
pub fn setHoverStyle(&self, hover_style: Option<&UIHoverStyle>)
UIHoverStyle only.Setter for hoverStyle.
This is copied when set.
pub fn addInteraction(&self, interaction: &ProtocolObject<dyn UIInteraction>)
UIInteraction only.pub fn removeInteraction(&self, interaction: &ProtocolObject<dyn UIInteraction>)
UIInteraction only.pub fn interactions( &self, ) -> Retained<NSArray<ProtocolObject<dyn UIInteraction>>>
UIInteraction only.Sourcepub fn setInteractions(
&self,
interactions: &NSArray<ProtocolObject<dyn UIInteraction>>,
)
Available on crate feature UIInteraction only.
pub fn setInteractions( &self, interactions: &NSArray<ProtocolObject<dyn UIInteraction>>, )
UIInteraction only.Setter for interactions.
This is copied when set.
pub fn showsLargeContentViewer(&self) -> bool
UILargeContentViewer only.Sourcepub fn setShowsLargeContentViewer(&self, shows_large_content_viewer: bool)
Available on crate feature UILargeContentViewer only.
pub fn setShowsLargeContentViewer(&self, shows_large_content_viewer: bool)
UILargeContentViewer only.Setter for showsLargeContentViewer.
pub fn largeContentTitle(&self) -> Option<Retained<NSString>>
UILargeContentViewer only.Sourcepub fn setLargeContentTitle(&self, large_content_title: Option<&NSString>)
Available on crate feature UILargeContentViewer only.
pub fn setLargeContentTitle(&self, large_content_title: Option<&NSString>)
UILargeContentViewer only.Setter for largeContentTitle.
This is copied when set.
pub fn largeContentImage(&self) -> Option<Retained<UIImage>>
UILargeContentViewer and UIImage only.Sourcepub fn setLargeContentImage(&self, large_content_image: Option<&UIImage>)
Available on crate features UILargeContentViewer and UIImage only.
pub fn setLargeContentImage(&self, large_content_image: Option<&UIImage>)
UILargeContentViewer and UIImage only.Setter for largeContentImage.
pub fn scalesLargeContentImage(&self) -> bool
UILargeContentViewer only.Sourcepub fn setScalesLargeContentImage(&self, scales_large_content_image: bool)
Available on crate feature UILargeContentViewer only.
pub fn setScalesLargeContentImage(&self, scales_large_content_image: bool)
UILargeContentViewer only.Setter for scalesLargeContentImage.
pub fn largeContentImageInsets(&self) -> UIEdgeInsets
UILargeContentViewer and UIGeometry and objc2-core-foundation only.Sourcepub fn setLargeContentImageInsets(
&self,
large_content_image_insets: UIEdgeInsets,
)
Available on crate features UILargeContentViewer and UIGeometry and objc2-core-foundation only.
pub fn setLargeContentImageInsets( &self, large_content_image_insets: UIEdgeInsets, )
UILargeContentViewer and UIGeometry and objc2-core-foundation only.Setter for largeContentImageInsets.
pub fn viewPrintFormatter(&self) -> Retained<UIViewPrintFormatter>
UIPrintFormatter only.pub fn drawRect_forViewPrintFormatter( &self, rect: CGRect, formatter: &UIViewPrintFormatter, )
UIPrintFormatter and objc2-core-foundation only.pub fn endEditing(&self, force: bool) -> bool
UITextField only.pub fn isUserInteractionEnabled(&self) -> bool
Sourcepub fn setUserInteractionEnabled(&self, user_interaction_enabled: bool)
pub fn setUserInteractionEnabled(&self, user_interaction_enabled: bool)
Setter for isUserInteractionEnabled.
pub fn tag(&self) -> NSInteger
pub fn layer(&self) -> Retained<CALayer>
objc2-quartz-core and non-watchOS only.pub fn canBecomeFocused(&self) -> bool
pub fn isFocused(&self) -> bool
Sourcepub fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>
pub fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>
The identifier of the focus group that this view belongs to. If this is nil, subviews inherit their superview’s focus group.
Sourcepub fn setFocusGroupIdentifier(&self, focus_group_identifier: Option<&NSString>)
pub fn setFocusGroupIdentifier(&self, focus_group_identifier: Option<&NSString>)
Setter for focusGroupIdentifier.
This is copied when set.
Sourcepub fn focusGroupPriority(&self) -> UIFocusGroupPriority
Available on crate feature UIFocus only.
pub fn focusGroupPriority(&self) -> UIFocusGroupPriority
UIFocus only.The priority this item has in its focus group. The higher the priority, the more likely it is to get picked when focus moves into this group. Note: this method can only be used to increase an item’s priority, not decrease it. For example if an item is currently selected, the actual priority of this item will be determined by MAX(focusGroupPriority, UIFocusGroupPrioritySelected).
Sourcepub fn setFocusGroupPriority(&self, focus_group_priority: UIFocusGroupPriority)
Available on crate feature UIFocus only.
pub fn setFocusGroupPriority(&self, focus_group_priority: UIFocusGroupPriority)
UIFocus only.Setter for focusGroupPriority.
Sourcepub fn focusEffect(&self) -> Option<Retained<UIFocusEffect>>
Available on crate feature UIFocusEffect only.
pub fn focusEffect(&self) -> Option<Retained<UIFocusEffect>>
UIFocusEffect only.Describes a visual effect to apply when this item is focused. If this property is nil no effect will be applied when this view becomes focused.
Sourcepub fn setFocusEffect(&self, focus_effect: Option<&UIFocusEffect>)
Available on crate feature UIFocusEffect only.
pub fn setFocusEffect(&self, focus_effect: Option<&UIFocusEffect>)
UIFocusEffect only.Setter for focusEffect.
This is copied when set.
pub fn semanticContentAttribute(&self) -> UISemanticContentAttribute
Sourcepub fn setSemanticContentAttribute(
&self,
semantic_content_attribute: UISemanticContentAttribute,
)
pub fn setSemanticContentAttribute( &self, semantic_content_attribute: UISemanticContentAttribute, )
Setter for semanticContentAttribute.
pub fn effectiveUserInterfaceLayoutDirection( &self, ) -> UIUserInterfaceLayoutDirection
UIInterface only.pub fn frame(&self) -> CGRect
objc2-core-foundation only.Sourcepub fn setFrame(&self, frame: CGRect)
Available on crate feature objc2-core-foundation only.
pub fn setFrame(&self, frame: CGRect)
objc2-core-foundation only.Setter for frame.
pub fn bounds(&self) -> CGRect
objc2-core-foundation only.Sourcepub fn setBounds(&self, bounds: CGRect)
Available on crate feature objc2-core-foundation only.
pub fn setBounds(&self, bounds: CGRect)
objc2-core-foundation only.Setter for bounds.
pub fn center(&self) -> CGPoint
objc2-core-foundation only.Sourcepub fn setCenter(&self, center: CGPoint)
Available on crate feature objc2-core-foundation only.
pub fn setCenter(&self, center: CGPoint)
objc2-core-foundation only.Setter for center.
pub fn transform(&self) -> CGAffineTransform
objc2-core-foundation only.Sourcepub fn setTransform(&self, transform: CGAffineTransform)
Available on crate feature objc2-core-foundation only.
pub fn setTransform(&self, transform: CGAffineTransform)
objc2-core-foundation only.Setter for transform.
pub fn transform3D(&self) -> CATransform3D
objc2-quartz-core and non-watchOS only.Sourcepub fn setTransform3D(&self, transform3_d: CATransform3D)
Available on crate feature objc2-quartz-core and non-watchOS only.
pub fn setTransform3D(&self, transform3_d: CATransform3D)
objc2-quartz-core and non-watchOS only.Setter for transform3D.
pub fn contentScaleFactor(&self) -> CGFloat
objc2-core-foundation only.Sourcepub fn setContentScaleFactor(&self, content_scale_factor: CGFloat)
Available on crate feature objc2-core-foundation only.
pub fn setContentScaleFactor(&self, content_scale_factor: CGFloat)
objc2-core-foundation only.Setter for contentScaleFactor.
pub fn anchorPoint(&self) -> CGPoint
objc2-core-foundation only.Sourcepub fn setAnchorPoint(&self, anchor_point: CGPoint)
Available on crate feature objc2-core-foundation only.
pub fn setAnchorPoint(&self, anchor_point: CGPoint)
objc2-core-foundation only.Setter for anchorPoint.
pub fn isMultipleTouchEnabled(&self) -> bool
Sourcepub fn setMultipleTouchEnabled(&self, multiple_touch_enabled: bool)
pub fn setMultipleTouchEnabled(&self, multiple_touch_enabled: bool)
Setter for isMultipleTouchEnabled.
pub fn isExclusiveTouch(&self) -> bool
Sourcepub fn setExclusiveTouch(&self, exclusive_touch: bool)
pub fn setExclusiveTouch(&self, exclusive_touch: bool)
Setter for isExclusiveTouch.
pub fn hitTest_withEvent( &self, point: CGPoint, event: Option<&UIEvent>, ) -> Option<Retained<UIView>>
UIEvent and objc2-core-foundation only.pub fn pointInside_withEvent( &self, point: CGPoint, event: Option<&UIEvent>, ) -> bool
UIEvent and objc2-core-foundation only.pub fn convertPoint_toView( &self, point: CGPoint, view: Option<&UIView>, ) -> CGPoint
objc2-core-foundation only.pub fn convertPoint_fromView( &self, point: CGPoint, view: Option<&UIView>, ) -> CGPoint
objc2-core-foundation only.pub fn convertRect_toView(&self, rect: CGRect, view: Option<&UIView>) -> CGRect
objc2-core-foundation only.pub fn convertRect_fromView( &self, rect: CGRect, view: Option<&UIView>, ) -> CGRect
objc2-core-foundation only.pub fn autoresizesSubviews(&self) -> bool
Sourcepub fn setAutoresizesSubviews(&self, autoresizes_subviews: bool)
pub fn setAutoresizesSubviews(&self, autoresizes_subviews: bool)
Setter for autoresizesSubviews.
pub fn autoresizingMask(&self) -> UIViewAutoresizing
Sourcepub fn setAutoresizingMask(&self, autoresizing_mask: UIViewAutoresizing)
pub fn setAutoresizingMask(&self, autoresizing_mask: UIViewAutoresizing)
Setter for autoresizingMask.
pub fn sizeThatFits(&self, size: CGSize) -> CGSize
objc2-core-foundation only.pub fn sizeToFit(&self)
pub fn superview(&self) -> Option<Retained<UIView>>
pub fn subviews(&self) -> Retained<NSArray<UIView>>
pub fn window(&self) -> Option<Retained<UIWindow>>
UIWindow only.pub fn removeFromSuperview(&self)
pub fn insertSubview_atIndex(&self, view: &UIView, index: NSInteger)
pub fn exchangeSubviewAtIndex_withSubviewAtIndex( &self, index1: NSInteger, index2: NSInteger, )
pub fn addSubview(&self, view: &UIView)
pub fn insertSubview_belowSubview( &self, view: &UIView, sibling_subview: &UIView, )
pub fn insertSubview_aboveSubview( &self, view: &UIView, sibling_subview: &UIView, )
pub fn bringSubviewToFront(&self, view: &UIView)
pub fn sendSubviewToBack(&self, view: &UIView)
pub fn didAddSubview(&self, subview: &UIView)
pub fn willRemoveSubview(&self, subview: &UIView)
pub fn willMoveToSuperview(&self, new_superview: Option<&UIView>)
pub fn didMoveToSuperview(&self)
pub fn willMoveToWindow(&self, new_window: Option<&UIWindow>)
UIWindow only.pub fn didMoveToWindow(&self)
pub fn isDescendantOfView(&self, view: &UIView) -> bool
pub fn viewWithTag(&self, tag: NSInteger) -> Option<Retained<UIView>>
Sourcepub fn setNeedsUpdateProperties(&self)
pub fn setNeedsUpdateProperties(&self)
Call to manually request a properties update for the view. Multiple requests may be coalesced into a single update alongside the next layout pass.
Sourcepub fn updateProperties(&self)
pub fn updateProperties(&self)
Override point for subclasses to update properties of this view.
Never call this method directly; use setNeedsUpdateProperties to schedule an update.
Sourcepub fn updatePropertiesIfNeeded(&self)
pub fn updatePropertiesIfNeeded(&self)
Forces an immediate properties update for this view (and its view controller, if applicable) and any subviews, including any view controllers or views in its subtree.
pub fn setNeedsLayout(&self)
pub fn layoutIfNeeded(&self)
pub fn layoutSubviews(&self)
pub fn layoutMargins(&self) -> UIEdgeInsets
UIGeometry and objc2-core-foundation only.Sourcepub fn setLayoutMargins(&self, layout_margins: UIEdgeInsets)
Available on crate features UIGeometry and objc2-core-foundation only.
pub fn setLayoutMargins(&self, layout_margins: UIEdgeInsets)
UIGeometry and objc2-core-foundation only.Setter for layoutMargins.
pub fn directionalLayoutMargins(&self) -> NSDirectionalEdgeInsets
UIGeometry and objc2-core-foundation only.Sourcepub fn setDirectionalLayoutMargins(
&self,
directional_layout_margins: NSDirectionalEdgeInsets,
)
Available on crate features UIGeometry and objc2-core-foundation only.
pub fn setDirectionalLayoutMargins( &self, directional_layout_margins: NSDirectionalEdgeInsets, )
UIGeometry and objc2-core-foundation only.Setter for directionalLayoutMargins.
pub fn preservesSuperviewLayoutMargins(&self) -> bool
Sourcepub fn setPreservesSuperviewLayoutMargins(
&self,
preserves_superview_layout_margins: bool,
)
pub fn setPreservesSuperviewLayoutMargins( &self, preserves_superview_layout_margins: bool, )
Setter for preservesSuperviewLayoutMargins.
pub fn insetsLayoutMarginsFromSafeArea(&self) -> bool
Sourcepub fn setInsetsLayoutMarginsFromSafeArea(
&self,
insets_layout_margins_from_safe_area: bool,
)
pub fn setInsetsLayoutMarginsFromSafeArea( &self, insets_layout_margins_from_safe_area: bool, )
Setter for insetsLayoutMarginsFromSafeArea.
pub fn layoutMarginsDidChange(&self)
pub fn safeAreaInsets(&self) -> UIEdgeInsets
UIGeometry and objc2-core-foundation only.pub fn safeAreaInsetsDidChange(&self)
pub fn layoutMarginsGuide(&self) -> Retained<UILayoutGuide>
UILayoutGuide only.Sourcepub fn readableContentGuide(&self) -> Retained<UILayoutGuide>
Available on crate feature UILayoutGuide only.
pub fn readableContentGuide(&self) -> Retained<UILayoutGuide>
UILayoutGuide only.This content guide provides a layout area that you can use to place text and related content whose width should generally be constrained to a size that is easy for the user to read. This guide provides a centered region that you can place content within to get this behavior for this view.
pub fn safeAreaLayoutGuide(&self) -> Retained<UILayoutGuide>
UILayoutGuide only.Sourcepub fn keyboardLayoutGuide(&self) -> Retained<UIKeyboardLayoutGuide>
Available on crate features UIKeyboardLayoutGuide and UILayoutGuide and UITrackingLayoutGuide only.
pub fn keyboardLayoutGuide(&self) -> Retained<UIKeyboardLayoutGuide>
UIKeyboardLayoutGuide and UILayoutGuide and UITrackingLayoutGuide only.Follows the keyboard when on screen and docked. See UIKeyboardLayoutGuide.h for additional options.
pub fn drawRect(&self, rect: CGRect)
objc2-core-foundation only.pub fn setNeedsDisplay(&self)
pub fn setNeedsDisplayInRect(&self, rect: CGRect)
objc2-core-foundation only.pub fn clipsToBounds(&self) -> bool
Sourcepub fn setClipsToBounds(&self, clips_to_bounds: bool)
pub fn setClipsToBounds(&self, clips_to_bounds: bool)
Setter for clipsToBounds.
pub fn backgroundColor(&self) -> Option<Retained<UIColor>>
UIColor only.Sourcepub fn setBackgroundColor(&self, background_color: Option<&UIColor>)
Available on crate feature UIColor only.
pub fn setBackgroundColor(&self, background_color: Option<&UIColor>)
UIColor only.Setter for backgroundColor.
This is copied when set.
pub fn alpha(&self) -> CGFloat
objc2-core-foundation only.Sourcepub fn setAlpha(&self, alpha: CGFloat)
Available on crate feature objc2-core-foundation only.
pub fn setAlpha(&self, alpha: CGFloat)
objc2-core-foundation only.Setter for alpha.
pub fn isOpaque(&self) -> bool
pub fn clearsContextBeforeDrawing(&self) -> bool
Sourcepub fn setClearsContextBeforeDrawing(&self, clears_context_before_drawing: bool)
pub fn setClearsContextBeforeDrawing(&self, clears_context_before_drawing: bool)
Setter for clearsContextBeforeDrawing.
pub fn isHidden(&self) -> bool
pub fn contentMode(&self) -> UIViewContentMode
Sourcepub fn setContentMode(&self, content_mode: UIViewContentMode)
pub fn setContentMode(&self, content_mode: UIViewContentMode)
Setter for contentMode.
pub fn contentStretch(&self) -> CGRect
objc2-core-foundation only.Sourcepub fn setContentStretch(&self, content_stretch: CGRect)
👎DeprecatedAvailable on crate feature objc2-core-foundation only.
pub fn setContentStretch(&self, content_stretch: CGRect)
objc2-core-foundation only.Setter for contentStretch.
pub fn maskView(&self) -> Option<Retained<UIView>>
Sourcepub fn setMaskView(&self, mask_view: Option<&UIView>)
pub fn setMaskView(&self, mask_view: Option<&UIView>)
Setter for maskView.
pub fn tintColor(&self) -> Option<Retained<UIColor>>
UIColor only.Sourcepub unsafe fn setTintColor(&self, tint_color: Option<&UIColor>)
Available on crate feature UIColor only.
pub unsafe fn setTintColor(&self, tint_color: Option<&UIColor>)
UIColor only.pub fn tintAdjustmentMode(&self) -> UIViewTintAdjustmentMode
Sourcepub fn setTintAdjustmentMode(
&self,
tint_adjustment_mode: UIViewTintAdjustmentMode,
)
pub fn setTintAdjustmentMode( &self, tint_adjustment_mode: UIViewTintAdjustmentMode, )
Setter for tintAdjustmentMode.
pub fn tintColorDidChange(&self)
pub fn gestureRecognizers( &self, ) -> Option<Retained<NSArray<UIGestureRecognizer>>>
UIGestureRecognizer only.Sourcepub fn setGestureRecognizers(
&self,
gesture_recognizers: Option<&NSArray<UIGestureRecognizer>>,
)
Available on crate feature UIGestureRecognizer only.
pub fn setGestureRecognizers( &self, gesture_recognizers: Option<&NSArray<UIGestureRecognizer>>, )
UIGestureRecognizer only.Setter for gestureRecognizers.
This is copied when set.
pub fn addGestureRecognizer(&self, gesture_recognizer: &UIGestureRecognizer)
UIGestureRecognizer only.pub fn removeGestureRecognizer(&self, gesture_recognizer: &UIGestureRecognizer)
UIGestureRecognizer only.pub fn gestureRecognizerShouldBegin( &self, gesture_recognizer: &UIGestureRecognizer, ) -> bool
UIGestureRecognizer only.Sourcepub fn addMotionEffect(&self, effect: &UIMotionEffect)
Available on crate feature UIMotionEffect only.
pub fn addMotionEffect(&self, effect: &UIMotionEffect)
UIMotionEffect only.Begins applying effect to the receiver. The effect’s emitted keyPath/value pairs will be
applied to the view’s presentation layer.
Animates the transition to the motion effect’s values using the present UIView animation context.
Sourcepub fn removeMotionEffect(&self, effect: &UIMotionEffect)
Available on crate feature UIMotionEffect only.
pub fn removeMotionEffect(&self, effect: &UIMotionEffect)
UIMotionEffect only.Stops applying effect to the receiver. Any affected presentation values will animate to
their post-removal values using the present UIView animation context.
pub fn motionEffects(&self) -> Retained<NSArray<UIMotionEffect>>
UIMotionEffect only.Sourcepub fn setMotionEffects(&self, motion_effects: &NSArray<UIMotionEffect>)
Available on crate feature UIMotionEffect only.
pub fn setMotionEffects(&self, motion_effects: &NSArray<UIMotionEffect>)
UIMotionEffect only.Setter for motionEffects.
This is copied when set.
pub fn constraints(&self) -> Retained<NSArray<NSLayoutConstraint>>
NSLayoutConstraint only.pub fn addConstraint(&self, constraint: &NSLayoutConstraint)
NSLayoutConstraint only.pub fn addConstraints(&self, constraints: &NSArray<NSLayoutConstraint>)
NSLayoutConstraint only.pub fn removeConstraint(&self, constraint: &NSLayoutConstraint)
NSLayoutConstraint only.pub fn removeConstraints(&self, constraints: &NSArray<NSLayoutConstraint>)
NSLayoutConstraint only.pub fn updateConstraintsIfNeeded(&self)
pub fn updateConstraints(&self)
pub fn needsUpdateConstraints(&self) -> bool
pub fn setNeedsUpdateConstraints(&self)
pub fn translatesAutoresizingMaskIntoConstraints(&self) -> bool
Sourcepub fn setTranslatesAutoresizingMaskIntoConstraints(
&self,
translates_autoresizing_mask_into_constraints: bool,
)
pub fn setTranslatesAutoresizingMaskIntoConstraints( &self, translates_autoresizing_mask_into_constraints: bool, )
Setter for translatesAutoresizingMaskIntoConstraints.
pub fn alignmentRectForFrame(&self, frame: CGRect) -> CGRect
objc2-core-foundation only.pub fn frameForAlignmentRect(&self, alignment_rect: CGRect) -> CGRect
objc2-core-foundation only.pub fn alignmentRectInsets(&self) -> UIEdgeInsets
UIGeometry and objc2-core-foundation only.pub fn viewForBaselineLayout(&self) -> Retained<UIView>
pub fn viewForFirstBaselineLayout(&self) -> Retained<UIView>
pub fn viewForLastBaselineLayout(&self) -> Retained<UIView>
pub fn intrinsicContentSize(&self) -> CGSize
objc2-core-foundation only.pub fn invalidateIntrinsicContentSize(&self)
pub fn contentHuggingPriorityForAxis( &self, axis: UILayoutConstraintAxis, ) -> UILayoutPriority
NSLayoutConstraint only.pub fn setContentHuggingPriority_forAxis( &self, priority: UILayoutPriority, axis: UILayoutConstraintAxis, )
NSLayoutConstraint only.pub fn contentCompressionResistancePriorityForAxis( &self, axis: UILayoutConstraintAxis, ) -> UILayoutPriority
NSLayoutConstraint only.pub fn setContentCompressionResistancePriority_forAxis( &self, priority: UILayoutPriority, axis: UILayoutConstraintAxis, )
NSLayoutConstraint only.pub fn systemLayoutSizeFittingSize(&self, target_size: CGSize) -> CGSize
objc2-core-foundation only.pub fn systemLayoutSizeFittingSize_withHorizontalFittingPriority_verticalFittingPriority( &self, target_size: CGSize, horizontal_fitting_priority: UILayoutPriority, vertical_fitting_priority: UILayoutPriority, ) -> CGSize
NSLayoutConstraint and objc2-core-foundation only.pub fn layoutGuides(&self) -> Retained<NSArray<UILayoutGuide>>
UILayoutGuide only.pub fn addLayoutGuide(&self, layout_guide: &UILayoutGuide)
UILayoutGuide only.pub fn removeLayoutGuide(&self, layout_guide: &UILayoutGuide)
UILayoutGuide only.pub fn leadingAnchor(&self) -> Retained<NSLayoutXAxisAnchor>
NSLayoutAnchor only.pub fn trailingAnchor(&self) -> Retained<NSLayoutXAxisAnchor>
NSLayoutAnchor only.pub fn leftAnchor(&self) -> Retained<NSLayoutXAxisAnchor>
NSLayoutAnchor only.pub fn rightAnchor(&self) -> Retained<NSLayoutXAxisAnchor>
NSLayoutAnchor only.pub fn topAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
NSLayoutAnchor only.pub fn bottomAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
NSLayoutAnchor only.pub fn widthAnchor(&self) -> Retained<NSLayoutDimension>
NSLayoutAnchor only.pub fn heightAnchor(&self) -> Retained<NSLayoutDimension>
NSLayoutAnchor only.pub fn centerXAnchor(&self) -> Retained<NSLayoutXAxisAnchor>
NSLayoutAnchor only.pub fn centerYAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
NSLayoutAnchor only.pub fn firstBaselineAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
NSLayoutAnchor only.pub fn lastBaselineAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
NSLayoutAnchor only.pub fn constraintsAffectingLayoutForAxis( &self, axis: UILayoutConstraintAxis, ) -> Retained<NSArray<NSLayoutConstraint>>
NSLayoutConstraint only.pub fn hasAmbiguousLayout(&self) -> bool
pub fn exerciseAmbiguityInLayout(&self)
pub fn restorationIdentifier(&self) -> Option<Retained<NSString>>
Sourcepub fn setRestorationIdentifier(
&self,
restoration_identifier: Option<&NSString>,
)
pub fn setRestorationIdentifier( &self, restoration_identifier: Option<&NSString>, )
Setter for restorationIdentifier.
This is copied when set.
Sourcepub unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
pub unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
§Safety
coder possibly has further requirements.
Sourcepub unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
pub unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
§Safety
coder possibly has further requirements.
pub fn snapshotViewAfterScreenUpdates( &self, after_updates: bool, ) -> Option<Retained<UIView>>
pub fn resizableSnapshotViewFromRect_afterScreenUpdates_withCapInsets( &self, rect: CGRect, after_updates: bool, cap_insets: UIEdgeInsets, ) -> Option<Retained<UIView>>
UIGeometry and objc2-core-foundation only.pub fn drawViewHierarchyInRect_afterScreenUpdates( &self, rect: CGRect, after_updates: bool, ) -> bool
objc2-core-foundation only.pub fn overrideUserInterfaceStyle(&self) -> UIUserInterfaceStyle
UIInterface only.Sourcepub fn setOverrideUserInterfaceStyle(
&self,
override_user_interface_style: UIUserInterfaceStyle,
)
Available on crate feature UIInterface only.
pub fn setOverrideUserInterfaceStyle( &self, override_user_interface_style: UIUserInterfaceStyle, )
UIInterface only.Setter for overrideUserInterfaceStyle.
Sourcepub fn minimumContentSizeCategory(
&self,
) -> Option<Retained<UIContentSizeCategory>>
Available on crate feature UIContentSizeCategory only.
pub fn minimumContentSizeCategory( &self, ) -> Option<Retained<UIContentSizeCategory>>
UIContentSizeCategory only.Specify content size category limits. Setting one or both of these properties will limit the content size category for this view (and its subviews) to a minimum or a maximum value. You can use this to limit the support content size categories on part of your view hierarchy. Setting this to nil removes the limit on the minimum or maximum. Limits will be applied immediately and when future content size category updates occur.
Specifying a minimum limit that is greater than the maximum limit (or vice versa) will effectively only use the maximum limit.
Example:
// limit the support content size categories between .medium and .accessibilityExtraLarge (included). view.minimumContentSizeCategory = UIContentSizeCategoryMedium; view.maximumContentSizeCategory = UIContentSizeCategoryAccessibilityExtraLarge;
Sourcepub fn setMinimumContentSizeCategory(
&self,
minimum_content_size_category: Option<&UIContentSizeCategory>,
)
Available on crate feature UIContentSizeCategory only.
pub fn setMinimumContentSizeCategory( &self, minimum_content_size_category: Option<&UIContentSizeCategory>, )
UIContentSizeCategory only.Setter for minimumContentSizeCategory.
This is copied when set.
pub fn maximumContentSizeCategory( &self, ) -> Option<Retained<UIContentSizeCategory>>
UIContentSizeCategory only.Sourcepub fn setMaximumContentSizeCategory(
&self,
maximum_content_size_category: Option<&UIContentSizeCategory>,
)
Available on crate feature UIContentSizeCategory only.
pub fn setMaximumContentSizeCategory( &self, maximum_content_size_category: Option<&UIContentSizeCategory>, )
UIContentSizeCategory only.Setter for maximumContentSizeCategory.
This is copied when set.
Sourcepub fn appliedContentSizeCategoryLimitsDescription(&self) -> Retained<NSString>
pub fn appliedContentSizeCategoryLimitsDescription(&self) -> Retained<NSString>
Will return a string with a log of all the superviews of this view, alongside with what content size category each view has and if that view has limits applied. This is for debugging purposes only.
pub fn traitOverrides(&self) -> Retained<ProtocolObject<dyn UITraitOverrides>>
UITraitCollection only.Sourcepub fn updateTraitsIfNeeded(&self)
pub fn updateTraitsIfNeeded(&self)
Forces an immediate trait update for this view (and its view controller, if applicable) and any subviews, including any view controllers or views in its subtree. Any trait change callbacks are sent synchronously.
pub fn layoutGuideForLayoutRegion( &self, layout_region: &UIViewLayoutRegion, ) -> Retained<UILayoutGuide>
UILayoutGuide and UIViewLayoutRegion only.pub fn edgeInsetsForLayoutRegion( &self, layout_region: &UIViewLayoutRegion, ) -> UIEdgeInsets
UIGeometry and UIViewLayoutRegion and objc2-core-foundation only.pub fn directionalEdgeInsetsForLayoutRegion( &self, layout_region: &UIViewLayoutRegion, ) -> NSDirectionalEdgeInsets
UIGeometry and UIViewLayoutRegion and objc2-core-foundation only.Sourcepub fn cornerConfiguration(&self) -> Retained<UICornerConfiguration>
Available on crate feature UICornerConfiguration only.
pub fn cornerConfiguration(&self) -> Retained<UICornerConfiguration>
UICornerConfiguration only.A configuration that defines the corners of the view.
Sourcepub fn setCornerConfiguration(
&self,
corner_configuration: &UICornerConfiguration,
)
Available on crate feature UICornerConfiguration only.
pub fn setCornerConfiguration( &self, corner_configuration: &UICornerConfiguration, )
UICornerConfiguration only.Setter for cornerConfiguration.
This is copied when set.
Sourcepub fn effectiveRadiusForCorner(&self, corner: UIRectCorner) -> CGFloat
Available on crate features UIGeometry and objc2-core-foundation only.
pub fn effectiveRadiusForCorner(&self, corner: UIRectCorner) -> CGFloat
UIGeometry and objc2-core-foundation only.Returns the effective radius for the given corner, calculated using the view’s current cornerConfiguration.
When invoked within UIView.layoutSubviews(), UIView.updateProperties(), or UIViewController.updateProperties() automatic invalidation will occur if the effective radius changes.
If more than one corner is provided, the returned radius represents the maximum effective radius of those corners.
- Parameter corner: The corner.
- Returns: The effective radius.
Methods from Deref<Target = UIResponder>§
pub fn nextResponder(&self) -> Option<Retained<UIResponder>>
pub fn canBecomeFirstResponder(&self) -> bool
pub fn becomeFirstResponder(&self) -> bool
pub fn canResignFirstResponder(&self) -> bool
pub fn resignFirstResponder(&self) -> bool
pub fn isFirstResponder(&self) -> bool
pub fn touchesBegan_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent and UITouch only.pub fn touchesMoved_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent and UITouch only.pub fn touchesEnded_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent and UITouch only.pub fn touchesCancelled_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent and UITouch only.pub fn touchesEstimatedPropertiesUpdated(&self, touches: &NSSet<UITouch>)
UITouch only.pub fn pressesBegan_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent and UIPress and UIPressesEvent only.pub fn pressesChanged_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent and UIPress and UIPressesEvent only.pub fn pressesEnded_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent and UIPress and UIPressesEvent only.pub fn pressesCancelled_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent and UIPress and UIPressesEvent only.pub fn motionBegan_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent>, )
UIEvent only.pub fn motionEnded_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent>, )
UIEvent only.pub fn motionCancelled_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent>, )
UIEvent only.pub fn remoteControlReceivedWithEvent(&self, event: Option<&UIEvent>)
UIEvent only.Sourcepub unsafe fn canPerformAction_withSender(
&self,
action: Sel,
sender: Option<&AnyObject>,
) -> bool
pub unsafe fn canPerformAction_withSender( &self, action: Sel, sender: Option<&AnyObject>, ) -> bool
§Safety
actionmust be a valid selector.sendershould be of the correct type.
Sourcepub unsafe fn targetForAction_withSender(
&self,
action: Sel,
sender: Option<&AnyObject>,
) -> Option<Retained<AnyObject>>
pub unsafe fn targetForAction_withSender( &self, action: Sel, sender: Option<&AnyObject>, ) -> Option<Retained<AnyObject>>
§Safety
actionmust be a valid selector.sendershould be of the correct type.
pub fn buildMenuWithBuilder(&self, builder: &ProtocolObject<dyn UIMenuBuilder>)
UIMenuBuilder only.pub fn validateCommand(&self, command: &UICommand)
UICommand and UIMenuElement only.Sourcepub fn providerForDeferredMenuElement(
&self,
deferred_element: &UIDeferredMenuElement,
) -> Option<Retained<UIDeferredMenuElementProvider>>
Available on crate features UIDeferredMenuElement and UIMenuElement only.
pub fn providerForDeferredMenuElement( &self, deferred_element: &UIDeferredMenuElement, ) -> Option<Retained<UIDeferredMenuElementProvider>>
UIDeferredMenuElement and UIMenuElement only.Asks the responder for an element provider to fulfill the given focus-based deferred element.
Check the identifier of the deferred element to identify which deferred element this is.
By default, this returns nil. Return a non-nil provider to make this responder responsible for providing
elements for this fulfillment of the deferred element.
pub fn undoManager(&self) -> Option<Retained<NSUndoManager>>
pub fn editingInteractionConfiguration( &self, ) -> UIEditingInteractionConfiguration
pub fn keyCommands(&self) -> Option<Retained<NSArray<UIKeyCommand>>>
UICommand and UIKeyCommand and UIMenuElement only.pub fn inputView(&self) -> Option<Retained<UIView>>
pub fn inputAccessoryView(&self) -> Option<Retained<UIView>>
Sourcepub fn inputAssistantItem(&self) -> Retained<UITextInputAssistantItem>
Available on crate feature UITextInput only.
pub fn inputAssistantItem(&self) -> Retained<UITextInputAssistantItem>
UITextInput only.This method is for clients that wish to put buttons on the Shortcuts Bar, shown on top of the keyboard. You may modify the returned inputAssistantItem to add to or replace the existing items on the bar. Modifications made to the returned UITextInputAssistantItem are reflected automatically. This method should not be overridden. Goes up the responder chain.
pub fn inputViewController(&self) -> Option<Retained<UIInputViewController>>
UIInputViewController and UIViewController only.pub fn inputAccessoryViewController( &self, ) -> Option<Retained<UIInputViewController>>
UIInputViewController and UIViewController only.pub fn textInputMode(&self) -> Option<Retained<UITextInputMode>>
UITextInput only.pub fn textInputContextIdentifier(&self) -> Option<Retained<NSString>>
pub fn reloadInputViews(&self)
pub fn userActivity(&self) -> Option<Retained<NSUserActivity>>
Sourcepub fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
pub fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
Setter for userActivity.
pub fn updateUserActivityState(&self, activity: &NSUserActivity)
pub fn restoreUserActivityState(&self, activity: &NSUserActivity)
Sourcepub unsafe fn captureTextFromCamera(&self, sender: Option<&AnyObject>)
pub unsafe fn captureTextFromCamera(&self, sender: Option<&AnyObject>)
§Safety
sender should be of the correct type.
pub fn activityItemsConfiguration( &self, ) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationReading>>>
UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.Sourcepub fn setActivityItemsConfiguration(
&self,
activity_items_configuration: Option<&ProtocolObject<dyn UIActivityItemsConfigurationReading>>,
)
Available on crate features UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.
pub fn setActivityItemsConfiguration( &self, activity_items_configuration: Option<&ProtocolObject<dyn UIActivityItemsConfigurationReading>>, )
UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.Setter for activityItemsConfiguration.
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.
§Panics
May panic if the object is invalid (which may be the case for objects
returned from unavailable init/new methods).
§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 fn downcast_ref<T>(&self) -> Option<&T>where
T: DowncastTarget,
Available on crate feature UIIndirectScribbleInteraction only.
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: DowncastTarget,
UIIndirectScribbleInteraction only.Attempt to downcast the object to a class of type T.
This is the reference-variant. Use Retained::downcast if you want
to convert a retained object to another type.
§Mutable classes
Some classes have immutable and mutable variants, such as NSString
and NSMutableString.
When some Objective-C API signature says it gives you an immutable class, it generally expects you to not mutate that, even though it may technically be mutable “under the hood”.
So using this method to convert a NSString to a NSMutableString,
while not unsound, is generally frowned upon unless you created the
string yourself, or the API explicitly documents the string to be
mutable.
See Apple’s documentation on mutability and on
isKindOfClass: for more details.
§Generic classes
Objective-C generics are called “lightweight generics”, and that’s because they aren’t exposed in the runtime. This makes it impossible to safely downcast to generic collections, so this is disallowed by this method.
You can, however, safely downcast to generic collections where all the
type-parameters are AnyObject.
§Panics
This works internally by calling isKindOfClass:. That means that the
object must have the instance method of that name, and an exception
will be thrown (if CoreFoundation is linked) or the process will abort
if that is not the case. In the vast majority of cases, you don’t need
to worry about this, since both root objects NSObject and
NSProxy implement this method.
§Examples
Cast an NSString back and forth from NSObject.
use objc2::rc::Retained;
use objc2_foundation::{NSObject, NSString};
let obj: Retained<NSObject> = NSString::new().into_super();
let string = obj.downcast_ref::<NSString>().unwrap();
// Or with `downcast`, if we do not need the object afterwards
let string = obj.downcast::<NSString>().unwrap();Try (and fail) to cast an NSObject to an NSString.
use objc2_foundation::{NSObject, NSString};
let obj = NSObject::new();
assert!(obj.downcast_ref::<NSString>().is_none());Try to cast to an array of strings.
use objc2_foundation::{NSArray, NSObject, NSString};
let arr = NSArray::from_retained_slice(&[NSObject::new()]);
// This is invalid and doesn't type check.
let arr = arr.downcast_ref::<NSArray<NSString>>();This fails to compile, since it would require enumerating over the array to ensure that each element is of the desired type, which is a performance pitfall.
Downcast when processing each element instead.
use objc2_foundation::{NSArray, NSObject, NSString};
let arr = NSArray::from_retained_slice(&[NSObject::new()]);
for elem in arr {
if let Some(data) = elem.downcast_ref::<NSString>() {
// handle `data`
}
}Trait Implementations§
Source§impl AsRef<AnyObject> for UITextView
impl AsRef<AnyObject> for UITextView
Source§impl AsRef<NSObject> for UITextView
impl AsRef<NSObject> for UITextView
Source§impl AsRef<UIResponder> for UITextView
impl AsRef<UIResponder> for UITextView
Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIScrollView> for UITextView
impl AsRef<UIScrollView> for UITextView
Source§fn as_ref(&self) -> &UIScrollView
fn as_ref(&self) -> &UIScrollView
Source§impl AsRef<UITextView> for UITextView
impl AsRef<UITextView> for UITextView
Source§impl AsRef<UIView> for UITextView
impl AsRef<UIView> for UITextView
Source§impl Borrow<AnyObject> for UITextView
impl Borrow<AnyObject> for UITextView
Source§impl Borrow<NSObject> for UITextView
impl Borrow<NSObject> for UITextView
Source§impl Borrow<UIResponder> for UITextView
impl Borrow<UIResponder> for UITextView
Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIScrollView> for UITextView
impl Borrow<UIScrollView> for UITextView
Source§fn borrow(&self) -> &UIScrollView
fn borrow(&self) -> &UIScrollView
Source§impl Borrow<UIView> for UITextView
impl Borrow<UIView> for UITextView
Source§impl CALayerDelegate for UITextView
impl CALayerDelegate for UITextView
fn displayLayer(&self, layer: &CALayer)
fn layerWillDraw(&self, layer: &CALayer)
fn layoutSublayersOfLayer(&self, layer: &CALayer)
fn actionForLayer_forKey( &self, layer: &CALayer, event: &NSString, ) -> Option<Retained<ProtocolObject<dyn CAAction>>>
Source§impl ClassType for UITextView
impl ClassType for UITextView
Source§const NAME: &'static str = "UITextView"
const NAME: &'static str = "UITextView"
Source§type Super = UIScrollView
type Super = UIScrollView
Source§type ThreadKind = dyn MainThreadOnly
type ThreadKind = dyn MainThreadOnly
Source§impl Debug for UITextView
impl Debug for UITextView
Source§impl Deref for UITextView
impl Deref for UITextView
Source§impl Hash for UITextView
impl Hash for UITextView
Source§impl Message for UITextView
impl Message for UITextView
Source§impl NSCoding for UITextView
impl NSCoding for UITextView
Source§impl NSObjectProtocol for UITextView
impl NSObjectProtocol for UITextView
Source§fn isEqual(&self, other: Option<&AnyObject>) -> bool
fn isEqual(&self, other: Option<&AnyObject>) -> bool
Source§fn hash(&self) -> usize
fn hash(&self) -> usize
Source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
isKindOfClass directly, or cast your objects with AnyObject::downcast_refSource§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Source§fn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
Source§impl PartialEq for UITextView
impl PartialEq for UITextView
Source§impl RefEncode for UITextView
impl RefEncode for UITextView
Source§const ENCODING_REF: Encoding = <UIScrollView as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <UIScrollView as ::objc2::RefEncode>::ENCODING_REF
Source§impl UIAppearance for UITextView
impl UIAppearance for UITextView
Source§fn appearance(mtm: MainThreadMarker) -> Retained<Self>
fn appearance(mtm: MainThreadMarker) -> Retained<Self>
UIAppearance only.Source§unsafe fn appearanceWhenContainedInInstancesOfClasses(
container_types: &NSArray<AnyClass>,
mtm: MainThreadMarker,
) -> Retained<Self>
unsafe fn appearanceWhenContainedInInstancesOfClasses( container_types: &NSArray<AnyClass>, mtm: MainThreadMarker, ) -> Retained<Self>
UIAppearance only.Source§fn appearanceForTraitCollection(
trait: &UITraitCollection,
mtm: MainThreadMarker,
) -> Retained<Self>
fn appearanceForTraitCollection( trait: &UITraitCollection, mtm: MainThreadMarker, ) -> Retained<Self>
UIAppearance and UITraitCollection only.Source§unsafe fn appearanceForTraitCollection_whenContainedInInstancesOfClasses(
trait: &UITraitCollection,
container_types: &NSArray<AnyClass>,
mtm: MainThreadMarker,
) -> Retained<Self>
unsafe fn appearanceForTraitCollection_whenContainedInInstancesOfClasses( trait: &UITraitCollection, container_types: &NSArray<AnyClass>, mtm: MainThreadMarker, ) -> Retained<Self>
UIAppearance and UITraitCollection only.Source§impl UIContentSizeCategoryAdjusting for UITextView
impl UIContentSizeCategoryAdjusting for UITextView
Source§fn adjustsFontForContentSizeCategory(&self) -> bool
fn adjustsFontForContentSizeCategory(&self) -> bool
UIContentSizeCategoryAdjusting only.Source§fn setAdjustsFontForContentSizeCategory(
&self,
adjusts_font_for_content_size_category: bool,
)
fn setAdjustsFontForContentSizeCategory( &self, adjusts_font_for_content_size_category: bool, )
UIContentSizeCategoryAdjusting only.adjustsFontForContentSizeCategory.Source§impl UICoordinateSpace for UITextView
impl UICoordinateSpace for UITextView
Source§fn convertPoint_toCoordinateSpace(
&self,
point: CGPoint,
coordinate_space: &ProtocolObject<dyn UICoordinateSpace>,
) -> CGPoint
fn convertPoint_toCoordinateSpace( &self, point: CGPoint, coordinate_space: &ProtocolObject<dyn UICoordinateSpace>, ) -> CGPoint
UIView and objc2-core-foundation only.Source§fn convertPoint_fromCoordinateSpace(
&self,
point: CGPoint,
coordinate_space: &ProtocolObject<dyn UICoordinateSpace>,
) -> CGPoint
fn convertPoint_fromCoordinateSpace( &self, point: CGPoint, coordinate_space: &ProtocolObject<dyn UICoordinateSpace>, ) -> CGPoint
UIView and objc2-core-foundation only.Source§fn convertRect_toCoordinateSpace(
&self,
rect: CGRect,
coordinate_space: &ProtocolObject<dyn UICoordinateSpace>,
) -> CGRect
fn convertRect_toCoordinateSpace( &self, rect: CGRect, coordinate_space: &ProtocolObject<dyn UICoordinateSpace>, ) -> CGRect
UIView and objc2-core-foundation only.Source§fn convertRect_fromCoordinateSpace(
&self,
rect: CGRect,
coordinate_space: &ProtocolObject<dyn UICoordinateSpace>,
) -> CGRect
fn convertRect_fromCoordinateSpace( &self, rect: CGRect, coordinate_space: &ProtocolObject<dyn UICoordinateSpace>, ) -> CGRect
UIView and objc2-core-foundation only.Source§impl UIDynamicItem for UITextView
impl UIDynamicItem for UITextView
Source§fn center(&self) -> CGPoint
fn center(&self) -> CGPoint
UIDynamicBehavior and objc2-core-foundation only.Source§fn setCenter(&self, center: CGPoint)
fn setCenter(&self, center: CGPoint)
UIDynamicBehavior and objc2-core-foundation only.center.Source§fn bounds(&self) -> CGRect
fn bounds(&self) -> CGRect
UIDynamicBehavior and objc2-core-foundation only.Source§fn transform(&self) -> CGAffineTransform
fn transform(&self) -> CGAffineTransform
UIDynamicBehavior and objc2-core-foundation only.Source§fn setTransform(&self, transform: CGAffineTransform)
fn setTransform(&self, transform: CGAffineTransform)
UIDynamicBehavior and objc2-core-foundation only.transform.Source§fn collisionBoundsType(&self) -> UIDynamicItemCollisionBoundsType
fn collisionBoundsType(&self) -> UIDynamicItemCollisionBoundsType
UIDynamicBehavior only.Source§fn collisionBoundingPath(&self) -> Retained<UIBezierPath>
fn collisionBoundingPath(&self) -> Retained<UIBezierPath>
UIDynamicBehavior and UIBezierPath only.Source§impl UIFindInteractionDelegate for UITextView
impl UIFindInteractionDelegate for UITextView
Source§fn findInteraction_sessionForView(
&self,
interaction: &UIFindInteraction,
view: &UIView,
) -> Option<Retained<UIFindSession>>
fn findInteraction_sessionForView( &self, interaction: &UIFindInteraction, view: &UIView, ) -> Option<Retained<UIFindSession>>
UIFindSession and UIResponder and UIView and UIFindInteraction only.Source§fn findInteraction_didBeginFindSession(
&self,
interaction: &UIFindInteraction,
session: &UIFindSession,
)
fn findInteraction_didBeginFindSession( &self, interaction: &UIFindInteraction, session: &UIFindSession, )
UIFindInteraction and UIFindSession only.Source§fn findInteraction_didEndFindSession(
&self,
interaction: &UIFindInteraction,
session: &UIFindSession,
)
fn findInteraction_didEndFindSession( &self, interaction: &UIFindInteraction, session: &UIFindSession, )
UIFindInteraction and UIFindSession only.Source§impl UIFocusEnvironment for UITextView
impl UIFocusEnvironment for UITextView
Source§fn preferredFocusEnvironments(
&self,
) -> Retained<NSArray<ProtocolObject<dyn UIFocusEnvironment>>>
fn preferredFocusEnvironments( &self, ) -> Retained<NSArray<ProtocolObject<dyn UIFocusEnvironment>>>
UIFocus only.Source§fn parentFocusEnvironment(
&self,
) -> Option<Retained<ProtocolObject<dyn UIFocusEnvironment>>>
fn parentFocusEnvironment( &self, ) -> Option<Retained<ProtocolObject<dyn UIFocusEnvironment>>>
UIFocus only.Source§fn focusItemContainer(
&self,
) -> Option<Retained<ProtocolObject<dyn UIFocusItemContainer>>>
fn focusItemContainer( &self, ) -> Option<Retained<ProtocolObject<dyn UIFocusItemContainer>>>
UIFocus only.Source§fn setNeedsFocusUpdate(&self)
fn setNeedsFocusUpdate(&self)
UIFocus only.[[UIFocusSystem focusSystemForEnvironment:self] requestFocusUpdateToEnvironment:self];Source§fn updateFocusIfNeeded(&self)
fn updateFocusIfNeeded(&self)
UIFocus only.[[UIFocusSystem focusSystemForEnvironment:self] updateFocusIfNeeded];.Source§fn shouldUpdateFocusInContext(&self, context: &UIFocusUpdateContext) -> bool
fn shouldUpdateFocusInContext(&self, context: &UIFocusUpdateContext) -> bool
UIFocus only.Source§fn didUpdateFocusInContext_withAnimationCoordinator(
&self,
context: &UIFocusUpdateContext,
coordinator: &UIFocusAnimationCoordinator,
)
fn didUpdateFocusInContext_withAnimationCoordinator( &self, context: &UIFocusUpdateContext, coordinator: &UIFocusAnimationCoordinator, )
UIFocus and UIFocusAnimationCoordinator only.Source§fn soundIdentifierForFocusUpdateInContext(
&self,
context: &UIFocusUpdateContext,
) -> Option<Retained<UIFocusSoundIdentifier>>
fn soundIdentifierForFocusUpdateInContext( &self, context: &UIFocusUpdateContext, ) -> Option<Retained<UIFocusSoundIdentifier>>
UIFocus only.Source§impl UIFocusItem for UITextView
impl UIFocusItem for UITextView
Source§fn canBecomeFocused(&self) -> bool
fn canBecomeFocused(&self) -> bool
UIFocus only.Source§fn frame(&self) -> CGRect
fn frame(&self) -> CGRect
UIFocus and objc2-core-foundation only.coordinateSpace of the UIFocusItemContainer in which it is contained.Source§fn focusEffect(&self) -> Option<Retained<UIFocusEffect>>
fn focusEffect(&self) -> Option<Retained<UIFocusEffect>>
UIFocus and UIFocusEffect only.Source§fn focusGroupPriority(&self) -> UIFocusGroupPriority
fn focusGroupPriority(&self) -> UIFocusGroupPriority
UIFocus only.Source§fn focusItemDeferralMode(&self) -> UIFocusItemDeferralMode
fn focusItemDeferralMode(&self) -> UIFocusItemDeferralMode
UIFocus only.UIFocusItemDeferralModeNever, the focus deferral will not be enabled again
after the user engagement timeout has expired if this item is currently focused and programmatic focus updates pointing
to this item will be executed immediatly. If it returns UIFocusItemDeferralModeAlways focus will always be deferred
when this item is supposed to be focused.
Does nothing when focus deferral is not supported on the platform.Source§fn isTransparentFocusItem(&self) -> bool
fn isTransparentFocusItem(&self) -> bool
UIFocus only.Source§fn didHintFocusMovement(&self, hint: &UIFocusMovementHint)
fn didHintFocusMovement(&self, hint: &UIFocusMovementHint)
UIFocus and UIFocusMovementHint only.Source§impl UIFocusItemContainer for UITextView
impl UIFocusItemContainer for UITextView
Source§fn coordinateSpace(&self) -> Retained<ProtocolObject<dyn UICoordinateSpace>>
fn coordinateSpace(&self) -> Retained<ProtocolObject<dyn UICoordinateSpace>>
UIFocus and UIView only.Source§fn focusItemsInRect(
&self,
rect: CGRect,
) -> Retained<NSArray<ProtocolObject<dyn UIFocusItem>>>
fn focusItemsInRect( &self, rect: CGRect, ) -> Retained<NSArray<ProtocolObject<dyn UIFocusItem>>>
UIFocus and objc2-core-foundation only.rect is expressed in coordinateSpace.
Note: starting in iOS
&
tvOS 16.0, UIView will return its subviews from this method. If you override this method in a UIView subclass, it will be your responsibility to call super and merge your array of custom focus items with UIView’s default focus items.Source§impl UIFocusItemScrollableContainer for UITextView
impl UIFocusItemScrollableContainer for UITextView
Source§fn contentOffset(&self) -> CGPoint
fn contentOffset(&self) -> CGPoint
UIFocus and objc2-core-foundation only.bounds property, bounds.origin must be equal to contentOffset.Source§fn setContentOffset(&self, content_offset: CGPoint)
fn setContentOffset(&self, content_offset: CGPoint)
UIFocus and objc2-core-foundation only.contentOffset.Source§fn contentSize(&self) -> CGSize
fn contentSize(&self) -> CGSize
UIFocus and objc2-core-foundation only.Source§impl UIKeyInput for UITextView
impl UIKeyInput for UITextView
Source§fn insertText(&self, text: &NSString)
fn insertText(&self, text: &NSString)
UITextInput and UITextInputTraits only.Source§fn deleteBackward(&self)
fn deleteBackward(&self)
UITextInput and UITextInputTraits only.Source§impl UILetterformAwareAdjusting for UITextView
impl UILetterformAwareAdjusting for UITextView
Source§fn sizingRule(&self) -> UILetterformAwareSizingRule
fn sizingRule(&self) -> UILetterformAwareSizingRule
UILetterformAwareAdjusting only.sizingRule defaults to UILetterformAwareSizingRuleTypographic and determines what rule is used during the calculation of -sizeThatFits: and -intrinsicContentSizeSource§fn setSizingRule(&self, sizing_rule: UILetterformAwareSizingRule)
fn setSizingRule(&self, sizing_rule: UILetterformAwareSizingRule)
UILetterformAwareAdjusting only.sizingRule.Source§impl UIPasteConfigurationSupporting for UITextView
Available on crate feature UIPasteConfigurationSupporting only.
impl UIPasteConfigurationSupporting for UITextView
UIPasteConfigurationSupporting only.Source§fn pasteConfiguration(&self) -> Option<Retained<UIPasteConfiguration>>
fn pasteConfiguration(&self) -> Option<Retained<UIPasteConfiguration>>
UIPasteConfiguration only.Source§fn setPasteConfiguration(
&self,
paste_configuration: Option<&UIPasteConfiguration>,
)
fn setPasteConfiguration( &self, paste_configuration: Option<&UIPasteConfiguration>, )
UIPasteConfiguration only.pasteConfiguration. Read morefn pasteItemProviders(&self, item_providers: &NSArray<NSItemProvider>)
fn canPasteItemProviders( &self, item_providers: &NSArray<NSItemProvider>, ) -> bool
Source§impl UIResponderStandardEditActions for UITextView
impl UIResponderStandardEditActions for UITextView
Source§unsafe fn cut(&self, sender: Option<&AnyObject>)
unsafe fn cut(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn copy(&self, sender: Option<&AnyObject>)
unsafe fn copy(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn paste(&self, sender: Option<&AnyObject>)
unsafe fn paste(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn pasteAndMatchStyle(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndMatchStyle(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn pasteAndGo(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndGo(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn pasteAndSearch(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndSearch(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn newFromPasteboard(&self, sender: Option<&AnyObject>)
unsafe fn newFromPasteboard(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn select(&self, sender: Option<&AnyObject>)
unsafe fn select(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn selectAll(&self, sender: Option<&AnyObject>)
unsafe fn selectAll(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn delete(&self, sender: Option<&AnyObject>)
unsafe fn delete(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn toggleBoldface(&self, sender: Option<&AnyObject>)
unsafe fn toggleBoldface(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn toggleItalics(&self, sender: Option<&AnyObject>)
unsafe fn toggleItalics(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn toggleUnderline(&self, sender: Option<&AnyObject>)
unsafe fn toggleUnderline(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn increaseSize(&self, sender: Option<&AnyObject>)
unsafe fn increaseSize(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn decreaseSize(&self, sender: Option<&AnyObject>)
unsafe fn decreaseSize(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn alignLeft(&self, sender: Option<&AnyObject>)
unsafe fn alignLeft(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn alignCenter(&self, sender: Option<&AnyObject>)
unsafe fn alignCenter(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn alignJustified(&self, sender: Option<&AnyObject>)
unsafe fn alignJustified(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn alignRight(&self, sender: Option<&AnyObject>)
unsafe fn alignRight(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn find(&self, sender: Option<&AnyObject>)
unsafe fn find(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn findAndReplace(&self, sender: Option<&AnyObject>)
unsafe fn findAndReplace(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn findNext(&self, sender: Option<&AnyObject>)
unsafe fn findNext(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn findPrevious(&self, sender: Option<&AnyObject>)
unsafe fn findPrevious(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn useSelectionForFind(&self, sender: Option<&AnyObject>)
unsafe fn useSelectionForFind(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn updateTextAttributesWithConversionHandler(
&self,
conversion_handler: UITextAttributesConversionHandler,
)
unsafe fn updateTextAttributesWithConversionHandler( &self, conversion_handler: UITextAttributesConversionHandler, )
UIResponder and block2 only.Source§unsafe fn print(&self, sender: Option<&AnyObject>)
unsafe fn print(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn rename(&self, sender: Option<&AnyObject>)
unsafe fn rename(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn duplicate(&self, sender: Option<&AnyObject>)
unsafe fn duplicate(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn move(&self, sender: Option<&AnyObject>)
unsafe fn move(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn export(&self, sender: Option<&AnyObject>)
unsafe fn export(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn toggleSidebar(&self, sender: Option<&AnyObject>)
unsafe fn toggleSidebar(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn toggleInspector(&self, sender: Option<&AnyObject>)
unsafe fn toggleInspector(&self, sender: Option<&AnyObject>)
UIResponder only.Source§impl UITextDraggable for UITextView
impl UITextDraggable for UITextView
Source§fn textDragDelegate(
&self,
) -> Option<Retained<ProtocolObject<dyn UITextDragDelegate>>>
fn textDragDelegate( &self, ) -> Option<Retained<ProtocolObject<dyn UITextDragDelegate>>>
UITextInput and UITextInputTraits and UITextDragging only.Source§fn setTextDragDelegate(
&self,
text_drag_delegate: Option<&ProtocolObject<dyn UITextDragDelegate>>,
)
fn setTextDragDelegate( &self, text_drag_delegate: Option<&ProtocolObject<dyn UITextDragDelegate>>, )
UITextInput and UITextInputTraits and UITextDragging only.textDragDelegate. Read moreSource§fn textDragInteraction(&self) -> Option<Retained<UIDragInteraction>>
fn textDragInteraction(&self) -> Option<Retained<UIDragInteraction>>
UITextInput and UITextInputTraits and UITextDragging and UIDragInteraction only.Source§fn isTextDragActive(&self) -> bool
fn isTextDragActive(&self) -> bool
UITextInput and UITextInputTraits and UITextDragging only.Source§fn textDragOptions(&self) -> UITextDragOptions
fn textDragOptions(&self) -> UITextDragOptions
UITextInput and UITextInputTraits and UITextDragging only.Source§fn setTextDragOptions(&self, text_drag_options: UITextDragOptions)
fn setTextDragOptions(&self, text_drag_options: UITextDragOptions)
UITextInput and UITextInputTraits and UITextDragging only.textDragOptions.Source§impl UITextDroppable for UITextView
impl UITextDroppable for UITextView
Source§fn textDropDelegate(
&self,
) -> Option<Retained<ProtocolObject<dyn UITextDropDelegate>>>
fn textDropDelegate( &self, ) -> Option<Retained<ProtocolObject<dyn UITextDropDelegate>>>
UIPasteConfigurationSupporting and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UITextDropping only.Source§fn setTextDropDelegate(
&self,
text_drop_delegate: Option<&ProtocolObject<dyn UITextDropDelegate>>,
)
fn setTextDropDelegate( &self, text_drop_delegate: Option<&ProtocolObject<dyn UITextDropDelegate>>, )
UIPasteConfigurationSupporting and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UITextDropping only.textDropDelegate. Read moreSource§fn textDropInteraction(&self) -> Option<Retained<UIDropInteraction>>
fn textDropInteraction(&self) -> Option<Retained<UIDropInteraction>>
UIPasteConfigurationSupporting and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UITextDropping and UIDropInteraction only.Source§impl UITextInput for UITextView
impl UITextInput for UITextView
Source§fn textInRange(&self, range: &UITextRange) -> Option<Retained<NSString>>
fn textInRange(&self, range: &UITextRange) -> Option<Retained<NSString>>
UITextInput and UITextInputTraits only.Source§fn replaceRange_withText(&self, range: &UITextRange, text: &NSString)
fn replaceRange_withText(&self, range: &UITextRange, text: &NSString)
UITextInput and UITextInputTraits only.Source§fn selectedTextRange(&self) -> Option<Retained<UITextRange>>
fn selectedTextRange(&self) -> Option<Retained<UITextRange>>
UITextInput and UITextInputTraits only.Source§fn setSelectedTextRange(&self, selected_text_range: Option<&UITextRange>)
fn setSelectedTextRange(&self, selected_text_range: Option<&UITextRange>)
UITextInput and UITextInputTraits only.selectedTextRange. Read moreSource§fn markedTextRange(&self) -> Option<Retained<UITextRange>>
fn markedTextRange(&self) -> Option<Retained<UITextRange>>
UITextInput and UITextInputTraits only.Source§fn markedTextStyle(
&self,
) -> Option<Retained<NSDictionary<NSAttributedStringKey, AnyObject>>>
fn markedTextStyle( &self, ) -> Option<Retained<NSDictionary<NSAttributedStringKey, AnyObject>>>
UITextInput and UITextInputTraits only.Source§unsafe fn setMarkedTextStyle(
&self,
marked_text_style: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>,
)
unsafe fn setMarkedTextStyle( &self, marked_text_style: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, )
UITextInput and UITextInputTraits only.markedTextStyle. Read moreSource§fn setMarkedText_selectedRange(
&self,
marked_text: Option<&NSString>,
selected_range: NSRange,
)
fn setMarkedText_selectedRange( &self, marked_text: Option<&NSString>, selected_range: NSRange, )
UITextInput and UITextInputTraits only.Source§fn unmarkText(&self)
fn unmarkText(&self)
UITextInput and UITextInputTraits only.Source§fn beginningOfDocument(&self) -> Retained<UITextPosition>
fn beginningOfDocument(&self) -> Retained<UITextPosition>
UITextInput and UITextInputTraits only.Source§fn endOfDocument(&self) -> Retained<UITextPosition>
fn endOfDocument(&self) -> Retained<UITextPosition>
UITextInput and UITextInputTraits only.Source§fn textRangeFromPosition_toPosition(
&self,
from_position: &UITextPosition,
to_position: &UITextPosition,
) -> Option<Retained<UITextRange>>
fn textRangeFromPosition_toPosition( &self, from_position: &UITextPosition, to_position: &UITextPosition, ) -> Option<Retained<UITextRange>>
UITextInput and UITextInputTraits only.Source§fn positionFromPosition_offset(
&self,
position: &UITextPosition,
offset: NSInteger,
) -> Option<Retained<UITextPosition>>
fn positionFromPosition_offset( &self, position: &UITextPosition, offset: NSInteger, ) -> Option<Retained<UITextPosition>>
UITextInput and UITextInputTraits only.Source§fn positionFromPosition_inDirection_offset(
&self,
position: &UITextPosition,
direction: UITextLayoutDirection,
offset: NSInteger,
) -> Option<Retained<UITextPosition>>
fn positionFromPosition_inDirection_offset( &self, position: &UITextPosition, direction: UITextLayoutDirection, offset: NSInteger, ) -> Option<Retained<UITextPosition>>
UITextInput and UITextInputTraits only.Source§fn comparePosition_toPosition(
&self,
position: &UITextPosition,
other: &UITextPosition,
) -> NSComparisonResult
fn comparePosition_toPosition( &self, position: &UITextPosition, other: &UITextPosition, ) -> NSComparisonResult
UITextInput and UITextInputTraits only.Source§fn offsetFromPosition_toPosition(
&self,
from: &UITextPosition,
to_position: &UITextPosition,
) -> NSInteger
fn offsetFromPosition_toPosition( &self, from: &UITextPosition, to_position: &UITextPosition, ) -> NSInteger
UITextInput and UITextInputTraits only.Source§fn inputDelegate(
&self,
) -> Option<Retained<ProtocolObject<dyn UITextInputDelegate>>>
fn inputDelegate( &self, ) -> Option<Retained<ProtocolObject<dyn UITextInputDelegate>>>
UITextInput and UITextInputTraits only.Source§fn setInputDelegate(
&self,
input_delegate: Option<&ProtocolObject<dyn UITextInputDelegate>>,
)
fn setInputDelegate( &self, input_delegate: Option<&ProtocolObject<dyn UITextInputDelegate>>, )
UITextInput and UITextInputTraits only.inputDelegate. Read moreSource§fn tokenizer(&self) -> Retained<ProtocolObject<dyn UITextInputTokenizer>>
fn tokenizer(&self) -> Retained<ProtocolObject<dyn UITextInputTokenizer>>
UITextInput and UITextInputTraits only.Source§fn positionWithinRange_farthestInDirection(
&self,
range: &UITextRange,
direction: UITextLayoutDirection,
) -> Option<Retained<UITextPosition>>
fn positionWithinRange_farthestInDirection( &self, range: &UITextRange, direction: UITextLayoutDirection, ) -> Option<Retained<UITextPosition>>
UITextInput and UITextInputTraits only.Source§fn characterRangeByExtendingPosition_inDirection(
&self,
position: &UITextPosition,
direction: UITextLayoutDirection,
) -> Option<Retained<UITextRange>>
fn characterRangeByExtendingPosition_inDirection( &self, position: &UITextPosition, direction: UITextLayoutDirection, ) -> Option<Retained<UITextRange>>
UITextInput and UITextInputTraits only.Source§fn baseWritingDirectionForPosition_inDirection(
&self,
position: &UITextPosition,
direction: UITextStorageDirection,
) -> NSWritingDirection
fn baseWritingDirectionForPosition_inDirection( &self, position: &UITextPosition, direction: UITextStorageDirection, ) -> NSWritingDirection
UITextInput and UITextInputTraits and NSText only.Source§fn setBaseWritingDirection_forRange(
&self,
writing_direction: NSWritingDirection,
range: &UITextRange,
)
fn setBaseWritingDirection_forRange( &self, writing_direction: NSWritingDirection, range: &UITextRange, )
UITextInput and UITextInputTraits and NSText only.Source§fn firstRectForRange(&self, range: &UITextRange) -> CGRect
fn firstRectForRange(&self, range: &UITextRange) -> CGRect
UITextInput and UITextInputTraits and objc2-core-foundation only.Source§fn caretRectForPosition(&self, position: &UITextPosition) -> CGRect
fn caretRectForPosition(&self, position: &UITextPosition) -> CGRect
UITextInput and UITextInputTraits and objc2-core-foundation only.Source§fn selectionRectsForRange(
&self,
range: &UITextRange,
) -> Retained<NSArray<UITextSelectionRect>>
fn selectionRectsForRange( &self, range: &UITextRange, ) -> Retained<NSArray<UITextSelectionRect>>
UITextInput and UITextInputTraits only.Source§fn closestPositionToPoint(
&self,
point: CGPoint,
) -> Option<Retained<UITextPosition>>
fn closestPositionToPoint( &self, point: CGPoint, ) -> Option<Retained<UITextPosition>>
UITextInput and UITextInputTraits and objc2-core-foundation only.Source§fn closestPositionToPoint_withinRange(
&self,
point: CGPoint,
range: &UITextRange,
) -> Option<Retained<UITextPosition>>
fn closestPositionToPoint_withinRange( &self, point: CGPoint, range: &UITextRange, ) -> Option<Retained<UITextPosition>>
UITextInput and UITextInputTraits and objc2-core-foundation only.Source§fn characterRangeAtPoint(&self, point: CGPoint) -> Option<Retained<UITextRange>>
fn characterRangeAtPoint(&self, point: CGPoint) -> Option<Retained<UITextRange>>
UITextInput and UITextInputTraits and objc2-core-foundation only.Source§fn shouldChangeTextInRange_replacementText(
&self,
range: &UITextRange,
text: &NSString,
) -> bool
fn shouldChangeTextInRange_replacementText( &self, range: &UITextRange, text: &NSString, ) -> bool
UITextInput and UITextInputTraits only.Source§fn textStylingAtPosition_inDirection(
&self,
position: &UITextPosition,
direction: UITextStorageDirection,
) -> Option<Retained<NSDictionary<NSAttributedStringKey, AnyObject>>>
fn textStylingAtPosition_inDirection( &self, position: &UITextPosition, direction: UITextStorageDirection, ) -> Option<Retained<NSDictionary<NSAttributedStringKey, AnyObject>>>
UITextInput and UITextInputTraits only.Source§fn positionWithinRange_atCharacterOffset(
&self,
range: &UITextRange,
offset: NSInteger,
) -> Option<Retained<UITextPosition>>
fn positionWithinRange_atCharacterOffset( &self, range: &UITextRange, offset: NSInteger, ) -> Option<Retained<UITextPosition>>
UITextInput and UITextInputTraits only.Source§fn characterOffsetOfPosition_withinRange(
&self,
position: &UITextPosition,
range: &UITextRange,
) -> NSInteger
fn characterOffsetOfPosition_withinRange( &self, position: &UITextPosition, range: &UITextRange, ) -> NSInteger
UITextInput and UITextInputTraits only.Source§fn textInputView(&self) -> Retained<UIView>
fn textInputView(&self) -> Retained<UIView>
UITextInput and UITextInputTraits and UIResponder and UIView only.Source§fn selectionAffinity(&self) -> UITextStorageDirection
fn selectionAffinity(&self) -> UITextStorageDirection
UITextInput and UITextInputTraits only.Source§fn setSelectionAffinity(&self, selection_affinity: UITextStorageDirection)
fn setSelectionAffinity(&self, selection_affinity: UITextStorageDirection)
UITextInput and UITextInputTraits only.selectionAffinity.Source§fn insertDictationResult(&self, dictation_result: &NSArray<UIDictationPhrase>)
fn insertDictationResult(&self, dictation_result: &NSArray<UIDictationPhrase>)
UITextInput and UITextInputTraits only.Source§fn dictationRecordingDidEnd(&self)
fn dictationRecordingDidEnd(&self)
UITextInput and UITextInputTraits only.Source§fn dictationRecognitionFailed(&self)
fn dictationRecognitionFailed(&self)
UITextInput and UITextInputTraits only.Source§fn insertDictationResultPlaceholder(&self) -> Retained<AnyObject>
fn insertDictationResultPlaceholder(&self) -> Retained<AnyObject>
UITextInput and UITextInputTraits only.Source§unsafe fn frameForDictationResultPlaceholder(
&self,
placeholder: &AnyObject,
) -> CGRect
unsafe fn frameForDictationResultPlaceholder( &self, placeholder: &AnyObject, ) -> CGRect
UITextInput and UITextInputTraits and objc2-core-foundation only.Source§unsafe fn removeDictationResultPlaceholder_willInsertResult(
&self,
placeholder: &AnyObject,
will_insert_result: bool,
)
unsafe fn removeDictationResultPlaceholder_willInsertResult( &self, placeholder: &AnyObject, will_insert_result: bool, )
UITextInput and UITextInputTraits only.Source§fn insertText_alternatives_style(
&self,
text: &NSString,
alternatives: &NSArray<NSString>,
style: UITextAlternativeStyle,
)
fn insertText_alternatives_style( &self, text: &NSString, alternatives: &NSArray<NSString>, style: UITextAlternativeStyle, )
UITextInput and UITextInputTraits only.Source§fn setAttributedMarkedText_selectedRange(
&self,
marked_text: Option<&NSAttributedString>,
selected_range: NSRange,
)
fn setAttributedMarkedText_selectedRange( &self, marked_text: Option<&NSAttributedString>, selected_range: NSRange, )
UITextInput and UITextInputTraits only.Source§fn insertTextPlaceholderWithSize(
&self,
size: CGSize,
) -> Retained<UITextPlaceholder>
fn insertTextPlaceholderWithSize( &self, size: CGSize, ) -> Retained<UITextPlaceholder>
UITextInput and UITextInputTraits and objc2-core-foundation only.Source§fn removeTextPlaceholder(&self, text_placeholder: &UITextPlaceholder)
fn removeTextPlaceholder(&self, text_placeholder: &UITextPlaceholder)
UITextInput and UITextInputTraits only.Source§fn beginFloatingCursorAtPoint(&self, point: CGPoint)
fn beginFloatingCursorAtPoint(&self, point: CGPoint)
UITextInput and UITextInputTraits and objc2-core-foundation only.Source§fn updateFloatingCursorAtPoint(&self, point: CGPoint)
fn updateFloatingCursorAtPoint(&self, point: CGPoint)
UITextInput and UITextInputTraits and objc2-core-foundation only.Source§fn endFloatingCursor(&self)
fn endFloatingCursor(&self)
UITextInput and UITextInputTraits only.Source§fn caretTransformForPosition(
&self,
position: &UITextPosition,
) -> CGAffineTransform
fn caretTransformForPosition( &self, position: &UITextPosition, ) -> CGAffineTransform
UITextInput and UITextInputTraits and objc2-core-foundation only.-caretRectForPosition:, optionally provide a transform for the caret at position. As with all geometry information in this protocol,
transforms are assumed to be relative to the textInputView coordinate space. If unimplemented, the identity transform is assumed.Source§fn editMenuForTextRange_suggestedActions(
&self,
text_range: &UITextRange,
suggested_actions: &NSArray<UIMenuElement>,
) -> Option<Retained<UIMenu>>
fn editMenuForTextRange_suggestedActions( &self, text_range: &UITextRange, suggested_actions: &NSArray<UIMenuElement>, ) -> Option<Retained<UIMenu>>
UITextInput and UITextInputTraits and UIMenu and UIMenuElement only.Source§fn willPresentEditMenuWithAnimator(
&self,
animator: &ProtocolObject<dyn UIEditMenuInteractionAnimating>,
)
fn willPresentEditMenuWithAnimator( &self, animator: &ProtocolObject<dyn UIEditMenuInteractionAnimating>, )
UITextInput and UITextInputTraits and UIEditMenuInteraction only.Source§fn willDismissEditMenuWithAnimator(
&self,
animator: &ProtocolObject<dyn UIEditMenuInteractionAnimating>,
)
fn willDismissEditMenuWithAnimator( &self, animator: &ProtocolObject<dyn UIEditMenuInteractionAnimating>, )
UITextInput and UITextInputTraits and UIEditMenuInteraction only.Source§fn supportsAdaptiveImageGlyph(&self) -> bool
fn supportsAdaptiveImageGlyph(&self) -> bool
UITextInput and UITextInputTraits only.Source§fn setSupportsAdaptiveImageGlyph(&self, supports_adaptive_image_glyph: bool)
fn setSupportsAdaptiveImageGlyph(&self, supports_adaptive_image_glyph: bool)
UITextInput and UITextInputTraits only.supportsAdaptiveImageGlyph.Source§fn insertAdaptiveImageGlyph_replacementRange(
&self,
adaptive_image_glyph: &NSAdaptiveImageGlyph,
replacement_range: &UITextRange,
)
fn insertAdaptiveImageGlyph_replacementRange( &self, adaptive_image_glyph: &NSAdaptiveImageGlyph, replacement_range: &UITextRange, )
UITextInput and UITextInputTraits and NSAdaptiveImageGlyph only.Source§fn isEditable(&self) -> bool
fn isEditable(&self) -> bool
UITextInput and UITextInputTraits only.Source§fn insertAttributedText(&self, string: &NSAttributedString)
fn insertAttributedText(&self, string: &NSAttributedString)
UITextInput and UITextInputTraits only.Source§fn attributedTextInRange(
&self,
range: &UITextRange,
) -> Retained<NSAttributedString>
fn attributedTextInRange( &self, range: &UITextRange, ) -> Retained<NSAttributedString>
UITextInput and UITextInputTraits only.Source§fn replaceRange_withAttributedText(
&self,
range: &UITextRange,
attributed_text: &NSAttributedString,
)
fn replaceRange_withAttributedText( &self, range: &UITextRange, attributed_text: &NSAttributedString, )
UITextInput and UITextInputTraits only.Source§fn willPresentWritingTools(&self)
fn willPresentWritingTools(&self)
UITextInput and UITextInputTraits only.Source§fn didDismissWritingTools(&self)
fn didDismissWritingTools(&self)
UITextInput and UITextInputTraits only.Source§fn insertInputSuggestion(&self, input_suggestion: &UIInputSuggestion)
fn insertInputSuggestion(&self, input_suggestion: &UIInputSuggestion)
UITextInput and UITextInputTraits and UIInputSuggestion only.Source§impl UITextInputTraits for UITextView
impl UITextInputTraits for UITextView
Source§fn autocapitalizationType(&self) -> UITextAutocapitalizationType
fn autocapitalizationType(&self) -> UITextAutocapitalizationType
UITextInputTraits only.Source§fn setAutocapitalizationType(
&self,
autocapitalization_type: UITextAutocapitalizationType,
)
fn setAutocapitalizationType( &self, autocapitalization_type: UITextAutocapitalizationType, )
UITextInputTraits only.autocapitalizationType.Source§fn autocorrectionType(&self) -> UITextAutocorrectionType
fn autocorrectionType(&self) -> UITextAutocorrectionType
UITextInputTraits only.Source§fn setAutocorrectionType(&self, autocorrection_type: UITextAutocorrectionType)
fn setAutocorrectionType(&self, autocorrection_type: UITextAutocorrectionType)
UITextInputTraits only.autocorrectionType.Source§fn spellCheckingType(&self) -> UITextSpellCheckingType
fn spellCheckingType(&self) -> UITextSpellCheckingType
UITextInputTraits only.Source§fn setSpellCheckingType(&self, spell_checking_type: UITextSpellCheckingType)
fn setSpellCheckingType(&self, spell_checking_type: UITextSpellCheckingType)
UITextInputTraits only.spellCheckingType.Source§fn smartQuotesType(&self) -> UITextSmartQuotesType
fn smartQuotesType(&self) -> UITextSmartQuotesType
UITextInputTraits only.Source§fn setSmartQuotesType(&self, smart_quotes_type: UITextSmartQuotesType)
fn setSmartQuotesType(&self, smart_quotes_type: UITextSmartQuotesType)
UITextInputTraits only.smartQuotesType.Source§fn smartDashesType(&self) -> UITextSmartDashesType
fn smartDashesType(&self) -> UITextSmartDashesType
UITextInputTraits only.Source§fn setSmartDashesType(&self, smart_dashes_type: UITextSmartDashesType)
fn setSmartDashesType(&self, smart_dashes_type: UITextSmartDashesType)
UITextInputTraits only.smartDashesType.Source§fn smartInsertDeleteType(&self) -> UITextSmartInsertDeleteType
fn smartInsertDeleteType(&self) -> UITextSmartInsertDeleteType
UITextInputTraits only.Source§fn setSmartInsertDeleteType(
&self,
smart_insert_delete_type: UITextSmartInsertDeleteType,
)
fn setSmartInsertDeleteType( &self, smart_insert_delete_type: UITextSmartInsertDeleteType, )
UITextInputTraits only.smartInsertDeleteType.Source§fn inlinePredictionType(&self) -> UITextInlinePredictionType
fn inlinePredictionType(&self) -> UITextInlinePredictionType
UITextInputTraits only.Source§fn setInlinePredictionType(
&self,
inline_prediction_type: UITextInlinePredictionType,
)
fn setInlinePredictionType( &self, inline_prediction_type: UITextInlinePredictionType, )
UITextInputTraits only.inlinePredictionType.Source§fn mathExpressionCompletionType(&self) -> UITextMathExpressionCompletionType
fn mathExpressionCompletionType(&self) -> UITextMathExpressionCompletionType
UITextInputTraits only.Source§fn setMathExpressionCompletionType(
&self,
math_expression_completion_type: UITextMathExpressionCompletionType,
)
fn setMathExpressionCompletionType( &self, math_expression_completion_type: UITextMathExpressionCompletionType, )
UITextInputTraits only.mathExpressionCompletionType.Source§fn keyboardType(&self) -> UIKeyboardType
fn keyboardType(&self) -> UIKeyboardType
UITextInputTraits only.Source§fn setKeyboardType(&self, keyboard_type: UIKeyboardType)
fn setKeyboardType(&self, keyboard_type: UIKeyboardType)
UITextInputTraits only.keyboardType.Source§fn keyboardAppearance(&self) -> UIKeyboardAppearance
fn keyboardAppearance(&self) -> UIKeyboardAppearance
UITextInputTraits only.Source§fn setKeyboardAppearance(&self, keyboard_appearance: UIKeyboardAppearance)
fn setKeyboardAppearance(&self, keyboard_appearance: UIKeyboardAppearance)
UITextInputTraits only.keyboardAppearance.Source§fn returnKeyType(&self) -> UIReturnKeyType
fn returnKeyType(&self) -> UIReturnKeyType
UITextInputTraits only.Source§fn setReturnKeyType(&self, return_key_type: UIReturnKeyType)
fn setReturnKeyType(&self, return_key_type: UIReturnKeyType)
UITextInputTraits only.returnKeyType.Source§fn enablesReturnKeyAutomatically(&self) -> bool
fn enablesReturnKeyAutomatically(&self) -> bool
UITextInputTraits only.Source§fn setEnablesReturnKeyAutomatically(
&self,
enables_return_key_automatically: bool,
)
fn setEnablesReturnKeyAutomatically( &self, enables_return_key_automatically: bool, )
UITextInputTraits only.enablesReturnKeyAutomatically.Source§fn isSecureTextEntry(&self) -> bool
fn isSecureTextEntry(&self) -> bool
UITextInputTraits only.Source§fn setSecureTextEntry(&self, secure_text_entry: bool)
fn setSecureTextEntry(&self, secure_text_entry: bool)
UITextInputTraits only.isSecureTextEntry.Source§fn textContentType(&self) -> Retained<UITextContentType>
fn textContentType(&self) -> Retained<UITextContentType>
UITextInputTraits only.Source§fn setTextContentType(&self, text_content_type: Option<&UITextContentType>)
fn setTextContentType(&self, text_content_type: Option<&UITextContentType>)
UITextInputTraits only.textContentType. Read moreSource§fn passwordRules(&self) -> Option<Retained<UITextInputPasswordRules>>
fn passwordRules(&self) -> Option<Retained<UITextInputPasswordRules>>
UITextInputTraits only.Source§fn setPasswordRules(&self, password_rules: Option<&UITextInputPasswordRules>)
fn setPasswordRules(&self, password_rules: Option<&UITextInputPasswordRules>)
UITextInputTraits only.passwordRules. Read moreSource§fn writingToolsBehavior(&self) -> UIWritingToolsBehavior
fn writingToolsBehavior(&self) -> UIWritingToolsBehavior
UITextInputTraits only.Source§fn setWritingToolsBehavior(
&self,
writing_tools_behavior: UIWritingToolsBehavior,
)
fn setWritingToolsBehavior( &self, writing_tools_behavior: UIWritingToolsBehavior, )
UITextInputTraits only.writingToolsBehavior.Source§fn allowedWritingToolsResultOptions(&self) -> UIWritingToolsResultOptions
fn allowedWritingToolsResultOptions(&self) -> UIWritingToolsResultOptions
UITextInputTraits only.Source§fn setAllowedWritingToolsResultOptions(
&self,
allowed_writing_tools_result_options: UIWritingToolsResultOptions,
)
fn setAllowedWritingToolsResultOptions( &self, allowed_writing_tools_result_options: UIWritingToolsResultOptions, )
UITextInputTraits only.allowedWritingToolsResultOptions.Source§fn conversationContext(&self) -> Option<Retained<UIConversationContext>>
fn conversationContext(&self) -> Option<Retained<UIConversationContext>>
UITextInputTraits and UIConversationContext only.Source§fn setConversationContext(
&self,
conversation_context: Option<&UIConversationContext>,
)
fn setConversationContext( &self, conversation_context: Option<&UIConversationContext>, )
UITextInputTraits and UIConversationContext only.conversationContext.Source§fn allowsNumberPadPopover(&self) -> bool
fn allowsNumberPadPopover(&self) -> bool
UITextInputTraits only.Source§fn setAllowsNumberPadPopover(&self, allows_number_pad_popover: bool)
fn setAllowsNumberPadPopover(&self, allows_number_pad_popover: bool)
UITextInputTraits only.allowsNumberPadPopover.Source§impl UITextPasteConfigurationSupporting for UITextView
impl UITextPasteConfigurationSupporting for UITextView
Source§fn pasteDelegate(
&self,
) -> Option<Retained<ProtocolObject<dyn UITextPasteDelegate>>>
fn pasteDelegate( &self, ) -> Option<Retained<ProtocolObject<dyn UITextPasteDelegate>>>
UITextPasteConfigurationSupporting and UIPasteConfigurationSupporting and UITextPasteDelegate only.Source§fn setPasteDelegate(
&self,
paste_delegate: Option<&ProtocolObject<dyn UITextPasteDelegate>>,
)
fn setPasteDelegate( &self, paste_delegate: Option<&ProtocolObject<dyn UITextPasteDelegate>>, )
UITextPasteConfigurationSupporting and UIPasteConfigurationSupporting and UITextPasteDelegate only.pasteDelegate. Read moreSource§impl UITextSearching for UITextView
impl UITextSearching for UITextView
Source§fn selectedTextRange(&self) -> Option<Retained<UITextRange>>
fn selectedTextRange(&self) -> Option<Retained<UITextRange>>
UITextSearching and UITextInput only.Source§unsafe fn compareFoundRange_toRange_inDocument(
&self,
found_range: &UITextRange,
to_range: &UITextRange,
document: Option<&UITextSearchDocumentIdentifier>,
) -> NSComparisonResult
unsafe fn compareFoundRange_toRange_inDocument( &self, found_range: &UITextRange, to_range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier>, ) -> NSComparisonResult
UITextSearching and UITextInput only.fromRangeto
toRange. This is used by
the system find panel to know which
UITextRangeto highlight next when the user taps the “next” or “previous”
result buttons. Read moreSource§fn performTextSearchWithQueryString_usingOptions_resultAggregator(
&self,
string: &NSString,
options: &UITextSearchOptions,
aggregator: &ProtocolObject<dyn UITextSearchAggregator>,
)
fn performTextSearchWithQueryString_usingOptions_resultAggregator( &self, string: &NSString, options: &UITextSearchOptions, aggregator: &ProtocolObject<dyn UITextSearchAggregator>, )
UITextSearching and UIFindSession only.string.When results are found,
provide the results to
aggregator. Read moreSource§unsafe fn decorateFoundTextRange_inDocument_usingStyle(
&self,
range: &UITextRange,
document: Option<&UITextSearchDocumentIdentifier>,
style: UITextSearchFoundTextStyle,
)
unsafe fn decorateFoundTextRange_inDocument_usingStyle( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier>, style: UITextSearchFoundTextStyle, )
UITextSearching and UITextInput only.Source§fn clearAllDecoratedFoundText(&self)
fn clearAllDecoratedFoundText(&self)
UITextSearching only.decorateFoundTextRange:usingStyle:are cleared.Source§fn supportsTextReplacement(&self) -> bool
fn supportsTextReplacement(&self) -> bool
UITextSearching only.Source§unsafe fn shouldReplaceFoundTextInRange_inDocument_withText(
&self,
range: &UITextRange,
document: Option<&UITextSearchDocumentIdentifier>,
replacement_text: &NSString,
) -> bool
unsafe fn shouldReplaceFoundTextInRange_inDocument_withText( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier>, replacement_text: &NSString, ) -> bool
UITextSearching and UITextInput only.range. This will disable the “replace”
button in the UI. If this method is unimplemented, it is assumed that all results are replaceable. Read moreSource§unsafe fn replaceFoundTextInRange_inDocument_withText(
&self,
range: &UITextRange,
document: Option<&UITextSearchDocumentIdentifier>,
replacement_text: &NSString,
)
unsafe fn replaceFoundTextInRange_inDocument_withText( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier>, replacement_text: &NSString, )
UITextSearching and UITextInput only.-supportsTextReplacement, this method will be called whenever the user intends to
replace a range of text. Read moreSource§fn replaceAllOccurrencesOfQueryString_usingOptions_withText(
&self,
query_string: &NSString,
options: &UITextSearchOptions,
replacement_text: &NSString,
)
fn replaceAllOccurrencesOfQueryString_usingOptions_withText( &self, query_string: &NSString, options: &UITextSearchOptions, replacement_text: &NSString, )
UITextSearching and UIFindSession only.Source§unsafe fn willHighlightFoundTextRange_inDocument(
&self,
range: &UITextRange,
document: Option<&UITextSearchDocumentIdentifier>,
)
unsafe fn willHighlightFoundTextRange_inDocument( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier>, )
UITextSearching and UITextInput only.range. Read moreSource§unsafe fn scrollRangeToVisible_inDocument(
&self,
range: &UITextRange,
document: Option<&UITextSearchDocumentIdentifier>,
)
unsafe fn scrollRangeToVisible_inDocument( &self, range: &UITextRange, document: Option<&UITextSearchDocumentIdentifier>, )
UITextSearching and UITextInput only.Source§fn selectedTextSearchDocument(
&self,
) -> Option<Retained<UITextSearchDocumentIdentifier>>
fn selectedTextSearchDocument( &self, ) -> Option<Retained<UITextSearchDocumentIdentifier>>
UITextSearching only.Source§unsafe fn compareOrderFromDocument_toDocument(
&self,
from_document: &UITextSearchDocumentIdentifier,
to_document: &UITextSearchDocumentIdentifier,
) -> NSComparisonResult
unsafe fn compareOrderFromDocument_toDocument( &self, from_document: &UITextSearchDocumentIdentifier, to_document: &UITextSearchDocumentIdentifier, ) -> NSComparisonResult
UITextSearching only.fromDocument to toDocument. If your document identifiers
are index paths, for example, this would yield the same result as -[NSIndexPath compare:]. Read moreSource§impl UITraitEnvironment for UITextView
impl UITraitEnvironment for UITextView
Source§fn traitCollection(&self) -> Retained<UITraitCollection>
fn traitCollection(&self) -> Retained<UITraitCollection>
UITraitCollection only.Source§fn traitCollectionDidChange(
&self,
previous_trait_collection: Option<&UITraitCollection>,
)
fn traitCollectionDidChange( &self, previous_trait_collection: Option<&UITraitCollection>, )
UITraitCollection only.impl DowncastTarget for UITextView
impl Eq for UITextView
impl UIAppearanceContainer for UITextView
Auto Trait Implementations§
impl !Freeze for UITextView
impl !RefUnwindSafe for UITextView
impl !Send for UITextView
impl !Sync for UITextView
impl !Unpin for UITextView
impl !UnwindSafe for UITextView
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
Source§impl<'a, T> MainThreadOnly for T
impl<'a, T> MainThreadOnly for T
Source§fn mtm(&self) -> MainThreadMarker
fn mtm(&self) -> MainThreadMarker
MainThreadMarker from the main-thread-only object. Read more