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.Orientable
Gtk.Orientable
Gtk.Orientable->Gtk.ScaleButton
Description:
[
CCode ( type_id =
"gtk_scale_button_get_type ()" ) ]
public class ScaleButton :
Widget ,
Accessible ,
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 [[email protected] ] subclass
that is tailored for this use case.
CSS nodes
`GtkScaleButton` has a single CSS node with name button. To differentiate it from a plain `GtkButton`, it gets the .scale style class.
Content:
Properties:
Creation methods:
Methods:
public unowned Adjustment get_adjustment ()
Gets the `GtkAdjustment` associated with the `GtkScaleButton`’s
scale.
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_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.Buildable
All known members inherited from interface Gtk.Orientable