[−][src]Trait gtk::prelude::LevelBarExt
Required methods
fn add_offset_value(&self, name: &str, value: f64)
Adds a new offset marker on self
at the position specified by value
.
When the bar value is in the interval topped by value
(or between value
and LevelBar:max-value
in case the offset is the last one on the bar)
a style class named level-``name
will be applied
when rendering the level bar fill.
If another offset marker named name
exists, its value will be
replaced by value
.
name
the name of the new offset
value
the value for the new offset
fn get_inverted(&self) -> bool
fn get_max_value(&self) -> f64
fn get_min_value(&self) -> f64
fn get_mode(&self) -> LevelBarMode
fn get_offset_value(&self, name: Option<&str>) -> Option<f64>
Fetches the value specified for the offset marker name
in self
,
returning true
in case an offset named name
was found.
name
the name of an offset in the bar
value
location where to store the value
Returns
true
if the specified offset is found
fn get_value(&self) -> f64
Returns the value of the LevelBar:value
property.
Returns
a value in the interval between
LevelBar:min-value
and LevelBar:max-value
fn remove_offset_value(&self, name: Option<&str>)
Removes an offset marker previously added with
LevelBarExt::add_offset_value
.
name
the name of an offset in the bar
fn set_inverted(&self, inverted: bool)
fn set_max_value(&self, value: f64)
Sets the value of the LevelBar:max-value
property.
You probably want to update preexisting level offsets after calling this function.
value
a positive value
fn set_min_value(&self, value: f64)
Sets the value of the LevelBar:min-value
property.
You probably want to update preexisting level offsets after calling this function.
value
a positive value
fn set_mode(&self, mode: LevelBarMode)
fn set_value(&self, value: f64)
Sets the value of the LevelBar:value
property.
value
a value in the interval between
LevelBar:min-value
and LevelBar:max-value
fn connect_offset_changed<F: Fn(&Self, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Emitted when an offset specified on the bar changes value as an
effect to LevelBarExt::add_offset_value
being called.
The signal supports detailed connections; you can connect to the detailed signal "changed::x" in order to only receive callbacks when the value of offset "x" changes.
name
the name of the offset that changed value
fn connect_property_inverted_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_max_value_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_min_value_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_value_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<LevelBar>> LevelBarExt for O
[src]
fn add_offset_value(&self, name: &str, value: f64)
[src]
fn get_inverted(&self) -> bool
[src]
fn get_max_value(&self) -> f64
[src]
fn get_min_value(&self) -> f64
[src]
fn get_mode(&self) -> LevelBarMode
[src]
fn get_offset_value(&self, name: Option<&str>) -> Option<f64>
[src]
fn get_value(&self) -> f64
[src]
fn remove_offset_value(&self, name: Option<&str>)
[src]
fn set_inverted(&self, inverted: bool)
[src]
fn set_max_value(&self, value: f64)
[src]
fn set_min_value(&self, value: f64)
[src]
fn set_mode(&self, mode: LevelBarMode)
[src]
fn set_value(&self, value: f64)
[src]
fn connect_offset_changed<F: Fn(&Self, &str) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_inverted_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_max_value_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_min_value_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_value_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId