[go: up one dir, main page]

Trait cocoa::appkit::NSWindow

source ·
pub trait NSWindow: Sized {
Show 148 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 alloc(_: Self) -> id { ... }
}

Required Methods

Provided Methods

Implementors