Trait cocoa::appkit::NSWindow

source ·
pub trait NSWindow: Sized {
Show 149 methods // Required methods unsafe fn initWithContentRect_styleMask_backing_defer_( 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; 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 ); 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; unsafe fn setAutorecalculatesContentBorderThickness_forEdge_( self, autorecalculateContentBorderThickness: BOOL, edge: NSRectEdge ) -> BOOL; unsafe fn contentBorderThicknessForEdge_(self, edge: NSRectEdge) -> CGFloat; unsafe fn setContentBorderThickness_forEdge_( 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; unsafe fn frameRectForContentRect_styleMask_( self, windowContentRect: NSRect, windowStyle: NSWindowStyleMask ) -> NSRect; unsafe fn minFrameWidthWithTitle_styleMask_( 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_display_animate_( self, windowFrame: NSRect, display: BOOL, animate: 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 ); 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 ); 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 toolbarStyle(self) -> NSWindowToolbarStyle; unsafe fn setToolbar_(self, toolbar: id); unsafe fn setToolbarStyle_(self, toolbarStyle: NSWindowToolbarStyle); unsafe fn runToolbarCustomizationPalette(self, sender: id); unsafe fn standardWindowButton_( self, windowButtonKind: NSWindowButton ) -> id; unsafe fn allowsAutomaticWindowTabbing(_: Self) -> BOOL; unsafe fn setAllowsAutomaticWindowTabbing_( _: 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 ); 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; unsafe fn backingScaleFactor(self) -> CGFloat; unsafe fn backingAlignedRect_options_( 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 isDocumentEdited(self) -> BOOL; 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 ); 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); unsafe fn setAppearance(self, appearance: id); // Provided method unsafe fn alloc(_: Self) -> id { ... }
}

Required Methods§

source

unsafe fn initWithContentRect_styleMask_backing_defer_( self, rect: NSRect, style: NSWindowStyleMask, backing: NSBackingStoreType, defer: BOOL ) -> id

source

unsafe fn initWithContentRect_styleMask_backing_defer_screen_( self, rect: NSRect, style: NSWindowStyleMask, backing: NSBackingStoreType, defer: BOOL, screen: id ) -> id

source

unsafe fn styleMask(self) -> NSWindowStyleMask

source

unsafe fn setStyleMask_(self, styleMask: NSWindowStyleMask)

source

unsafe fn toggleFullScreen_(self, sender: id)

source

unsafe fn worksWhenModal(self) -> BOOL

source

unsafe fn alphaValue(self) -> CGFloat

source

unsafe fn setAlphaValue_(self, windowAlpha: CGFloat)

source

unsafe fn backgroundColor(self) -> id

source

unsafe fn setBackgroundColor_(self, color: id)

source

unsafe fn colorSpace(self) -> id

source

unsafe fn setColorSpace_(self, colorSpace: id)

source

unsafe fn contentView(self) -> id

source

unsafe fn setContentView_(self, view: id)

source

unsafe fn canHide(self) -> BOOL

source

unsafe fn setCanHide_(self, canHide: BOOL)

source

unsafe fn hidesOnDeactivate(self) -> BOOL

source

unsafe fn setHidesOnDeactivate_(self, hideOnDeactivate: BOOL)

source

unsafe fn collectionBehavior(self) -> NSWindowCollectionBehavior

source

unsafe fn setCollectionBehavior_( self, collectionBehavior: NSWindowCollectionBehavior )

source

unsafe fn setOpaque_(self, opaque: BOOL)

source

unsafe fn hasShadow(self) -> BOOL

source

unsafe fn setHasShadow_(self, hasShadow: BOOL)

source

unsafe fn invalidateShadow(self)

source

unsafe fn autorecalculatesContentBorderThicknessForEdge_( self, edge: NSRectEdge ) -> BOOL

source

unsafe fn setAutorecalculatesContentBorderThickness_forEdge_( self, autorecalculateContentBorderThickness: BOOL, edge: NSRectEdge ) -> BOOL

source

unsafe fn contentBorderThicknessForEdge_(self, edge: NSRectEdge) -> CGFloat

source

unsafe fn setContentBorderThickness_forEdge_( self, borderThickness: CGFloat, edge: NSRectEdge )

source

unsafe fn delegate(self) -> id

source

unsafe fn setDelegate_(self, delegate: id)

source

unsafe fn preventsApplicationTerminationWhenModal(self) -> BOOL

source

unsafe fn setPreventsApplicationTerminationWhenModal_(self, flag: BOOL)

source

