pub struct EventDescription { /* private fields */ }Implementations§
Source§impl EventDescription
impl EventDescription
pub fn from(pointer: *mut FMOD_STUDIO_EVENTDESCRIPTION) -> Self
pub fn as_mut_ptr(&self) -> *mut FMOD_STUDIO_EVENTDESCRIPTION
pub fn is_valid(&self) -> bool
pub fn get_id(&self) -> Result<Guid, Error>
pub fn get_path(&self) -> Result<String, Error>
pub fn get_parameter_description_count(&self) -> Result<i32, Error>
pub fn get_parameter_description_by_index( &self, index: i32, ) -> Result<ParameterDescription, Error>
pub fn get_parameter_description_by_name( &self, name: &str, ) -> Result<ParameterDescription, Error>
pub fn get_parameter_description_by_id( &self, id: ParameterId, ) -> Result<ParameterDescription, Error>
pub fn get_parameter_label_by_index( &self, index: i32, labelindex: i32, size: i32, ) -> Result<(String, i32), Error>
pub fn get_parameter_label_by_name( &self, name: &str, labelindex: i32, size: i32, ) -> Result<(String, i32), Error>
pub fn get_parameter_label_by_id( &self, id: ParameterId, labelindex: i32, size: i32, ) -> Result<(String, i32), Error>
pub fn get_user_property_count(&self) -> Result<i32, Error>
pub fn get_user_property_by_index( &self, index: i32, ) -> Result<UserProperty, Error>
pub fn get_user_property(&self, name: &str) -> Result<UserProperty, Error>
pub fn get_length(&self) -> Result<i32, Error>
pub fn get_min_max_distance(&self) -> Result<(f32, f32), Error>
pub fn get_sound_size(&self) -> Result<f32, Error>
pub fn is_snapshot(&self) -> Result<bool, Error>
pub fn is_oneshot(&self) -> Result<bool, Error>
pub fn is_stream(&self) -> Result<bool, Error>
pub fn is_3d(&self) -> Result<bool, Error>
pub fn is_doppler_enabled(&self) -> Result<bool, Error>
pub fn has_sustain_point(&self) -> Result<bool, Error>
pub fn create_instance(&self) -> Result<EventInstance, Error>
pub fn get_instance_count(&self) -> Result<i32, Error>
pub fn get_instance_list( &self, capacity: i32, ) -> Result<Vec<EventInstance>, Error>
pub fn load_sample_data(&self) -> Result<(), Error>
pub fn unload_sample_data(&self) -> Result<(), Error>
pub fn get_sample_loading_state(&self) -> Result<LoadingState, Error>
pub fn release_all_instances(&self) -> Result<(), Error>
pub fn set_callback( &self, callback: FMOD_STUDIO_EVENT_CALLBACK, callbackmask: impl Into<FMOD_STUDIO_EVENT_CALLBACK_TYPE>, ) -> Result<(), Error>
pub fn get_user_data(&self) -> Result<*mut c_void, Error>
pub fn set_user_data(&self, userdata: *mut c_void) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for EventDescription
impl Clone for EventDescription
Source§fn clone(&self) -> EventDescription
fn clone(&self) -> EventDescription
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventDescription
impl Debug for EventDescription
impl Copy for EventDescription
impl Send for EventDescription
impl Sync for EventDescription
Auto Trait Implementations§
impl Freeze for EventDescription
impl RefUnwindSafe for EventDescription
impl Unpin for EventDescription
impl UnwindSafe for EventDescription
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more