Struct objc2_ui_kit::UIPopoverBackgroundView
source · #[repr(C)]pub struct UIPopoverBackgroundView { /* private fields */ }Available on crate features
UIPopoverBackgroundView and UIResponder and UIView only.Implementations§
source§impl UIPopoverBackgroundView
impl UIPopoverBackgroundView
pub unsafe fn arrowOffset(&self) -> CGFloat
pub unsafe fn setArrowOffset(&self, arrow_offset: CGFloat)
pub unsafe fn arrowDirection(&self) -> UIPopoverArrowDirection
Available on crate feature
UIPopoverSupport only.pub unsafe fn setArrowDirection(&self, arrow_direction: UIPopoverArrowDirection)
Available on crate feature
UIPopoverSupport only.pub unsafe fn wantsDefaultContentAppearance(mtm: MainThreadMarker) -> bool
👎Deprecated: No longer supported
source§impl UIPopoverBackgroundView
impl UIPopoverBackgroundView
Methods declared on superclass UIView
Methods from Deref<Target = UIView>§
pub unsafe fn accessibilityIgnoresInvertColors(&self) -> bool
Available on crate feature
UIAccessibilityAdditions only.pub unsafe fn setAccessibilityIgnoresInvertColors( &self, accessibility_ignores_invert_colors: bool )
Available on crate feature
UIAccessibilityAdditions only.pub unsafe fn hoverStyle(&self) -> Option<Retained<UIHoverStyle>>
Available on crate feature
UIHoverStyle only.pub unsafe fn setHoverStyle(&self, hover_style: Option<&UIHoverStyle>)
Available on crate feature
UIHoverStyle only.pub unsafe fn addInteraction( &self, interaction: &ProtocolObject<dyn UIInteraction> )
Available on crate feature
UIInteraction only.pub unsafe fn removeInteraction( &self, interaction: &ProtocolObject<dyn UIInteraction> )
Available on crate feature
UIInteraction only.pub unsafe fn interactions( &self ) -> Retained<NSArray<ProtocolObject<dyn UIInteraction>>>
Available on crate feature
UIInteraction only.pub unsafe fn setInteractions( &self, interactions: &NSArray<ProtocolObject<dyn UIInteraction>> )
Available on crate feature
UIInteraction only.pub unsafe fn showsLargeContentViewer(&self) -> bool
Available on crate feature
UILargeContentViewer only.pub unsafe fn setShowsLargeContentViewer( &self, shows_large_content_viewer: bool )
Available on crate feature
UILargeContentViewer only.pub unsafe fn largeContentTitle(&self) -> Option<Retained<NSString>>
Available on crate feature
UILargeContentViewer only.pub unsafe fn setLargeContentTitle( &self, large_content_title: Option<&NSString> )
Available on crate feature
UILargeContentViewer only.pub unsafe fn largeContentImage(&self) -> Option<Retained<UIImage>>
Available on crate features
UILargeContentViewer and UIImage only.pub unsafe fn setLargeContentImage(&self, large_content_image: Option<&UIImage>)
Available on crate features
UILargeContentViewer and UIImage only.pub unsafe fn scalesLargeContentImage(&self) -> bool
Available on crate feature
UILargeContentViewer only.pub unsafe fn setScalesLargeContentImage( &self, scales_large_content_image: bool )
Available on crate feature
UILargeContentViewer only.pub unsafe fn largeContentImageInsets(&self) -> UIEdgeInsets
Available on crate features
UILargeContentViewer and UIGeometry only.pub unsafe fn setLargeContentImageInsets( &self, large_content_image_insets: UIEdgeInsets )
Available on crate features
UILargeContentViewer and UIGeometry only.pub unsafe fn viewPrintFormatter(&self) -> Retained<UIViewPrintFormatter>
Available on crate feature
UIPrintFormatter only.pub unsafe fn drawRect_forViewPrintFormatter( &self, rect: CGRect, formatter: &UIViewPrintFormatter )
Available on crate feature
UIPrintFormatter only.pub unsafe fn endEditing(&self, force: bool) -> bool
Available on crate feature
UITextField only.pub unsafe fn isUserInteractionEnabled(&self) -> bool
pub unsafe fn setUserInteractionEnabled(&self, user_interaction_enabled: bool)
pub unsafe fn tag(&self) -> NSInteger
pub unsafe fn setTag(&self, tag: NSInteger)
pub fn layer(&self) -> Retained<CALayer>
Available on crate feature
objc2-quartz-core and non-watchOS only.pub unsafe fn canBecomeFocused(&self) -> bool
pub unsafe fn isFocused(&self) -> bool
pub unsafe fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>
pub unsafe fn setFocusGroupIdentifier( &self, focus_group_identifier: Option<&NSString> )
pub unsafe fn focusGroupPriority(&self) -> UIFocusGroupPriority
Available on crate feature
UIFocus only.pub unsafe fn setFocusGroupPriority( &self, focus_group_priority: UIFocusGroupPriority )
Available on crate feature
UIFocus only.pub unsafe fn focusEffect(&self) -> Option<Retained<UIFocusEffect>>
Available on crate feature
UIFocusEffect only.pub unsafe fn setFocusEffect(&self, focus_effect: Option<&UIFocusEffect>)
Available on crate feature
UIFocusEffect only.pub unsafe fn semanticContentAttribute(&self) -> UISemanticContentAttribute
pub unsafe fn setSemanticContentAttribute( &self, semantic_content_attribute: UISemanticContentAttribute )
pub unsafe fn effectiveUserInterfaceLayoutDirection( &self ) -> UIUserInterfaceLayoutDirection
Available on crate feature
UIInterface only.pub fn frame(&self) -> CGRect
pub fn setFrame(&self, frame: CGRect)
pub fn bounds(&self) -> CGRect
pub fn setBounds(&self, bounds: CGRect)
pub unsafe fn center(&self) -> CGPoint
pub unsafe fn setCenter(&self, center: CGPoint)
pub unsafe fn transform3D(&self) -> CATransform3D
Available on crate feature
objc2-quartz-core and non-watchOS only.pub unsafe fn setTransform3D(&self, transform3_d: CATransform3D)
Available on crate feature
objc2-quartz-core and non-watchOS only.pub fn contentScaleFactor(&self) -> CGFloat
pub fn setContentScaleFactor(&self, content_scale_factor: CGFloat)
pub unsafe fn anchorPoint(&self) -> CGPoint
pub unsafe fn setAnchorPoint(&self, anchor_point: CGPoint)
pub unsafe fn isMultipleTouchEnabled(&self) -> bool
pub fn setMultipleTouchEnabled(&self, multiple_touch_enabled: bool)
pub unsafe fn isExclusiveTouch(&self) -> bool
pub unsafe fn setExclusiveTouch(&self, exclusive_touch: bool)
pub unsafe fn hitTest_withEvent( &self, point: CGPoint, event: Option<&UIEvent> ) -> Option<Retained<UIView>>
Available on crate feature
UIEvent only.pub unsafe fn pointInside_withEvent( &self, point: CGPoint, event: Option<&UIEvent> ) -> bool
Available on crate feature
UIEvent only.pub unsafe fn convertPoint_toView( &self, point: CGPoint, view: Option<&UIView> ) -> CGPoint
pub unsafe fn convertPoint_fromView( &self, point: CGPoint, view: Option<&UIView> ) -> CGPoint
pub unsafe fn convertRect_toView( &self, rect: CGRect, view: Option<&UIView> ) -> CGRect
pub unsafe fn convertRect_fromView( &self, rect: CGRect, view: Option<&UIView> ) -> CGRect
pub unsafe fn autoresizesSubviews(&self) -> bool
pub unsafe fn setAutoresizesSubviews(&self, autoresizes_subviews: bool)
pub unsafe fn autoresizingMask(&self) -> UIViewAutoresizing
pub unsafe fn setAutoresizingMask(&self, autoresizing_mask: UIViewAutoresizing)
pub unsafe fn sizeThatFits(&self, size: CGSize) -> CGSize
pub unsafe fn sizeToFit(&self)
pub fn superview(&self) -> Option<Retained<UIView>>
pub fn subviews(&self) -> Retained<NSArray<UIView>>
pub fn window(&self) -> Option<Retained<UIWindow>>
Available on crate feature
UIWindow only.pub unsafe fn removeFromSuperview(&self)
pub unsafe fn insertSubview_atIndex(&self, view: &UIView, index: NSInteger)
pub unsafe fn exchangeSubviewAtIndex_withSubviewAtIndex( &self, index1: NSInteger, index2: NSInteger )
pub unsafe fn addSubview(&self, view: &UIView)
pub unsafe fn insertSubview_belowSubview( &self, view: &UIView, sibling_subview: &UIView )
pub unsafe fn insertSubview_aboveSubview( &self, view: &UIView, sibling_subview: &UIView )
pub unsafe fn bringSubviewToFront(&self, view: &UIView)
pub unsafe fn sendSubviewToBack(&self, view: &UIView)
pub unsafe fn didAddSubview(&self, subview: &UIView)
pub unsafe fn willRemoveSubview(&self, subview: &UIView)
pub unsafe fn willMoveToSuperview(&self, new_superview: Option<&UIView>)
pub unsafe fn didMoveToSuperview(&self)
pub unsafe fn willMoveToWindow(&self, new_window: Option<&UIWindow>)
Available on crate feature
UIWindow only.pub unsafe fn didMoveToWindow(&self)
pub unsafe fn isDescendantOfView(&self, view: &UIView) -> bool
pub unsafe fn viewWithTag(&self, tag: NSInteger) -> Option<Retained<UIView>>
pub unsafe fn setNeedsLayout(&self)
pub unsafe fn layoutIfNeeded(&self)
pub unsafe fn layoutSubviews(&self)
pub unsafe fn layoutMargins(&self) -> UIEdgeInsets
Available on crate feature
UIGeometry only.pub unsafe fn setLayoutMargins(&self, layout_margins: UIEdgeInsets)
Available on crate feature
UIGeometry only.pub unsafe fn directionalLayoutMargins(&self) -> NSDirectionalEdgeInsets
Available on crate feature
UIGeometry only.pub unsafe fn setDirectionalLayoutMargins( &self, directional_layout_margins: NSDirectionalEdgeInsets )
Available on crate feature
UIGeometry only.pub unsafe fn preservesSuperviewLayoutMargins(&self) -> bool
pub unsafe fn setPreservesSuperviewLayoutMargins( &self, preserves_superview_layout_margins: bool )
pub unsafe fn insetsLayoutMarginsFromSafeArea(&self) -> bool
pub unsafe fn setInsetsLayoutMarginsFromSafeArea( &self, insets_layout_margins_from_safe_area: bool )
pub unsafe fn layoutMarginsDidChange(&self)
pub fn safeAreaInsets(&self) -> UIEdgeInsets
Available on crate feature
UIGeometry only.pub unsafe fn safeAreaInsetsDidChange(&self)
pub unsafe fn layoutMarginsGuide(&self) -> Retained<UILayoutGuide>
Available on crate feature
UILayoutGuide only.pub unsafe fn readableContentGuide(&self) -> Retained<UILayoutGuide>
Available on crate feature
UILayoutGuide only.pub unsafe fn safeAreaLayoutGuide(&self) -> Retained<UILayoutGuide>
Available on crate feature
UILayoutGuide only.pub unsafe fn keyboardLayoutGuide(&self) -> Retained<UIKeyboardLayoutGuide>
Available on crate features
UIKeyboardLayoutGuide and UILayoutGuide and UITrackingLayoutGuide only.pub unsafe fn drawRect(&self, rect: CGRect)
pub fn setNeedsDisplay(&self)
pub unsafe fn setNeedsDisplayInRect(&self, rect: CGRect)
pub unsafe fn clipsToBounds(&self) -> bool
pub unsafe fn setClipsToBounds(&self, clips_to_bounds: bool)
pub fn backgroundColor(&self) -> Option<Retained<UIColor>>
Available on crate feature
UIColor only.pub fn setBackgroundColor(&self, background_color: Option<&UIColor>)
Available on crate feature
UIColor only.pub unsafe fn alpha(&self) -> CGFloat
pub unsafe fn setAlpha(&self, alpha: CGFloat)
pub unsafe fn isOpaque(&self) -> bool
pub unsafe fn setOpaque(&self, opaque: bool)
pub unsafe fn clearsContextBeforeDrawing(&self) -> bool
pub unsafe fn setClearsContextBeforeDrawing( &self, clears_context_before_drawing: bool )
pub fn isHidden(&self) -> bool
pub fn setHidden(&self, hidden: bool)
pub unsafe fn contentMode(&self) -> UIViewContentMode
pub unsafe fn setContentMode(&self, content_mode: UIViewContentMode)
pub unsafe fn contentStretch(&self) -> CGRect
👎Deprecated
pub unsafe fn setContentStretch(&self, content_stretch: CGRect)
👎Deprecated
pub unsafe fn maskView(&self) -> Option<Retained<UIView>>
pub unsafe fn setMaskView(&self, mask_view: Option<&UIView>)
pub unsafe fn tintColor(&self) -> Option<Retained<UIColor>>
Available on crate feature
UIColor only.pub unsafe fn setTintColor(&self, tint_color: Option<&UIColor>)
Available on crate feature
UIColor only.pub unsafe fn tintAdjustmentMode(&self) -> UIViewTintAdjustmentMode
pub unsafe fn setTintAdjustmentMode( &self, tint_adjustment_mode: UIViewTintAdjustmentMode )
pub unsafe fn tintColorDidChange(&self)
pub fn gestureRecognizers( &self ) -> Option<Retained<NSArray<UIGestureRecognizer>>>
Available on crate feature
UIGestureRecognizer only.pub unsafe fn setGestureRecognizers( &self, gesture_recognizers: Option<&NSArray<UIGestureRecognizer>> )
Available on crate feature
UIGestureRecognizer only.pub fn addGestureRecognizer(&self, gesture_recognizer: &UIGestureRecognizer)
Available on crate feature
UIGestureRecognizer only.pub fn removeGestureRecognizer(&self, gesture_recognizer: &UIGestureRecognizer)
Available on crate feature
UIGestureRecognizer only.pub fn gestureRecognizerShouldBegin( &self, gesture_recognizer: &UIGestureRecognizer ) -> bool
Available on crate feature
UIGestureRecognizer only.pub unsafe fn addMotionEffect(&self, effect: &UIMotionEffect)
Available on crate feature
UIMotionEffect only.pub unsafe fn removeMotionEffect(&self, effect: &UIMotionEffect)
Available on crate feature
UIMotionEffect only.pub unsafe fn motionEffects(&self) -> Retained<NSArray<UIMotionEffect>>
Available on crate feature
UIMotionEffect only.pub unsafe fn setMotionEffects(&self, motion_effects: &NSArray<UIMotionEffect>)
Available on crate feature
UIMotionEffect only.pub unsafe fn constraints(&self) -> Retained<NSArray<NSLayoutConstraint>>
Available on crate feature
NSLayoutConstraint only.pub unsafe fn addConstraint(&self, constraint: &NSLayoutConstraint)
Available on crate feature
NSLayoutConstraint only.pub unsafe fn addConstraints(&self, constraints: &NSArray<NSLayoutConstraint>)
Available on crate feature
NSLayoutConstraint only.pub unsafe fn removeConstraint(&self, constraint: &NSLayoutConstraint)
Available on crate feature
NSLayoutConstraint only.pub unsafe fn removeConstraints( &self, constraints: &NSArray<NSLayoutConstraint> )
Available on crate feature
NSLayoutConstraint only.pub unsafe fn updateConstraintsIfNeeded(&self)
pub unsafe fn updateConstraints(&self)
pub unsafe fn needsUpdateConstraints(&self) -> bool
pub unsafe fn setNeedsUpdateConstraints(&self)
pub unsafe fn translatesAutoresizingMaskIntoConstraints(&self) -> bool
pub unsafe fn setTranslatesAutoresizingMaskIntoConstraints( &self, translates_autoresizing_mask_into_constraints: bool )
pub unsafe fn alignmentRectForFrame(&self, frame: CGRect) -> CGRect
pub unsafe fn frameForAlignmentRect(&self, alignment_rect: CGRect) -> CGRect
pub unsafe fn alignmentRectInsets(&self) -> UIEdgeInsets
Available on crate feature
UIGeometry only.pub unsafe fn viewForBaselineLayout(&self) -> Retained<UIView>
👎Deprecated: Override -viewForFirstBaselineLayout or -viewForLastBaselineLayout as appropriate, instead
pub unsafe fn viewForFirstBaselineLayout(&self) -> Retained<UIView>
pub unsafe fn viewForLastBaselineLayout(&self) -> Retained<UIView>
pub unsafe fn intrinsicContentSize(&self) -> CGSize
pub unsafe fn invalidateIntrinsicContentSize(&self)
pub unsafe fn contentHuggingPriorityForAxis( &self, axis: UILayoutConstraintAxis ) -> UILayoutPriority
Available on crate feature
NSLayoutConstraint only.pub unsafe fn setContentHuggingPriority_forAxis( &self, priority: UILayoutPriority, axis: UILayoutConstraintAxis )
Available on crate feature
NSLayoutConstraint only.pub unsafe fn contentCompressionResistancePriorityForAxis( &self, axis: UILayoutConstraintAxis ) -> UILayoutPriority
Available on crate feature
NSLayoutConstraint only.pub unsafe fn setContentCompressionResistancePriority_forAxis( &self, priority: UILayoutPriority, axis: UILayoutConstraintAxis )
Available on crate feature
NSLayoutConstraint only.pub unsafe fn systemLayoutSizeFittingSize(&self, target_size: CGSize) -> CGSize
pub unsafe fn systemLayoutSizeFittingSize_withHorizontalFittingPriority_verticalFittingPriority( &self, target_size: CGSize, horizontal_fitting_priority: UILayoutPriority, vertical_fitting_priority: UILayoutPriority ) -> CGSize
Available on crate feature
NSLayoutConstraint only.pub unsafe fn layoutGuides(&self) -> Retained<NSArray<UILayoutGuide>>
Available on crate feature
UILayoutGuide only.pub unsafe fn addLayoutGuide(&self, layout_guide: &UILayoutGuide)
Available on crate feature
UILayoutGuide only.pub unsafe fn removeLayoutGuide(&self, layout_guide: &UILayoutGuide)
Available on crate feature
UILayoutGuide only.pub unsafe fn leadingAnchor(&self) -> Retained<NSLayoutXAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn trailingAnchor(&self) -> Retained<NSLayoutXAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn leftAnchor(&self) -> Retained<NSLayoutXAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn rightAnchor(&self) -> Retained<NSLayoutXAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn topAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn bottomAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn widthAnchor(&self) -> Retained<NSLayoutDimension>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn heightAnchor(&self) -> Retained<NSLayoutDimension>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn centerXAnchor(&self) -> Retained<NSLayoutXAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn centerYAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn firstBaselineAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn lastBaselineAnchor(&self) -> Retained<NSLayoutYAxisAnchor>
Available on crate feature
NSLayoutAnchor only.pub unsafe fn constraintsAffectingLayoutForAxis( &self, axis: UILayoutConstraintAxis ) -> Retained<NSArray<NSLayoutConstraint>>
Available on crate feature
NSLayoutConstraint only.pub unsafe fn hasAmbiguousLayout(&self) -> bool
pub unsafe fn exerciseAmbiguityInLayout(&self)
pub unsafe fn restorationIdentifier(&self) -> Option<Retained<NSString>>
pub unsafe fn setRestorationIdentifier( &self, restoration_identifier: Option<&NSString> )
pub unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
pub unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
pub unsafe fn snapshotViewAfterScreenUpdates( &self, after_updates: bool ) -> Option<Retained<UIView>>
pub unsafe fn resizableSnapshotViewFromRect_afterScreenUpdates_withCapInsets( &self, rect: CGRect, after_updates: bool, cap_insets: UIEdgeInsets ) -> Option<Retained<UIView>>
Available on crate feature
UIGeometry only.pub unsafe fn drawViewHierarchyInRect_afterScreenUpdates( &self, rect: CGRect, after_updates: bool ) -> bool
pub unsafe fn overrideUserInterfaceStyle(&self) -> UIUserInterfaceStyle
Available on crate feature
UIInterface only.pub unsafe fn setOverrideUserInterfaceStyle( &self, override_user_interface_style: UIUserInterfaceStyle )
Available on crate feature
UIInterface only.pub unsafe fn minimumContentSizeCategory( &self ) -> Option<Retained<UIContentSizeCategory>>
Available on crate feature
UIContentSizeCategory only.pub unsafe fn setMinimumContentSizeCategory( &self, minimum_content_size_category: Option<&UIContentSizeCategory> )
Available on crate feature
UIContentSizeCategory only.pub unsafe fn maximumContentSizeCategory( &self ) -> Option<Retained<UIContentSizeCategory>>
Available on crate feature
UIContentSizeCategory only.pub unsafe fn setMaximumContentSizeCategory( &self, maximum_content_size_category: Option<&UIContentSizeCategory> )
Available on crate feature
UIContentSizeCategory only.pub unsafe fn appliedContentSizeCategoryLimitsDescription( &self ) -> Retained<NSString>
pub unsafe fn traitOverrides( &self ) -> Retained<ProtocolObject<dyn UITraitOverrides>>
Available on crate feature
UITraitCollection only.pub unsafe fn updateTraitsIfNeeded(&self)
Methods from Deref<Target = UIResponder>§
pub unsafe fn nextResponder(&self) -> Option<Retained<UIResponder>>
pub unsafe fn canBecomeFirstResponder(&self) -> bool
pub unsafe fn becomeFirstResponder(&self) -> bool
pub unsafe fn canResignFirstResponder(&self) -> bool
pub unsafe fn resignFirstResponder(&self) -> bool
pub unsafe fn isFirstResponder(&self) -> bool
pub unsafe fn touchesBegan_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )
Available on crate features
UIEvent and UITouch only.pub unsafe fn touchesMoved_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )
Available on crate features
UIEvent and UITouch only.pub unsafe fn touchesEnded_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )
Available on crate features
UIEvent and UITouch only.pub unsafe fn touchesCancelled_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )
Available on crate features
UIEvent and UITouch only.pub unsafe fn touchesEstimatedPropertiesUpdated(&self, touches: &NSSet<UITouch>)
Available on crate feature
UITouch only.pub unsafe fn pressesBegan_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )
Available on crate features
UIEvent and UIPress and UIPressesEvent only.pub unsafe fn pressesChanged_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )
Available on crate features
UIEvent and UIPress and UIPressesEvent only.pub unsafe fn pressesEnded_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )
Available on crate features
UIEvent and UIPress and UIPressesEvent only.pub unsafe fn pressesCancelled_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )
Available on crate features
UIEvent and UIPress and UIPressesEvent only.pub unsafe fn motionBegan_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )
Available on crate feature
UIEvent only.pub unsafe fn motionEnded_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )
Available on crate feature
UIEvent only.pub unsafe fn motionCancelled_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )
Available on crate feature
UIEvent only.pub unsafe fn remoteControlReceivedWithEvent(&self, event: Option<&UIEvent>)
Available on crate feature
UIEvent only.pub unsafe fn canPerformAction_withSender( &self, action: Sel, sender: Option<&AnyObject> ) -> bool
pub unsafe fn targetForAction_withSender( &self, action: Sel, sender: Option<&AnyObject> ) -> Option<Retained<AnyObject>>
pub unsafe fn buildMenuWithBuilder( &self, builder: &ProtocolObject<dyn UIMenuBuilder> )
Available on crate feature
UIMenuBuilder only.pub unsafe fn validateCommand(&self, command: &UICommand)
Available on crate features
UICommand and UIMenuElement only.pub unsafe fn undoManager(&self) -> Option<Retained<NSUndoManager>>
pub unsafe fn editingInteractionConfiguration( &self ) -> UIEditingInteractionConfiguration
pub unsafe fn keyCommands(&self) -> Option<Retained<NSArray<UIKeyCommand>>>
Available on crate features
UICommand and UIKeyCommand and UIMenuElement only.pub unsafe fn inputView(&self) -> Option<Retained<UIView>>
pub unsafe fn inputAccessoryView(&self) -> Option<Retained<UIView>>
pub unsafe fn inputAssistantItem(&self) -> Retained<UITextInputAssistantItem>
Available on crate feature
UITextInput only.pub unsafe fn inputViewController( &self ) -> Option<Retained<UIInputViewController>>
Available on crate features
UIInputViewController and UIViewController only.pub unsafe fn inputAccessoryViewController( &self ) -> Option<Retained<UIInputViewController>>
Available on crate features
UIInputViewController and UIViewController only.pub unsafe fn textInputMode(&self) -> Option<Retained<UITextInputMode>>
Available on crate feature
UITextInput only.pub unsafe fn textInputContextIdentifier(&self) -> Option<Retained<NSString>>
pub unsafe fn reloadInputViews(&self)
pub unsafe fn userActivity(&self) -> Option<Retained<NSUserActivity>>
pub unsafe fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
pub unsafe fn updateUserActivityState(&self, activity: &NSUserActivity)
pub unsafe fn restoreUserActivityState(&self, activity: &NSUserActivity)
pub unsafe fn captureTextFromCamera(&self, sender: Option<&AnyObject>)
pub unsafe fn activityItemsConfiguration( &self ) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationReading>>>
Available on crate features
UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.pub unsafe fn setActivityItemsConfiguration( &self, activity_items_configuration: Option<&ProtocolObject<dyn UIActivityItemsConfigurationReading>> )
Available on crate features
UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.Methods from Deref<Target = NSObject>§
sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
sourcepub fn class(&self) -> &'static AnyClass
Available on crate feature UIIndirectScribbleInteraction only.
pub fn class(&self) -> &'static AnyClass
UIIndirectScribbleInteraction only.Dynamically find the class of this object.
§Example
Check that an instance of NSObject has the precise class NSObject.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load instead.Available on crate feature UIIndirectScribbleInteraction only.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load instead.UIIndirectScribbleInteraction only.Use Ivar::load instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T.
See Ivar::load_ptr for details surrounding this.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut instead.Available on crate feature UIIndirectScribbleInteraction only.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut instead.UIIndirectScribbleInteraction only.Use Ivar::load_mut instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T.
See Ivar::load_ptr for details surrounding this.
Trait Implementations§
source§impl AsMut<AnyObject> for UIPopoverBackgroundView
impl AsMut<AnyObject> for UIPopoverBackgroundView
source§impl AsMut<NSObject> for UIPopoverBackgroundView
impl AsMut<NSObject> for UIPopoverBackgroundView
source§impl AsMut<UIResponder> for UIPopoverBackgroundView
impl AsMut<UIResponder> for UIPopoverBackgroundView
source§fn as_mut(&mut self) -> &mut UIResponder
fn as_mut(&mut self) -> &mut UIResponder
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<UIView> for UIPopoverBackgroundView
impl AsMut<UIView> for UIPopoverBackgroundView
source§impl AsRef<AnyObject> for UIPopoverBackgroundView
impl AsRef<AnyObject> for UIPopoverBackgroundView
source§impl AsRef<NSObject> for UIPopoverBackgroundView
impl AsRef<NSObject> for UIPopoverBackgroundView
source§impl AsRef<UIResponder> for UIPopoverBackgroundView
impl AsRef<UIResponder> for UIPopoverBackgroundView
source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<UIView> for UIPopoverBackgroundView
impl AsRef<UIView> for UIPopoverBackgroundView
source§impl Borrow<AnyObject> for UIPopoverBackgroundView
impl Borrow<AnyObject> for UIPopoverBackgroundView
source§impl Borrow<NSObject> for UIPopoverBackgroundView
impl Borrow<NSObject> for UIPopoverBackgroundView
source§impl Borrow<UIResponder> for UIPopoverBackgroundView
impl Borrow<UIResponder> for UIPopoverBackgroundView
source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Immutably borrows from an owned value. Read more
source§impl Borrow<UIView> for UIPopoverBackgroundView
impl Borrow<UIView> for UIPopoverBackgroundView
source§impl BorrowMut<AnyObject> for UIPopoverBackgroundView
impl BorrowMut<AnyObject> for UIPopoverBackgroundView
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSObject> for UIPopoverBackgroundView
impl BorrowMut<NSObject> for UIPopoverBackgroundView
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Mutably borrows from an owned value. Read more
source§impl BorrowMut<UIResponder> for UIPopoverBackgroundView
impl BorrowMut<UIResponder> for UIPopoverBackgroundView
source§fn borrow_mut(&mut self) -> &mut UIResponder
fn borrow_mut(&mut self) -> &mut UIResponder
Mutably borrows from an owned value. Read more
source§impl BorrowMut<UIView> for UIPopoverBackgroundView
impl BorrowMut<UIView> for UIPopoverBackgroundView
source§fn borrow_mut(&mut self) -> &mut UIView
fn borrow_mut(&mut self) -> &mut UIView
Mutably borrows from an owned value. Read more
source§impl CALayerDelegate for UIPopoverBackgroundView
Available on crate feature objc2-quartz-core and non-watchOS only.
impl CALayerDelegate for UIPopoverBackgroundView
Available on crate feature
objc2-quartz-core and non-watchOS only.unsafe fn displayLayer(&self, layer: &CALayer)
unsafe fn layerWillDraw(&self, layer: &CALayer)
unsafe fn layoutSublayersOfLayer(&self, layer: &CALayer)
unsafe fn actionForLayer_forKey( &self, layer: &CALayer, event: &NSString ) -> Option<Retained<ProtocolObject<dyn CAAction>>>
source§impl ClassType for UIPopoverBackgroundView
impl ClassType for UIPopoverBackgroundView
§type Mutability = MainThreadOnly
type Mutability = MainThreadOnly
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "UIPopoverBackgroundView"
const NAME: &'static str = "UIPopoverBackgroundView"
The name of the Objective-C class that this type represents. Read more
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
Get a reference to the Objective-C class that this type represents. Read more
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
Get a mutable reference to the superclass.
source§impl Debug for UIPopoverBackgroundView
impl Debug for UIPopoverBackgroundView
source§impl Deref for UIPopoverBackgroundView
impl Deref for UIPopoverBackgroundView
source§impl DerefMut for UIPopoverBackgroundView
impl DerefMut for UIPopoverBackgroundView
source§impl Hash for UIPopoverBackgroundView
impl Hash for UIPopoverBackgroundView
source§impl NSCoding for UIPopoverBackgroundView
impl NSCoding for UIPopoverBackgroundView
source§impl NSObjectProtocol for UIPopoverBackgroundView
impl NSObjectProtocol for UIPopoverBackgroundView
source§fn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
Check whether the object is equal to an arbitrary other object. Read more
source§fn hash(&self) -> usize
fn hash(&self) -> usize
An integer that can be used as a table address in a hash table
structure. Read more
source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of the class, or one of its
subclasses. Read more
source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
Check if the object is an instance of the class type, or one of its
subclasses. Read more
source§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of a specific class, without
checking subclasses. Read more
source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Check whether the object implements or inherits a method with the
given selector. Read more
source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Check whether the object conforms to a given protocol. Read more
source§fn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
A textual representation of the object to use when debugging. Read more
source§impl PartialEq for UIPopoverBackgroundView
impl PartialEq for UIPopoverBackgroundView
source§fn eq(&self, other: &UIPopoverBackgroundView) -> bool
fn eq(&self, other: &UIPopoverBackgroundView) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl RefEncode for UIPopoverBackgroundView
impl RefEncode for UIPopoverBackgroundView
source§const ENCODING_REF: Encoding = <UIView as ::objc2::RefEncode>::ENCODING_REF
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 UIPopoverBackgroundView
Available on crate feature UIAppearance only.
impl UIAppearance for UIPopoverBackgroundView
Available on crate feature
UIAppearance only.unsafe fn appearance(mtm: MainThreadMarker) -> Retained<Self>
unsafe fn appearanceWhenContainedInInstancesOfClasses( container_types: &NSArray<TodoClass>, mtm: MainThreadMarker ) -> Retained<Self>
source§unsafe fn appearanceForTraitCollection(
trait: &UITraitCollection,
mtm: MainThreadMarker
) -> Retained<Self>
unsafe fn appearanceForTraitCollection( trait: &UITraitCollection, mtm: MainThreadMarker ) -> Retained<Self>
Available on crate feature
UITraitCollection only.source§unsafe fn appearanceForTraitCollection_whenContainedInInstancesOfClasses(
trait: &UITraitCollection,
container_types: &NSArray<TodoClass>,
mtm: MainThreadMarker
) -> Retained<Self>
unsafe fn appearanceForTraitCollection_whenContainedInInstancesOfClasses( trait: &UITraitCollection, container_types: &NSArray<TodoClass>, mtm: MainThreadMarker ) -> Retained<Self>
Available on crate feature
UITraitCollection only.source§impl UICoordinateSpace for UIPopoverBackgroundView
impl UICoordinateSpace for UIPopoverBackgroundView
fn convertPoint_toCoordinateSpace( &self, point: CGPoint, coordinate_space: &ProtocolObject<dyn UICoordinateSpace> ) -> CGPoint
fn convertPoint_fromCoordinateSpace( &self, point: CGPoint, coordinate_space: &ProtocolObject<dyn UICoordinateSpace> ) -> CGPoint
fn convertRect_toCoordinateSpace( &self, rect: CGRect, coordinate_space: &ProtocolObject<dyn UICoordinateSpace> ) -> CGRect
fn convertRect_fromCoordinateSpace( &self, rect: CGRect, coordinate_space: &ProtocolObject<dyn UICoordinateSpace> ) -> CGRect
fn bounds(&self) -> CGRect
source§impl UIDynamicItem for UIPopoverBackgroundView
Available on crate feature UIDynamicBehavior only.
impl UIDynamicItem for UIPopoverBackgroundView
Available on crate feature
UIDynamicBehavior only.unsafe fn center(&self) -> CGPoint
unsafe fn setCenter(&self, center: CGPoint)
unsafe fn bounds(&self) -> CGRect
unsafe fn transform(&self) -> CGAffineTransform
unsafe fn setTransform(&self, transform: CGAffineTransform)
unsafe fn collisionBoundsType(&self) -> UIDynamicItemCollisionBoundsType
source§unsafe fn collisionBoundingPath(&self) -> Retained<UIBezierPath>
unsafe fn collisionBoundingPath(&self) -> Retained<UIBezierPath>
Available on crate feature
UIBezierPath only.source§impl UIFocusEnvironment for UIPopoverBackgroundView
Available on crate feature UIFocus only.
impl UIFocusEnvironment for UIPopoverBackgroundView
Available on crate feature
UIFocus only.unsafe fn preferredFocusEnvironments( &self ) -> Retained<NSArray<ProtocolObject<dyn UIFocusEnvironment>>>
unsafe fn parentFocusEnvironment( &self ) -> Option<Retained<ProtocolObject<dyn UIFocusEnvironment>>>
unsafe fn focusItemContainer( &self ) -> Option<Retained<ProtocolObject<dyn UIFocusItemContainer>>>
unsafe fn setNeedsFocusUpdate(&self)
unsafe fn updateFocusIfNeeded(&self)
unsafe fn shouldUpdateFocusInContext( &self, context: &UIFocusUpdateContext ) -> bool
source§unsafe fn didUpdateFocusInContext_withAnimationCoordinator(
&self,
context: &UIFocusUpdateContext,
coordinator: &UIFocusAnimationCoordinator
)
unsafe fn didUpdateFocusInContext_withAnimationCoordinator( &self, context: &UIFocusUpdateContext, coordinator: &UIFocusAnimationCoordinator )
Available on crate feature
UIFocusAnimationCoordinator only.unsafe fn soundIdentifierForFocusUpdateInContext( &self, context: &UIFocusUpdateContext ) -> Option<Retained<UIFocusSoundIdentifier>>
unsafe fn focusGroupIdentifier(&self) -> Option<Retained<NSString>>
source§impl UIFocusItem for UIPopoverBackgroundView
Available on crate feature UIFocus only.
impl UIFocusItem for UIPopoverBackgroundView
Available on crate feature
UIFocus only.unsafe fn canBecomeFocused(&self) -> bool
unsafe fn frame(&self) -> CGRect
source§unsafe fn focusEffect(&self) -> Option<Retained<UIFocusEffect>>
unsafe fn focusEffect(&self) -> Option<Retained<UIFocusEffect>>
Available on crate feature
UIFocusEffect only.unsafe fn focusGroupPriority(&self) -> UIFocusGroupPriority
unsafe fn isTransparentFocusItem(&self) -> bool
source§unsafe fn didHintFocusMovement(&self, hint: &UIFocusMovementHint)
unsafe fn didHintFocusMovement(&self, hint: &UIFocusMovementHint)
Available on crate feature
UIFocusMovementHint only.source§impl UIFocusItemContainer for UIPopoverBackgroundView
Available on crate feature UIFocus only.
impl UIFocusItemContainer for UIPopoverBackgroundView
Available on crate feature
UIFocus only.unsafe fn coordinateSpace( &self ) -> Retained<ProtocolObject<dyn UICoordinateSpace>>
unsafe fn focusItemsInRect( &self, rect: CGRect ) -> Retained<NSArray<ProtocolObject<dyn UIFocusItem>>>
source§impl UIResponderStandardEditActions for UIPopoverBackgroundView
impl UIResponderStandardEditActions for UIPopoverBackgroundView
unsafe fn cut(&self, sender: Option<&AnyObject>)
unsafe fn copy(&self, sender: Option<&AnyObject>)
unsafe fn paste(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndMatchStyle(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndGo(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndSearch(&self, sender: Option<&AnyObject>)
unsafe fn select(&self, sender: Option<&AnyObject>)
unsafe fn selectAll(&self, sender: Option<&AnyObject>)
unsafe fn delete(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
unsafe fn toggleBoldface(&self, sender: Option<&AnyObject>)
unsafe fn toggleItalics(&self, sender: Option<&AnyObject>)
unsafe fn toggleUnderline(&self, sender: Option<&AnyObject>)
unsafe fn increaseSize(&self, sender: Option<&AnyObject>)
unsafe fn decreaseSize(&self, sender: Option<&AnyObject>)
unsafe fn find(&self, sender: Option<&AnyObject>)
unsafe fn findAndReplace(&self, sender: Option<&AnyObject>)
unsafe fn findNext(&self, sender: Option<&AnyObject>)
unsafe fn findPrevious(&self, sender: Option<&AnyObject>)
unsafe fn useSelectionForFind(&self, sender: Option<&AnyObject>)
source§unsafe fn updateTextAttributesWithConversionHandler(
&self,
conversion_handler: UITextAttributesConversionHandler
)
unsafe fn updateTextAttributesWithConversionHandler( &self, conversion_handler: UITextAttributesConversionHandler )
Available on crate feature
block2 only.unsafe fn print(&self, sender: Option<&AnyObject>)
unsafe fn rename(&self, sender: Option<&AnyObject>)
unsafe fn duplicate(&self, sender: Option<&AnyObject>)
unsafe fn move(&self, sender: Option<&AnyObject>)
unsafe fn export(&self, sender: Option<&AnyObject>)
source§impl UITraitEnvironment for UIPopoverBackgroundView
Available on crate feature UITraitCollection only.
impl UITraitEnvironment for UIPopoverBackgroundView
Available on crate feature
UITraitCollection only.fn traitCollection(&self) -> Retained<UITraitCollection>
source§unsafe fn traitCollectionDidChange(
&self,
previous_trait_collection: Option<&UITraitCollection>
)
unsafe fn traitCollectionDidChange( &self, previous_trait_collection: Option<&UITraitCollection> )
👎Deprecated: Use the trait change registration APIs declared in the UITraitChangeObservable protocol
impl Eq for UIPopoverBackgroundView
impl Message for UIPopoverBackgroundView
impl StructuralPartialEq for UIPopoverBackgroundView
impl UIAppearanceContainer for UIPopoverBackgroundView
Available on crate feature
UIAppearance only.Auto Trait Implementations§
impl !Freeze for UIPopoverBackgroundView
impl !RefUnwindSafe for UIPopoverBackgroundView
impl !Send for UIPopoverBackgroundView
impl !Sync for UIPopoverBackgroundView
impl !Unpin for UIPopoverBackgroundView
impl !UnwindSafe for UIPopoverBackgroundView
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CounterpartOrSelf for T
impl<T> CounterpartOrSelf for T
§type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
The immutable counterpart of the type, or
Self if the type has no
immutable counterpart. Read more§type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
The mutable counterpart of the type, or
Self if the type has no
mutable counterpart. Read more