Struct spectra::gui::ProgressBar
[−]
[src]
pub struct ProgressBar { /* fields omitted */ }
Methods
impl ProgressBar
[src]
fn new<PC, IC>(
x: f32,
y: f32,
w: f32,
h: f32,
progress_color: PC,
inactive_color: IC,
dur_sec: f32
) -> Rc<RefCell<Self>> where
PC: Into<RGBA>,
IC: Into<RGBA>,
x: f32,
y: f32,
w: f32,
h: f32,
progress_color: PC,
inactive_color: IC,
dur_sec: f32
) -> Rc<RefCell<Self>> where
PC: Into<RGBA>,
IC: Into<RGBA>,
fn add_listener(
&mut self,
key: &str,
listener: Rc<RefCell<ProgressBarListener>>
)
&mut self,
key: &str,
listener: Rc<RefCell<ProgressBarListener>>
)
Add a listener.
fn remove_listener(&mut self, key: &str)
Remove a listener.
fn set(&mut self, cursor: f32)
Set the cursor (seconds).
fn get(&self) -> f32
Get the cursor (seconds).