Struct objc2_ui_kit::UISearchBar

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

Implementations§

source§

impl UISearchBar

source

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

source

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

source

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

source

pub unsafe fn barStyle(&self) -> UIBarStyle

Available on crate feature UIInterface only.
source

pub unsafe fn setBarStyle(&self, bar_style: UIBarStyle)

Available on crate feature UIInterface only.
source

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

Available on crate feature UIBarCommon only.
source

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

Available on crate feature UIBarCommon only.
source

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

source

pub unsafe fn setText(&self, text: Option<&NSString>)

source

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

source

pub unsafe fn setPrompt(&self, prompt: Option<&NSString>)

source

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

source

pub unsafe fn setPlaceholder(&self, placeholder: Option<&NSString>)

source

pub unsafe fn showsBookmarkButton(&self) -> bool

source

pub unsafe fn setShowsBookmarkButton(&self, shows_bookmark_button: bool)

source

pub unsafe fn searchTextField(&self) -> Retained<UISearchTextField>

Available on crate features UIControl and UISearchTextField and UITextField only.
source

pub unsafe fn showsCancelButton(&self) -> bool

source

pub unsafe fn setShowsCancelButton(&self, shows_cancel_button: bool)

source

pub unsafe fn showsSearchResultsButton(&self) -> bool

source

pub unsafe fn setShowsSearchResultsButton( &self, shows_search_results_button: bool )

source

pub unsafe fn isSearchResultsButtonSelected(&self) -> bool

source

pub unsafe fn setSearchResultsButtonSelected( &self, search_results_button_selected: bool )

source

pub unsafe fn setShowsCancelButton_animated( &self, shows_cancel_button: bool, animated: bool )

source

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

Available on crate feature UITextInput only.
source

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

Available on crate feature UIColor only.
source

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

Available on crate feature UIColor only.
source

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

Available on crate feature UIColor only.
source

pub unsafe fn setBarTintColor(&self, bar_tint_color: Option<&UIColor>)

Available on crate feature UIColor only.
source

pub unsafe fn searchBarStyle(&self) -> UISearchBarStyle

source

pub unsafe fn setSearchBarStyle(&self, search_bar_style: UISearchBarStyle)

source

pub unsafe fn isTranslucent(&self) -> bool

source

pub unsafe fn setTranslucent(&self, translucent: bool)

source

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

source

pub unsafe fn setScopeButtonTitles( &self, scope_button_titles: Option<&NSArray<NSString>> )

source

pub unsafe fn selectedScopeButtonIndex(&self) -> NSInteger

source

pub unsafe fn setSelectedScopeButtonIndex( &self, selected_scope_button_index: NSInteger )

source

pub unsafe fn showsScopeBar(&self) -> bool

source

pub unsafe fn setShowsScopeBar(&self, shows_scope_bar: bool)

source

pub unsafe fn setShowsScopeBar_animated(&self, show: bool, animate: bool)

source

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

source

pub unsafe fn setInputAccessoryView( &self, input_accessory_view: Option<&UIView> )

source

pub unsafe fn isEnabled(&self) -> bool

source

pub unsafe fn setEnabled(&self, enabled: bool)

source

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

Available on crate feature UIImage only.
source

pub unsafe fn setBackgroundImage(&self, background_image: Option<&UIImage>)

Available on crate feature UIImage only.
source

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

Available on crate feature UIImage only.
source

pub unsafe fn setScopeBarBackgroundImage( &self, scope_bar_background_image: Option<&UIImage> )

Available on crate feature UIImage only.
source

pub unsafe fn setBackgroundImage_forBarPosition_barMetrics( &self, background_image: Option<&UIImage>, bar_position: UIBarPosition, bar_metrics: UIBarMetrics )

Available on crate features UIBarCommon and UIImage only.
source

pub unsafe fn backgroundImageForBarPosition_barMetrics( &self, bar_position: UIBarPosition, bar_metrics: UIBarMetrics ) -> Option<Retained<UIImage>>

Available on crate features UIBarCommon and UIImage only.
source

pub unsafe fn setSearchFieldBackgroundImage_forState( &self, background_image: Option<&UIImage>, state: UIControlState )

Available on crate features UIControl and UIImage only.
source

pub unsafe fn searchFieldBackgroundImageForState( &self, state: UIControlState ) -> Option<Retained<UIImage>>

Available on crate features UIControl and UIImage only.
source

pub unsafe fn setImage_forSearchBarIcon_state( &self, icon_image: Option<&UIImage>, icon: UISearchBarIcon, state: UIControlState )

Available on crate features UIControl and UIImage only.
source

pub unsafe fn imageForSearchBarIcon_state( &self, icon: UISearchBarIcon, state: UIControlState ) -> Option<Retained<UIImage>>

Available on crate features UIControl and UIImage only.
source

pub unsafe fn setScopeBarButtonBackgroundImage_forState( &self, background_image: Option<&UIImage>, state: UIControlState )

Available on crate features UIControl and UIImage only.
source

pub unsafe fn scopeBarButtonBackgroundImageForState( &self, state: UIControlState ) -> Option<Retained<UIImage>>

Available on crate features UIControl and UIImage only.
source

pub unsafe fn setScopeBarButtonDividerImage_forLeftSegmentState_rightSegmentState( &self, divider_image: Option<&UIImage>, left_state: UIControlState, right_state: UIControlState )

Available on crate features UIControl and UIImage only.
source

pub unsafe fn scopeBarButtonDividerImageForLeftSegmentState_rightSegmentState( &self, left_state: UIControlState, right_state: UIControlState ) -> Option<Retained<UIImage>>

Available on crate features UIControl and UIImage only.
source

pub unsafe fn setScopeBarButtonTitleTextAttributes_forState( &self, attributes: Option<&NSDictionary<NSAttributedStringKey, AnyObject>>, state: UIControlState )

Available on crate feature UIControl only.
source

pub unsafe fn scopeBarButtonTitleTextAttributesForState( &self, state: UIControlState ) -> Option<Retained<NSDictionary<NSAttributedStringKey, AnyObject>>>

Available on crate feature UIControl only.
source

pub unsafe fn searchFieldBackgroundPositionAdjustment(&self) -> UIOffset

Available on crate feature UIGeometry only.
source

pub unsafe fn setSearchFieldBackgroundPositionAdjustment( &self, search_field_background_position_adjustment: UIOffset )

Available on crate feature UIGeometry only.
source

pub unsafe fn searchTextPositionAdjustment(&self) -> UIOffset

Available on crate feature UIGeometry only.
source

pub unsafe fn setSearchTextPositionAdjustment( &self, search_text_position_adjustment: UIOffset )

Available on crate feature UIGeometry only.
source

pub unsafe fn setPositionAdjustment_forSearchBarIcon( &self, adjustment: UIOffset, icon: UISearchBarIcon )

Available on crate feature UIGeometry only.
source

pub unsafe fn positionAdjustmentForSearchBarIcon( &self, icon: UISearchBarIcon ) -> UIOffset

Available on crate feature UIGeometry only.
source

pub unsafe fn isLookToDictateEnabled(&self) -> bool

source

pub unsafe fn setLookToDictateEnabled(&self, look_to_dictate_enabled: bool)

source§

impl UISearchBar

Methods declared on superclass NSObject

source

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

Methods from Deref<Target = UIView>§

source

pub unsafe fn accessibilityIgnoresInvertColors(&self) -> bool

Available on crate feature UIAccessibilityAdditions only.
source

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

Available on crate feature UIAccessibilityAdditions only.
source

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

Available on crate feature UIHoverStyle only.
source

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

Available on crate feature UIHoverStyle only.
source

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

Available on crate feature UIInteraction only.
source

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

Available on crate feature UIInteraction only.
source

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

Available on crate feature UIInteraction only.
source

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

