ScaleButton
Object Hierarchy:
Gtk.ScaleButton
Gtk.ScaleButton
Gtk.ScaleButton
Gtk.Widget
Gtk.Widget
Gtk.Widget->Gtk.ScaleButton
GLib.InitiallyUnowned
GLib.InitiallyUnowned
GLib.InitiallyUnowned->Gtk.Widget
GLib.Object
GLib.Object
GLib.Object->GLib.InitiallyUnowned
Gtk.Accessible
Gtk.Accessible
Gtk.Accessible->Gtk.ScaleButton
Gtk.Accessible->Gtk.Widget
Gtk.Buildable
Gtk.Buildable
Gtk.Buildable->Gtk.ScaleButton
Gtk.Buildable->Gtk.Widget
Gtk.ConstraintTarget
Gtk.ConstraintTarget
Gtk.ConstraintTarget->Gtk.ScaleButton
Gtk.ConstraintTarget->Gtk.Widget
Gtk.AccessibleRange
Gtk.AccessibleRange
Gtk.AccessibleRange->Gtk.ScaleButton
Gtk.Orientable
Gtk.Orientable
Gtk.Orientable->Gtk.ScaleButton
Description:
[
CCode ( type_id =
"gtk_scale_button_get_type ()" ) ]
public class ScaleButton :
Widget ,
Accessible ,
AccessibleRange ,
Buildable ,
ConstraintTarget ,
Orientable
`GtkScaleButton` provides a button which pops up a scale widget.
This kind of widget is commonly used for volume controls in multimedia applications, and GTK provides a [class@Gtk.VolumeButton] subclass
that is tailored for this use case.
CSS nodes
``` scalebutton.scale ╰── button.toggle ╰── <icon> ```
`GtkScaleButton` has a single CSS node with name scalebutton and `.scale` style class, and contains a `button` node with a `.toggle`
style class.
Content:
Properties:
public bool active { get ; }
If the scale button should be pressed in.
public Adjustment adjustment { get ; set ; }
The `GtkAdjustment` that is used as the model.
public bool has_frame { get ; set ; }
If the scale button has a frame.
public string [] icons { owned get ; set ; }
The names of the icons to be used by the scale button.
public double value { get ; set ; }
The value of the scale.
Creation methods:
Methods:
public bool get_active ()
Queries a `GtkScaleButton` and returns its current state.
public unowned Adjustment get_adjustment ()
Gets the `GtkAdjustment` associated with the `GtkScaleButton`’s
scale.
public bool get_has_frame ()
Returns whether the button has a frame.
public unowned Button get_minus_button ()
Retrieves the minus button of the `GtkScaleButton`.
public unowned Button get_plus_button ()
Retrieves the plus button of the `GtkScaleButton.
public unowned Widget get_popup ()
Retrieves the popup of the `GtkScaleButton`.
public double get_value ()
Gets the current value of the scale button.
public void set_adjustment (Adjustment adjustment)
Sets the `GtkAdjustment` to be used as a model for the
`GtkScaleButton`’s scale.
public void set_has_frame (bool has_frame)
Sets the style of the button.
public void set_icons (string [] icons)
Sets the icons to be used by the scale button.
public void set_value (double value)
Sets the current value of the scale.
Signals:
public signal void popdown ()
Emitted to dismiss the popup.
public signal void popup ()
Emitted to popup the scale widget.
public virtual signal void value_changed (double value)
Emitted when the value field has changed.
Inherited Members:
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Gtk.Accessible
All known members inherited from interface Gtk.AccessibleRange
All known members inherited from interface Gtk.Buildable
All known members inherited from interface Gtk.Orientable