[go: up one dir, main page]

Trait NSView

Source
pub trait NSView: Sized {
Show 24 methods // Required methods unsafe fn init(self) -> id; unsafe fn initWithFrame_(self, frameRect: NSRect) -> id; unsafe fn bounds(self) -> NSRect; unsafe fn frame(self) -> NSRect; unsafe fn setFrameSize(self, frameSize: NSSize); unsafe fn setFrameOrigin(self, frameOrigin: NSPoint); unsafe fn display_(self); unsafe fn setWantsBestResolutionOpenGLSurface_(self, flag: BOOL); unsafe fn convertPoint_fromView_(self, point: NSPoint, view: id) -> NSPoint; unsafe fn addSubview_(self, view: id); unsafe fn superview(self) -> id; unsafe fn removeFromSuperview(self); unsafe fn setAutoresizingMask_( self, autoresizingMask: NSAutoresizingMaskOptions, ); unsafe fn wantsLayer(self) -> BOOL; unsafe fn setWantsLayer(self, wantsLayer: BOOL); unsafe fn layer(self) -> id; unsafe fn setLayer(self, layer: id); unsafe fn widthAnchor(self) -> id; unsafe fn heightAnchor(self) -> id; unsafe fn convertRectToBacking(self, rect: NSRect) -> NSRect; unsafe fn layerContentsPlacement(self) -> NSViewLayerContentsPlacement; unsafe fn setLayerContentsPlacement( self, placement: NSViewLayerContentsPlacement, ); unsafe fn setAppearance(self, appearance: id); // Provided method unsafe fn alloc(_: Self) -> id { ... }
}
๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead

Required Methodsยง

Source

unsafe fn init(self) -> id

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn initWithFrame_(self, frameRect: NSRect) -> id

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn bounds(self) -> NSRect

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn frame(self) -> NSRect

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn setFrameSize(self, frameSize: NSSize)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn setFrameOrigin(self, frameOrigin: NSPoint)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn display_(self)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn setWantsBestResolutionOpenGLSurface_(self, flag: BOOL)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn convertPoint_fromView_(self, point: NSPoint, view: id) -> NSPoint

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn addSubview_(self, view: id)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn superview(self) -> id

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn removeFromSuperview(self)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn setAutoresizingMask_( self, autoresizingMask: NSAutoresizingMaskOptions, )

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn wantsLayer(self) -> BOOL

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn setWantsLayer(self, wantsLayer: BOOL)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn layer(self) -> id

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn setLayer(self, layer: id)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn widthAnchor(self) -> id

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn heightAnchor(self) -> id

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

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

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn layerContentsPlacement(self) -> NSViewLayerContentsPlacement

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn setLayerContentsPlacement( self, placement: NSViewLayerContentsPlacement, )

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead
Source

unsafe fn setAppearance(self, appearance: id)

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead

Provided Methodsยง

Source

unsafe fn alloc(_: Self) -> id

๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead

Dyn Compatibilityยง

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementorsยง