Struct libfmod::EventDescription
source · [−]pub struct EventDescription { /* private fields */ }
Implementations
sourceimpl 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) -> Result<(), Error>
pub fn get_id(&self) -> Result<Guid, Error>
pub fn get_path(&self, size: i32) -> Result<(String, i32), 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<(EventInstance, i32), 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: 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
sourceimpl Clone for EventDescription
impl Clone for EventDescription
sourcefn clone(&self) -> EventDescription
fn clone(&self) -> EventDescription
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EventDescription
impl Debug for EventDescription
impl Copy for EventDescription
Auto Trait Implementations
impl RefUnwindSafe for EventDescription
impl !Send for EventDescription
impl !Sync for EventDescription
impl Unpin for EventDescription
impl UnwindSafe for EventDescription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more