[go: up one dir, main page]

Trait NSSound

Source
pub trait NSSound: Sized {
Show 20 methods // Required methods unsafe fn initWithContentsOfFile_withReference_( self, filepath: id, byRef: BOOL, ) -> id; unsafe fn initWithContentsOfURL_withReference_( self, fileUrl: id, byRef: BOOL, ) -> id; unsafe fn initWithData_(self, audioData: id) -> id; unsafe fn initWithPasteboard_(self, pasteboard: id) -> id; unsafe fn name(self) -> id; unsafe fn volume(self) -> f32; unsafe fn currentTime(self) -> NSTimeInterval; unsafe fn loops(self) -> BOOL; unsafe fn playbackDeviceIdentifier(self) -> id; unsafe fn delegate(self) -> id; unsafe fn duration(self) -> NSTimeInterval; unsafe fn playing(self) -> BOOL; unsafe fn pause(self) -> BOOL; unsafe fn play(self) -> BOOL; unsafe fn resume(self) -> BOOL; unsafe fn stop(self) -> BOOL; unsafe fn writeToPasteboard_(self, pasteboard: id); // Provided methods unsafe fn canInitWithPasteboard_(_: Self, pasteboard: id) -> BOOL { ... } unsafe fn soundUnfilteredTypes(_: Self) -> id { ... } unsafe fn soundNamed_(_: Self, soundName: id) -> id { ... }
}
๐Ÿ‘ŽDeprecated: use the objc2-app-kit crate instead

Required Methodsยง

Source

unsafe fn initWithContentsOfFile_withReference_( self, filepath: id, byRef: BOOL, ) -> id

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

unsafe fn initWithContentsOfURL_withReference_( self, fileUrl: id, byRef: BOOL, ) -> id

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

unsafe fn initWithData_(self, audioData: id) -> id

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

unsafe fn initWithPasteboard_(self, pasteboard: id) -> id

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

unsafe fn name(self) -> id

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

unsafe fn volume(self) -> f32

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

unsafe fn currentTime(self) -> NSTimeInterval

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

unsafe fn loops(self) -> BOOL

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

unsafe fn playbackDeviceIdentifier(self) -> id

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

unsafe fn delegate(self) -> id

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

unsafe fn duration(self) -> NSTimeInterval

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

unsafe fn playing(self) -> BOOL

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

unsafe fn pause(self) -> BOOL

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

unsafe fn play(self) -> BOOL

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

unsafe fn resume(self) -> BOOL

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

unsafe fn stop(self) -> BOOL

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

unsafe fn writeToPasteboard_(self, pasteboard: id)

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

Provided Methodsยง

Source

unsafe fn canInitWithPasteboard_(_: Self, pasteboard: id) -> BOOL

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

unsafe fn soundUnfilteredTypes(_: Self) -> id

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

unsafe fn soundNamed_(_: Self, soundName: id) -> 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ยง