unsafe fn contentRectForFrameRect_styleMask_( self, windowFrame: NSRect, windowStyle: NSWindowStyleMask ) -> NSRect

source

unsafe fn frameRectForContentRect_styleMask_( self, windowContentRect: NSRect, windowStyle: NSWindowStyleMask ) -> NSRect

source

unsafe fn minFrameWidthWithTitle_styleMask_( self, windowTitle: id, windowStyle: NSWindowStyleMask ) -> CGFloat

source

unsafe fn contentRectForFrameRect_(self, windowFrame: NSRect) -> NSRect

source

unsafe fn frameRectForContentRect_(self, windowContent: NSRect) -> NSRect

source

unsafe fn drawers(self) -> id

source

unsafe fn windowController(self) -> id

source

unsafe fn setWindowController_(self, windowController: id)

source

unsafe fn frame(self) -> NSRect

source

unsafe fn setFrameOrigin_(self, point: NSPoint)

source

unsafe fn setFrameTopLeftPoint_(self, point: NSPoint)

source

unsafe fn constrainFrameRect_toScreen_(self, frameRect: NSRect, screen: id)

source

unsafe fn cascadeTopLeftFromPoint_(self, topLeft: NSPoint) -> NSPoint

source

unsafe fn setFrame_display_(self, windowFrame: NSRect, display: BOOL)

source

unsafe fn setFrame_display_animate_( self, windowFrame: NSRect, display: BOOL, animate: BOOL )

source

unsafe fn setFrame_displayViews_(self, windowFrame: NSRect, display: BOOL)

source

unsafe fn aspectRatio(self) -> NSSize

source

unsafe fn setAspectRatio_(self, aspectRatio: NSSize)

source

unsafe fn minSize(self) -> NSSize

source

unsafe fn setMinSize_(self, minSize: NSSize)

source

unsafe fn maxSize(self) -> NSSize

source

unsafe fn setMaxSize_(self, maxSize: NSSize)

source

unsafe fn performZoom_(self, sender: id)

source

unsafe fn zoom_(self, sender: id)

source

unsafe fn resizeFlags(self) -> NSInteger

source

unsafe fn showsResizeIndicator(self) -> BOOL

source

unsafe fn setShowsResizeIndicator_(self, showsResizeIndicator: BOOL)

source

unsafe fn resizeIncrements(self) -> NSSize

source

unsafe fn setResizeIncrements_(self, resizeIncrements: NSSize)

source

unsafe fn preservesContentDuringLiveResize(self) -> BOOL

source

unsafe fn setPreservesContentDuringLiveResize_( self, preservesContentDuringLiveResize: BOOL )

source

unsafe fn inLiveResize(self) -> BOOL

source

unsafe fn contentAspectRatio(self) -> NSSize

source

unsafe fn setContentAspectRatio_(self, contentAspectRatio: NSSize)

source

unsafe fn contentMinSize(self) -> NSSize

source

unsafe fn setContentMinSize_(self, contentMinSize: NSSize)

source

unsafe fn contentSize(self) -> NSSize

source

unsafe fn setContentSize_(self, contentSize: NSSize)

source

unsafe fn contentMaxSize(self) -> NSSize

source

unsafe fn setContentMaxSize_(self, contentMaxSize: NSSize)

source

unsafe fn contentResizeIncrements(self) -> NSSize

source

unsafe fn setContentResizeIncrements_(self, contentResizeIncrements: NSSize)

source

unsafe fn isVisible(self) -> BOOL

source

unsafe fn occlusionState(self) -> NSWindowOcclusionState

source

unsafe fn orderOut_(self, sender: id)

source

unsafe fn orderBack_(self, sender: id)

source

unsafe fn orderFront_(self, sender: id)

source

unsafe fn orderFrontRegardless(self)

source

unsafe fn orderFrontWindow_relativeTo_( self, orderingMode: NSWindowOrderingMode, otherWindowNumber: NSInteger )

source

unsafe fn level(self) -> NSInteger

source

unsafe fn setLevel_(self, level: NSInteger)

source

unsafe fn isKeyWindow(self) -> BOOL

source

unsafe fn canBecomeKeyWindow(self) -> BOOL

source

unsafe fn makeKeyWindow(self)

source

unsafe fn makeKeyAndOrderFront_(self, sender: id)

source

unsafe fn canBecomeMainWindow(self) -> BOOL

source

unsafe fn makeMainWindow(self)

source

unsafe fn toolbar(self) -> id

source

unsafe fn toolbarStyle(self) -> NSWindowToolbarStyle

source

unsafe fn setToolbar_(self, toolbar: id)

source

unsafe fn setToolbarStyle_(self, toolbarStyle: NSWindowToolbarStyle)

source

unsafe fn runToolbarCustomizationPalette(self, sender: id)

source

unsafe fn standardWindowButton_(self, windowButtonKind: NSWindowButton) -> id

source

unsafe fn allowsAutomaticWindowTabbing(_: Self) -> BOOL

source

unsafe fn setAllowsAutomaticWindowTabbing_( _: Self, allowsAutomaticWindowTabbing: BOOL )

source

unsafe fn tabbingIdentifier(self) -> id

source

unsafe fn tabbingMode(self) -> NSWindowTabbingMode

source

unsafe fn setTabbingMode_(self, tabbingMode: NSWindowTabbingMode)

source

unsafe fn addTabbedWindow_ordered_( self, window: id, ordering_mode: NSWindowOrderingMode )

source

unsafe fn toggleTabBar_(self, sender: id)

source

unsafe fn initialFirstResponder(self) -> id

source

unsafe fn firstResponder(self) -> id

source

unsafe fn setInitialFirstResponder_(self, responder: id)

source

unsafe fn makeFirstResponder_(self, responder: id) -> BOOL

source

unsafe fn keyDown_(self, event: id)

source

unsafe fn acceptsMouseMovedEvents(self) -> BOOL

source

unsafe fn ignoresMouseEvents(self) -> BOOL

source

unsafe fn setIgnoresMouseEvents_(self, ignoreMouseEvents: BOOL)

source

unsafe fn mouseLocationOutsideOfEventStream(self) -> NSPoint

source

unsafe fn setAcceptsMouseMovedEvents_(self, acceptMouseMovedEvents: BOOL)

source

unsafe fn windowNumberAtPoint_belowWindowWithWindowNumber_( _: Self, point: NSPoint, windowNumber: NSInteger ) -> NSInteger

source

unsafe fn backingScaleFactor(self) -> CGFloat

source

unsafe fn backingAlignedRect_options_( self, rect: NSRect, options: NSAlignmentOptions ) -> NSRect

source

unsafe fn convertRectFromBacking_(self, rect: NSRect) -> NSRect

source

unsafe fn convertRectToBacking_(self, rect: NSRect) -> NSRect

source

unsafe fn convertRectToScreen_(self, rect: NSRect) -> NSRect

source

unsafe fn convertRectFromScreen_(self, rect: NSRect) -> NSRect

source

unsafe fn isDocumentEdited(self) -> BOOL

source

unsafe fn setDocumentEdited_(self, documentEdited: BOOL)

source

unsafe fn title(self) -> id

source

unsafe fn setTitle_(self, title: id)

source

unsafe fn setTitleWithRepresentedFilename_(self, filePath: id)

source

unsafe fn setTitleVisibility_(self, visibility: NSWindowTitleVisibility)

source

unsafe fn setTitlebarAppearsTransparent_(self, transparent: BOOL)

source

unsafe fn representedFilename(self) -> id

source

unsafe fn setRepresentedFilename_(self, filePath: id)

source

unsafe fn representedURL(self) -> id

source

unsafe fn setRepresentedURL_(self, representedURL: id)

source

unsafe fn screen(self) -> id

source

unsafe fn deepestScreen(self) -> id

source

unsafe fn displaysWhenScreenProfileChanges(self) -> BOOL

source

unsafe fn setDisplaysWhenScreenProfileChanges_( self, displaysWhenScreenProfileChanges: BOOL )

source

unsafe fn setMovableByWindowBackground_(self, movableByWindowBackground: BOOL)

source

unsafe fn setMovable_(self, movable: BOOL)

source

unsafe fn center(self)

source

unsafe fn performClose_(self, sender: id)

source

unsafe fn close(self)

source

unsafe fn setReleasedWhenClosed_(self, releasedWhenClosed: BOOL)

source

unsafe fn performMiniaturize_(self, sender: id)

source

unsafe fn miniaturize_(self, sender: id)

source

unsafe fn deminiaturize_(self, sender: id)

source

unsafe fn miniwindowImage(self) -> id

source

unsafe fn setMiniwindowImage_(self, miniwindowImage: id)

source

unsafe fn miniwindowTitle(self) -> id

source

unsafe fn setMiniwindowTitle_(self, miniwindowTitle: id)

source

unsafe fn setAppearance(self, appearance: id)

Provided Methods§

source

unsafe fn alloc(_: Self) -> id

Implementors§