pub struct SliderCtrl { /* private fields */ }Expand description
Horizontal slider control rendered via AGG.
Renders 6 paths: background, triangle indicator, label text, pointer preview, active pointer, and step markers.
Port of C++ slider_ctrl_impl.
Implementations§
Source§impl SliderCtrl
impl SliderCtrl
pub fn new(x1: f64, y1: f64, x2: f64, y2: f64) -> Self
Sourcepub fn label(&mut self, fmt: &str)
pub fn label(&mut self, fmt: &str)
Set the label format string. Use %3.2f as placeholder for the value.
pub fn set_descending(&mut self, d: bool)
pub fn border_width(&mut self, t: f64, extra: f64)
pub fn text_thickness(&mut self, t: f64)
Trait Implementations§
Source§impl Ctrl for SliderCtrl
impl Ctrl for SliderCtrl
Source§impl VertexSource for SliderCtrl
impl VertexSource for SliderCtrl
Auto Trait Implementations§
impl Freeze for SliderCtrl
impl RefUnwindSafe for SliderCtrl
impl Send for SliderCtrl
impl Sync for SliderCtrl
impl Unpin for SliderCtrl
impl UnsafeUnpin for SliderCtrl
impl UnwindSafe for SliderCtrl
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