GtkColorButton {RGtk2} | R Documentation |
A button to launch a color selection dialog
gtkColorButtonNew(show = TRUE)
gtkColorButtonNewWithColor(color, show = TRUE)
gtkColorButtonSetColor(object, color)
gtkColorButtonGetColor(object)
gtkColorButtonSetAlpha(object, alpha)
gtkColorButtonGetAlpha(object)
gtkColorButtonSetUseAlpha(object, use.alpha)
gtkColorButtonGetUseAlpha(object)
gtkColorButtonSetTitle(object, title)
gtkColorButtonGetTitle(object)
gtkColorButton(color, show = TRUE)
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkButton +----GtkColorButton
GtkColorButton implements
AtkImplementorIface, GtkBuildable
and GtkActivatable
.
The GtkColorButton
is a button which displays the currently selected color
an allows to open a color selection dialog to change the color. It is suitable
widget for selecting a color in a preference dialog.
GtkColorButton
The GtkColorButton struct has only private fields and should not be used directly.
gtkColorButton
is the result of collapsing the constructors of GtkColorButton
(gtkColorButtonNew
, gtkColorButtonNewWithColor
) and accepts a subset of its arguments matching the required arguments of one of its delegate constructors.
color-set(widget, user.data)
The ::color-set signal is emitted when the user selects a color.
When handling this signal, use gtkColorButtonGetColor
and
gtkColorButtonGetAlpha
to find out which color was just selected.
Note that this signal is only emitted when the user changes the color. If you need to react to programmatic color changes as well, use the notify::color signal. Since 2.4
widget
the object which received the signal.
user.data
user data set when the signal handler was connected.
Derived by RGtkGen from GTK+ documentation
http://library.gnome.org/devel//gtk/GtkColorButton.html
GtkColorSelectionDialog
GtkFontButton