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ยง
unsafe fn init(self) -> id
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn initWithFrame_(self, frameRect: NSRect) -> id
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn bounds(self) -> NSRect
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn frame(self) -> NSRect
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn setFrameSize(self, frameSize: NSSize)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn setFrameOrigin(self, frameOrigin: NSPoint)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn display_(self)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn setWantsBestResolutionOpenGLSurface_(self, flag: BOOL)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn convertPoint_fromView_(self, point: NSPoint, view: id) -> NSPoint
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn addSubview_(self, view: id)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn superview(self) -> id
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn removeFromSuperview(self)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn setAutoresizingMask_( self, autoresizingMask: NSAutoresizingMaskOptions, )
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn wantsLayer(self) -> BOOL
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn setWantsLayer(self, wantsLayer: BOOL)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn layer(self) -> id
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn setLayer(self, layer: id)
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn widthAnchor(self) -> id
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn heightAnchor(self) -> id
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn convertRectToBacking(self, rect: NSRect) -> NSRect
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn layerContentsPlacement(self) -> NSViewLayerContentsPlacement
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn setLayerContentsPlacement( self, placement: NSViewLayerContentsPlacement, )
๐Deprecated: use the objc2-app-kit crate instead
unsafe fn setAppearance(self, appearance: id)
๐Deprecated: use the objc2-app-kit crate instead
Provided Methodsยง
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.