Description Methods and Functions Hierarchy Interfaces Detailed Description Structures Convenient Construction User Functions Signals Properties Author(s) References
A widget used to select a color
gtkColorSelectionNew(show = TRUE)
gtkColorSelectionSetUpdatePolicy(object, policy)
gtkColorSelectionSetHasOpacityControl(object, has.opacity)
gtkColorSelectionGetHasOpacityControl(object)
gtkColorSelectionSetHasPalette(object, has.palette)
gtkColorSelectionGetHasPalette(object)
gtkColorSelectionGetCurrentAlpha(object)
gtkColorSelectionSetCurrentAlpha(object, alpha)
gtkColorSelectionGetCurrentColor(object)
gtkColorSelectionSetCurrentColor(object, color)
gtkColorSelectionGetPreviousAlpha(object)
gtkColorSelectionSetPreviousAlpha(object, alpha)
gtkColorSelectionGetPreviousColor(object, color)
gtkColorSelectionSetPreviousColor(object, color)
gtkColorSelectionIsAdjusting(object)
gtkColorSelectionPaletteFromString(str)
gtkColorSelectionPaletteToString(colors)
gtkColorSelectionSetChangePaletteHook(func)
gtkColorSelectionSetChangePaletteWithScreenHook(func)
gtkColorSelectionSetColor(object, color)
gtkColorSelectionGetColor(object)
gtkColorSelection(show = TRUE)
1 2 3 4 5 6 7 8 | GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBox
+----GtkVBox
+----GtkColorSelection
|
GtkColorSelection implements
AtkImplementorIface, GtkBuildable
and GtkOrientable
.
The GtkColorSelection
is a widget that is used to select
a color. It consists of a color wheel and number of sliders
and entry boxes for color parameters such as hue, saturation,
value, red, green, blue, and opacity. It is found on the standard
color selection dialog box GtkColorSelectionDialog
.
GtkColorSelection
The GtkColorSelection
struct contains private data only,
and should be accessed using the functions below.
gtkColorSelection
is the equivalent of gtkColorSelectionNew
.
GtkColorSelectionChangePaletteFunc()
undocumented
GtkColorSelectionChangePaletteWithScreenFunc()
Since 2.2
color-changed(colorselection, user.data)
This signal is emitted when the color changes in the GtkColorSelection
according to its update policy.
colorselection
the object which received the signal.
user.data
user data set when the signal handler was connected.
current-alpha
[numeric : Read / Write]The current opacity value (0 fully transparent, 65535 fully opaque). Allowed values: <= 65535 Default value: 65535
current-color
[GdkColor
: * : Read / Write]The current color.
has-opacity-control
[logical : Read / Write]Whether the color selector should allow setting opacity. Default value: FALSE
has-palette
[logical : Read / Write]Whether a palette should be used. Default value: FALSE
Derived by RGtkGen from GTK+ documentation
https://developer.gnome.org/gtk2/stable/GtkColorSelection.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.