pub struct ProjectM { /* private fields */ }
Implementations§
Source§impl ProjectM
impl ProjectM
pub fn create() -> Self
pub fn destroy(&self)
pub fn load_preset_file(&self, filename: &str, smooth_transition: bool)
pub fn load_preset_data(&self, data: &str, smooth_transition: bool)
pub fn reset_textures(&self)
pub fn get_version_components() -> (i32, i32, i32)
pub fn get_version_string() -> String
pub fn get_vcs_version_string() -> String
pub fn set_preset_switch_requested_event_callback<F: FnMut(bool) + 'static>( &self, callback: F, )
pub fn set_preset_switch_failed_event_callback<F: FnMut(String, String) + 'static>( &self, callback: F, )
pub fn set_texture_search_paths( &self, texture_search_paths: &[String], count: usize, )
pub fn get_beat_sensitivity(&self) -> f32
pub fn set_beat_sensitivity(&self, sensitivity: f32)
pub fn get_hard_cut_duration(&self) -> f64
pub fn set_hard_cut_duration(&self, seconds: f64)
pub fn get_hard_cut_enabled(&self) -> bool
pub fn set_hard_cut_enabled(&self, enabled: bool)
pub fn get_hard_cut_sensitivity(&self) -> f32
pub fn set_hard_cut_sensitivity(&self, sensitivity: f32)
pub fn get_soft_cut_duration(&self) -> f64
pub fn set_soft_cut_duration(&self, seconds: f64)
pub fn get_preset_duration(&self) -> f64
pub fn set_preset_duration(&self, seconds: f64)
pub fn get_mesh_size(&self) -> (usize, usize)
pub fn set_mesh_size(&self, mesh_x: usize, mesh_y: usize)
pub fn get_fps(&self) -> u32
pub fn set_fps(&self, fps: u32)
pub fn get_aspect_correction(&self) -> bool
pub fn set_aspect_correction(&self, enabled: bool)
pub fn get_easter_egg(&self) -> f32
pub fn set_easter_egg(&self, sensitivity: f32)
pub fn get_preset_locked(&self) -> bool
pub fn set_preset_locked(&self, lock: bool)
pub fn get_window_size(&self) -> (usize, usize)
pub fn set_window_size(&self, width: usize, height: usize)
pub fn render_frame(&self)
pub fn touch( &self, x: f32, y: f32, pressure: i32, touch_type: ProjectMTouchType, )
pub fn touch_drag(&self, x: f32, y: f32, pressure: i32)
pub fn touch_destroy(&self, x: f32, y: f32)
pub fn touch_destroy_all(&self)
pub fn pcm_get_max_samples() -> u32
pub fn pcm_add_float(&self, samples: &[f32], channels: ProjectMChannels)
pub fn pcm_add_int16(&self, samples: &[i16], channels: ProjectMChannels)
pub fn pcm_add_uint8(&self, samples: &[u8], channels: ProjectMChannels)
pub fn write_debug_image_on_next_frame(&self, output_file: Option<&String>)
pub fn get_instance(&self) -> Rc<RefCell<ProjectMHandle>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProjectM
impl !RefUnwindSafe for ProjectM
impl Unpin for ProjectM
impl !UnwindSafe for ProjectM
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