Available on crate feature UIInteraction only.
source

pub unsafe fn showsLargeContentViewer(&self) -> bool

Available on crate feature UILargeContentViewer only.
source

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

Available on crate feature UILargeContentViewer only.
source

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

Available on crate feature UILargeContentViewer only.
source

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

Available on crate feature UILargeContentViewer only.
source

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

Available on crate features UILargeContentViewer and UIImage only.
source

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

Available on crate features UILargeContentViewer and UIImage only.
source

pub unsafe fn scalesLargeContentImage(&self) -> bool

Available on crate feature UILargeContentViewer only.
source

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

Available on crate feature UILargeContentViewer only.
source

pub unsafe fn largeContentImageInsets(&self) -> UIEdgeInsets

Available on crate features UILargeContentViewer and UIGeometry only.
source

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

Available on crate features UILargeContentViewer and UIGeometry only.
source

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

Available on crate feature UIPrintFormatter only.
source

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

Available on crate feature UIPrintFormatter only.
source

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

Available on crate feature UITextField only.
source

pub unsafe fn isUserInteractionEnabled(&self) -> bool

source

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

source

pub unsafe fn tag(&self) -> NSInteger

source

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

source

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

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

pub unsafe fn canBecomeFocused(&self) -> bool

source

pub unsafe fn isFocused(&self) -> bool

source

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

source

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

source

pub unsafe fn focusGroupPriority(&self) -> UIFocusGroupPriority

Available on crate feature UIFocus only.
source

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

Available on crate feature UIFocus only.
source

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

Available on crate feature UIFocusEffect only.
source

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

Available on crate feature UIFocusEffect only.
source

pub unsafe fn semanticContentAttribute(&self) -> UISemanticContentAttribute

source

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

source

pub unsafe fn effectiveUserInterfaceLayoutDirection( &self ) -> UIUserInterfaceLayoutDirection

Available on crate feature UIInterface only.
source

pub fn frame(&self) -> CGRect

source

pub fn setFrame(&self, frame: CGRect)

source

pub fn bounds(&self) -> CGRect

source

pub fn setBounds(&self, bounds: CGRect)

source

pub unsafe fn center(&self) -> CGPoint

source

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

source

pub unsafe fn transform3D(&self) -> CATransform3D

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

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

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

pub fn contentScaleFactor(&self) -> CGFloat

source

pub fn setContentScaleFactor(&self, content_scale_factor: CGFloat)

source

pub unsafe fn anchorPoint(&self) -> CGPoint

source

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

source

pub unsafe fn isMultipleTouchEnabled(&self) -> bool

source

pub fn setMultipleTouchEnabled(&self, multiple_touch_enabled: bool)

source

pub unsafe fn isExclusiveTouch(&self) -> bool

source

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

source

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

Available on crate feature UIEvent only.
source

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

Available on crate feature UIEvent only.
source

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

source

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

source

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

source

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

source

pub unsafe fn autoresizesSubviews(&self) -> bool

source

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

source

pub unsafe fn autoresizingMask(&self) -> UIViewAutoresizing

source

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

source

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

source

pub unsafe fn sizeToFit(&self)

source

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

source

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

source

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

Available on crate feature UIWindow only.
source

pub unsafe fn removeFromSuperview(&self)

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

pub unsafe fn didMoveToSuperview(&self)

source

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

Available on crate feature UIWindow only.
source

pub unsafe fn didMoveToWindow(&self)

source

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

source

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

source

pub unsafe fn setNeedsLayout(&self)

source

pub unsafe fn layoutIfNeeded(&self)

source

pub unsafe fn layoutSubviews(&self)

source

pub unsafe fn layoutMargins(&self) -> UIEdgeInsets

Available on crate feature UIGeometry only.
source

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

Available on crate feature UIGeometry only.
source

pub unsafe fn directionalLayoutMargins(&self) -> NSDirectionalEdgeInsets

