Struct objc2_app_kit::NSPanel
source · #[repr(C)]pub struct NSPanel { /* private fields */ }
Available on crate features
NSPanel
and NSResponder
and NSWindow
only.Implementations§
source§impl NSPanel
impl NSPanel
pub unsafe fn isFloatingPanel(&self) -> bool
pub unsafe fn setFloatingPanel(&self, floating_panel: bool)
pub unsafe fn becomesKeyOnlyIfNeeded(&self) -> bool
pub unsafe fn setBecomesKeyOnlyIfNeeded(&self, becomes_key_only_if_needed: bool)
pub unsafe fn worksWhenModal(&self) -> bool
pub unsafe fn setWorksWhenModal(&self, works_when_modal: bool)
source§impl NSPanel
impl NSPanel
Methods declared on superclass NSWindow
pub unsafe fn initWithContentRect_styleMask_backing_defer( this: Allocated<Self>, content_rect: NSRect, style: NSWindowStyleMask, backing_store_type: NSBackingStoreType, flag: bool ) -> Retained<Self>
Available on crate feature
NSGraphics
only.pub unsafe fn initWithContentRect_styleMask_backing_defer_screen( this: Allocated<Self>, content_rect: NSRect, style: NSWindowStyleMask, backing_store_type: NSBackingStoreType, flag: bool, screen: Option<&NSScreen> ) -> Retained<Self>
Available on crate features
NSGraphics
and NSScreen
only.pub unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Retained<Self>
pub unsafe fn windowWithContentViewController( content_view_controller: &NSViewController ) -> Retained<Self>
Available on crate feature
NSViewController
only.Methods from Deref<Target = NSWindow>§
pub unsafe fn drawers(&self) -> Option<Retained<NSArray<NSDrawer>>>
👎Deprecated: Drawers are deprecated; consider using NSSplitViewController
Available on crate feature
NSDrawer
only.pub unsafe fn updateConstraintsIfNeeded(&self)
Available on crate feature
NSLayoutConstraint
only.pub unsafe fn layoutIfNeeded(&self)
Available on crate feature
NSLayoutConstraint
only.pub unsafe fn anchorAttributeForOrientation( &self, orientation: NSLayoutConstraintOrientation ) -> NSLayoutAttribute
Available on crate feature
NSLayoutConstraint
only.pub unsafe fn setAnchorAttribute_forOrientation( &self, attr: NSLayoutAttribute, orientation: NSLayoutConstraintOrientation )
Available on crate feature
NSLayoutConstraint
only.pub unsafe fn visualizeConstraints( &self, constraints: Option<&NSArray<NSLayoutConstraint>> )
Available on crate feature
NSLayoutConstraint
only.pub unsafe fn frameRectForContentRect(&self, content_rect: NSRect) -> NSRect
pub fn contentRectForFrameRect(&self, frame_rect: NSRect) -> NSRect
pub fn title(&self) -> Retained<NSString>
pub fn setTitle(&self, title: &NSString)
pub unsafe fn subtitle(&self) -> Retained<NSString>
pub unsafe fn setSubtitle(&self, subtitle: &NSString)
pub unsafe fn titleVisibility(&self) -> NSWindowTitleVisibility
pub fn setTitleVisibility(&self, title_visibility: NSWindowTitleVisibility)
pub unsafe fn titlebarAppearsTransparent(&self) -> bool
pub fn setTitlebarAppearsTransparent(&self, titlebar_appears_transparent: bool)
pub unsafe fn toolbarStyle(&self) -> NSWindowToolbarStyle
pub unsafe fn setToolbarStyle(&self, toolbar_style: NSWindowToolbarStyle)
pub unsafe fn contentLayoutRect(&self) -> NSRect
pub unsafe fn contentLayoutGuide(&self) -> Option<Retained<AnyObject>>
pub unsafe fn titlebarAccessoryViewControllers( &self ) -> Retained<NSArray<NSTitlebarAccessoryViewController>>
Available on crate features
NSTitlebarAccessoryViewController
and NSViewController
only.pub unsafe fn setTitlebarAccessoryViewControllers( &self, titlebar_accessory_view_controllers: &NSArray<NSTitlebarAccessoryViewController> )
Available on crate features
NSTitlebarAccessoryViewController
and NSViewController
only.pub unsafe fn addTitlebarAccessoryViewController( &self, child_view_controller: &NSTitlebarAccessoryViewController )
Available on crate features
NSTitlebarAccessoryViewController
and NSViewController
only.pub unsafe fn insertTitlebarAccessoryViewController_atIndex( &self, child_view_controller: &NSTitlebarAccessoryViewController, index: NSInteger )
Available on crate features
NSTitlebarAccessoryViewController
and NSViewController
only.pub unsafe fn removeTitlebarAccessoryViewControllerAtIndex( &self, index: NSInteger )
pub unsafe fn representedURL(&self) -> Option<Retained<NSURL>>
pub unsafe fn setRepresentedURL(&self, represented_url: Option<&NSURL>)
pub unsafe fn representedFilename(&self) -> Retained<NSString>
pub unsafe fn setRepresentedFilename(&self, represented_filename: &NSString)
pub unsafe fn setTitleWithRepresentedFilename(&self, filename: &NSString)
pub unsafe fn isExcludedFromWindowsMenu(&self) -> bool
pub unsafe fn setExcludedFromWindowsMenu( &self, excluded_from_windows_menu: bool )
pub fn contentView(&self) -> Option<Retained<NSView>>
Available on crate feature
NSView
only.pub fn setContentView(&self, content_view: Option<&NSView>)
Available on crate feature
NSView
only.pub unsafe fn delegate( &self ) -> Option<Retained<ProtocolObject<dyn NSWindowDelegate>>>
pub fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn NSWindowDelegate>> )
pub unsafe fn windowNumber(&self) -> NSInteger
pub fn styleMask(&self) -> NSWindowStyleMask
pub fn setStyleMask(&self, style_mask: NSWindowStyleMask)
pub unsafe fn fieldEditor_forObject( &self, create_flag: bool, object: Option<&AnyObject> ) -> Option<Retained<NSText>>
Available on crate features
NSText
and NSView
only.pub unsafe fn endEditingFor(&self, object: Option<&AnyObject>)
pub unsafe fn constrainFrameRect_toScreen( &self, frame_rect: NSRect, screen: Option<&NSScreen> ) -> NSRect
Available on crate feature
NSScreen
only.pub fn setFrame_display(&self, frame_rect: NSRect, flag: bool)
pub fn setContentSize(&self, size: NSSize)
pub unsafe fn setFrameOrigin(&self, point: NSPoint)
pub fn setFrameTopLeftPoint(&self, point: NSPoint)
pub unsafe fn cascadeTopLeftFromPoint(&self, top_left_point: NSPoint) -> NSPoint
pub fn frame(&self) -> NSRect
pub unsafe fn animationResizeTime(&self, new_frame: NSRect) -> NSTimeInterval
pub unsafe fn setFrame_display_animate( &self, frame_rect: NSRect, display_flag: bool, animate_flag: bool )
pub unsafe fn inLiveResize(&self) -> bool
pub unsafe fn resizeIncrements(&self) -> NSSize
pub fn setResizeIncrements(&self, resize_increments: NSSize)
pub unsafe fn aspectRatio(&self) -> NSSize
pub unsafe fn setAspectRatio(&self, aspect_ratio: NSSize)
pub fn contentResizeIncrements(&self) -> NSSize
pub fn setContentResizeIncrements(&self, content_resize_increments: NSSize)
pub unsafe fn contentAspectRatio(&self) -> NSSize
pub unsafe fn setContentAspectRatio(&self, content_aspect_ratio: NSSize)
pub unsafe fn viewsNeedDisplay(&self) -> bool
pub unsafe fn setViewsNeedDisplay(&self, views_need_display: bool)
pub unsafe fn displayIfNeeded(&self)
pub unsafe fn display(&self)
pub unsafe fn preservesContentDuringLiveResize(&self) -> bool
pub unsafe fn setPreservesContentDuringLiveResize( &self, preserves_content_during_live_resize: bool )
pub unsafe fn update(&self)
pub fn makeFirstResponder(&self, responder: Option<&NSResponder>) -> bool
pub fn firstResponder(&self) -> Option<Retained<NSResponder>>
pub unsafe fn resizeFlags(&self) -> NSEventModifierFlags
Available on crate feature
NSEvent
only.pub fn close(&self)
pub unsafe fn isReleasedWhenClosed(&self) -> bool
pub unsafe fn setReleasedWhenClosed(&self, released_when_closed: bool)
pub fn miniaturize(&self, sender: Option<&AnyObject>)
pub unsafe fn deminiaturize(&self, sender: Option<&AnyObject>)
pub fn isZoomed(&self) -> bool
pub fn zoom(&self, sender: Option<&AnyObject>)
pub fn isMiniaturized(&self) -> bool
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<Retained<AnyObject>>
Available on crate feature
NSPasteboard
only.pub unsafe fn backgroundColor(&self) -> Retained<NSColor>
Available on crate feature
NSColor
only.pub fn setBackgroundColor(&self, background_color: Option<&NSColor>)
Available on crate feature
NSColor
only.pub unsafe fn setContentBorderThickness_forEdge( &self, thickness: CGFloat, edge: NSRectEdge )
pub unsafe fn contentBorderThicknessForEdge(&self, edge: NSRectEdge) -> CGFloat
pub unsafe fn setAutorecalculatesContentBorderThickness_forEdge( &self, flag: bool, edge: NSRectEdge )
pub unsafe fn autorecalculatesContentBorderThicknessForEdge( &self, edge: NSRectEdge ) -> bool
pub unsafe fn isMovable(&self) -> bool
pub fn setMovable(&self, movable: bool)
pub unsafe fn isMovableByWindowBackground(&self) -> bool
pub fn setMovableByWindowBackground(&self, movable_by_window_background: bool)
pub unsafe fn hidesOnDeactivate(&self) -> bool
pub unsafe fn setHidesOnDeactivate(&self, hides_on_deactivate: bool)
pub unsafe fn canHide(&self) -> bool
pub unsafe fn setCanHide(&self, can_hide: bool)
pub fn center(&self)
pub fn makeKeyAndOrderFront(&self, sender: Option<&AnyObject>)
pub fn orderFront(&self, sender: Option<&AnyObject>)
pub unsafe fn orderBack(&self, sender: Option<&AnyObject>)
pub fn orderOut(&self, sender: Option<&AnyObject>)
pub unsafe fn orderWindow_relativeTo( &self, place: NSWindowOrderingMode, other_win: NSInteger )
Available on crate feature
NSGraphics
only.pub unsafe fn orderFrontRegardless(&self)
pub unsafe fn miniwindowImage(&self) -> Option<Retained<NSImage>>
Available on crate feature
NSImage
only.pub unsafe fn setMiniwindowImage(&self, miniwindow_image: Option<&NSImage>)
Available on crate feature
NSImage
only.pub unsafe fn miniwindowTitle(&self) -> Retained<NSString>
pub unsafe fn setMiniwindowTitle(&self, miniwindow_title: Option<&NSString>)
pub unsafe fn dockTile(&self) -> Retained<NSDockTile>
Available on crate feature
NSDockTile
only.pub fn isDocumentEdited(&self) -> bool
pub fn setDocumentEdited(&self, document_edited: bool)
pub fn isVisible(&self) -> bool
pub fn isKeyWindow(&self) -> bool
pub unsafe fn isMainWindow(&self) -> bool
pub unsafe fn canBecomeKeyWindow(&self) -> bool
pub unsafe fn canBecomeMainWindow(&self) -> bool
pub unsafe fn makeKeyWindow(&self)
pub unsafe fn makeMainWindow(&self)
pub unsafe fn becomeKeyWindow(&self)
pub unsafe fn resignKeyWindow(&self)
pub unsafe fn becomeMainWindow(&self)
pub unsafe fn resignMainWindow(&self)
pub unsafe fn worksWhenModal(&self) -> bool
pub unsafe fn preventsApplicationTerminationWhenModal(&self) -> bool
pub unsafe fn setPreventsApplicationTerminationWhenModal( &self, prevents_application_termination_when_modal: bool )
pub fn convertRectToScreen(&self, rect: NSRect) -> NSRect
pub unsafe fn convertRectFromScreen(&self, rect: NSRect) -> NSRect
pub unsafe fn convertPointToScreen(&self, point: NSPoint) -> NSPoint
pub fn convertPointFromScreen(&self, point: NSPoint) -> NSPoint
pub unsafe fn convertRectToBacking(&self, rect: NSRect) -> NSRect
pub unsafe fn convertRectFromBacking(&self, rect: NSRect) -> NSRect
pub unsafe fn convertPointToBacking(&self, point: NSPoint) -> NSPoint
pub unsafe fn convertPointFromBacking(&self, point: NSPoint) -> NSPoint
pub unsafe fn backingAlignedRect_options( &self, rect: NSRect, options: NSAlignmentOptions ) -> NSRect
pub fn backingScaleFactor(&self) -> CGFloat
pub unsafe fn performClose(&self, sender: Option<&AnyObject>)
pub unsafe fn performMiniaturize(&self, sender: Option<&AnyObject>)
pub unsafe fn performZoom(&self, sender: Option<&AnyObject>)
pub unsafe fn dataWithEPSInsideRect(&self, rect: NSRect) -> Retained<NSData>
pub unsafe fn dataWithPDFInsideRect(&self, rect: NSRect) -> Retained<NSData>
pub unsafe fn print(&self, sender: Option<&AnyObject>)
pub unsafe fn allowsToolTipsWhenApplicationIsInactive(&self) -> bool
pub unsafe fn setAllowsToolTipsWhenApplicationIsInactive( &self, allows_tool_tips_when_application_is_inactive: bool )
pub unsafe fn backingType(&self) -> NSBackingStoreType
Available on crate feature
NSGraphics
only.pub unsafe fn setBackingType(&self, backing_type: NSBackingStoreType)
Available on crate feature
NSGraphics
only.pub unsafe fn level(&self) -> NSWindowLevel
pub fn setLevel(&self, level: NSWindowLevel)
pub unsafe fn depthLimit(&self) -> NSWindowDepth
Available on crate feature
NSGraphics
only.pub unsafe fn setDepthLimit(&self, depth_limit: NSWindowDepth)
Available on crate feature
NSGraphics
only.pub unsafe fn setDynamicDepthLimit(&self, flag: bool)
pub unsafe fn hasDynamicDepthLimit(&self) -> bool
pub fn screen(&self) -> Option<Retained<NSScreen>>
Available on crate feature
NSScreen
only.pub unsafe fn deepestScreen(&self) -> Option<Retained<NSScreen>>
Available on crate feature
NSScreen
only.pub fn hasShadow(&self) -> bool
pub fn setHasShadow(&self, has_shadow: bool)
pub unsafe fn invalidateShadow(&self)
pub unsafe fn alphaValue(&self) -> CGFloat
pub unsafe fn setAlphaValue(&self, alpha_value: CGFloat)
pub unsafe fn isOpaque(&self) -> bool
pub fn setOpaque(&self, opaque: bool)
pub unsafe fn sharingType(&self) -> NSWindowSharingType
pub fn setSharingType(&self, sharing_type: NSWindowSharingType)
pub unsafe fn allowsConcurrentViewDrawing(&self) -> bool
pub unsafe fn setAllowsConcurrentViewDrawing( &self, allows_concurrent_view_drawing: bool )
pub unsafe fn displaysWhenScreenProfileChanges(&self) -> bool
pub unsafe fn setDisplaysWhenScreenProfileChanges( &self, displays_when_screen_profile_changes: bool )
pub unsafe fn disableScreenUpdatesUntilFlush(&self)
pub unsafe fn canBecomeVisibleWithoutLogin(&self) -> bool
pub unsafe fn setCanBecomeVisibleWithoutLogin( &self, can_become_visible_without_login: bool )
pub unsafe fn collectionBehavior(&self) -> NSWindowCollectionBehavior
pub unsafe fn setCollectionBehavior( &self, collection_behavior: NSWindowCollectionBehavior )
pub unsafe fn animationBehavior(&self) -> NSWindowAnimationBehavior
pub unsafe fn setAnimationBehavior( &self, animation_behavior: NSWindowAnimationBehavior )
pub unsafe fn isOnActiveSpace(&self) -> bool
pub fn toggleFullScreen(&self, sender: Option<&AnyObject>)
pub unsafe fn stringWithSavedFrame( &self ) -> Retained<NSWindowPersistableFrameDescriptor>
pub unsafe fn setFrameFromString( &self, string: &NSWindowPersistableFrameDescriptor )
pub unsafe fn saveFrameUsingName(&self, name: &NSWindowFrameAutosaveName)
pub unsafe fn setFrameUsingName_force( &self, name: &NSWindowFrameAutosaveName, force: bool ) -> bool
pub unsafe fn setFrameUsingName(&self, name: &NSWindowFrameAutosaveName) -> bool
pub unsafe fn setFrameAutosaveName( &self, name: &NSWindowFrameAutosaveName ) -> bool
pub unsafe fn frameAutosaveName(&self) -> Retained<NSWindowFrameAutosaveName>
pub unsafe fn minSize(&self) -> NSSize
pub fn setMinSize(&self, min_size: NSSize)
pub unsafe fn maxSize(&self) -> NSSize
pub fn setMaxSize(&self, max_size: NSSize)
pub unsafe fn contentMinSize(&self) -> NSSize
pub unsafe fn setContentMinSize(&self, content_min_size: NSSize)
pub unsafe fn contentMaxSize(&self) -> NSSize
pub unsafe fn setContentMaxSize(&self, content_max_size: NSSize)
pub unsafe fn minFullScreenContentSize(&self) -> NSSize
pub unsafe fn setMinFullScreenContentSize( &self, min_full_screen_content_size: NSSize )
pub unsafe fn maxFullScreenContentSize(&self) -> NSSize
pub unsafe fn setMaxFullScreenContentSize( &self, max_full_screen_content_size: NSSize )
pub unsafe fn deviceDescription( &self ) -> Retained<NSDictionary<NSDeviceDescriptionKey, AnyObject>>
Available on crate feature
NSGraphics
only.pub unsafe fn windowController(&self) -> Option<Retained<NSWindowController>>
Available on crate feature
NSWindowController
only.pub unsafe fn setWindowController( &self, window_controller: Option<&NSWindowController> )
Available on crate feature
NSWindowController
only.pub unsafe fn beginSheet_completionHandler( &self, sheet_window: &NSWindow, handler: Option<&Block<dyn Fn(NSModalResponse)>> )
Available on crate features
NSApplication
and block2
only.pub unsafe fn beginCriticalSheet_completionHandler( &self, sheet_window: &NSWindow, handler: Option<&Block<dyn Fn(NSModalResponse)>> )
Available on crate features
NSApplication
and block2
only.pub unsafe fn endSheet(&self, sheet_window: &NSWindow)
pub unsafe fn endSheet_returnCode( &self, sheet_window: &NSWindow, return_code: NSModalResponse )
Available on crate feature
NSApplication
only.pub unsafe fn sheets(&self) -> Retained<NSArray<NSWindow>>
pub unsafe fn attachedSheet(&self) -> Option<Retained<NSWindow>>
pub unsafe fn isSheet(&self) -> bool
pub unsafe fn sheetParent(&self) -> Option<Retained<NSWindow>>
pub fn standardWindowButton( &self, b: NSWindowButton ) -> Option<Retained<NSButton>>
Available on crate features
NSButton
and NSControl
and NSView
only.pub unsafe fn addChildWindow_ordered( &self, child_win: &NSWindow, place: NSWindowOrderingMode )
Available on crate feature
NSGraphics
only.pub unsafe fn removeChildWindow(&self, child_win: &NSWindow)
pub unsafe fn childWindows(&self) -> Option<Retained<NSArray<NSWindow>>>
pub unsafe fn parentWindow(&self) -> Option<Retained<NSWindow>>
pub unsafe fn setParentWindow(&self, parent_window: Option<&NSWindow>)
pub unsafe fn appearanceSource(&self) -> Option<Retained<NSObject>>
Available on crate feature
NSAppearance
only.pub unsafe fn setAppearanceSource(&self, appearance_source: Option<&NSObject>)
Available on crate feature
NSAppearance
only.pub unsafe fn colorSpace(&self) -> Option<Retained<NSColorSpace>>
Available on crate feature
NSColorSpace
only.pub unsafe fn setColorSpace(&self, color_space: Option<&NSColorSpace>)
Available on crate feature
NSColorSpace
only.pub unsafe fn canRepresentDisplayGamut( &self, display_gamut: NSDisplayGamut ) -> bool
Available on crate feature
NSGraphics
only.pub fn occlusionState(&self) -> NSWindowOcclusionState
pub unsafe fn titlebarSeparatorStyle(&self) -> NSTitlebarSeparatorStyle
pub unsafe fn setTitlebarSeparatorStyle( &self, titlebar_separator_style: NSTitlebarSeparatorStyle )
pub unsafe fn contentViewController(&self) -> Option<Retained<NSViewController>>
Available on crate feature
NSViewController
only.pub unsafe fn setContentViewController( &self, content_view_controller: Option<&NSViewController> )
Available on crate feature
NSViewController
only.pub fn performWindowDragWithEvent(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn initialFirstResponder(&self) -> Option<Retained<NSView>>
Available on crate feature
NSView
only.pub fn setInitialFirstResponder(&self, initial_first_responder: Option<&NSView>)
Available on crate feature
NSView
only.pub fn selectNextKeyView(&self, sender: Option<&AnyObject>)
pub fn selectPreviousKeyView(&self, sender: Option<&AnyObject>)
pub unsafe fn selectKeyViewFollowingView(&self, view: &NSView)
Available on crate feature
NSView
only.pub unsafe fn selectKeyViewPrecedingView(&self, view: &NSView)
Available on crate feature
NSView
only.pub unsafe fn keyViewSelectionDirection(&self) -> NSSelectionDirection
pub unsafe fn defaultButtonCell(&self) -> Option<Retained<NSButtonCell>>
Available on crate features
NSActionCell
and NSButtonCell
and NSCell
only.pub unsafe fn setDefaultButtonCell( &self, default_button_cell: Option<&NSButtonCell> )
Available on crate features
NSActionCell
and NSButtonCell
and NSCell
only.pub unsafe fn disableKeyEquivalentForDefaultButtonCell(&self)
pub unsafe fn enableKeyEquivalentForDefaultButtonCell(&self)
pub unsafe fn autorecalculatesKeyViewLoop(&self) -> bool
pub unsafe fn setAutorecalculatesKeyViewLoop( &self, autorecalculates_key_view_loop: bool )
pub unsafe fn recalculateKeyViewLoop(&self)
pub unsafe fn toolbar(&self) -> Option<Retained<NSToolbar>>
Available on crate feature
NSToolbar
only.pub unsafe fn setToolbar(&self, toolbar: Option<&NSToolbar>)
Available on crate feature
NSToolbar
only.pub unsafe fn toggleToolbarShown(&self, sender: Option<&AnyObject>)
pub unsafe fn runToolbarCustomizationPalette(&self, sender: Option<&AnyObject>)
pub unsafe fn showsToolbarButton(&self) -> bool
👎Deprecated: This property has no effect
pub unsafe fn setShowsToolbarButton(&self, shows_toolbar_button: bool)
👎Deprecated: This property has no effect
pub unsafe fn tabbingMode(&self) -> NSWindowTabbingMode
pub fn setTabbingMode(&self, tabbing_mode: NSWindowTabbingMode)
pub fn tabbingIdentifier(&self) -> Retained<NSWindowTabbingIdentifier>
pub fn setTabbingIdentifier( &self, tabbing_identifier: &NSWindowTabbingIdentifier )
pub fn selectNextTab(&self, sender: Option<&AnyObject>)
pub unsafe fn selectPreviousTab(&self, sender: Option<&AnyObject>)
pub unsafe fn moveTabToNewWindow(&self, sender: Option<&AnyObject>)
pub unsafe fn mergeAllWindows(&self, sender: Option<&AnyObject>)
pub unsafe fn toggleTabBar(&self, sender: Option<&AnyObject>)
pub unsafe fn toggleTabOverview(&self, sender: Option<&AnyObject>)
pub unsafe fn tabbedWindows(&self) -> Option<Retained<NSArray<NSWindow>>>
pub unsafe fn addTabbedWindow_ordered( &self, window: &NSWindow, ordered: NSWindowOrderingMode )
Available on crate feature
NSGraphics
only.pub unsafe fn tab(&self) -> Retained<NSWindowTab>
Available on crate feature
NSWindowTab
only.pub fn tabGroup(&self) -> Option<Retained<NSWindowTabGroup>>
Available on crate feature
NSWindowTabGroup
only.pub unsafe fn transferWindowSharingToWindow_completionHandler( &self, window: &NSWindow, completion_handler: &Block<dyn Fn(*mut NSError)> )
Available on crate feature
block2
only.pub unsafe fn hasActiveWindowSharingSession(&self) -> bool
pub unsafe fn windowTitlebarLayoutDirection( &self ) -> NSUserInterfaceLayoutDirection
Available on crate feature
NSUserInterfaceLayout
only.pub unsafe fn trackEventsMatchingMask_timeout_mode_handler( &self, mask: NSEventMask, timeout: NSTimeInterval, mode: &NSRunLoopMode, tracking_handler: &Block<dyn Fn(*mut NSEvent, NonNull<Bool>) + '_> )
Available on crate features
NSEvent
and block2
only.pub unsafe fn nextEventMatchingMask( &self, mask: NSEventMask ) -> Option<Retained<NSEvent>>
Available on crate feature
NSEvent
only.pub unsafe fn nextEventMatchingMask_untilDate_inMode_dequeue( &self, mask: NSEventMask, expiration: Option<&NSDate>, mode: &NSRunLoopMode, deq_flag: bool ) -> Option<Retained<NSEvent>>
Available on crate feature
NSEvent
only.pub unsafe fn discardEventsMatchingMask_beforeEvent( &self, mask: NSEventMask, last_event: Option<&NSEvent> )
Available on crate feature
NSEvent
only.pub unsafe fn postEvent_atStart(&self, event: &NSEvent, flag: bool)
Available on crate feature
NSEvent
only.pub fn sendEvent(&self, event: &NSEvent)
Available on crate feature
NSEvent
only.pub unsafe fn currentEvent(&self) -> Option<Retained<NSEvent>>
Available on crate feature
NSEvent
only.pub unsafe fn acceptsMouseMovedEvents(&self) -> bool
pub fn setAcceptsMouseMovedEvents(&self, accepts_mouse_moved_events: bool)
pub unsafe fn ignoresMouseEvents(&self) -> bool
pub fn setIgnoresMouseEvents(&self, ignores_mouse_events: bool)
pub unsafe fn mouseLocationOutsideOfEventStream(&self) -> NSPoint
pub unsafe fn disableCursorRects(&self)
pub unsafe fn enableCursorRects(&self)
pub unsafe fn discardCursorRects(&self)
pub unsafe fn areCursorRectsEnabled(&self) -> bool
pub fn invalidateCursorRectsForView(&self, view: &NSView)
Available on crate feature
NSView
only.pub unsafe fn resetCursorRects(&self)
pub unsafe fn dragImage_at_offset_event_pasteboard_source_slideBack( &self, image: &NSImage, base_location: NSPoint, initial_offset: NSSize, event: &NSEvent, pboard: &NSPasteboard, source_obj: &AnyObject, slide_flag: bool )
Available on crate features
NSEvent
and NSImage
and NSPasteboard
only.pub fn registerForDraggedTypes(&self, new_types: &NSArray<NSPasteboardType>)
Available on crate feature
NSPasteboard
only.pub unsafe fn unregisterDraggedTypes(&self)
pub unsafe fn windowRef(&self) -> NonNull<c_void>
pub unsafe fn cacheImageInRect(&self, rect: NSRect)
👎Deprecated: This method shouldn’t be used as it doesn’t work in all drawing situations; instead, a subview should be used that implements the desired drawing behavior
pub unsafe fn restoreCachedImage(&self)
👎Deprecated: This method shouldn’t be used as it doesn’t work in all drawing situations; instead, a subview should be used that implements the desired drawing behavior
pub unsafe fn discardCachedImage(&self)
👎Deprecated: This method shouldn’t be used as it doesn’t work in all drawing situations; instead, a subview should be used that implements the desired drawing behavior
pub unsafe fn gState(&self) -> NSInteger
👎Deprecated: This method is unused and should not be called.
pub unsafe fn convertBaseToScreen(&self, point: NSPoint) -> NSPoint
👎Deprecated: Use -convertRectToScreen: or -convertPointToScreen: instead
pub unsafe fn convertScreenToBase(&self, point: NSPoint) -> NSPoint
👎Deprecated: Use -convertRectFromScreen or -convertPointFromScreen: instead
pub unsafe fn userSpaceScaleFactor(&self) -> CGFloat
👎Deprecated: Use -convertRectToBacking: and -backingScaleFactor instead
pub unsafe fn useOptimizedDrawing(&self, flag: bool)
👎Deprecated: This method does not do anything and should not be called.
pub unsafe fn canStoreColor(&self) -> bool
👎Deprecated: This method does not do anything and should not be called.
pub unsafe fn disableFlushWindow(&self)
👎Deprecated: Use +[NSAnimationContext runAnimationGroup:completionHandler:] to perform atomic updates across runloop invocations.
pub unsafe fn enableFlushWindow(&self)
👎Deprecated: Use +[NSAnimationContext runAnimationGroup:completionHandler:] to perform atomic updates across runloop invocations.
pub unsafe fn isFlushWindowDisabled(&self) -> bool
👎Deprecated: Use +[NSAnimationContext runAnimationGroup:completionHandler:] to perform atomic updates across runloop invocations.
pub unsafe fn flushWindow(&self)
👎Deprecated: Allow AppKit’s automatic deferred display mechanism to take care of flushing any graphics contexts as needed.
pub unsafe fn flushWindowIfNeeded(&self)
👎Deprecated: Allow AppKit’s automatic deferred display mechanism to take care of flushing any graphics contexts as needed.
pub unsafe fn isAutodisplay(&self) -> bool
👎Deprecated: Use +[NSAnimationContext runAnimationGroup:completionHandler:] to temporarily prevent AppKit’s automatic deferred display mechanism from drawing.
pub unsafe fn setAutodisplay(&self, autodisplay: bool)
👎Deprecated: Use +[NSAnimationContext runAnimationGroup:completionHandler:] to temporarily prevent AppKit’s automatic deferred display mechanism from drawing.
pub unsafe fn graphicsContext(&self) -> Option<Retained<NSGraphicsContext>>
👎Deprecated: Add instances of NSView to display content in a window.
Available on crate feature
NSGraphicsContext
only.pub unsafe fn isOneShot(&self) -> bool
👎Deprecated: This property does not do anything and should not be used
pub unsafe fn setOneShot(&self, one_shot: bool)
👎Deprecated: This property does not do anything and should not be used
pub unsafe fn preferredBackingLocation(&self) -> NSWindowBackingLocation
👎Deprecated: This property does not do anything and should not be used
pub unsafe fn setPreferredBackingLocation( &self, preferred_backing_location: NSWindowBackingLocation )
👎Deprecated: This property does not do anything and should not be used
pub unsafe fn backingLocation(&self) -> NSWindowBackingLocation
👎Deprecated: This property does not do anything and should not be used
pub unsafe fn showsResizeIndicator(&self) -> bool
pub unsafe fn setShowsResizeIndicator(&self, shows_resize_indicator: bool)
pub unsafe fn isRestorable(&self) -> bool
Available on crate feature
NSWindowRestoration
only.pub unsafe fn setRestorable(&self, restorable: bool)
Available on crate feature
NSWindowRestoration
only.pub unsafe fn restorationClass(&self) -> Option<&'static AnyClass>
Available on crate feature
NSWindowRestoration
only.pub unsafe fn setRestorationClass(&self, restoration_class: Option<&AnyClass>)
Available on crate feature
NSWindowRestoration
only.pub unsafe fn disableSnapshotRestoration(&self)
Available on crate feature
NSWindowRestoration
only.pub unsafe fn enableSnapshotRestoration(&self)
Available on crate feature
NSWindowRestoration
only.pub fn hasCloseBox(&self) -> bool
Available on crate feature
NSWindowScripting
only.pub unsafe fn hasTitleBar(&self) -> bool
Available on crate feature
NSWindowScripting
only.pub unsafe fn isFloatingPanel(&self) -> bool
Available on crate feature
NSWindowScripting
only.pub fn isMiniaturizable(&self) -> bool
Available on crate feature
NSWindowScripting
only.pub unsafe fn isModalPanel(&self) -> bool
Available on crate feature
NSWindowScripting
only.pub fn isResizable(&self) -> bool
Available on crate feature
NSWindowScripting
only.pub unsafe fn isZoomable(&self) -> bool
Available on crate feature
NSWindowScripting
only.pub unsafe fn orderedIndex(&self) -> NSInteger
Available on crate feature
NSWindowScripting
only.pub unsafe fn setOrderedIndex(&self, ordered_index: NSInteger)
Available on crate feature
NSWindowScripting
only.pub unsafe fn setIsMiniaturized(&self, flag: bool)
Available on crate feature
NSWindowScripting
only.pub unsafe fn setIsVisible(&self, flag: bool)
Available on crate feature
NSWindowScripting
only.pub unsafe fn setIsZoomed(&self, flag: bool)
Available on crate feature
NSWindowScripting
only.pub unsafe fn handleCloseScriptCommand( &self, command: &NSCloseCommand ) -> Option<Retained<AnyObject>>
Available on crate feature
NSWindowScripting
only.pub unsafe fn handlePrintScriptCommand( &self, command: &NSScriptCommand ) -> Option<Retained<AnyObject>>
Available on crate feature
NSWindowScripting
only.pub unsafe fn handleSaveScriptCommand( &self, command: &NSScriptCommand ) -> Option<Retained<AnyObject>>
Available on crate feature
NSWindowScripting
only.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 )
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<NSPanel> for NSColorPanel
Available on crate feature NSColorPanel
only.
impl AsMut<NSPanel> for NSColorPanel
Available on crate feature
NSColorPanel
only.source§impl AsMut<NSPanel> for NSFontPanel
Available on crate feature NSFontPanel
only.
impl AsMut<NSPanel> for NSFontPanel
Available on crate feature
NSFontPanel
only.source§impl AsMut<NSPanel> for NSOpenPanel
Available on crate feature NSOpenPanel
only.
impl AsMut<NSPanel> for NSOpenPanel
Available on crate feature
NSOpenPanel
only.source§impl AsMut<NSPanel> for NSSavePanel
Available on crate feature NSSavePanel
only.
impl AsMut<NSPanel> for NSSavePanel
Available on crate feature
NSSavePanel
only.source§impl AsMut<NSResponder> for NSPanel
impl AsMut<NSResponder> for NSPanel
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<NSPanel> for NSColorPanel
Available on crate feature NSColorPanel
only.
impl AsRef<NSPanel> for NSColorPanel
Available on crate feature
NSColorPanel
only.source§impl AsRef<NSPanel> for NSFontPanel
Available on crate feature NSFontPanel
only.
impl AsRef<NSPanel> for NSFontPanel
Available on crate feature
NSFontPanel
only.source§impl AsRef<NSPanel> for NSOpenPanel
Available on crate feature NSOpenPanel
only.
impl AsRef<NSPanel> for NSOpenPanel
Available on crate feature
NSOpenPanel
only.source§impl AsRef<NSPanel> for NSSavePanel
Available on crate feature NSSavePanel
only.
impl AsRef<NSPanel> for NSSavePanel
Available on crate feature
NSSavePanel
only.source§impl AsRef<NSResponder> for NSPanel
impl AsRef<NSResponder> for NSPanel
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<NSPanel> for NSColorPanel
Available on crate feature NSColorPanel
only.
impl Borrow<NSPanel> for NSColorPanel
Available on crate feature
NSColorPanel
only.source§impl Borrow<NSPanel> for NSFontPanel
Available on crate feature NSFontPanel
only.
impl Borrow<NSPanel> for NSFontPanel
Available on crate feature
NSFontPanel
only.source§impl Borrow<NSPanel> for NSOpenPanel
Available on crate feature NSOpenPanel
only.
impl Borrow<NSPanel> for NSOpenPanel
Available on crate feature
NSOpenPanel
only.source§impl Borrow<NSPanel> for NSSavePanel
Available on crate feature NSSavePanel
only.
impl Borrow<NSPanel> for NSSavePanel
Available on crate feature
NSSavePanel
only.source§impl Borrow<NSResponder> for NSPanel
impl Borrow<NSResponder> for NSPanel
source§fn borrow(&self) -> &NSResponder
fn borrow(&self) -> &NSResponder
Immutably borrows from an owned value. Read more
source§impl BorrowMut<AnyObject> for NSPanel
impl BorrowMut<AnyObject> for NSPanel
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 NSPanel
impl BorrowMut<NSObject> for NSPanel
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<NSPanel> for NSColorPanel
Available on crate feature NSColorPanel
only.
impl BorrowMut<NSPanel> for NSColorPanel
Available on crate feature
NSColorPanel
only.source§fn borrow_mut(&mut self) -> &mut NSPanel
fn borrow_mut(&mut self) -> &mut NSPanel
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSPanel> for NSFontPanel
Available on crate feature NSFontPanel
only.
impl BorrowMut<NSPanel> for NSFontPanel
Available on crate feature
NSFontPanel
only.source§fn borrow_mut(&mut self) -> &mut NSPanel
fn borrow_mut(&mut self) -> &mut NSPanel
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSPanel> for NSOpenPanel
Available on crate feature NSOpenPanel
only.
impl BorrowMut<NSPanel> for NSOpenPanel
Available on crate feature
NSOpenPanel
only.source§fn borrow_mut(&mut self) -> &mut NSPanel
fn borrow_mut(&mut self) -> &mut NSPanel
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSPanel> for NSSavePanel
Available on crate feature NSSavePanel
only.
impl BorrowMut<NSPanel> for NSSavePanel
Available on crate feature
NSSavePanel
only.source§fn borrow_mut(&mut self) -> &mut NSPanel
fn borrow_mut(&mut self) -> &mut NSPanel
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSResponder> for NSPanel
impl BorrowMut<NSResponder> for NSPanel
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 BorrowMut<NSWindow> for NSPanel
impl BorrowMut<NSWindow> for NSPanel
source§fn borrow_mut(&mut self) -> &mut NSWindow
fn borrow_mut(&mut self) -> &mut NSWindow
Mutably borrows from an owned value. Read more
source§impl ClassType for NSPanel
impl ClassType for NSPanel
§type Mutability = MainThreadOnly
type Mutability = MainThreadOnly
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "NSPanel"
const NAME: &'static str = "NSPanel"
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 NSPanel
Available on crate feature NSAccessibilityProtocols
only.
impl NSAccessibility for NSPanel
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 NSPanel
Available on crate feature NSAccessibilityProtocols
only.
impl NSAccessibilityElementProtocol for NSPanel
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 NSAnimatablePropertyContainer for NSPanel
Available on crate feature NSAnimation
only.
impl NSAnimatablePropertyContainer for NSPanel
Available on crate feature
NSAnimation
only.unsafe fn animator(&self) -> Retained<Self>
unsafe fn animations( &self ) -> Retained<NSDictionary<NSAnimatablePropertyKey, AnyObject>>
unsafe fn setAnimations( &self, animations: &NSDictionary<NSAnimatablePropertyKey, AnyObject> )
unsafe fn animationForKey( &self, key: &NSAnimatablePropertyKey ) -> Option<Retained<AnyObject>>
unsafe fn defaultAnimationForKey( key: &NSAnimatablePropertyKey ) -> Option<Retained<AnyObject>>
source§impl NSAppearanceCustomization for NSPanel
Available on crate feature NSAppearance
only.
impl NSAppearanceCustomization for NSPanel
Available on crate feature
NSAppearance
only.unsafe fn appearance(&self) -> Option<Retained<NSAppearance>>
unsafe fn setAppearance(&self, appearance: Option<&NSAppearance>)
unsafe fn effectiveAppearance(&self) -> Retained<NSAppearance>
source§impl NSMenuItemValidation for NSPanel
Available on crate feature NSMenu
only.
impl NSMenuItemValidation for NSPanel
Available on crate feature
NSMenu
only.source§unsafe fn validateMenuItem(&self, menu_item: &NSMenuItem) -> bool
unsafe fn validateMenuItem(&self, menu_item: &NSMenuItem) -> bool
Available on crate feature
NSMenuItem
only.source§impl NSObjectProtocol for NSPanel
impl NSObjectProtocol for NSPanel
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 NSUserInterfaceItemIdentification for NSPanel
Available on crate feature NSUserInterfaceItemIdentification
only.
impl NSUserInterfaceItemIdentification for NSPanel
Available on crate feature
NSUserInterfaceItemIdentification
only.unsafe fn identifier(&self) -> Option<Retained<NSUserInterfaceItemIdentifier>>
unsafe fn setIdentifier( &self, identifier: Option<&NSUserInterfaceItemIdentifier> )
source§impl NSUserInterfaceValidations for NSPanel
Available on crate feature NSUserInterfaceValidation
only.
impl NSUserInterfaceValidations for NSPanel
Available on crate feature
NSUserInterfaceValidation
only.unsafe fn validateUserInterfaceItem( &self, item: &ProtocolObject<dyn NSValidatedUserInterfaceItem> ) -> bool
source§impl PartialEq for NSPanel
impl PartialEq for NSPanel
source§impl RefEncode for NSPanel
impl RefEncode for NSPanel
source§const ENCODING_REF: Encoding = <NSWindow as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSWindow as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for NSPanel
impl Message for NSPanel
impl StructuralPartialEq for NSPanel
Auto Trait Implementations§
impl !Freeze for NSPanel
impl !RefUnwindSafe for NSPanel
impl !Send for NSPanel
impl !Sync for NSPanel
impl !Unpin for NSPanel
impl !UnwindSafe for NSPanel
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