Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | gwy_color_swatch_new () |
void | gwy_color_swatch_set_color () |
void | gwy_color_swatch_get_color () |
void | gwy_color_swatch_set_use_alpha () |
gboolean | gwy_color_swatch_get_use_alpha () |
The widget is a simple rectangle displaying a colour, with some support for visualisation of the alpha value. It is usually not useful standalone, but can be a part of more complex colour manipulation widgets.
void gwy_color_swatch_set_color (GwyColorSwatch *swatch
,const GwyRGBA *color
);
Sets the current colour of a colour swatch.
void gwy_color_swatch_get_color (GwyColorSwatch *swatch
,GwyRGBA *color
);
Obtains the current colour of a colour swatch.
void gwy_color_swatch_set_use_alpha (GwyColorSwatch *swatch
,gboolean use_alpha
);
Sets whether the colour swatch should use the alpha channel.
gboolean
gwy_color_swatch_get_use_alpha (GwyColorSwatch *swatch
);
Reports whether the colour swatch uses the alpha channel.