pub struct Player { /* private fields */ }Implementations§
Source§impl Player
impl Player
pub fn new( beatmap: Beatmap, column_width: f32, note_size: f32, height: f32, ) -> Option<Self>
pub fn set_note_style(&mut self, style: NoteStyle)
pub fn get_required_size(&self) -> [f32; 2]
pub fn set_speed(&mut self, speed: f64)
pub fn set_scroll_time(&mut self, ms: f32)
pub fn render(&mut self, ui: &mut Ui)
pub fn render_at(&mut self, ui: &mut Ui, position: Pos2)
pub fn reset_time(&mut self)
pub fn set_current_time(&mut self, time_ms: f64)
pub fn current_time(&self) -> f64
Auto Trait Implementations§
impl Freeze for Player
impl RefUnwindSafe for Player
impl Send for Player
impl Sync for Player
impl Unpin for Player
impl UnwindSafe for Player
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