Trait aravis::GcFloatExt

source ·
pub trait GcFloatExt: 'static {
    // Required methods
    fn display_notation(&self) -> GcDisplayNotation;
    fn display_precision(&self) -> i64;
    fn inc(&self) -> Result<f64, Error>;
    fn max(&self) -> Result<f64, Error>;
    fn min(&self) -> Result<f64, Error>;
    fn representation(&self) -> GcRepresentation;
    fn unit(&self) -> Option<GString>;
    fn value(&self) -> Result<f64, Error>;
    fn impose_max(&self, maximum: f64) -> Result<(), Error>;
    fn impose_min(&self, minimum: f64) -> Result<(), Error>;
    fn set_value(&self, value: f64) -> Result<(), Error>;
}
Expand description

Required Methods§

source

fn display_notation(&self) -> GcDisplayNotation

Get number display notation.

Returns

Number display notation as GcDisplayNotation.

source

fn display_precision(&self) -> i64

Gets number of digits to show in user interface. This number should always be positive and represent total number of digits on left and right side of decimal.

Returns

Number of digits to show.

source

fn inc(&self) -> Result<f64, Error>

source

fn max(&self) -> Result<f64, Error>

source

fn min(&self) -> Result<f64, Error>

source

fn representation(&self) -> GcRepresentation

Get number representation format.

Returns

Number representation format as GcRepresentation.

source

fn unit(&self) -> Option<GString>

source

fn value(&self) -> Result<f64, Error>

source

fn impose_max(&self, maximum: f64) -> Result<(), Error>

source

fn impose_min(&self, minimum: f64) -> Result<(), Error>

source

fn set_value(&self, value: f64) -> Result<(), Error>

Implementors§