Available on crate feature UIGeometry only.
source

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

Available on crate feature UIGeometry only.
source

pub unsafe fn preservesSuperviewLayoutMargins(&self) -> bool

source

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

source

pub unsafe fn insetsLayoutMarginsFromSafeArea(&self) -> bool

source

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

source

pub unsafe fn layoutMarginsDidChange(&self)

source

pub fn safeAreaInsets(&self) -> UIEdgeInsets

Available on crate feature UIGeometry only.
source

pub unsafe fn safeAreaInsetsDidChange(&self)

source

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

Available on crate feature UILayoutGuide only.
source

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

Available on crate feature UILayoutGuide only.
source

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

Available on crate feature UILayoutGuide only.
source

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

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

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

source

pub fn setNeedsDisplay(&self)

source

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

source

pub unsafe fn clipsToBounds(&self) -> bool

source

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

source

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

Available on crate feature UIColor only.
source

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

Available on crate feature UIColor only.
source

pub unsafe fn alpha(&self) -> CGFloat

source

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

source

pub unsafe fn isOpaque(&self) -> bool

source

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

source

pub unsafe fn clearsContextBeforeDrawing(&self) -> bool

source

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

source

pub fn isHidden(&self) -> bool

source

pub fn setHidden(&self, hidden: bool)

source

pub unsafe fn contentMode(&self) -> UIViewContentMode

source

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

source

pub unsafe fn contentStretch(&self) -> CGRect

👎Deprecated
source

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

👎Deprecated
source

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

source

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

source

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

Available on crate feature UIColor only.
source

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

Available on crate feature UIColor only.
source

pub unsafe fn tintAdjustmentMode(&self) -> UIViewTintAdjustmentMode

source

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

source

pub unsafe fn tintColorDidChange(&self)

source

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

Available on crate feature UIGestureRecognizer only.
source

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

Available on crate feature UIGestureRecognizer only.
source

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

Available on crate feature UIGestureRecognizer only.
source

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

Available on crate feature UIGestureRecognizer only.
source

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

Available on crate feature UIGestureRecognizer only.
source

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

Available on crate feature UIMotionEffect only.
source

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

Available on crate feature UIMotionEffect only.
source

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

Available on crate feature UIMotionEffect only.
source

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

Available on crate feature UIMotionEffect only.
source

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

Available on crate feature NSLayoutConstraint only.
source

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

Available on crate feature NSLayoutConstraint only.
source

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

Available on crate feature NSLayoutConstraint only.
source

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

Available on crate feature NSLayoutConstraint only.
source

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

Available on crate feature NSLayoutConstraint only.
source

pub unsafe fn updateConstraintsIfNeeded(&self)

source

pub unsafe fn updateConstraints(&self)

source

pub unsafe fn needsUpdateConstraints(&self) -> bool

source

pub unsafe fn setNeedsUpdateConstraints(&self)

source

pub unsafe fn translatesAutoresizingMaskIntoConstraints(&self) -> bool

source

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

source

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

source

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

source

pub unsafe fn alignmentRectInsets(&self) -> UIEdgeInsets

Available on crate feature UIGeometry only.
source

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

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

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

source

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

source

pub unsafe fn intrinsicContentSize(&self) -> CGSize

source

pub unsafe fn invalidateIntrinsicContentSize(&self)

source

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

Available on crate feature NSLayoutConstraint only.
source

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

Available on crate feature NSLayoutConstraint only.
source

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

Available on crate feature NSLayoutConstraint only.
source

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

Available on crate feature NSLayoutConstraint only.
source

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

source

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

Available on crate feature NSLayoutConstraint only.
source

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

Available on crate feature UILayoutGuide only.
source

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

Available on crate feature UILayoutGuide only.
source

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

Available on crate feature UILayoutGuide only.
source

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

Available on crate feature NSLayoutAnchor only.
source

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

Available on crate feature NSLayoutAnchor only.
source

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

Available on crate feature NSLayoutAnchor only.
source

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

