class GtkColorSelection GtkVBox
{
policy; // GtkUpdateType : Read / Write
use_opacity; // gboolean : Read / Write
}
The .set_color method takes an array as its argument. The .get_color method returns a similar array. The elements of these arrays are:
| r | A percentage of red value, expressed as a decimal. |
| g | A percentage of green value, expressed as a decimal. |
| b | A percentage of blue value, expressed as a decimal. |
| opacity | A percentage of opacity, expressed as a decimal. |
For example, this call:
csd.colorsel.set_color(array(.25,.9,.8,.85));
would set the color of the csd GtkColorSelectionDialog to pale turqoise-green (25% red, 90% green, 80% blue), with 85% opacity.
| gtk_color_selection_dialog_get_type () -- replaces GTK_TYPE_COLOR_SELECTION_DIALOG |
| gtk_color_selection_dialog_new (title) |
| gtk_color_selection_get_type () -- replaces GTK_TYPE_COLOR_SELECTION |
| gtk_color_selection_new () |