ScaleButton
Object Hierarchy:
Gtk.ScaleButton
Gtk.ScaleButton
Gtk.ScaleButton
Gtk.Button
Gtk.Button
Gtk.Button->Gtk.ScaleButton
Gtk.Bin
Gtk.Bin
Gtk.Bin->Gtk.Button
Gtk.Container
Gtk.Container
Gtk.Container->Gtk.Bin
Gtk.Widget
Gtk.Widget
Gtk.Widget->Gtk.Container
GLib.InitiallyUnowned
GLib.InitiallyUnowned
GLib.InitiallyUnowned->Gtk.Widget
GLib.Object
GLib.Object
GLib.Object->GLib.InitiallyUnowned
Atk.Implementor
Atk.Implementor
Atk.Implementor->Gtk.ScaleButton
Atk.Implementor->Gtk.Button
Atk.Implementor->Gtk.Bin
Atk.Implementor->Gtk.Container
Atk.Implementor->Gtk.Widget
Gtk.Buildable
Gtk.Buildable
Gtk.Buildable->Gtk.ScaleButton
Gtk.Buildable->Gtk.Button
Gtk.Buildable->Gtk.Bin
Gtk.Buildable->Gtk.Container
Gtk.Buildable->Gtk.Widget
Gtk.Actionable
Gtk.Actionable
Gtk.Actionable->Gtk.ScaleButton
Gtk.Actionable->Gtk.Button
Gtk.Activatable
Gtk.Activatable
Gtk.Activatable->Gtk.ScaleButton
Gtk.Activatable->Gtk.Button
Gtk.Orientable
Gtk.Orientable
Gtk.Orientable->Gtk.ScaleButton
Description:
[
CCode ( type_id =
"gtk_scale_button_get_type ()" ) ]
public class ScaleButton :
Button ,
Implementor ,
Actionable ,
Activatable ,
Buildable ,
Orientable
ScaleButton 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
VolumeButton 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 Button
, it gets the .scale style class.
The popup widget that contains the scale has a .scale-popup style class.
Content:
Properties:
Creation methods:
Methods:
public unowned Adjustment get_adjustment ()
Gets the Adjustment
associated with the ScaleButton ’s scale.
public unowned Button get_minus_button ()
Retrieves the minus button of the ScaleButton
.
public unowned Button get_plus_button ()
Retrieves the plus button of the ScaleButton
.
public unowned Widget get_popup ()
Retrieves the popup of the ScaleButton .
public double get_value ()
Gets the current value of the scale button.
public void set_adjustment (Adjustment adjustment)
Sets the Adjustment to
be used as a model for the ScaleButton ’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; if the value is outside the
minimum or maximum range values, it will be clamped to fit inside them.
Signals:
public signal void popdown ()
The popdown signal is a keybinding
signal which gets emitted to popdown the scale widget.
public signal void popup ()
The popup signal is a keybinding signal
which gets emitted to popup the scale widget.
public virtual signal void value_changed (double value)
The value_changed signal is emitted when
the value field has changed.
Inherited Members:
All known members inherited from class Gtk.Button
All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Container
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 Atk.Implementor
All known members inherited from interface Gtk.Actionable
All known members inherited from interface Gtk.Activatable
All known members inherited from interface Gtk.Buildable
All known members inherited from interface Gtk.Orientable