[−][src]Trait cocoa::appkit::NSWindow
Required methods
unsafe fn initWithContentRect_styleMask_backing_defer_(
self,
rect: NSRect,
style: NSWindowStyleMask,
backing: NSBackingStoreType,
defer: BOOL
) -> id
self,
rect: NSRect,
style: NSWindowStyleMask,
backing: NSBackingStoreType,
defer: BOOL
) -> id
unsafe fn initWithContentRect_styleMask_backing_defer_screen_(
self,
rect: NSRect,
style: NSWindowStyleMask,
backing: NSBackingStoreType,
defer: BOOL,
screen: id
) -> id
self,
rect: NSRect,
style: NSWindowStyleMask,
backing: NSBackingStoreType,
defer: BOOL,
screen: id
) -> id
unsafe fn styleMask(self) -> NSWindowStyleMask
unsafe fn setStyleMask_(self, styleMask: NSWindowStyleMask)
unsafe fn toggleFullScreen_(self, sender: id)
unsafe fn worksWhenModal(self) -> BOOL
unsafe fn alphaValue(self) -> CGFloat
unsafe fn setAlphaValue_(self, windowAlpha: CGFloat)
unsafe fn backgroundColor(self) -> id
unsafe fn setBackgroundColor_(self, color: id)
unsafe fn colorSpace(self) -> id
unsafe fn setColorSpace_(self, colorSpace: id)
unsafe fn contentView(self) -> id
unsafe fn setContentView_(self, view: id)
unsafe fn canHide(self) -> BOOL
unsafe fn setCanHide_(self, canHide: BOOL)
unsafe fn hidesOnDeactivate(self) -> BOOL
unsafe fn setHidesOnDeactivate_(self, hideOnDeactivate: BOOL)
unsafe fn collectionBehavior(self) -> NSWindowCollectionBehavior
unsafe fn setCollectionBehavior_(
self,
collectionBehavior: NSWindowCollectionBehavior
)
self,
collectionBehavior: NSWindowCollectionBehavior
)
unsafe fn setOpaque_(self, opaque: BOOL)
unsafe fn hasShadow(self) -> BOOL
unsafe fn setHasShadow_(self, hasShadow: BOOL)
unsafe fn invalidateShadow(self)
unsafe fn autorecalculatesContentBorderThicknessForEdge_(
self,
edge: NSRectEdge
) -> BOOL
self,
edge: NSRectEdge
) -> BOOL
unsafe fn setAutorecalculatesContentBorderThickness_forEdge_(
self,
autorecalculateContentBorderThickness: BOOL,
edge: NSRectEdge
) -> BOOL
self,
autorecalculateContentBorderThickness: BOOL,
edge: NSRectEdge
) -> BOOL
unsafe fn contentBorderThicknessForEdge_(self, edge: NSRectEdge) -> CGFloat
unsafe fn setContentBorderThickness_forEdge_(
self,
borderThickness: CGFloat,
edge: NSRectEdge
)
self,
borderThickness: CGFloat,
edge: NSRectEdge
)
unsafe fn delegate(self) -> id
unsafe fn setDelegate_(self, delegate: id)
unsafe fn preventsApplicationTerminationWhenModal(self) -> BOOL
unsafe fn setPreventsApplicationTerminationWhenModal_(self, flag: BOOL)
unsafe fn contentRectForFrameRect_styleMask_(
self,
windowFrame: NSRect,
windowStyle: NSWindowStyleMask
) -> NSRect
self,
windowFrame: NSRect,
windowStyle: NSWindowStyleMask
) -> NSRect
unsafe fn frameRectForContentRect_styleMask_(
self,
windowContentRect: NSRect,
windowStyle: NSWindowStyleMask
) -> NSRect
self,
windowContentRect: NSRect,
windowStyle: NSWindowStyleMask
) -> NSRect
unsafe fn minFrameWidthWithTitle_styleMask_(
self,
windowTitle: id,
windowStyle: NSWindowStyleMask
) -> CGFloat
self,
windowTitle: id,
windowStyle: NSWindowStyleMask
) -> CGFloat
unsafe fn contentRectForFrameRect_(self, windowFrame: NSRect) -> NSRect
unsafe fn frameRectForContentRect_(self, windowContent: NSRect) -> NSRect
unsafe fn drawers(self) -> id
unsafe fn windowController(self) -> id
unsafe fn setWindowController_(self, windowController: id)
unsafe fn frame(self) -> NSRect
unsafe fn setFrameOrigin_(self, point: NSPoint)
unsafe fn setFrameTopLeftPoint_(self, point: NSPoint)
unsafe fn constrainFrameRect_toScreen_(self, frameRect: NSRect, screen: id)
unsafe fn cascadeTopLeftFromPoint_(self, topLeft: NSPoint) -> NSPoint
unsafe fn setFrame_display_(self, windowFrame: NSRect, display: BOOL)
unsafe fn setFrame_displayViews_(self, windowFrame: NSRect, display: BOOL)
unsafe fn aspectRatio(self) -> NSSize
unsafe fn setAspectRatio_(self, aspectRatio: NSSize)
unsafe fn minSize(self) -> NSSize
unsafe fn setMinSize_(self, minSize: NSSize)
unsafe fn maxSize(self) -> NSSize
unsafe fn setMaxSize_(self, maxSize: NSSize)
unsafe fn performZoom_(self, sender: id)
unsafe fn zoom_(self, sender: id)
unsafe fn resizeFlags(self) -> NSInteger
unsafe fn showsResizeIndicator(self) -> BOOL
unsafe fn setShowsResizeIndicator_(self, showsResizeIndicator: BOOL)
unsafe fn resizeIncrements(self) -> NSSize
unsafe fn setResizeIncrements_(self, resizeIncrements: NSSize)
unsafe fn preservesContentDuringLiveResize(self) -> BOOL
unsafe fn setPreservesContentDuringLiveResize_(
self,
preservesContentDuringLiveResize: BOOL
)
self,
preservesContentDuringLiveResize: BOOL
)
unsafe fn inLiveResize(self) -> BOOL
unsafe fn contentAspectRatio(self) -> NSSize
unsafe fn setContentAspectRatio_(self, contentAspectRatio: NSSize)
unsafe fn contentMinSize(self) -> NSSize
unsafe fn setContentMinSize_(self, contentMinSize: NSSize)
unsafe fn contentSize(self) -> NSSize
unsafe fn setContentSize_(self, contentSize: NSSize)
unsafe fn contentMaxSize(self) -> NSSize
unsafe fn setContentMaxSize_(self, contentMaxSize: NSSize)
unsafe fn contentResizeIncrements(self) -> NSSize
unsafe fn setContentResizeIncrements_(self, contentResizeIncrements: NSSize)
unsafe fn isVisible(self) -> BOOL
unsafe fn occlusionState(self) -> NSWindowOcclusionState
unsafe fn orderOut_(self, sender: id)
unsafe fn orderBack_(self, sender: id)
unsafe fn orderFront_(self, sender: id)
unsafe fn orderFrontRegardless(self)
unsafe fn orderFrontWindow_relativeTo_(
self,
orderingMode: NSWindowOrderingMode,
otherWindowNumber: NSInteger
)
self,
orderingMode: NSWindowOrderingMode,
otherWindowNumber: NSInteger
)
unsafe fn level(self) -> NSInteger
unsafe fn setLevel_(self, level: NSInteger)
unsafe fn isKeyWindow(self) -> BOOL
unsafe fn canBecomeKeyWindow(self) -> BOOL
unsafe fn makeKeyWindow(self)
unsafe fn makeKeyAndOrderFront_(self, sender: id)
unsafe fn canBecomeMainWindow(self) -> BOOL
unsafe fn makeMainWindow(self)
unsafe fn toolbar(self) -> id
unsafe fn setToolbar_(self, toolbar: id)
unsafe fn runToolbarCustomizationPalette(self, sender: id)
unsafe fn standardWindowButton_(self, windowButtonKind: NSWindowButton) -> id
unsafe fn allowsAutomaticWindowTabbing(_: Self) -> BOOL
unsafe fn setAllowsAutomaticWindowTabbing_(
_: Self,
allowsAutomaticWindowTabbing: BOOL
)
_: Self,
allowsAutomaticWindowTabbing: BOOL
)
unsafe fn tabbingIdentifier(self) -> id
unsafe fn tabbingMode(self) -> NSWindowTabbingMode
unsafe fn setTabbingMode_(self, tabbingMode: NSWindowTabbingMode)
unsafe fn addTabbedWindow_ordered_(
self,
window: id,
ordering_mode: NSWindowOrderingMode
)
self,
window: id,
ordering_mode: NSWindowOrderingMode
)
unsafe fn toggleTabBar_(self, sender: id)
unsafe fn initialFirstResponder(self) -> id
unsafe fn firstResponder(self) -> id
unsafe fn setInitialFirstResponder_(self, responder: id)
unsafe fn makeFirstResponder_(self, responder: id) -> BOOL
unsafe fn keyDown_(self, event: id)
unsafe fn acceptsMouseMovedEvents(self) -> BOOL
unsafe fn ignoresMouseEvents(self) -> BOOL
unsafe fn setIgnoresMouseEvents_(self, ignoreMouseEvents: BOOL)
unsafe fn mouseLocationOutsideOfEventStream(self) -> NSPoint
unsafe fn setAcceptsMouseMovedEvents_(self, acceptMouseMovedEvents: BOOL)
unsafe fn windowNumberAtPoint_belowWindowWithWindowNumber_(
self,
point: NSPoint,
windowNumber: NSInteger
) -> NSInteger
self,
point: NSPoint,
windowNumber: NSInteger
) -> NSInteger
unsafe fn backingScaleFactor(self) -> CGFloat
unsafe fn backingAlignedRect_options_(
self,
rect: NSRect,
options: NSAlignmentOptions
) -> NSRect
self,
rect: NSRect,
options: NSAlignmentOptions
) -> NSRect
unsafe fn convertRectFromBacking_(self, rect: NSRect) -> NSRect
unsafe fn convertRectToBacking_(self, rect: NSRect) -> NSRect
unsafe fn convertRectToScreen_(self, rect: NSRect) -> NSRect
unsafe fn convertRectFromScreen_(self, rect: NSRect) -> NSRect
unsafe fn setDocumentEdited_(self, documentEdited: BOOL)
unsafe fn title(self) -> id
unsafe fn setTitle_(self, title: id)
unsafe fn setTitleWithRepresentedFilename_(self, filePath: id)
unsafe fn setTitleVisibility_(self, visibility: NSWindowTitleVisibility)
unsafe fn setTitlebarAppearsTransparent_(self, transparent: BOOL)
unsafe fn representedFilename(self) -> id
unsafe fn setRepresentedFilename_(self, filePath: id)
unsafe fn representedURL(self) -> id
unsafe fn setRepresentedURL_(self, representedURL: id)
unsafe fn screen(self) -> id
unsafe fn deepestScreen(self) -> id
unsafe fn displaysWhenScreenProfileChanges(self) -> BOOL
unsafe fn setDisplaysWhenScreenProfileChanges_(
self,
displaysWhenScreenProfileChanges: BOOL
)
self,
displaysWhenScreenProfileChanges: BOOL
)
unsafe fn setMovableByWindowBackground_(self, movableByWindowBackground: BOOL)
unsafe fn setMovable_(self, movable: BOOL)
unsafe fn center(self)
unsafe fn performClose_(self, sender: id)
unsafe fn close(self)
unsafe fn setReleasedWhenClosed_(self, releasedWhenClosed: BOOL)
unsafe fn performMiniaturize_(self, sender: id)
unsafe fn miniaturize_(self, sender: id)
unsafe fn deminiaturize_(self, sender: id)
unsafe fn miniwindowImage(self) -> id
unsafe fn setMiniwindowImage_(self, miniwindowImage: id)
unsafe fn miniwindowTitle(self) -> id
unsafe fn setMiniwindowTitle_(self, miniwindowTitle: id)
Provided methods
Loading content...Implementors
impl NSWindow for id
[src]
unsafe fn initWithContentRect_styleMask_backing_defer_(
self,
rect: NSRect,
style: NSWindowStyleMask,
backing: NSBackingStoreType,
defer: BOOL
) -> id
[src]
self,
rect: NSRect,
style: NSWindowStyleMask,
backing: NSBackingStoreType,
defer: BOOL
) -> id
unsafe fn initWithContentRect_styleMask_backing_defer_screen_(
self,
rect: NSRect,
style: NSWindowStyleMask,
backing: NSBackingStoreType,
defer: BOOL,
screen: id
) -> id
[src]
self,
rect: NSRect,
style: NSWindowStyleMask,
backing: NSBackingStoreType,
defer: BOOL,
screen: id
) -> id
unsafe fn styleMask(self) -> NSWindowStyleMask
[src]
unsafe fn setStyleMask_(self, styleMask: NSWindowStyleMask)
[src]
unsafe fn toggleFullScreen_(self, sender: id)
[src]
unsafe fn worksWhenModal(self) -> BOOL
[src]
unsafe fn alphaValue(self) -> CGFloat
[src]
unsafe fn setAlphaValue_(self, windowAlpha: CGFloat)
[src]
unsafe fn backgroundColor(self) -> id
[src]
unsafe fn setBackgroundColor_(self, color: id)
[src]
unsafe fn colorSpace(self) -> id
[src]
unsafe fn setColorSpace_(self, colorSpace: id)
[src]
unsafe fn contentView(self) -> id
[src]
unsafe fn setContentView_(self, view: id)
[src]
unsafe fn canHide(self) -> BOOL
[src]
unsafe fn setCanHide_(self, canHide: BOOL)
[src]
unsafe fn hidesOnDeactivate(self) -> BOOL
[src]
unsafe fn setHidesOnDeactivate_(self, hideOnDeactivate: BOOL)
[src]
unsafe fn collectionBehavior(self) -> NSWindowCollectionBehavior
[src]
unsafe fn setCollectionBehavior_(
self,
collectionBehavior: NSWindowCollectionBehavior
)
[src]
self,
collectionBehavior: NSWindowCollectionBehavior
)
unsafe fn setOpaque_(self, opaque: BOOL)
[src]
unsafe fn hasShadow(self) -> BOOL
[src]
unsafe fn setHasShadow_(self, hasShadow: BOOL)
[src]
unsafe fn invalidateShadow(self)
[src]
unsafe fn autorecalculatesContentBorderThicknessForEdge_(
self,
edge: NSRectEdge
) -> BOOL
[src]
self,
edge: NSRectEdge
) -> BOOL
unsafe fn setAutorecalculatesContentBorderThickness_forEdge_(
self,
autorecalculateContentBorderThickness: BOOL,
edge: NSRectEdge
) -> BOOL
[src]
self,
autorecalculateContentBorderThickness: BOOL,
edge: NSRectEdge
) -> BOOL
unsafe fn contentBorderThicknessForEdge_(self, edge: NSRectEdge) -> CGFloat
[src]
unsafe fn setContentBorderThickness_forEdge_(
self,
borderThickness: CGFloat,
edge: NSRectEdge
)
[src]
self,
borderThickness: CGFloat,
edge: NSRectEdge
)
unsafe fn delegate(self) -> id
[src]
unsafe fn setDelegate_(self, delegate: id)
[src]
unsafe fn preventsApplicationTerminationWhenModal(self) -> BOOL
[src]
unsafe fn setPreventsApplicationTerminationWhenModal_(self, flag: BOOL)
[src]
unsafe fn contentRectForFrameRect_styleMask_(
self,
windowFrame: NSRect,
windowStyle: NSWindowStyleMask
) -> NSRect
[src]
self,
windowFrame: NSRect,
windowStyle: NSWindowStyleMask
) -> NSRect
unsafe fn frameRectForContentRect_styleMask_(
self,
windowContentRect: NSRect,
windowStyle: NSWindowStyleMask
) -> NSRect
[src]
self,
windowContentRect: NSRect,
windowStyle: NSWindowStyleMask
) -> NSRect
unsafe fn minFrameWidthWithTitle_styleMask_(
self,
windowTitle: id,
windowStyle: NSWindowStyleMask
) -> CGFloat
[src]
self,
windowTitle: id,
windowStyle: NSWindowStyleMask
) -> CGFloat
unsafe fn contentRectForFrameRect_(self, windowFrame: NSRect) -> NSRect
[src]
unsafe fn frameRectForContentRect_(self, windowContent: NSRect) -> NSRect
[src]
unsafe fn drawers(self) -> id
[src]
unsafe fn windowController(self) -> id
[src]
unsafe fn setWindowController_(self, windowController: id)
[src]
unsafe fn frame(self) -> NSRect
[src]
unsafe fn setFrameOrigin_(self, point: NSPoint)
[src]
unsafe fn setFrameTopLeftPoint_(self, point: NSPoint)
[src]
unsafe fn constrainFrameRect_toScreen_(self, frameRect: NSRect, screen: id)
[src]
unsafe fn cascadeTopLeftFromPoint_(self, topLeft: NSPoint) -> NSPoint
[src]
unsafe fn setFrame_display_(self, windowFrame: NSRect, display: BOOL)
[src]
unsafe fn setFrame_displayViews_(self, windowFrame: NSRect, display: BOOL)
[src]
unsafe fn aspectRatio(self) -> NSSize
[src]
unsafe fn setAspectRatio_(self, aspectRatio: NSSize)
[src]
unsafe fn minSize(self) -> NSSize
[src]
unsafe fn setMinSize_(self, minSize: NSSize)
[src]
unsafe fn maxSize(self) -> NSSize
[src]
unsafe fn setMaxSize_(self, maxSize: NSSize)
[src]
unsafe fn performZoom_(self, sender: id)
[src]
unsafe fn zoom_(self, sender: id)
[src]
unsafe fn resizeFlags(self) -> NSInteger
[src]
unsafe fn showsResizeIndicator(self) -> BOOL
[src]
unsafe fn setShowsResizeIndicator_(self, showsResizeIndicator: BOOL)
[src]
unsafe fn resizeIncrements(self) -> NSSize
[src]
unsafe fn setResizeIncrements_(self, resizeIncrements: NSSize)
[src]
unsafe fn preservesContentDuringLiveResize(self) -> BOOL
[src]
unsafe fn setPreservesContentDuringLiveResize_(
self,
preservesContentDuringLiveResize: BOOL
)
[src]
self,
preservesContentDuringLiveResize: BOOL
)
unsafe fn inLiveResize(self) -> BOOL
[src]
unsafe fn contentAspectRatio(self) -> NSSize
[src]
unsafe fn setContentAspectRatio_(self, contentAspectRatio: NSSize)
[src]
unsafe fn contentMinSize(self) -> NSSize
[src]
unsafe fn setContentMinSize_(self, contentMinSize: NSSize)
[src]
unsafe fn contentSize(self) -> NSSize
[src]
unsafe fn setContentSize_(self, contentSize: NSSize)
[src]
unsafe fn contentMaxSize(self) -> NSSize
[src]
unsafe fn setContentMaxSize_(self, contentMaxSize: NSSize)
[src]
unsafe fn contentResizeIncrements(self) -> NSSize
[src]
unsafe fn setContentResizeIncrements_(self, contentResizeIncrements: NSSize)
[src]
unsafe fn isVisible(self) -> BOOL
[src]
unsafe fn occlusionState(self) -> NSWindowOcclusionState
[src]
unsafe fn orderOut_(self, sender: id)
[src]
unsafe fn orderBack_(self, sender: id)
[src]
unsafe fn orderFront_(self, sender: id)
[src]
unsafe fn orderFrontRegardless(self)
[src]
unsafe fn orderFrontWindow_relativeTo_(
self,
ordering_mode: NSWindowOrderingMode,
other_window_number: NSInteger
)
[src]
self,
ordering_mode: NSWindowOrderingMode,
other_window_number: NSInteger
)
unsafe fn level(self) -> NSInteger
[src]
unsafe fn setLevel_(self, level: NSInteger)
[src]
unsafe fn isKeyWindow(self) -> BOOL
[src]
unsafe fn canBecomeKeyWindow(self) -> BOOL
[src]
unsafe fn makeKeyWindow(self)
[src]
unsafe fn makeKeyAndOrderFront_(self, sender: id)
[src]
unsafe fn canBecomeMainWindow(self) -> BOOL
[src]
unsafe fn makeMainWindow(self)
[src]
unsafe fn toolbar(self) -> id
[src]
unsafe fn setToolbar_(self, toolbar: id)
[src]
unsafe fn runToolbarCustomizationPalette(self, sender: id)
[src]
unsafe fn standardWindowButton_(self, windowButtonKind: NSWindowButton) -> id
[src]
unsafe fn allowsAutomaticWindowTabbing(_: Self) -> BOOL
[src]
unsafe fn setAllowsAutomaticWindowTabbing_(
_: Self,
allowsAutomaticWindowTabbing: BOOL
)
[src]
_: Self,
allowsAutomaticWindowTabbing: BOOL
)
unsafe fn tabbingIdentifier(self) -> id
[src]
unsafe fn tabbingMode(self) -> NSWindowTabbingMode
[src]
unsafe fn setTabbingMode_(self, tabbingMode: NSWindowTabbingMode)
[src]
unsafe fn addTabbedWindow_ordered_(
self,
window: id,
ordering_mode: NSWindowOrderingMode
)
[src]
self,
window: id,
ordering_mode: NSWindowOrderingMode
)
unsafe fn toggleTabBar_(self, sender: id)
[src]
unsafe fn initialFirstResponder(self) -> id
[src]
unsafe fn firstResponder(self) -> id
[src]
unsafe fn setInitialFirstResponder_(self, responder: id)
[src]
unsafe fn makeFirstResponder_(self, responder: id) -> BOOL
[src]
unsafe fn keyDown_(self, event: id)
[src]
unsafe fn acceptsMouseMovedEvents(self) -> BOOL
[src]
unsafe fn ignoresMouseEvents(self) -> BOOL
[src]
unsafe fn setIgnoresMouseEvents_(self, ignoreMouseEvents: BOOL)
[src]
unsafe fn mouseLocationOutsideOfEventStream(self) -> NSPoint
[src]
unsafe fn setAcceptsMouseMovedEvents_(self, acceptMouseMovedEvents: BOOL)
[src]
unsafe fn windowNumberAtPoint_belowWindowWithWindowNumber_(
self,
point: NSPoint,
windowNumber: NSInteger
) -> NSInteger
[src]
self,
point: NSPoint,
windowNumber: NSInteger
) -> NSInteger
unsafe fn backingScaleFactor(self) -> CGFloat
[src]
unsafe fn backingAlignedRect_options_(
self,
rect: NSRect,
options: NSAlignmentOptions
) -> NSRect
[src]
self,
rect: NSRect,
options: NSAlignmentOptions
) -> NSRect
unsafe fn convertRectFromBacking_(self, rect: NSRect) -> NSRect
[src]
unsafe fn convertRectToBacking_(self, rect: NSRect) -> NSRect
[src]
unsafe fn convertRectToScreen_(self, rect: NSRect) -> NSRect
[src]
unsafe fn convertRectFromScreen_(self, rect: NSRect) -> NSRect
[src]
unsafe fn setDocumentEdited_(self, documentEdited: BOOL)
[src]
unsafe fn title(self) -> id
[src]
unsafe fn setTitle_(self, title: id)
[src]
unsafe fn setTitleWithRepresentedFilename_(self, filePath: id)
[src]
unsafe fn setTitleVisibility_(self, visibility: NSWindowTitleVisibility)
[src]
unsafe fn setTitlebarAppearsTransparent_(self, transparent: BOOL)
[src]
unsafe fn representedFilename(self) -> id
[src]
unsafe fn setRepresentedFilename_(self, filePath: id)
[src]
unsafe fn representedURL(self) -> id
[src]
unsafe fn setRepresentedURL_(self, representedURL: id)
[src]
unsafe fn screen(self) -> id
[src]
unsafe fn deepestScreen(self) -> id
[src]
unsafe fn displaysWhenScreenProfileChanges(self) -> BOOL
[src]
unsafe fn setDisplaysWhenScreenProfileChanges_(
self,
displaysWhenScreenProfileChanges: BOOL
)
[src]
self,
displaysWhenScreenProfileChanges: BOOL
)