[−][src]Trait gtk::ScaleButtonExt
Required methods
fn get_adjustment(&self) -> Adjustment
Gets the Adjustment
associated with the ScaleButton
’s scale.
See RangeExt::get_adjustment
for details.
Returns
the adjustment associated with the scale
fn get_minus_button(&self) -> Option<Button>
Retrieves the minus button of the ScaleButton
.
Returns
the minus button of the ScaleButton
as a Button
fn get_plus_button(&self) -> Option<Button>
Retrieves the plus button of the ScaleButton
.
Returns
the plus button of the ScaleButton
as a Button
fn get_popup(&self) -> Option<Widget>
fn get_value(&self) -> f64
fn set_adjustment<P: IsA<Adjustment>>(&self, adjustment: &P)
Sets the Adjustment
to be used as a model
for the ScaleButton
’s scale.
See RangeExt::set_adjustment
for details.
adjustment
a Adjustment
fn set_icons(&self, icons: &[&str])
Sets the icons to be used by the scale button.
For details, see the ScaleButton:icons
property.
icons
a None
-terminated array of icon names
fn set_value(&self, value: f64)
Sets the current value of the scale; if the value is outside
the minimum or maximum range values, it will be clamped to fit
inside them. The scale button emits the ScaleButton::value-changed
signal if the value changes.
value
new value of the scale button
fn get_property_icons(&self) -> Vec<GString>
The names of the icons to be used by the scale button. The first item in the array will be used in the button when the current value is the lowest value, the second item for the highest value. All the subsequent icons will be used for all the other values, spread evenly over the range of values.
If there's only one icon name in the icons
array, it will
be used for all the values. If only two icon names are in
the icons
array, the first one will be used for the bottom
50% of the scale, and the second one for the top 50%.
It is recommended to use at least 3 icons so that the
ScaleButton
reflects the current value of the scale
better for the users.
fn get_property_size(&self) -> IconSize
fn set_property_size(&self, size: IconSize)
fn connect_popdown<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
The ::popdown signal is a
[keybinding signal][BindingSignal
]
which gets emitted to popdown the scale widget.
The default binding for this signal is Escape.
fn emit_popdown(&self)
fn connect_popup<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
The ::popup signal is a
[keybinding signal][BindingSignal
]
which gets emitted to popup the scale widget.
The default bindings for this signal are Space, Enter and Return.
fn emit_popup(&self)
fn connect_value_changed<F: Fn(&Self, f64) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_adjustment_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_icons_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_size_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<ScaleButton>> ScaleButtonExt for O
[src]
fn get_adjustment(&self) -> Adjustment
[src]
fn get_minus_button(&self) -> Option<Button>
[src]
fn get_plus_button(&self) -> Option<Button>
[src]
fn get_popup(&self) -> Option<Widget>
[src]
fn get_value(&self) -> f64
[src]
fn set_adjustment<P: IsA<Adjustment>>(&self, adjustment: &P)
[src]
fn set_icons(&self, icons: &[&str])
[src]
fn set_value(&self, value: f64)
[src]
fn get_property_icons(&self) -> Vec<GString>
[src]
fn get_property_size(&self) -> IconSize
[src]
fn set_property_size(&self, size: IconSize)
[src]
fn connect_popdown<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
fn emit_popdown(&self)
[src]
fn connect_popup<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
fn emit_popup(&self)
[src]
fn connect_value_changed<F: Fn(&Self, f64) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_adjustment_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_icons_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_size_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