Struct objc2_app_kit::NSDrawer
source ยท #[repr(C)]pub struct NSDrawer { /* private fields */ }
๐Deprecated: Drawers are deprecated; consider using NSSplitViewController
Available on crate features
NSDrawer
and NSResponder
only.Implementationsยง
sourceยงimpl NSDrawer
impl NSDrawer
pub unsafe fn initWithContentSize_preferredEdge( this: Allocated<Self>, content_size: NSSize, edge: NSRectEdge ) -> Retained<Self>
pub unsafe fn parentWindow(&self) -> Option<Retained<NSWindow>>
Available on crate feature
NSWindow
only.pub unsafe fn setParentWindow(&self, parent_window: Option<&NSWindow>)
Available on crate feature
NSWindow
only.pub unsafe fn contentView(&self) -> Option<Retained<NSView>>
Available on crate feature
NSView
only.pub unsafe fn setContentView(&self, content_view: Option<&NSView>)
Available on crate feature
NSView
only.pub unsafe fn preferredEdge(&self) -> NSRectEdge
pub unsafe fn setPreferredEdge(&self, preferred_edge: NSRectEdge)
pub unsafe fn delegate( &self ) -> Option<Retained<ProtocolObject<dyn NSDrawerDelegate>>>
pub unsafe fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn NSDrawerDelegate>> )
pub unsafe fn open(&self)
pub unsafe fn openOnEdge(&self, edge: NSRectEdge)
pub unsafe fn close(&self)
pub unsafe fn open_(&self, sender: Option<&AnyObject>)
pub unsafe fn close_(&self, sender: Option<&AnyObject>)
pub unsafe fn toggle(&self, sender: Option<&AnyObject>)
pub unsafe fn state(&self) -> NSInteger
pub unsafe fn edge(&self) -> NSRectEdge
pub unsafe fn contentSize(&self) -> NSSize
pub unsafe fn setContentSize(&self, content_size: NSSize)
pub unsafe fn minContentSize(&self) -> NSSize
pub unsafe fn setMinContentSize(&self, min_content_size: NSSize)
pub unsafe fn maxContentSize(&self) -> NSSize
pub unsafe fn setMaxContentSize(&self, max_content_size: NSSize)
pub unsafe fn leadingOffset(&self) -> CGFloat
pub unsafe fn setLeadingOffset(&self, leading_offset: CGFloat)
pub unsafe fn trailingOffset(&self) -> CGFloat
pub unsafe fn setTrailingOffset(&self, trailing_offset: CGFloat)
Methods from Deref<Target = NSResponder>ยง
pub unsafe fn interfaceStyle(&self) -> NSInterfaceStyle
๐Deprecated
Available on crate feature
NSInterfaceStyle
only.pub unsafe fn setInterfaceStyle(&self, interface_style: NSInterfaceStyle)
๐Deprecated
Available on crate feature
NSInterfaceStyle
only.pub unsafe fn nextResponder(&self) -> Option<Retained<NSResponder>>
pub unsafe fn setNextResponder(&self, next_responder: Option<&NSResponder>)
pub unsafe fn tryToPerform_with( &self, action: Sel, object: Option<&AnyObject> ) -> bool
pub unsafe fn performKeyEquivalent(&self, event: &NSEvent) -> bool
Available on crate feature
NSEvent
only.pub unsafe fn validRequestorForSendType_returnType( &self, send_type: Option<&NSPasteboardType>, return_type: Option<&NSPasteboardType> ) -> Option<Retained<AnyObject>>
Available on crate feature
NSPasteboard
only.pub unsafe fn mouseDown(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn rightMouseDown(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn otherMouseDown(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn mouseUp(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn rightMouseUp(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn otherMouseUp(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn mouseMoved(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn mouseDragged(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn scrollWheel(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn rightMouseDragged(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn otherMouseDragged(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn mouseEntered(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn mouseExited(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn keyDown(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn keyUp(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn flagsChanged(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn tabletPoint(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn tabletProximity(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn cursorUpdate(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn magnifyWithEvent(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn rotateWithEvent(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn swipeWithEvent(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn beginGestureWithEvent(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn endGestureWithEvent(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn smartMagnifyWithEvent(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn changeModeWithEvent(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn touchesBeganWithEvent(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn touchesMovedWithEvent(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn touchesEndedWithEvent(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn touchesCancelledWithEvent(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn quickLookWithEvent(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn pressureChangeWithEvent(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn noResponderFor(&self, event_selector: Sel)
pub unsafe fn acceptsFirstResponder(&self) -> bool
pub unsafe fn becomeFirstResponder(&self) -> bool
pub unsafe fn resignFirstResponder(&self) -> bool
pub unsafe fn interpretKeyEvents(&self, event_array: &NSArray<NSEvent>)
Available on crate feature
NSEvent
only.pub unsafe fn flushBufferedKeyEvents(&self)
Available on crate feature
NSMenu
only.pub unsafe fn setMenu(&self, menu: Option<&NSMenu>)
Available on crate feature
NSMenu
only.pub unsafe fn showContextHelp(&self, sender: Option<&AnyObject>)
pub unsafe fn helpRequested(&self, event_ptr: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn shouldBeTreatedAsInkEvent(&self, event: &NSEvent) -> bool
Available on crate feature
NSEvent
only.pub unsafe fn wantsScrollEventsForSwipeTrackingOnAxis( &self, axis: NSEventGestureAxis ) -> bool
Available on crate feature
NSEvent
only.pub unsafe fn wantsForwardedScrollEventsForAxis( &self, axis: NSEventGestureAxis ) -> bool
Available on crate feature
NSEvent
only.pub unsafe fn supplementalTargetForAction_sender( &self, action: Sel, sender: Option<&AnyObject> ) -> Option<Retained<AnyObject>>
pub unsafe fn undoManager(&self) -> Option<Retained<NSUndoManager>>
pub unsafe fn validateProposedFirstResponder_forEvent( &self, responder: &NSResponder, event: Option<&NSEvent> ) -> bool
Available on crate feature
NSEvent
only.pub unsafe fn presentError_modalForWindow_delegate_didPresentSelector_contextInfo( &self, error: &NSError, window: &NSWindow, delegate: Option<&AnyObject>, did_present_selector: Option<Sel>, context_info: *mut c_void )
Available on crate feature
NSWindow
only.pub unsafe fn presentError(&self, error: &NSError) -> bool
pub unsafe fn willPresentError(&self, error: &NSError) -> Retained<NSError>
pub unsafe fn performTextFinderAction(&self, sender: Option<&AnyObject>)
pub unsafe fn newWindowForTab(&self, sender: Option<&AnyObject>)
pub unsafe fn performMnemonic(&self, string: &NSString) -> bool
๐Deprecated: This has always returned NO and had no effect on macOS
pub unsafe fn touchBar(&self) -> Option<Retained<NSTouchBar>>
Available on crate feature
NSTouchBar
only.pub unsafe fn setTouchBar(&self, touch_bar: Option<&NSTouchBar>)
Available on crate feature
NSTouchBar
only.pub unsafe fn makeTouchBar(&self) -> Option<Retained<NSTouchBar>>
Available on crate feature
NSTouchBar
only.pub unsafe fn userActivity(&self) -> Option<Retained<NSUserActivity>>
Available on crate feature
NSUserActivity
only.pub unsafe fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
Available on crate feature
NSUserActivity
only.pub unsafe fn updateUserActivityState(&self, user_activity: &NSUserActivity)
Available on crate feature
NSUserActivity
only.pub unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
Available on crate feature
NSWindowRestoration
only.pub unsafe fn encodeRestorableStateWithCoder_backgroundQueue( &self, coder: &NSCoder, queue: &NSOperationQueue )
Available on crate feature
NSWindowRestoration
only.pub unsafe fn restoreStateWithCoder(&self, coder: &NSCoder)
Available on crate feature
NSWindowRestoration
only.pub unsafe fn invalidateRestorableState(&self)
Available on crate feature
NSWindowRestoration
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 NSAccessibilityConstants
only.
pub fn class(&self) -> &'static AnyClass
NSAccessibilityConstants
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 NSAccessibilityConstants
only.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load
instead.NSAccessibilityConstants
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 NSAccessibilityConstants
only.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut
instead.NSAccessibilityConstants
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<NSResponder> for NSDrawer
impl AsMut<NSResponder> for NSDrawer
sourceยงfn as_mut(&mut self) -> &mut NSResponder
fn as_mut(&mut self) -> &mut NSResponder
Converts this type into a mutable reference of the (usually inferred) input type.
sourceยงimpl AsRef<NSResponder> for NSDrawer
impl AsRef<NSResponder> for NSDrawer
sourceยงfn as_ref(&self) -> &NSResponder
fn as_ref(&self) -> &NSResponder
Converts this type into a shared reference of the (usually inferred) input type.
sourceยงimpl Borrow<NSResponder> for NSDrawer
impl Borrow<NSResponder> for NSDrawer
sourceยงfn borrow(&self) -> &NSResponder
fn borrow(&self) -> &NSResponder
Immutably borrows from an owned value. Read more
sourceยงimpl BorrowMut<AnyObject> for NSDrawer
impl BorrowMut<AnyObject> for NSDrawer
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 NSDrawer
impl BorrowMut<NSObject> for NSDrawer
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<NSResponder> for NSDrawer
impl BorrowMut<NSResponder> for NSDrawer
sourceยงfn borrow_mut(&mut self) -> &mut NSResponder
fn borrow_mut(&mut self) -> &mut NSResponder
Mutably borrows from an owned value. Read more
sourceยงimpl ClassType for NSDrawer
impl ClassType for NSDrawer
ยงtype Super = NSResponder
type Super = NSResponder
The superclass of this class. Read more
ยงtype Mutability = MainThreadOnly
type Mutability = MainThreadOnly
Whether the type is mutable or immutable. Read more
sourceยงconst NAME: &'static str = "NSDrawer"
const NAME: &'static str = "NSDrawer"
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 NSAccessibility for NSDrawer
Available on crate feature NSAccessibilityProtocols
only.
impl NSAccessibility for NSDrawer
Available on crate feature
NSAccessibilityProtocols
only.unsafe fn isAccessibilityElement(&self) -> bool
unsafe fn setAccessibilityElement(&self, accessibility_element: bool)
unsafe fn accessibilityFrame(&self) -> NSRect
unsafe fn setAccessibilityFrame(&self, accessibility_frame: NSRect)
unsafe fn isAccessibilityFocused(&self) -> bool
unsafe fn setAccessibilityFocused(&self, accessibility_focused: bool)
unsafe fn accessibilityActivationPoint(&self) -> NSPoint
unsafe fn setAccessibilityActivationPoint( &self, accessibility_activation_point: NSPoint )
unsafe fn accessibilityTopLevelUIElement(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityTopLevelUIElement( &self, accessibility_top_level_ui_element: Option<&AnyObject> )
unsafe fn accessibilityURL(&self) -> Option<Retained<NSURL>>
unsafe fn setAccessibilityURL(&self, accessibility_url: Option<&NSURL>)
unsafe fn accessibilityValue(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityValue(&self, accessibility_value: Option<&AnyObject>)
unsafe fn accessibilityValueDescription(&self) -> Option<Retained<NSString>>
unsafe fn setAccessibilityValueDescription( &self, accessibility_value_description: Option<&NSString> )
unsafe fn accessibilityVisibleChildren(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityVisibleChildren( &self, accessibility_visible_children: Option<&NSArray> )
sourceยงunsafe fn accessibilitySubrole(
&self
) -> Option<Retained<NSAccessibilitySubrole>>
unsafe fn accessibilitySubrole( &self ) -> Option<Retained<NSAccessibilitySubrole>>
Available on crate feature
NSAccessibilityConstants
only.sourceยงunsafe fn setAccessibilitySubrole(
&self,
accessibility_subrole: Option<&NSAccessibilitySubrole>
)
unsafe fn setAccessibilitySubrole( &self, accessibility_subrole: Option<&NSAccessibilitySubrole> )
Available on crate feature
NSAccessibilityConstants
only.unsafe fn accessibilityTitle(&self) -> Option<Retained<NSString>>
unsafe fn setAccessibilityTitle(&self, accessibility_title: Option<&NSString>)
unsafe fn accessibilityTitleUIElement(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityTitleUIElement( &self, accessibility_title_ui_element: Option<&AnyObject> )
unsafe fn accessibilityNextContents(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityNextContents( &self, accessibility_next_contents: Option<&NSArray> )
sourceยงunsafe fn accessibilityOrientation(&self) -> NSAccessibilityOrientation
unsafe fn accessibilityOrientation(&self) -> NSAccessibilityOrientation
Available on crate feature
NSAccessibilityConstants
only.sourceยงunsafe fn setAccessibilityOrientation(
&self,
accessibility_orientation: NSAccessibilityOrientation
)
unsafe fn setAccessibilityOrientation( &self, accessibility_orientation: NSAccessibilityOrientation )
Available on crate feature
NSAccessibilityConstants
only.unsafe fn accessibilityOverflowButton(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityOverflowButton( &self, accessibility_overflow_button: Option<&AnyObject> )
unsafe fn accessibilityParent(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityParent( &self, accessibility_parent: Option<&AnyObject> )
unsafe fn accessibilityPlaceholderValue(&self) -> Option<Retained<NSString>>
unsafe fn setAccessibilityPlaceholderValue( &self, accessibility_placeholder_value: Option<&NSString> )
unsafe fn accessibilityPreviousContents(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityPreviousContents( &self, accessibility_previous_contents: Option<&NSArray> )
sourceยงunsafe fn accessibilityRole(&self) -> Option<Retained<NSAccessibilityRole>>
unsafe fn accessibilityRole(&self) -> Option<Retained<NSAccessibilityRole>>
Available on crate feature
NSAccessibilityConstants
only.sourceยงunsafe fn setAccessibilityRole(
&self,
accessibility_role: Option<&NSAccessibilityRole>
)
unsafe fn setAccessibilityRole( &self, accessibility_role: Option<&NSAccessibilityRole> )
Available on crate feature
NSAccessibilityConstants
only.unsafe fn accessibilityRoleDescription(&self) -> Option<Retained<NSString>>
unsafe fn setAccessibilityRoleDescription( &self, accessibility_role_description: Option<&NSString> )
unsafe fn accessibilitySearchButton(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilitySearchButton( &self, accessibility_search_button: Option<&AnyObject> )
unsafe fn accessibilitySearchMenu(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilitySearchMenu( &self, accessibility_search_menu: Option<&AnyObject> )
unsafe fn isAccessibilitySelected(&self) -> bool
unsafe fn setAccessibilitySelected(&self, accessibility_selected: bool)
unsafe fn accessibilitySelectedChildren(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilitySelectedChildren( &self, accessibility_selected_children: Option<&NSArray> )
unsafe fn accessibilityServesAsTitleForUIElements( &self ) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityServesAsTitleForUIElements( &self, accessibility_serves_as_title_for_ui_elements: Option<&NSArray> )
unsafe fn accessibilityShownMenu(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityShownMenu( &self, accessibility_shown_menu: Option<&AnyObject> )
unsafe fn accessibilityMinValue(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityMinValue( &self, accessibility_min_value: Option<&AnyObject> )
unsafe fn accessibilityMaxValue(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityMaxValue( &self, accessibility_max_value: Option<&AnyObject> )
unsafe fn accessibilityLinkedUIElements(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityLinkedUIElements( &self, accessibility_linked_ui_elements: Option<&NSArray> )
unsafe fn accessibilityWindow(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityWindow( &self, accessibility_window: Option<&AnyObject> )
unsafe fn accessibilityIdentifier(&self) -> Option<Retained<NSString>>
unsafe fn setAccessibilityIdentifier( &self, accessibility_identifier: Option<&NSString> )
unsafe fn accessibilityHelp(&self) -> Option<Retained<NSString>>
unsafe fn setAccessibilityHelp(&self, accessibility_help: Option<&NSString>)
unsafe fn accessibilityFilename(&self) -> Option<Retained<NSString>>
unsafe fn setAccessibilityFilename( &self, accessibility_filename: Option<&NSString> )
unsafe fn isAccessibilityExpanded(&self) -> bool
unsafe fn setAccessibilityExpanded(&self, accessibility_expanded: bool)
unsafe fn isAccessibilityEdited(&self) -> bool
unsafe fn setAccessibilityEdited(&self, accessibility_edited: bool)
unsafe fn isAccessibilityEnabled(&self) -> bool
unsafe fn setAccessibilityEnabled(&self, accessibility_enabled: bool)
unsafe fn accessibilityChildren(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityChildren( &self, accessibility_children: Option<&NSArray> )
unsafe fn accessibilityClearButton(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityClearButton( &self, accessibility_clear_button: Option<&AnyObject> )
unsafe fn accessibilityCancelButton(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityCancelButton( &self, accessibility_cancel_button: Option<&AnyObject> )
unsafe fn isAccessibilityProtectedContent(&self) -> bool
unsafe fn setAccessibilityProtectedContent( &self, accessibility_protected_content: bool )
unsafe fn accessibilityContents(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityContents( &self, accessibility_contents: Option<&NSArray> )
unsafe fn accessibilityLabel(&self) -> Option<Retained<NSString>>
unsafe fn setAccessibilityLabel(&self, accessibility_label: Option<&NSString>)
unsafe fn isAccessibilityAlternateUIVisible(&self) -> bool
unsafe fn setAccessibilityAlternateUIVisible( &self, accessibility_alternate_ui_visible: bool )
unsafe fn isAccessibilityRequired(&self) -> bool
unsafe fn setAccessibilityRequired(&self, accessibility_required: bool)
sourceยงunsafe fn accessibilityCustomRotors(
&self
) -> Retained<NSArray<NSAccessibilityCustomRotor>>
unsafe fn accessibilityCustomRotors( &self ) -> Retained<NSArray<NSAccessibilityCustomRotor>>
Available on crate feature
NSAccessibilityCustomRotor
only.sourceยงunsafe fn setAccessibilityCustomRotors(
&self,
accessibility_custom_rotors: &NSArray<NSAccessibilityCustomRotor>
)
unsafe fn setAccessibilityCustomRotors( &self, accessibility_custom_rotors: &NSArray<NSAccessibilityCustomRotor> )
Available on crate feature
NSAccessibilityCustomRotor
only.unsafe fn accessibilityUserInputLabels( &self ) -> Option<Retained<NSArray<NSString>>>
unsafe fn setAccessibilityUserInputLabels( &self, accessibility_user_input_labels: Option<&NSArray<NSString>> )
unsafe fn accessibilityAttributedUserInputLabels( &self ) -> Option<Retained<NSArray<NSAttributedString>>>
unsafe fn setAccessibilityAttributedUserInputLabels( &self, accessibility_attributed_user_input_labels: Option<&NSArray<NSAttributedString>> )
unsafe fn accessibilityApplicationFocusedUIElement( &self ) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityApplicationFocusedUIElement( &self, accessibility_application_focused_ui_element: Option<&AnyObject> )
unsafe fn accessibilityMainWindow(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityMainWindow( &self, accessibility_main_window: Option<&AnyObject> )
unsafe fn isAccessibilityHidden(&self) -> bool
unsafe fn setAccessibilityHidden(&self, accessibility_hidden: bool)
unsafe fn isAccessibilityFrontmost(&self) -> bool
unsafe fn setAccessibilityFrontmost(&self, accessibility_frontmost: bool)
unsafe fn accessibilityFocusedWindow(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityFocusedWindow( &self, accessibility_focused_window: Option<&AnyObject> )
unsafe fn accessibilityWindows(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityWindows( &self, accessibility_windows: Option<&NSArray> )
unsafe fn accessibilityExtrasMenuBar(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityExtrasMenuBar( &self, accessibility_extras_menu_bar: Option<&AnyObject> )
unsafe fn accessibilityMenuBar(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityMenuBar( &self, accessibility_menu_bar: Option<&AnyObject> )
unsafe fn accessibilityColumnTitles(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityColumnTitles( &self, accessibility_column_titles: Option<&NSArray> )
unsafe fn isAccessibilityOrderedByRow(&self) -> bool
unsafe fn setAccessibilityOrderedByRow( &self, accessibility_ordered_by_row: bool )
sourceยงunsafe fn accessibilityHorizontalUnits(&self) -> NSAccessibilityUnits
unsafe fn accessibilityHorizontalUnits(&self) -> NSAccessibilityUnits
Available on crate feature
NSAccessibilityConstants
only.sourceยงunsafe fn setAccessibilityHorizontalUnits(
&self,
accessibility_horizontal_units: NSAccessibilityUnits
)
unsafe fn setAccessibilityHorizontalUnits( &self, accessibility_horizontal_units: NSAccessibilityUnits )
Available on crate feature
NSAccessibilityConstants
only.sourceยงunsafe fn accessibilityVerticalUnits(&self) -> NSAccessibilityUnits
unsafe fn accessibilityVerticalUnits(&self) -> NSAccessibilityUnits
Available on crate feature
NSAccessibilityConstants
only.sourceยงunsafe fn setAccessibilityVerticalUnits(
&self,
accessibility_vertical_units: NSAccessibilityUnits
)
unsafe fn setAccessibilityVerticalUnits( &self, accessibility_vertical_units: NSAccessibilityUnits )
Available on crate feature
NSAccessibilityConstants
only.unsafe fn accessibilityHorizontalUnitDescription( &self ) -> Option<Retained<NSString>>
unsafe fn setAccessibilityHorizontalUnitDescription( &self, accessibility_horizontal_unit_description: Option<&NSString> )
unsafe fn accessibilityVerticalUnitDescription( &self ) -> Option<Retained<NSString>>
unsafe fn setAccessibilityVerticalUnitDescription( &self, accessibility_vertical_unit_description: Option<&NSString> )
unsafe fn accessibilityLayoutPointForScreenPoint( &self, point: NSPoint ) -> NSPoint
unsafe fn accessibilityLayoutSizeForScreenSize(&self, size: NSSize) -> NSSize
unsafe fn accessibilityScreenPointForLayoutPoint( &self, point: NSPoint ) -> NSPoint
unsafe fn accessibilityScreenSizeForLayoutSize(&self, size: NSSize) -> NSSize
unsafe fn accessibilityHandles(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityHandles( &self, accessibility_handles: Option<&NSArray> )
unsafe fn accessibilityWarningValue(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityWarningValue( &self, accessibility_warning_value: Option<&AnyObject> )
unsafe fn accessibilityCriticalValue(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityCriticalValue( &self, accessibility_critical_value: Option<&AnyObject> )
unsafe fn isAccessibilityDisclosed(&self) -> bool
unsafe fn setAccessibilityDisclosed(&self, accessibility_disclosed: bool)
unsafe fn accessibilityDisclosedByRow(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityDisclosedByRow( &self, accessibility_disclosed_by_row: Option<&AnyObject> )
unsafe fn accessibilityDisclosedRows(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityDisclosedRows( &self, accessibility_disclosed_rows: Option<&AnyObject> )
unsafe fn accessibilityDisclosureLevel(&self) -> NSInteger
unsafe fn setAccessibilityDisclosureLevel( &self, accessibility_disclosure_level: NSInteger )
unsafe fn accessibilityMarkerUIElements(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityMarkerUIElements( &self, accessibility_marker_ui_elements: Option<&NSArray> )
unsafe fn accessibilityMarkerValues(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityMarkerValues( &self, accessibility_marker_values: Option<&AnyObject> )
unsafe fn accessibilityMarkerGroupUIElement( &self ) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityMarkerGroupUIElement( &self, accessibility_marker_group_ui_element: Option<&AnyObject> )
sourceยงunsafe fn accessibilityUnits(&self) -> NSAccessibilityUnits
unsafe fn accessibilityUnits(&self) -> NSAccessibilityUnits
Available on crate feature
NSAccessibilityConstants
only.sourceยงunsafe fn setAccessibilityUnits(
&self,
accessibility_units: NSAccessibilityUnits
)
unsafe fn setAccessibilityUnits( &self, accessibility_units: NSAccessibilityUnits )
Available on crate feature
NSAccessibilityConstants
only.unsafe fn accessibilityUnitDescription(&self) -> Option<Retained<NSString>>
unsafe fn setAccessibilityUnitDescription( &self, accessibility_unit_description: Option<&NSString> )
sourceยงunsafe fn accessibilityRulerMarkerType(&self) -> NSAccessibilityRulerMarkerType
unsafe fn accessibilityRulerMarkerType(&self) -> NSAccessibilityRulerMarkerType
Available on crate feature
NSAccessibilityConstants
only.sourceยงunsafe fn setAccessibilityRulerMarkerType(
&self,
accessibility_ruler_marker_type: NSAccessibilityRulerMarkerType
)
unsafe fn setAccessibilityRulerMarkerType( &self, accessibility_ruler_marker_type: NSAccessibilityRulerMarkerType )
Available on crate feature
NSAccessibilityConstants
only.unsafe fn accessibilityMarkerTypeDescription( &self ) -> Option<Retained<NSString>>
unsafe fn setAccessibilityMarkerTypeDescription( &self, accessibility_marker_type_description: Option<&NSString> )
unsafe fn accessibilityHorizontalScrollBar(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityHorizontalScrollBar( &self, accessibility_horizontal_scroll_bar: Option<&AnyObject> )
unsafe fn accessibilityVerticalScrollBar(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityVerticalScrollBar( &self, accessibility_vertical_scroll_bar: Option<&AnyObject> )
unsafe fn accessibilityAllowedValues( &self ) -> Option<Retained<NSArray<NSNumber>>>
unsafe fn setAccessibilityAllowedValues( &self, accessibility_allowed_values: Option<&NSArray<NSNumber>> )
unsafe fn accessibilityLabelUIElements(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityLabelUIElements( &self, accessibility_label_ui_elements: Option<&NSArray> )
unsafe fn accessibilityLabelValue(&self) -> c_float
unsafe fn setAccessibilityLabelValue(&self, accessibility_label_value: c_float)
unsafe fn accessibilitySplitters(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilitySplitters( &self, accessibility_splitters: Option<&NSArray> )
unsafe fn accessibilityDecrementButton(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityDecrementButton( &self, accessibility_decrement_button: Option<&AnyObject> )
unsafe fn accessibilityIncrementButton(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityIncrementButton( &self, accessibility_increment_button: Option<&AnyObject> )
unsafe fn accessibilityTabs(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityTabs(&self, accessibility_tabs: Option<&NSArray>)
unsafe fn accessibilityHeader(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityHeader( &self, accessibility_header: Option<&AnyObject> )
unsafe fn accessibilityColumnCount(&self) -> NSInteger
unsafe fn setAccessibilityColumnCount( &self, accessibility_column_count: NSInteger )
unsafe fn accessibilityRowCount(&self) -> NSInteger
unsafe fn setAccessibilityRowCount(&self, accessibility_row_count: NSInteger)
unsafe fn accessibilityIndex(&self) -> NSInteger
unsafe fn setAccessibilityIndex(&self, accessibility_index: NSInteger)
unsafe fn accessibilityColumns(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityColumns( &self, accessibility_columns: Option<&NSArray> )
unsafe fn accessibilityRows(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityRows(&self, accessibility_rows: Option<&NSArray>)
unsafe fn accessibilityVisibleRows(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityVisibleRows( &self, accessibility_visible_rows: Option<&NSArray> )
unsafe fn accessibilitySelectedRows(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilitySelectedRows( &self, accessibility_selected_rows: Option<&NSArray> )
unsafe fn accessibilityVisibleColumns(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityVisibleColumns( &self, accessibility_visible_columns: Option<&NSArray> )
unsafe fn accessibilitySelectedColumns(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilitySelectedColumns( &self, accessibility_selected_columns: Option<&NSArray> )
sourceยงunsafe fn accessibilitySortDirection(&self) -> NSAccessibilitySortDirection
unsafe fn accessibilitySortDirection(&self) -> NSAccessibilitySortDirection
Available on crate feature
NSAccessibilityConstants
only.sourceยงunsafe fn setAccessibilitySortDirection(
&self,
accessibility_sort_direction: NSAccessibilitySortDirection
)
unsafe fn setAccessibilitySortDirection( &self, accessibility_sort_direction: NSAccessibilitySortDirection )
Available on crate feature
NSAccessibilityConstants
only.unsafe fn accessibilityRowHeaderUIElements(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityRowHeaderUIElements( &self, accessibility_row_header_ui_elements: Option<&NSArray> )
unsafe fn accessibilitySelectedCells(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilitySelectedCells( &self, accessibility_selected_cells: Option<&NSArray> )
unsafe fn accessibilityVisibleCells(&self) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityVisibleCells( &self, accessibility_visible_cells: Option<&NSArray> )
unsafe fn accessibilityColumnHeaderUIElements( &self ) -> Option<Retained<NSArray>>
unsafe fn setAccessibilityColumnHeaderUIElements( &self, accessibility_column_header_ui_elements: Option<&NSArray> )
unsafe fn accessibilityCellForColumn_row( &self, column: NSInteger, row: NSInteger ) -> Option<Retained<AnyObject>>
unsafe fn accessibilityRowIndexRange(&self) -> NSRange
unsafe fn setAccessibilityRowIndexRange( &self, accessibility_row_index_range: NSRange )
unsafe fn accessibilityColumnIndexRange(&self) -> NSRange
unsafe fn setAccessibilityColumnIndexRange( &self, accessibility_column_index_range: NSRange )
unsafe fn accessibilityInsertionPointLineNumber(&self) -> NSInteger
unsafe fn setAccessibilityInsertionPointLineNumber( &self, accessibility_insertion_point_line_number: NSInteger )
unsafe fn accessibilityVisibleCharacterRange(&self) -> NSRange
unsafe fn setAccessibilityVisibleCharacterRange( &self, accessibility_visible_character_range: NSRange )
unsafe fn accessibilityNumberOfCharacters(&self) -> NSInteger
unsafe fn setAccessibilityNumberOfCharacters( &self, accessibility_number_of_characters: NSInteger )
unsafe fn accessibilitySelectedText(&self) -> Option<Retained<NSString>>
unsafe fn setAccessibilitySelectedText( &self, accessibility_selected_text: Option<&NSString> )
unsafe fn accessibilitySelectedTextRange(&self) -> NSRange
unsafe fn setAccessibilitySelectedTextRange( &self, accessibility_selected_text_range: NSRange )
unsafe fn accessibilitySelectedTextRanges( &self ) -> Option<Retained<NSArray<NSValue>>>
unsafe fn setAccessibilitySelectedTextRanges( &self, accessibility_selected_text_ranges: Option<&NSArray<NSValue>> )
unsafe fn accessibilityAttributedStringForRange( &self, range: NSRange ) -> Option<Retained<NSAttributedString>>
unsafe fn accessibilityRangeForLine(&self, line: NSInteger) -> NSRange
unsafe fn accessibilityStringForRange( &self, range: NSRange ) -> Option<Retained<NSString>>
unsafe fn accessibilityRangeForPosition(&self, point: NSPoint) -> NSRange
unsafe fn accessibilityRangeForIndex(&self, index: NSInteger) -> NSRange
unsafe fn accessibilityFrameForRange(&self, range: NSRange) -> NSRect
unsafe fn accessibilityRTFForRange( &self, range: NSRange ) -> Option<Retained<NSData>>
unsafe fn accessibilityStyleRangeForIndex(&self, index: NSInteger) -> NSRange
unsafe fn accessibilityLineForIndex(&self, index: NSInteger) -> NSInteger
unsafe fn accessibilityToolbarButton(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityToolbarButton( &self, accessibility_toolbar_button: Option<&AnyObject> )
unsafe fn isAccessibilityModal(&self) -> bool
unsafe fn setAccessibilityModal(&self, accessibility_modal: bool)
unsafe fn accessibilityProxy(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityProxy(&self, accessibility_proxy: Option<&AnyObject>)
unsafe fn isAccessibilityMain(&self) -> bool
unsafe fn setAccessibilityMain(&self, accessibility_main: bool)
unsafe fn accessibilityFullScreenButton(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityFullScreenButton( &self, accessibility_full_screen_button: Option<&AnyObject> )
unsafe fn accessibilityGrowArea(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityGrowArea( &self, accessibility_grow_area: Option<&AnyObject> )
unsafe fn accessibilityDocument(&self) -> Option<Retained<NSString>>
unsafe fn setAccessibilityDocument( &self, accessibility_document: Option<&NSString> )
unsafe fn accessibilityDefaultButton(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityDefaultButton( &self, accessibility_default_button: Option<&AnyObject> )
unsafe fn accessibilityCloseButton(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityCloseButton( &self, accessibility_close_button: Option<&AnyObject> )
unsafe fn accessibilityZoomButton(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityZoomButton( &self, accessibility_zoom_button: Option<&AnyObject> )
unsafe fn accessibilityMinimizeButton(&self) -> Option<Retained<AnyObject>>
unsafe fn setAccessibilityMinimizeButton( &self, accessibility_minimize_button: Option<&AnyObject> )
unsafe fn isAccessibilityMinimized(&self) -> bool
unsafe fn setAccessibilityMinimized(&self, accessibility_minimized: bool)
sourceยงunsafe fn accessibilityCustomActions(
&self
) -> Option<Retained<NSArray<NSAccessibilityCustomAction>>>
unsafe fn accessibilityCustomActions( &self ) -> Option<Retained<NSArray<NSAccessibilityCustomAction>>>
Available on crate feature
NSAccessibilityCustomAction
only.sourceยงunsafe fn setAccessibilityCustomActions(
&self,
accessibility_custom_actions: Option<&NSArray<NSAccessibilityCustomAction>>
)
unsafe fn setAccessibilityCustomActions( &self, accessibility_custom_actions: Option<&NSArray<NSAccessibilityCustomAction>> )
Available on crate feature
NSAccessibilityCustomAction
only.unsafe fn accessibilityPerformCancel(&self) -> bool
unsafe fn accessibilityPerformConfirm(&self) -> bool
unsafe fn accessibilityPerformDecrement(&self) -> bool
unsafe fn accessibilityPerformDelete(&self) -> bool
unsafe fn accessibilityPerformIncrement(&self) -> bool
unsafe fn accessibilityPerformPick(&self) -> bool
unsafe fn accessibilityPerformPress(&self) -> bool
unsafe fn accessibilityPerformRaise(&self) -> bool
unsafe fn accessibilityPerformShowAlternateUI(&self) -> bool
unsafe fn accessibilityPerformShowDefaultUI(&self) -> bool
unsafe fn accessibilityPerformShowMenu(&self) -> bool
unsafe fn isAccessibilitySelectorAllowed(&self, selector: Sel) -> bool
sourceยงimpl NSAccessibilityElementProtocol for NSDrawer
Available on crate feature NSAccessibilityProtocols
only.
impl NSAccessibilityElementProtocol for NSDrawer
Available on crate feature
NSAccessibilityProtocols
only.unsafe fn accessibilityFrame(&self) -> NSRect
unsafe fn accessibilityParent(&self) -> Option<Retained<AnyObject>>
unsafe fn isAccessibilityFocused(&self) -> bool
unsafe fn accessibilityIdentifier(&self) -> Retained<NSString>
sourceยงimpl NSObjectProtocol for NSDrawer
impl NSObjectProtocol for NSDrawer
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 description(&self) -> Retained<NSObject>
fn description(&self) -> Retained<NSObject>
A textual representation of the object. 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 NSDrawer
impl PartialEq for NSDrawer
sourceยงimpl RefEncode for NSDrawer
impl RefEncode for NSDrawer
sourceยงconst ENCODING_REF: Encoding = <NSResponder as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSResponder as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for NSDrawer
impl Message for NSDrawer
impl StructuralPartialEq for NSDrawer
Auto Trait Implementationsยง
impl !Freeze for NSDrawer
impl !RefUnwindSafe for NSDrawer
impl !Send for NSDrawer
impl !Sync for NSDrawer
impl !Unpin for NSDrawer
impl !UnwindSafe for NSDrawer
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