Description Methods and Functions Hierarchy Interfaces Detailed Description Structures Convenient Construction Signals Properties Author(s) References
A button which pops up a scale
gtkScaleButtonNew(size, min, max, step, icons, show = TRUE)
gtkScaleButtonSetAdjustment(object, adjustment)
gtkScaleButtonSetIcons(object, icons)
gtkScaleButtonSetValue(object, value)
gtkScaleButtonGetAdjustment(object)
gtkScaleButtonGetValue(object)
gtkScaleButtonGetPopup(object)
gtkScaleButtonGetPlusButton(object)
gtkScaleButtonGetMinusButton(object)
gtkScaleButtonSetOrientation(object, orientation)
gtkScaleButtonSetOrientation(object, orientation)
gtkScaleButtonGetOrientation(object)
gtkScaleButtonGetOrientation(object)
gtkScaleButton(size, min, max, step, icons, show = TRUE)
1 2 3 4 5 6 7 8 9 | GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkButton
+----GtkScaleButton
+----GtkVolumeButton
|
GtkScaleButton implements
AtkImplementorIface, GtkBuildable
, GtkActivatable
and GtkOrientable
.
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 GtkVolumeButton
subclass that
is tailored for this use case.
GtkScaleButton
undocumented
gtkScaleButton
is the equivalent of gtkScaleButtonNew
.
popdown(button, user.data)
The ::popdown signal is a keybinding signal which gets emitted to popdown the scale widget.
The default binding for this signal is Escape. Since 2.12
button
the object which received the signal
user.data
user data set when the signal handler was connected.
popup(button, user.data)
The ::popup signal is a keybinding signal which gets emitted to popup the scale widget.
The default bindings for this signal are Space, Enter and Return. Since 2.12
button
the object which received the signal
user.data
user data set when the signal handler was connected.
value-changed(button, value, user.data)
The ::value-changed signal is emitted when the value field has changed. Since 2.12
button
the object which received the signal
value
the new value
user.data
user data set when the signal handler was connected.
adjustment
[GtkAdjustment
: * : Read / Write]The GtkAdjustment that contains the current value of this scale button object.
icons
[character list : Read / Write]The names of the icons to be used by the scale button. The first item in the list 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
list, it will
be used for all the values. If only two icon names are in
the icons
list, 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
GtkScaleButton
reflects the current value of the scale
better for the users.
Since 2.12
size
[GtkIconSize
: Read / Write]The icon size. Default value: GTK_ICON_SIZE_SMALL_TOOLBAR
value
[numeric : Read / Write]The value of the scale. Default value: 0
Derived by RGtkGen from GTK+ documentation
https://developer.gnome.org/gtk2/stable/GtkScaleButton.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.