Trait fltk::prelude::ValuatorExt [−][src]
pub unsafe trait ValuatorExt: WidgetExt {
Show 15 methods
fn set_bounds(&mut self, a: f64, b: f64);
fn minimum(&self) -> f64;
fn set_minimum(&mut self, a: f64);
fn maximum(&self) -> f64;
fn set_maximum(&mut self, a: f64);
fn set_range(&mut self, a: f64, b: f64);
fn set_step(&mut self, a: f64, b: i32);
fn step(&self) -> f64;
fn set_precision(&mut self, digits: i32);
fn value(&self) -> f64;
fn set_value(&mut self, arg2: f64);
fn format(&mut self, arg2: &str) -> Result<(), FltkError>;
fn round(&self, arg2: f64) -> f64;
fn clamp(&self, arg2: f64) -> f64;
fn increment(&mut self, arg2: f64, arg3: i32) -> f64;
}
Expand description
Defines the methods implemented by all valuator widgets
Required methods
fn set_bounds(&mut self, a: f64, b: f64)
fn set_bounds(&mut self, a: f64, b: f64)
Set bounds of a valuator
fn set_minimum(&mut self, a: f64)
fn set_minimum(&mut self, a: f64)
Set the minimum bound of a valuator
fn set_maximum(&mut self, a: f64)
fn set_maximum(&mut self, a: f64)
Set the maximum bound of a valuator
Set change step of a valuator. Rounds to multiples of a/b, or no rounding if a is zero
fn set_precision(&mut self, digits: i32)
fn set_precision(&mut self, digits: i32)
Set the precision of a valuator