Trait cocoa::appkit::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 { ... }
}

Required Methods§

source

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

source

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

source

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

source

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

source

unsafe fn name(self) -> id

source

unsafe fn volume(self) -> f32

source

unsafe fn currentTime(self) -> NSTimeInterval

source

unsafe fn loops(self) -> BOOL

source

unsafe fn playbackDeviceIdentifier(self) -> id

source

unsafe fn delegate(self) -> id

source

unsafe fn duration(self) -> NSTimeInterval

source

unsafe fn playing(self) -> BOOL

source

unsafe fn pause(self) -> BOOL

source

unsafe fn play(self) -> BOOL

source

unsafe fn resume(self) -> BOOL

source

unsafe fn stop(self) -> BOOL

source

unsafe fn writeToPasteboard_(self, pasteboard: id)

Provided Methods§

source

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

source

unsafe fn soundUnfilteredTypes(_: Self) -> id

source

unsafe fn soundNamed_(_: Self, soundName: id) -> id

Implementors§