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
Trait containing all GcFloat
methods.
Implementors
GcConverterNode
, GcFloatNode
, GcFloatRegNode
, GcFloat
, GcSwissKnifeNode
Required Methods§
sourcefn display_notation(&self) -> GcDisplayNotation
fn display_notation(&self) -> GcDisplayNotation
sourcefn display_precision(&self) -> i64
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.