Available on crate feature NSLayoutAnchor only.
source

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

Available on crate feature NSLayoutAnchor only.
source

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

Available on crate feature NSLayoutAnchor only.
source

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

Available on crate feature NSLayoutAnchor only.
source

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

Available on crate feature NSLayoutAnchor only.
source

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

Available on crate feature NSLayoutAnchor only.
source

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

Available on crate feature NSLayoutAnchor only.
source

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

Available on crate feature NSLayoutAnchor only.
source

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

Available on crate feature NSLayoutAnchor only.
source

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

Available on crate feature NSLayoutConstraint only.
source

pub unsafe fn hasAmbiguousLayout(&self) -> bool

source

pub unsafe fn exerciseAmbiguityInLayout(&self)

source

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

source

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

source

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

source

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

source

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

source

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

Available on crate feature UIGeometry only.
source

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

source

pub unsafe fn overrideUserInterfaceStyle(&self) -> UIUserInterfaceStyle

Available on crate feature UIInterface only.
source

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

Available on crate feature UIInterface only.
source

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

Available on crate feature UIContentSizeCategory only.
source

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

Available on crate feature UIContentSizeCategory only.
source

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

Available on crate feature UIContentSizeCategory only.
source

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

Available on crate feature UIContentSizeCategory only.
source

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

source

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

Available on crate feature UITraitCollection only.
source

pub unsafe fn updateTraitsIfNeeded(&self)

Methods from Deref<Target = UIResponder>§

source

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

source

pub unsafe fn canBecomeFirstResponder(&self) -> bool

source

pub unsafe fn becomeFirstResponder(&self) -> bool

source

pub unsafe fn canResignFirstResponder(&self) -> bool

source

pub unsafe fn resignFirstResponder(&self) -> bool

source

pub unsafe fn isFirstResponder(&self) -> bool

source

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

Available on crate features UIEvent and UITouch only.
source

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

Available on crate features UIEvent and UITouch only.
source

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

Available on crate features UIEvent and UITouch only.
source

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

Available on crate features UIEvent and UITouch only.
source

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

Available on crate feature UITouch only.
source

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

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

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

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

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

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

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

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

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

Available on crate feature UIEvent only.
source

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

Available on crate feature UIEvent only.
source

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

Available on crate feature UIEvent only.
source

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

Available on crate feature UIEvent only.
source

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

source

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

source

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

Available on crate feature UIMenuBuilder only.
source

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

Available on crate features UICommand and UIMenuElement only.
source

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

source

pub unsafe fn editingInteractionConfiguration( &self ) -> UIEditingInteractionConfiguration

source

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

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

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

source

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

source

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

Available on crate feature UITextInput only.
source

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

Available on crate features UIInputViewController and UIViewController only.
source

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

Available on crate features UIInputViewController and UIViewController only.
source

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

Available on crate feature UITextInput only.
source

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

source

pub unsafe fn reloadInputViews(&self)

source

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

source

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

source

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

source

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

source

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

source

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

Available on crate features UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.
source

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

Available on crate features UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.

Methods from Deref<Target = NSObject>§

source

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

Handle messages the object doesn’t recognize.

See Apple’s documentation for details.

Methods from Deref<Target = AnyObject>§

source

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

Available on crate feature UIIndirectScribbleInteraction only.

Dynamically find the class of this object.

§Example

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

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

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

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

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

Use Ivar::load instead.

§Safety

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

See Ivar::load_ptr for details surrounding this.

source

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

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

Use Ivar::load_mut instead.

§Safety

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

See Ivar::load_ptr for details surrounding this.

Trait Implementations§

source§

impl AsMut<AnyObject> for UISearchBar

source§

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

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

impl AsMut<NSObject> for UISearchBar

source§

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

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

impl AsMut<UIResponder> for UISearchBar

source§

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

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

impl AsMut<UISearchBar> for UISearchBar

source§

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

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

