ProjectM

Struct ProjectM 

Source
pub struct ProjectM { /* private fields */ }

Implementations§

Source§

impl ProjectM

Source

pub fn create() -> Self

Source

pub fn destroy(&self)

Source

pub fn load_preset_file(&self, filename: &str, smooth_transition: bool)

Source

pub fn load_preset_data(&self, data: &str, smooth_transition: bool)

Source

pub fn reset_textures(&self)

Source

pub fn get_version_components() -> (i32, i32, i32)

Source

pub fn get_version_string() -> String

Source

pub fn get_vcs_version_string() -> String

Source

pub fn set_preset_switch_requested_event_callback<F: FnMut(bool) + 'static>( &self, callback: F, )

Source

pub fn set_preset_switch_failed_event_callback<F: FnMut(String, String) + 'static>( &self, callback: F, )

Source

pub fn set_texture_search_paths( &self, texture_search_paths: &[String], count: usize, )

Source

pub fn get_beat_sensitivity(&self) -> f32

Source

pub fn set_beat_sensitivity(&self, sensitivity: f32)

Source

pub fn get_hard_cut_duration(&self) -> f64

Source

pub fn set_hard_cut_duration(&self, seconds: f64)

Source

pub fn get_hard_cut_enabled(&self) -> bool

Source

pub fn set_hard_cut_enabled(&self, enabled: bool)

Source

pub fn get_hard_cut_sensitivity(&self) -> f32

Source

pub fn set_hard_cut_sensitivity(&self, sensitivity: f32)

Source

pub fn get_soft_cut_duration(&self) -> f64

Source

pub fn set_soft_cut_duration(&self, seconds: f64)

Source

pub fn get_preset_duration(&self) -> f64

Source

pub fn set_preset_duration(&self, seconds: f64)

Source

pub fn get_mesh_size(&self) -> (usize, usize)

Source

pub fn set_mesh_size(&self, mesh_x: usize, mesh_y: usize)

Source

pub fn get_fps(&self) -> u32

Source

pub fn set_fps(&self, fps: u32)

Source

pub fn get_aspect_correction(&self) -> bool

Source

pub fn set_aspect_correction(&self, enabled: bool)

Source

pub fn get_easter_egg(&self) -> f32

Source

pub fn set_easter_egg(&self, sensitivity: f32)

Source

pub fn get_preset_locked(&self) -> bool

Source

pub fn set_preset_locked(&self, lock: bool)

Source

pub fn get_window_size(&self) -> (usize, usize)

Source

pub fn set_window_size(&self, width: usize, height: usize)

Source

pub fn render_frame(&self)

Source

pub fn touch( &self, x: f32, y: f32, pressure: i32, touch_type: ProjectMTouchType, )

Source

pub fn touch_drag(&self, x: f32, y: f32, pressure: i32)

Source

pub fn touch_destroy(&self, x: f32, y: f32)

Source

pub fn touch_destroy_all(&self)

Source

pub fn pcm_get_max_samples() -> u32

Source

pub fn pcm_add_float(&self, samples: &[f32], channels: ProjectMChannels)

Source

pub fn pcm_add_int16(&self, samples: &[i16], channels: ProjectMChannels)

Source

pub fn pcm_add_uint8(&self, samples: &[u8], channels: ProjectMChannels)

Source

pub fn write_debug_image_on_next_frame(&self, output_file: Option<&String>)

Source

pub fn get_instance(&self) -> Rc<RefCell<ProjectMHandle>>

Trait Implementations§

Source§

impl Clone for ProjectM

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Send for ProjectM

Source§

impl Sync for ProjectM

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V