Struct objc2_app_kit::NSApplication
source · #[repr(C)]pub struct NSApplication { /* private fields */ }
NSApplication
and NSResponder
only.Implementations§
source§impl NSApplication
impl NSApplication
pub unsafe fn delegate( &self ) -> Option<Id<ProtocolObject<dyn NSApplicationDelegate>>>
pub fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn NSApplicationDelegate>> )
pub fn hide(&self, sender: Option<&AnyObject>)
pub unsafe fn unhide(&self, sender: Option<&AnyObject>)
pub unsafe fn unhideWithoutActivation(&self)
pub unsafe fn windowWithWindowNumber( &self, window_num: NSInteger ) -> Option<Id<NSWindow>>
NSWindow
only.pub unsafe fn mainWindow(&self) -> Option<Id<NSWindow>>
NSWindow
only.pub fn keyWindow(&self) -> Option<Id<NSWindow>>
NSWindow
only.pub unsafe fn isActive(&self) -> bool
pub unsafe fn isHidden(&self) -> bool
pub unsafe fn isRunning(&self) -> bool
pub unsafe fn deactivate(&self)
pub fn activateIgnoringOtherApps(&self, flag: bool)
pub unsafe fn activate(&self)
pub unsafe fn yieldActivationToApplication( &self, application: &NSRunningApplication )
NSRunningApplication
only.pub unsafe fn yieldActivationToApplicationWithBundleIdentifier( &self, bundle_identifier: &NSString )
pub fn hideOtherApplications(&self, sender: Option<&AnyObject>)
pub unsafe fn unhideAllApplications(&self, sender: Option<&AnyObject>)
pub unsafe fn finishLaunching(&self)
pub unsafe fn run(&self)
pub unsafe fn runModalForWindow(&self, window: &NSWindow) -> NSModalResponse
NSWindow
only.pub fn stop(&self, sender: Option<&AnyObject>)
pub unsafe fn stopModal(&self)
pub unsafe fn stopModalWithCode(&self, return_code: NSModalResponse)
pub unsafe fn abortModal(&self)
pub unsafe fn modalWindow(&self) -> Option<Id<NSWindow>>
NSWindow
only.pub unsafe fn beginModalSessionForWindow( &self, window: &NSWindow ) -> NSModalSession
NSWindow
only.pub unsafe fn runModalSession(&self, session: NSModalSession) -> NSModalResponse
pub unsafe fn endModalSession(&self, session: NSModalSession)
pub unsafe fn terminate(&self, sender: Option<&AnyObject>)
pub fn requestUserAttention( &self, request_type: NSRequestUserAttentionType ) -> NSInteger
pub unsafe fn cancelUserAttentionRequest(&self, request: NSInteger)
pub unsafe fn enumerateWindowsWithOptions_usingBlock( &self, options: NSWindowListOptions, block: &Block<dyn Fn(NonNull<NSWindow>, NonNull<Bool>) + '_> )
NSWindow
and block2
only.pub unsafe fn preventWindowOrdering(&self)
pub fn windows(&self) -> Id<NSArray<NSWindow>>
NSWindow
only.pub unsafe fn setWindowsNeedUpdate(&self, need_update: bool)
pub unsafe fn updateWindows(&self)
pub unsafe fn mainMenu(&self) -> Option<Id<NSMenu>>
NSMenu
only.pub fn setMainMenu(&self, main_menu: Option<&NSMenu>)
NSMenu
only.pub unsafe fn helpMenu(&self) -> Option<Id<NSMenu>>
NSMenu
only.pub unsafe fn setHelpMenu(&self, help_menu: Option<&NSMenu>)
NSMenu
only.pub unsafe fn applicationIconImage(&self) -> Option<Id<NSImage>>
NSImage
only.pub unsafe fn setApplicationIconImage( &self, application_icon_image: Option<&NSImage> )
NSImage
only.pub unsafe fn activationPolicy(&self) -> NSApplicationActivationPolicy
NSRunningApplication
only.pub fn setActivationPolicy( &self, activation_policy: NSApplicationActivationPolicy ) -> bool
NSRunningApplication
only.pub unsafe fn dockTile(&self) -> Id<NSDockTile>
NSDockTile
only.pub unsafe fn reportException(&self, exception: &NSException)
pub unsafe fn detachDrawingThread_toTarget_withObject( selector: Sel, target: &AnyObject, argument: Option<&AnyObject>, mtm: MainThreadMarker )
pub unsafe fn replyToApplicationShouldTerminate(&self, should_terminate: bool)
pub unsafe fn replyToOpenOrPrint(&self, reply: NSApplicationDelegateReply)
pub fn orderFrontCharacterPalette(&self, sender: Option<&AnyObject>)
pub fn presentationOptions(&self) -> NSApplicationPresentationOptions
pub fn setPresentationOptions( &self, presentation_options: NSApplicationPresentationOptions )
pub unsafe fn currentSystemPresentationOptions( &self ) -> NSApplicationPresentationOptions
pub unsafe fn occlusionState(&self) -> NSApplicationOcclusionState
pub unsafe fn isProtectedDataAvailable(&self) -> bool
source§impl NSApplication
impl NSApplication
Methods declared on superclass NSResponder
source§impl NSApplication
impl NSApplication
Methods declared on superclass NSObject
pub unsafe fn new(mtm: MainThreadMarker) -> Id<Self>
source§impl NSApplication
impl NSApplication
NSAppearanceCustomization
pub unsafe fn appearance(&self) -> Option<Id<NSAppearance>>
NSAppearance
only.pub fn setAppearance(&self, appearance: Option<&NSAppearance>)
NSAppearance
only.pub fn effectiveAppearance(&self) -> Id<NSAppearance>
NSAppearance
only.source§impl NSApplication
impl NSApplication
NSEvent
pub unsafe fn sendEvent(&self, event: &NSEvent)
NSEvent
only.pub fn postEvent_atStart(&self, event: &NSEvent, flag: bool)
NSEvent
only.pub fn currentEvent(&self) -> Option<Id<NSEvent>>
NSEvent
only.pub unsafe fn nextEventMatchingMask_untilDate_inMode_dequeue( &self, mask: NSEventMask, expiration: Option<&NSDate>, mode: &NSRunLoopMode, deq_flag: bool ) -> Option<Id<NSEvent>>
NSEvent
only.pub unsafe fn discardEventsMatchingMask_beforeEvent( &self, mask: NSEventMask, last_event: Option<&NSEvent> )
NSEvent
only.source§impl NSApplication
impl NSApplication
NSResponder
pub unsafe fn sendAction_to_from( &self, action: Sel, target: Option<&AnyObject>, sender: Option<&AnyObject> ) -> bool
pub unsafe fn targetForAction(&self, action: Sel) -> Option<Id<AnyObject>>
pub unsafe fn targetForAction_to_from( &self, action: Sel, target: Option<&AnyObject>, sender: Option<&AnyObject> ) -> Option<Id<AnyObject>>
pub unsafe fn tryToPerform_with( &self, action: Sel, object: Option<&AnyObject> ) -> bool
pub unsafe fn validRequestorForSendType_returnType( &self, send_type: Option<&NSPasteboardType>, return_type: Option<&NSPasteboardType> ) -> Option<Id<AnyObject>>
NSPasteboard
only.source§impl NSApplication
impl NSApplication
NSWindowsMenu
pub unsafe fn windowsMenu(&self) -> Option<Id<NSMenu>>
NSMenu
only.pub unsafe fn setWindowsMenu(&self, windows_menu: Option<&NSMenu>)
NSMenu
only.pub unsafe fn arrangeInFront(&self, sender: Option<&AnyObject>)
pub unsafe fn removeWindowsItem(&self, win: &NSWindow)
NSWindow
only.pub unsafe fn addWindowsItem_title_filename( &self, win: &NSWindow, string: &NSString, is_filename: bool )
NSWindow
only.pub unsafe fn changeWindowsItem_title_filename( &self, win: &NSWindow, string: &NSString, is_filename: bool )
NSWindow
only.pub unsafe fn updateWindowsItem(&self, win: &NSWindow)
NSWindow
only.pub unsafe fn miniaturizeAll(&self, sender: Option<&AnyObject>)
source§impl NSApplication
impl NSApplication
NSFullKeyboardAccess
pub unsafe fn isFullKeyboardAccessEnabled(&self) -> bool
source§impl NSApplication
impl NSApplication
NSServicesMenu
pub unsafe fn servicesMenu(&self) -> Option<Id<NSMenu>>
NSMenu
only.pub unsafe fn setServicesMenu(&self, services_menu: Option<&NSMenu>)
NSMenu
only.pub unsafe fn registerServicesMenuSendTypes_returnTypes( &self, send_types: &NSArray<NSPasteboardType>, return_types: &NSArray<NSPasteboardType> )
NSPasteboard
only.source§impl NSApplication
impl NSApplication
NSServicesHandling
pub unsafe fn servicesProvider(&self) -> Option<Id<AnyObject>>
pub unsafe fn setServicesProvider(&self, services_provider: Option<&AnyObject>)
source§impl NSApplication
impl NSApplication
NSStandardAboutPanel
pub unsafe fn orderFrontStandardAboutPanel(&self, sender: Option<&AnyObject>)
pub unsafe fn orderFrontStandardAboutPanelWithOptions( &self, options_dictionary: &NSDictionary<NSAboutPanelOptionKey, AnyObject> )
source§impl NSApplication
impl NSApplication
NSApplicationLayoutDirection
pub unsafe fn userInterfaceLayoutDirection( &self ) -> NSUserInterfaceLayoutDirection
NSUserInterfaceLayout
only.source§impl NSApplication
impl NSApplication
NSRestorableUserInterface
pub unsafe fn disableRelaunchOnLogin(&self)
pub unsafe fn enableRelaunchOnLogin(&self)
source§impl NSApplication
impl NSApplication
NSRemoteNotifications
pub unsafe fn registerForRemoteNotifications(&self)
pub unsafe fn unregisterForRemoteNotifications(&self)
pub unsafe fn isRegisteredForRemoteNotifications(&self) -> bool
pub unsafe fn registerForRemoteNotificationTypes( &self, types: NSRemoteNotificationType )
pub unsafe fn enabledRemoteNotificationTypes(&self) -> NSRemoteNotificationType
source§impl NSApplication
impl NSApplication
NSDeprecated
pub unsafe fn runModalForWindow_relativeToWindow( &self, window: Option<&NSWindow>, doc_window: Option<&NSWindow> ) -> NSInteger
NSWindow
only.pub unsafe fn beginModalSessionForWindow_relativeToWindow( &self, window: Option<&NSWindow>, doc_window: Option<&NSWindow> ) -> NSModalSession
NSWindow
only.pub unsafe fn application_printFiles( &self, sender: Option<&NSApplication>, filenames: Option<&NSArray<NSString>> )
pub unsafe fn beginSheet_modalForWindow_modalDelegate_didEndSelector_contextInfo( &self, sheet: &NSWindow, doc_window: &NSWindow, modal_delegate: Option<&AnyObject>, did_end_selector: Option<Sel>, context_info: *mut c_void )
NSWindow
only.pub unsafe fn endSheet(&self, sheet: &NSWindow)
NSWindow
only.pub unsafe fn endSheet_returnCode( &self, sheet: &NSWindow, return_code: NSInteger )
NSWindow
only.pub unsafe fn makeWindowsPerform_inOrder( &self, selector: Sel, flag: bool ) -> Option<Id<NSWindow>>
NSWindow
only.pub unsafe fn context(&self) -> Option<Id<NSGraphicsContext>>
NSGraphicsContext
only.source§impl NSApplication
impl NSApplication
NSScripting
pub unsafe fn orderedDocuments(&self) -> Id<NSArray<NSDocument>>
NSApplicationScripting
and NSDocument
only.pub unsafe fn orderedWindows(&self) -> Id<NSArray<NSWindow>>
NSApplicationScripting
and NSWindow
only.source§impl NSApplication
impl NSApplication
NSColorPanel
pub unsafe fn orderFrontColorPanel(&self, sender: Option<&AnyObject>)
NSColorPanel
only.source§impl NSApplication
impl NSApplication
NSApplicationHelpExtension
source§impl NSApplication
impl NSApplication
NSPageLayoutPanel
pub unsafe fn runPageLayout(&self, sender: Option<&AnyObject>)
NSPageLayout
only.source§impl NSApplication
impl NSApplication
NSTouchBarCustomization
pub unsafe fn isAutomaticCustomizeTouchBarMenuItemEnabled(&self) -> bool
NSTouchBar
only.pub unsafe fn setAutomaticCustomizeTouchBarMenuItemEnabled( &self, automatic_customize_touch_bar_menu_item_enabled: bool )
NSTouchBar
only.pub unsafe fn toggleTouchBarCustomizationPalette( &self, sender: Option<&AnyObject> )
NSTouchBar
only.source§impl NSApplication
impl NSApplication
NSUserInterfaceItemSearching
pub unsafe fn registerUserInterfaceItemSearchHandler( &self, handler: &ProtocolObject<dyn NSUserInterfaceItemSearching> )
NSUserInterfaceItemSearching
only.pub unsafe fn unregisterUserInterfaceItemSearchHandler( &self, handler: &ProtocolObject<dyn NSUserInterfaceItemSearching> )
NSUserInterfaceItemSearching
only.pub unsafe fn searchString_inUserInterfaceItemString_searchRange_foundRange( &self, search_string: &NSString, string_to_search: &NSString, search_range: NSRange, found_range: *mut NSRange ) -> bool
NSUserInterfaceItemSearching
only.source§impl NSApplication
impl NSApplication
NSWindowRestoration
pub unsafe fn restoreWindowWithIdentifier_state_completionHandler( &self, identifier: &NSUserInterfaceItemIdentifier, state: &NSCoder, completion_handler: &Block<dyn Fn(*mut NSWindow, *mut NSError)> ) -> bool
NSWindowRestoration
and NSUserInterfaceItemIdentification
and NSWindow
and block2
only.source§impl NSApplication
impl NSApplication
NSRestorableStateExtension
pub unsafe fn extendStateRestoration(&self)
NSWindowRestoration
only.pub unsafe fn completeStateRestoration(&self)
NSWindowRestoration
only.Methods from Deref<Target = NSResponder>§
pub unsafe fn interfaceStyle(&self) -> NSInterfaceStyle
NSInterfaceStyle
only.pub unsafe fn setInterfaceStyle(&self, interface_style: NSInterfaceStyle)
NSInterfaceStyle
only.pub unsafe fn nextResponder(&self) -> Option<Id<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
NSEvent
only.pub unsafe fn validRequestorForSendType_returnType( &self, send_type: Option<&NSPasteboardType>, return_type: Option<&NSPasteboardType> ) -> Option<Id<AnyObject>>
NSPasteboard
only.pub unsafe fn mouseDown(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn rightMouseDown(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn otherMouseDown(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn mouseUp(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn rightMouseUp(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn otherMouseUp(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn mouseMoved(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn mouseDragged(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn scrollWheel(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn rightMouseDragged(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn otherMouseDragged(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn mouseEntered(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn mouseExited(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn keyDown(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn keyUp(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn flagsChanged(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn tabletPoint(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn tabletProximity(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn cursorUpdate(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn magnifyWithEvent(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn rotateWithEvent(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn swipeWithEvent(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn beginGestureWithEvent(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn endGestureWithEvent(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn smartMagnifyWithEvent(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn changeModeWithEvent(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn touchesBeganWithEvent(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn touchesMovedWithEvent(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn touchesEndedWithEvent(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn touchesCancelledWithEvent(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn quickLookWithEvent(&self, event: &NSEvent)
NSEvent
only.pub unsafe fn pressureChangeWithEvent(&self, event: &NSEvent)
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>)
NSEvent
only.pub unsafe fn flushBufferedKeyEvents(&self)
NSMenu
only.pub unsafe fn setMenu(&self, menu: Option<&NSMenu>)
NSMenu
only.pub unsafe fn showContextHelp(&self, sender: Option<&AnyObject>)
pub unsafe fn helpRequested(&self, event_ptr: &NSEvent)
NSEvent
only.pub unsafe fn shouldBeTreatedAsInkEvent(&self, event: &NSEvent) -> bool
NSEvent
only.pub unsafe fn wantsScrollEventsForSwipeTrackingOnAxis( &self, axis: NSEventGestureAxis ) -> bool
NSEvent
only.pub unsafe fn wantsForwardedScrollEventsForAxis( &self, axis: NSEventGestureAxis ) -> bool
NSEvent
only.pub unsafe fn supplementalTargetForAction_sender( &self, action: Sel, sender: Option<&AnyObject> ) -> Option<Id<AnyObject>>
pub unsafe fn undoManager(&self) -> Option<Id<NSUndoManager>>
pub unsafe fn validateProposedFirstResponder_forEvent( &self, responder: &NSResponder, event: Option<&NSEvent> ) -> bool
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 )
NSWindow
only.pub unsafe fn presentError(&self, error: &NSError) -> bool
pub unsafe fn willPresentError(&self, error: &NSError) -> Id<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
pub unsafe fn touchBar(&self) -> Option<Id<NSTouchBar>>
NSTouchBar
only.pub unsafe fn setTouchBar(&self, touch_bar: Option<&NSTouchBar>)
NSTouchBar
only.pub unsafe fn makeTouchBar(&self) -> Option<Id<NSTouchBar>>
NSTouchBar
only.pub unsafe fn userActivity(&self) -> Option<Id<NSUserActivity>>
NSUserActivity
only.pub unsafe fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
NSUserActivity
only.pub unsafe fn updateUserActivityState(&self, user_activity: &NSUserActivity)
NSUserActivity
only.pub unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
NSWindowRestoration
only.pub unsafe fn encodeRestorableStateWithCoder_backgroundQueue( &self, coder: &NSCoder, queue: &NSOperationQueue )
NSWindowRestoration
only.pub unsafe fn restoreStateWithCoder(&self, coder: &NSCoder)
NSWindowRestoration
only.pub unsafe fn invalidateRestorableState(&self)
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<AnyObject> for NSApplication
impl AsMut<AnyObject> for NSApplication
source§impl AsMut<NSApplication> for NSApplication
impl AsMut<NSApplication> for NSApplication
source§impl AsMut<NSObject> for NSApplication
impl AsMut<NSObject> for NSApplication
source§impl AsMut<NSResponder> for NSApplication
impl AsMut<NSResponder> for NSApplication
source§fn as_mut(&mut self) -> &mut NSResponder
fn as_mut(&mut self) -> &mut NSResponder
source§impl AsRef<AnyObject> for NSApplication
impl AsRef<AnyObject> for NSApplication
source§impl AsRef<NSApplication> for NSApplication
impl AsRef<NSApplication> for NSApplication
source§impl AsRef<NSObject> for NSApplication
impl AsRef<NSObject> for NSApplication
source§impl AsRef<NSResponder> for NSApplication
impl AsRef<NSResponder> for NSApplication
source§fn as_ref(&self) -> &NSResponder
fn as_ref(&self) -> &NSResponder
source§impl Borrow<AnyObject> for NSApplication
impl Borrow<AnyObject> for NSApplication
source§impl Borrow<NSObject> for NSApplication
impl Borrow<NSObject> for NSApplication
source§impl Borrow<NSResponder> for NSApplication
impl Borrow<NSResponder> for NSApplication
source§fn borrow(&self) -> &NSResponder
fn borrow(&self) -> &NSResponder
source§impl BorrowMut<AnyObject> for NSApplication
impl BorrowMut<AnyObject> for NSApplication
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
source§impl BorrowMut<NSObject> for NSApplication
impl BorrowMut<NSObject> for NSApplication
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
source§impl BorrowMut<NSResponder> for NSApplication
impl BorrowMut<NSResponder> for NSApplication
source§fn borrow_mut(&mut self) -> &mut NSResponder
fn borrow_mut(&mut self) -> &mut NSResponder
source§impl ClassType for NSApplication
impl ClassType for NSApplication
§type Super = NSResponder
type Super = NSResponder
§type Mutability = MainThreadOnly
type Mutability = MainThreadOnly
source§const NAME: &'static str = "NSApplication"
const NAME: &'static str = "NSApplication"
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
source§impl Debug for NSApplication
impl Debug for NSApplication
source§impl Deref for NSApplication
impl Deref for NSApplication
source§impl DerefMut for NSApplication
impl DerefMut for NSApplication
source§impl Hash for NSApplication
impl Hash for NSApplication
source§impl NSAccessibility for NSApplication
Available on crate feature NSAccessibilityProtocols
only.
impl NSAccessibility for NSApplication
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<Id<AnyObject>>
unsafe fn setAccessibilityTopLevelUIElement( &self, accessibility_top_level_ui_element: Option<&AnyObject> )
unsafe fn accessibilityURL(&self) -> Option<Id<NSURL>>
unsafe fn setAccessibilityURL(&self, accessibility_url: Option<&NSURL>)
unsafe fn accessibilityValue(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityValue(&self, accessibility_value: Option<&AnyObject>)
unsafe fn accessibilityValueDescription(&self) -> Option<Id<NSString>>
unsafe fn setAccessibilityValueDescription( &self, accessibility_value_description: Option<&NSString> )
unsafe fn accessibilityVisibleChildren(&self) -> Option<Id<NSArray>>
unsafe fn setAccessibilityVisibleChildren( &self, accessibility_visible_children: Option<&NSArray> )
source§unsafe fn accessibilitySubrole(&self) -> Option<Id<NSAccessibilitySubrole>>
unsafe fn accessibilitySubrole(&self) -> Option<Id<NSAccessibilitySubrole>>
NSAccessibilityConstants
only.source§unsafe fn setAccessibilitySubrole(
&self,
accessibility_subrole: Option<&NSAccessibilitySubrole>
)
unsafe fn setAccessibilitySubrole( &self, accessibility_subrole: Option<&NSAccessibilitySubrole> )
NSAccessibilityConstants
only.unsafe fn accessibilityTitle(&self) -> Option<Id<NSString>>
unsafe fn setAccessibilityTitle(&self, accessibility_title: Option<&NSString>)
unsafe fn accessibilityTitleUIElement(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityTitleUIElement( &self, accessibility_title_ui_element: Option<&AnyObject> )
unsafe fn accessibilityNextContents(&self) -> Option<Id<NSArray>>
unsafe fn setAccessibilityNextContents( &self, accessibility_next_contents: Option<&NSArray> )
source§unsafe fn accessibilityOrientation(&self) -> NSAccessibilityOrientation
unsafe fn accessibilityOrientation(&self) -> NSAccessibilityOrientation
NSAccessibilityConstants
only.source§unsafe fn setAccessibilityOrientation(
&self,
accessibility_orientation: NSAccessibilityOrientation
)
unsafe fn setAccessibilityOrientation( &self, accessibility_orientation: NSAccessibilityOrientation )
NSAccessibilityConstants
only.unsafe fn accessibilityOverflowButton(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityOverflowButton( &self, accessibility_overflow_button: Option<&AnyObject> )
unsafe fn accessibilityParent(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityParent( &self, accessibility_parent: Option<&AnyObject> )
unsafe fn accessibilityPlaceholderValue(&self) -> Option<Id<NSString>>
unsafe fn setAccessibilityPlaceholderValue( &self, accessibility_placeholder_value: Option<&NSString> )
unsafe fn accessibilityPreviousContents(&self) -> Option<Id<NSArray>>
unsafe fn setAccessibilityPreviousContents( &self, accessibility_previous_contents: Option<&NSArray> )
source§unsafe fn accessibilityRole(&self) -> Option<Id<NSAccessibilityRole>>
unsafe fn accessibilityRole(&self) -> Option<Id<NSAccessibilityRole>>
NSAccessibilityConstants
only.source§unsafe fn setAccessibilityRole(
&self,
accessibility_role: Option<&NSAccessibilityRole>
)
unsafe fn setAccessibilityRole( &self, accessibility_role: Option<&NSAccessibilityRole> )
NSAccessibilityConstants
only.unsafe fn accessibilityRoleDescription(&self) -> Option<Id<NSString>>
unsafe fn setAccessibilityRoleDescription( &self, accessibility_role_description: Option<&NSString> )
unsafe fn accessibilitySearchButton(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilitySearchButton( &self, accessibility_search_button: Option<&AnyObject> )
unsafe fn accessibilitySearchMenu(&self) -> Option<Id<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<Id<NSArray>>
unsafe fn setAccessibilitySelectedChildren( &self, accessibility_selected_children: Option<&NSArray> )
unsafe fn accessibilityServesAsTitleForUIElements(&self) -> Option<Id<NSArray>>
unsafe fn setAccessibilityServesAsTitleForUIElements( &self, accessibility_serves_as_title_for_ui_elements: Option<&NSArray> )
unsafe fn accessibilityShownMenu(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityShownMenu( &self, accessibility_shown_menu: Option<&AnyObject> )
unsafe fn accessibilityMinValue(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityMinValue( &self, accessibility_min_value: Option<&AnyObject> )
unsafe fn accessibilityMaxValue(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityMaxValue( &self, accessibility_max_value: Option<&AnyObject> )
unsafe fn accessibilityLinkedUIElements(&self) -> Option<Id<NSArray>>
unsafe fn setAccessibilityLinkedUIElements( &self, accessibility_linked_ui_elements: Option<&NSArray> )
unsafe fn accessibilityWindow(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityWindow( &self, accessibility_window: Option<&AnyObject> )
unsafe fn accessibilityIdentifier(&self) -> Option<Id<NSString>>
unsafe fn setAccessibilityIdentifier( &self, accessibility_identifier: Option<&NSString> )
unsafe fn accessibilityHelp(&self) -> Option<Id<NSString>>
unsafe fn setAccessibilityHelp(&self, accessibility_help: Option<&NSString>)
unsafe fn accessibilityFilename(&self) -> Option<Id<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<Id<NSArray>>
unsafe fn setAccessibilityChildren( &self, accessibility_children: Option<&NSArray> )
unsafe fn accessibilityClearButton(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityClearButton( &self, accessibility_clear_button: Option<&AnyObject> )
unsafe fn accessibilityCancelButton(&self) -> Option<Id<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<Id<NSArray>>
unsafe fn setAccessibilityContents( &self, accessibility_contents: Option<&NSArray> )
unsafe fn accessibilityLabel(&self) -> Option<Id<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
) -> Id<NSArray<NSAccessibilityCustomRotor>>
unsafe fn accessibilityCustomRotors( &self ) -> Id<NSArray<NSAccessibilityCustomRotor>>
NSAccessibilityCustomRotor
only.source§unsafe fn setAccessibilityCustomRotors(
&self,
accessibility_custom_rotors: &NSArray<NSAccessibilityCustomRotor>
)
unsafe fn setAccessibilityCustomRotors( &self, accessibility_custom_rotors: &NSArray<NSAccessibilityCustomRotor> )
NSAccessibilityCustomRotor
only.unsafe fn accessibilityUserInputLabels(&self) -> Option<Id<NSArray<NSString>>>
unsafe fn setAccessibilityUserInputLabels( &self, accessibility_user_input_labels: Option<&NSArray<NSString>> )
unsafe fn accessibilityAttributedUserInputLabels( &self ) -> Option<Id<NSArray<NSAttributedString>>>
unsafe fn setAccessibilityAttributedUserInputLabels( &self, accessibility_attributed_user_input_labels: Option<&NSArray<NSAttributedString>> )
unsafe fn accessibilityApplicationFocusedUIElement( &self ) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityApplicationFocusedUIElement( &self, accessibility_application_focused_ui_element: Option<&AnyObject> )
unsafe fn accessibilityMainWindow(&self) -> Option<Id<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<Id<AnyObject>>
unsafe fn setAccessibilityFocusedWindow( &self, accessibility_focused_window: Option<&AnyObject> )
unsafe fn accessibilityWindows(&self) -> Option<Id<NSArray>>
unsafe fn setAccessibilityWindows( &self, accessibility_windows: Option<&NSArray> )
unsafe fn accessibilityExtrasMenuBar(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityExtrasMenuBar( &self, accessibility_extras_menu_bar: Option<&AnyObject> )
unsafe fn accessibilityMenuBar(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityMenuBar( &self, accessibility_menu_bar: Option<&AnyObject> )
unsafe fn accessibilityColumnTitles(&self) -> Option<Id<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
NSAccessibilityConstants
only.source§unsafe fn setAccessibilityHorizontalUnits(
&self,
accessibility_horizontal_units: NSAccessibilityUnits
)
unsafe fn setAccessibilityHorizontalUnits( &self, accessibility_horizontal_units: NSAccessibilityUnits )
NSAccessibilityConstants
only.source§unsafe fn accessibilityVerticalUnits(&self) -> NSAccessibilityUnits
unsafe fn accessibilityVerticalUnits(&self) -> NSAccessibilityUnits
NSAccessibilityConstants
only.source§unsafe fn setAccessibilityVerticalUnits(
&self,
accessibility_vertical_units: NSAccessibilityUnits
)
unsafe fn setAccessibilityVerticalUnits( &self, accessibility_vertical_units: NSAccessibilityUnits )
NSAccessibilityConstants
only.unsafe fn accessibilityHorizontalUnitDescription(&self) -> Option<Id<NSString>>
unsafe fn setAccessibilityHorizontalUnitDescription( &self, accessibility_horizontal_unit_description: Option<&NSString> )
unsafe fn accessibilityVerticalUnitDescription(&self) -> Option<Id<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<Id<NSArray>>
unsafe fn setAccessibilityHandles( &self, accessibility_handles: Option<&NSArray> )
unsafe fn accessibilityWarningValue(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityWarningValue( &self, accessibility_warning_value: Option<&AnyObject> )
unsafe fn accessibilityCriticalValue(&self) -> Option<Id<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<Id<AnyObject>>
unsafe fn setAccessibilityDisclosedByRow( &self, accessibility_disclosed_by_row: Option<&AnyObject> )
unsafe fn accessibilityDisclosedRows(&self) -> Option<Id<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<Id<NSArray>>
unsafe fn setAccessibilityMarkerUIElements( &self, accessibility_marker_ui_elements: Option<&NSArray> )
unsafe fn accessibilityMarkerValues(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityMarkerValues( &self, accessibility_marker_values: Option<&AnyObject> )
unsafe fn accessibilityMarkerGroupUIElement(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityMarkerGroupUIElement( &self, accessibility_marker_group_ui_element: Option<&AnyObject> )
source§unsafe fn accessibilityUnits(&self) -> NSAccessibilityUnits
unsafe fn accessibilityUnits(&self) -> NSAccessibilityUnits
NSAccessibilityConstants
only.source§unsafe fn setAccessibilityUnits(
&self,
accessibility_units: NSAccessibilityUnits
)
unsafe fn setAccessibilityUnits( &self, accessibility_units: NSAccessibilityUnits )
NSAccessibilityConstants
only.unsafe fn accessibilityUnitDescription(&self) -> Option<Id<NSString>>
unsafe fn setAccessibilityUnitDescription( &self, accessibility_unit_description: Option<&NSString> )
source§unsafe fn accessibilityRulerMarkerType(&self) -> NSAccessibilityRulerMarkerType
unsafe fn accessibilityRulerMarkerType(&self) -> NSAccessibilityRulerMarkerType
NSAccessibilityConstants
only.source§unsafe fn setAccessibilityRulerMarkerType(
&self,
accessibility_ruler_marker_type: NSAccessibilityRulerMarkerType
)
unsafe fn setAccessibilityRulerMarkerType( &self, accessibility_ruler_marker_type: NSAccessibilityRulerMarkerType )
NSAccessibilityConstants
only.unsafe fn accessibilityMarkerTypeDescription(&self) -> Option<Id<NSString>>
unsafe fn setAccessibilityMarkerTypeDescription( &self, accessibility_marker_type_description: Option<&NSString> )
unsafe fn accessibilityHorizontalScrollBar(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityHorizontalScrollBar( &self, accessibility_horizontal_scroll_bar: Option<&AnyObject> )
unsafe fn accessibilityVerticalScrollBar(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityVerticalScrollBar( &self, accessibility_vertical_scroll_bar: Option<&AnyObject> )
unsafe fn accessibilityAllowedValues(&self) -> Option<Id<NSArray<NSNumber>>>
unsafe fn setAccessibilityAllowedValues( &self, accessibility_allowed_values: Option<&NSArray<NSNumber>> )
unsafe fn accessibilityLabelUIElements(&self) -> Option<Id<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<Id<NSArray>>
unsafe fn setAccessibilitySplitters( &self, accessibility_splitters: Option<&NSArray> )
unsafe fn accessibilityDecrementButton(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityDecrementButton( &self, accessibility_decrement_button: Option<&AnyObject> )
unsafe fn accessibilityIncrementButton(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityIncrementButton( &self, accessibility_increment_button: Option<&AnyObject> )
unsafe fn accessibilityTabs(&self) -> Option<Id<NSArray>>
unsafe fn setAccessibilityTabs(&self, accessibility_tabs: Option<&NSArray>)
unsafe fn accessibilityHeader(&self) -> Option<Id<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<Id<NSArray>>
unsafe fn setAccessibilityColumns( &self, accessibility_columns: Option<&NSArray> )
unsafe fn accessibilityRows(&self) -> Option<Id<NSArray>>
unsafe fn setAccessibilityRows(&self, accessibility_rows: Option<&NSArray>)
unsafe fn accessibilityVisibleRows(&self) -> Option<Id<NSArray>>
unsafe fn setAccessibilityVisibleRows( &self, accessibility_visible_rows: Option<&NSArray> )
unsafe fn accessibilitySelectedRows(&self) -> Option<Id<NSArray>>
unsafe fn setAccessibilitySelectedRows( &self, accessibility_selected_rows: Option<&NSArray> )
unsafe fn accessibilityVisibleColumns(&self) -> Option<Id<NSArray>>
unsafe fn setAccessibilityVisibleColumns( &self, accessibility_visible_columns: Option<&NSArray> )
unsafe fn accessibilitySelectedColumns(&self) -> Option<Id<NSArray>>
unsafe fn setAccessibilitySelectedColumns( &self, accessibility_selected_columns: Option<&NSArray> )
source§unsafe fn accessibilitySortDirection(&self) -> NSAccessibilitySortDirection
unsafe fn accessibilitySortDirection(&self) -> NSAccessibilitySortDirection
NSAccessibilityConstants
only.source§unsafe fn setAccessibilitySortDirection(
&self,
accessibility_sort_direction: NSAccessibilitySortDirection
)
unsafe fn setAccessibilitySortDirection( &self, accessibility_sort_direction: NSAccessibilitySortDirection )
NSAccessibilityConstants
only.unsafe fn accessibilityRowHeaderUIElements(&self) -> Option<Id<NSArray>>
unsafe fn setAccessibilityRowHeaderUIElements( &self, accessibility_row_header_ui_elements: Option<&NSArray> )
unsafe fn accessibilitySelectedCells(&self) -> Option<Id<NSArray>>
unsafe fn setAccessibilitySelectedCells( &self, accessibility_selected_cells: Option<&NSArray> )
unsafe fn accessibilityVisibleCells(&self) -> Option<Id<NSArray>>
unsafe fn setAccessibilityVisibleCells( &self, accessibility_visible_cells: Option<&NSArray> )
unsafe fn accessibilityColumnHeaderUIElements(&self) -> Option<Id<NSArray>>
unsafe fn setAccessibilityColumnHeaderUIElements( &self, accessibility_column_header_ui_elements: Option<&NSArray> )
unsafe fn accessibilityCellForColumn_row( &self, column: NSInteger, row: NSInteger ) -> Option<Id<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<Id<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<Id<NSArray<NSValue>>>
unsafe fn setAccessibilitySelectedTextRanges( &self, accessibility_selected_text_ranges: Option<&NSArray<NSValue>> )
unsafe fn accessibilityAttributedStringForRange( &self, range: NSRange ) -> Option<Id<NSAttributedString>>
unsafe fn accessibilityRangeForLine(&self, line: NSInteger) -> NSRange
unsafe fn accessibilityStringForRange( &self, range: NSRange ) -> Option<Id<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<Id<NSData>>
unsafe fn accessibilityStyleRangeForIndex(&self, index: NSInteger) -> NSRange
unsafe fn accessibilityLineForIndex(&self, index: NSInteger) -> NSInteger
unsafe fn accessibilityToolbarButton(&self) -> Option<Id<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<Id<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<Id<AnyObject>>
unsafe fn setAccessibilityFullScreenButton( &self, accessibility_full_screen_button: Option<&AnyObject> )
unsafe fn accessibilityGrowArea(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityGrowArea( &self, accessibility_grow_area: Option<&AnyObject> )
unsafe fn accessibilityDocument(&self) -> Option<Id<NSString>>
unsafe fn setAccessibilityDocument( &self, accessibility_document: Option<&NSString> )
unsafe fn accessibilityDefaultButton(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityDefaultButton( &self, accessibility_default_button: Option<&AnyObject> )
unsafe fn accessibilityCloseButton(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityCloseButton( &self, accessibility_close_button: Option<&AnyObject> )
unsafe fn accessibilityZoomButton(&self) -> Option<Id<AnyObject>>
unsafe fn setAccessibilityZoomButton( &self, accessibility_zoom_button: Option<&AnyObject> )
unsafe fn accessibilityMinimizeButton(&self) -> Option<Id<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<Id<NSArray<NSAccessibilityCustomAction>>>
unsafe fn accessibilityCustomActions( &self ) -> Option<Id<NSArray<NSAccessibilityCustomAction>>>
NSAccessibilityCustomAction
only.source§unsafe fn setAccessibilityCustomActions(
&self,
accessibility_custom_actions: Option<&NSArray<NSAccessibilityCustomAction>>
)
unsafe fn setAccessibilityCustomActions( &self, accessibility_custom_actions: Option<&NSArray<NSAccessibilityCustomAction>> )
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 NSApplication
Available on crate feature NSAccessibilityProtocols
only.
impl NSAccessibilityElementProtocol for NSApplication
NSAccessibilityProtocols
only.unsafe fn accessibilityFrame(&self) -> NSRect
unsafe fn accessibilityParent(&self) -> Option<Id<AnyObject>>
unsafe fn isAccessibilityFocused(&self) -> bool
unsafe fn accessibilityIdentifier(&self) -> Id<NSString>
source§impl NSAppearanceCustomization for NSApplication
Available on crate feature NSAppearance
only.
impl NSAppearanceCustomization for NSApplication
NSAppearance
only.unsafe fn appearance(&self) -> Option<Id<NSAppearance>>
unsafe fn setAppearance(&self, appearance: Option<&NSAppearance>)
unsafe fn effectiveAppearance(&self) -> Id<NSAppearance>
source§impl NSCoding for NSApplication
impl NSCoding for NSApplication
source§impl NSMenuItemValidation for NSApplication
Available on crate feature NSMenu
only.
impl NSMenuItemValidation for NSApplication
NSMenu
only.source§unsafe fn validateMenuItem(&self, menu_item: &NSMenuItem) -> bool
unsafe fn validateMenuItem(&self, menu_item: &NSMenuItem) -> bool
NSMenuItem
only.source§impl NSObjectProtocol for NSApplication
impl NSObjectProtocol for NSApplication
source§fn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
source§fn hash(&self) -> usize
fn hash(&self) -> usize
source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
source§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
source§fn debugDescription(&self) -> Id<NSObject>
fn debugDescription(&self) -> Id<NSObject>
source§impl NSUserInterfaceValidations for NSApplication
Available on crate feature NSUserInterfaceValidation
only.
impl NSUserInterfaceValidations for NSApplication
NSUserInterfaceValidation
only.unsafe fn validateUserInterfaceItem( &self, item: &ProtocolObject<dyn NSValidatedUserInterfaceItem> ) -> bool
source§impl PartialEq for NSApplication
impl PartialEq for NSApplication
source§fn eq(&self, other: &NSApplication) -> bool
fn eq(&self, other: &NSApplication) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RefEncode for NSApplication
impl RefEncode for NSApplication
source§const ENCODING_REF: Encoding = <NSResponder as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSResponder as ::objc2::RefEncode>::ENCODING_REF
impl Eq for NSApplication
impl Message for NSApplication
impl StructuralPartialEq for NSApplication
Auto Trait Implementations§
impl !Freeze for NSApplication
impl !RefUnwindSafe for NSApplication
impl !Send for NSApplication
impl !Sync for NSApplication
impl !Unpin for NSApplication
impl !UnwindSafe for NSApplication
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<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
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
Self
if the type has no
mutable counterpart. Read more