impl AsMut<UIView> for UISearchBar

source§

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

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

impl AsRef<AnyObject> for UISearchBar

source§

fn as_ref(&self) -> &AnyObject

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

impl AsRef<NSObject> for UISearchBar

source§

fn as_ref(&self) -> &NSObject

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

impl AsRef<UIResponder> for UISearchBar

source§

fn as_ref(&self) -> &UIResponder

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

impl AsRef<UISearchBar> for UISearchBar

source§

fn as_ref(&self) -> &Self

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

impl AsRef<UIView> for UISearchBar

source§

fn as_ref(&self) -> &UIView

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

impl Borrow<AnyObject> for UISearchBar

source§

fn borrow(&self) -> &AnyObject

Immutably borrows from an owned value. Read more
source§

impl Borrow<NSObject> for UISearchBar

source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIResponder> for UISearchBar

source§

fn borrow(&self) -> &UIResponder

Immutably borrows from an owned value. Read more
source§

impl Borrow<UIView> for UISearchBar

source§

fn borrow(&self) -> &UIView

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<AnyObject> for UISearchBar

source§

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

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<NSObject> for UISearchBar

source§

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

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIResponder> for UISearchBar

source§

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

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<UIView> for UISearchBar

source§

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

Mutably borrows from an owned value. Read more
source§

impl CALayerDelegate for UISearchBar

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

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

source§

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

source§

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

source§

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

source§

impl ClassType for UISearchBar

§

type Super = UIView

The superclass of this class. Read more
§

type Mutability = MainThreadOnly

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

const NAME: &'static str = "UISearchBar"

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

fn class() -> &'static AnyClass

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

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

Get an immutable reference to the superclass.
source§

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

Get a mutable reference to the superclass.
source§

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

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

impl Debug for UISearchBar

source§

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

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

impl Deref for UISearchBar

§

type Target = UIView

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl DerefMut for UISearchBar

source§

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

Mutably dereferences the value.
source§

impl Hash for UISearchBar

source§

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

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

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

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

impl NSCoding for UISearchBar

source§

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

Available on crate feature NSCoder only.
source§

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

Available on crate feature NSCoder only.
source§

impl NSObjectProtocol for UISearchBar

source§

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

A textual representation of the object. Read more
source§

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

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

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

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

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

The reference count of the object. Read more
source§

impl PartialEq for UISearchBar

source§

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

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

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

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

impl RefEncode for UISearchBar

source§

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

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

impl UIAppearance for UISearchBar

Available on crate feature UIAppearance only.
source§

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

source§

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

source§

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

Available on crate feature UITraitCollection only.
source§

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

Available on crate feature UITraitCollection only.
source§

impl UIBarPositioning for UISearchBar

Available on crate feature UIBarCommon only.
source§

unsafe fn barPosition(&self) -> UIBarPosition
where Self: Sized + Message,

source§

impl UICoordinateSpace for UISearchBar

source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl UIDynamicItem for UISearchBar

Available on crate feature UIDynamicBehavior only.
source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

Available on crate feature UIBezierPath only.
source§

impl UIFocusEnvironment for UISearchBar

Available on crate feature UIFocus only.
source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

Available on crate feature UIFocusAnimationCoordinator only.
source§

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

source§

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

👎Deprecated
source§

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

source§

impl UIFocusItem for UISearchBar

Available on crate feature UIFocus only.
source§

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

source§

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

source§

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

Available on crate feature UIFocusEffect only.
source§

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

source§

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

source§

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

Available on crate feature UIFocusMovementHint only.
source§

impl UIFocusItemContainer for UISearchBar

Available on crate feature UIFocus only.
source§

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

source§

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

source§

impl UILookToDictateCapable for UISearchBar

source§

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

source§

unsafe fn setLookToDictateEnabled(&self, look_to_dictate_enabled: bool)
where Self: Sized + Message,

source§

impl UIResponderStandardEditActions for UISearchBar

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

