[][src]Trait fltk::prelude::ValuatorTrait

pub trait ValuatorTrait: WidgetTrait {
    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);
fn round(&self, arg2: f64) -> f64;
fn clamp(&self, arg2: f64) -> f64;
fn increment(&mut self, arg2: f64, arg3: i32) -> f64; }

Defines the methods implemented by all valuator widgets

Required methods

fn set_bounds(&mut self, a: f64, b: f64)

Set bounds of a valuator

fn minimum(&self) -> f64

Get the minimum bound of a valuator

fn set_minimum(&mut self, a: f64)

Set the minimum bound of a valuator

fn maximum(&self) -> f64

Get the maximum bound of a valuator

fn set_maximum(&mut self, a: f64)

Set the maximum bound of a valuator

fn set_range(&mut self, a: f64, b: f64)

Set the range of a valuator

fn set_step(&mut self, a: f64, b: i32)

Set change step of a valuator

fn step(&self) -> f64

Get change step of a valuator

fn set_precision(&mut self, digits: i32)

Set the precision of a valuator

fn value(&self) -> f64

Get the value of a valuator

fn set_value(&mut self, arg2: f64)

Set the value of a valuator

fn format(&mut self, arg2: &str)

Set the format of a valuator

fn round(&self, arg2: f64) -> f64

Round the valuator

fn clamp(&self, arg2: f64) -> f64

Clamp the valuator

fn increment(&mut self, arg2: f64, arg3: i32) -> f64

Increment the valuator

Loading content...

Implementors

impl ValuatorTrait for Adjuster[src]

impl ValuatorTrait for Counter[src]

impl ValuatorTrait for Dial[src]

impl ValuatorTrait for Roller[src]

impl ValuatorTrait for Scrollbar[src]

impl ValuatorTrait for Slider[src]

impl ValuatorTrait for ValueInput[src]

impl ValuatorTrait for ValueSlider[src]

Loading content...