pub struct LoopEditor {
pub active: bool,
pub enabled: bool,
pub start_bar: u32,
pub end_bar: u32,
}Fields§
§active: boolWhether the loop editor is focused (controls locked to markers).
enabled: boolWhether the loop is enabled (playhead loops within the region).
start_bar: u32Start bar (1-based).
end_bar: u32End bar (1-based, exclusive — loop plays bars start..end).
Implementations§
Source§impl LoopEditor
impl LoopEditor
pub fn new() -> Self
Sourcepub fn toggle_enabled(&mut self)
pub fn toggle_enabled(&mut self)
Toggle the loop on/off. Called when user presses Enter on the loop.
Sourcepub fn move_start_left(&mut self)
pub fn move_start_left(&mut self)
Move the left (start) marker left by one bar.
Sourcepub fn move_start_right(&mut self)
pub fn move_start_right(&mut self)
Move the left (start) marker right by one bar. Cannot pass or equal the end marker.
Sourcepub fn move_end_left(&mut self)
pub fn move_end_left(&mut self)
Move the right (end) marker left by one bar. Cannot pass or equal the start marker.
Sourcepub fn move_end_right(&mut self)
pub fn move_end_right(&mut self)
Move the right (end) marker right by one bar.
Sourcepub fn start_ticks(&self) -> i64
pub fn start_ticks(&self) -> i64
Start tick for the transport.
Trait Implementations§
Source§impl Debug for LoopEditor
impl Debug for LoopEditor
Auto Trait Implementations§
impl Freeze for LoopEditor
impl RefUnwindSafe for LoopEditor
impl Send for LoopEditor
impl Sync for LoopEditor
impl Unpin for LoopEditor
impl UnsafeUnpin for LoopEditor
impl UnwindSafe for LoopEditor
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