Available on crate feature block2 only.
source§

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

source§

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

source§

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

source§

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

source§

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

source§

impl UITextInputTraits for UISearchBar

Available on crate feature UITextInputTraits only.
source§

unsafe fn autocapitalizationType(&self) -> UITextAutocapitalizationType
where Self: Sized + Message,

source§

unsafe fn setAutocapitalizationType( &self, autocapitalization_type: UITextAutocapitalizationType )
where Self: Sized + Message,

source§

unsafe fn autocorrectionType(&self) -> UITextAutocorrectionType
where Self: Sized + Message,

source§

unsafe fn setAutocorrectionType( &self, autocorrection_type: UITextAutocorrectionType )
where Self: Sized + Message,

source§

unsafe fn spellCheckingType(&self) -> UITextSpellCheckingType
where Self: Sized + Message,

source§

unsafe fn setSpellCheckingType( &self, spell_checking_type: UITextSpellCheckingType )
where Self: Sized + Message,

source§

unsafe fn smartQuotesType(&self) -> UITextSmartQuotesType
where Self: Sized + Message,

source§

unsafe fn setSmartQuotesType(&self, smart_quotes_type: UITextSmartQuotesType)
where Self: Sized + Message,

source§

unsafe fn smartDashesType(&self) -> UITextSmartDashesType
where Self: Sized + Message,

source§

unsafe fn setSmartDashesType(&self, smart_dashes_type: UITextSmartDashesType)
where Self: Sized + Message,

source§

unsafe fn smartInsertDeleteType(&self) -> UITextSmartInsertDeleteType
where Self: Sized + Message,

source§

unsafe fn setSmartInsertDeleteType( &self, smart_insert_delete_type: UITextSmartInsertDeleteType )
where Self: Sized + Message,

source§

unsafe fn inlinePredictionType(&self) -> UITextInlinePredictionType
where Self: Sized + Message,

source§

unsafe fn setInlinePredictionType( &self, inline_prediction_type: UITextInlinePredictionType )
where Self: Sized + Message,

source§

unsafe fn keyboardType(&self) -> UIKeyboardType
where Self: Sized + Message,

source§

unsafe fn setKeyboardType(&self, keyboard_type: UIKeyboardType)
where Self: Sized + Message,

source§

unsafe fn keyboardAppearance(&self) -> UIKeyboardAppearance
where Self: Sized + Message,

source§

unsafe fn setKeyboardAppearance( &self, keyboard_appearance: UIKeyboardAppearance )
where Self: Sized + Message,

source§

unsafe fn returnKeyType(&self) -> UIReturnKeyType
where Self: Sized + Message,

source§

unsafe fn setReturnKeyType(&self, return_key_type: UIReturnKeyType)
where Self: Sized + Message,

source§

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

source§

unsafe fn setEnablesReturnKeyAutomatically( &self, enables_return_key_automatically: bool )
where Self: Sized + Message,

source§

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

source§

unsafe fn setSecureTextEntry(&self, secure_text_entry: bool)
where Self: Sized + Message,

source§

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

source§

unsafe fn setTextContentType( &self, text_content_type: Option<&UITextContentType> )
where Self: Sized + Message,

source§

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

source§

unsafe fn setPasswordRules( &self, password_rules: Option<&UITextInputPasswordRules> )
where Self: Sized + Message,

source§

impl UITraitEnvironment for UISearchBar

Available on crate feature UITraitCollection only.
source§

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

source§

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

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

impl Eq for UISearchBar

source§

impl Message for UISearchBar

source§

impl StructuralPartialEq for UISearchBar

source§

impl UIAppearanceContainer for UISearchBar

Available on crate feature UIAppearance only.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

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

§

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

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

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

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

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

fn into(self) -> U

Calls U::from(self).

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

source§

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

§

type Error = Infallible

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

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

Performs the conversion.
source§

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

§

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

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

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

Performs the conversion.
source§

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

source§

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

source§

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

source§

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