Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | gwy_gradient_swatch_new () |
void | gwy_gradient_swatch_set_gradient () |
GwyGradient * | gwy_gradient_swatch_get_gradient () |
void | gwy_gradient_swatch_set_use_alpha () |
gboolean | gwy_gradient_swatch_get_use_alpha () |
The widget is a simple rectangle displaying a colour gradient, with some support for visualisation of the alpha value.
void gwy_gradient_swatch_set_gradient (GwyGradientSwatch *swatch
,GwyGradient *gradient
);
Sets the current gradient of a gradient swatch.
The gradient can be NULL
. The default gradient is then displayed, although it is not terribly useful.
GwyGradient *
gwy_gradient_swatch_get_gradient (GwyGradientSwatch *swatch
);
Obtains the current gradient displayed by a gradient swatch.
void gwy_gradient_swatch_set_use_alpha (GwyGradientSwatch *swatch
,gboolean use_alpha
);
Sets whether the gradient swatch should use the alpha channel.
gboolean
gwy_gradient_swatch_get_use_alpha (GwyGradientSwatch *swatch
);
Reports whether the gradient swatch uses the alpha channel.
struct GwyGradientSwatchClass { GtkWidgetClass parent_class; void (*reserved1)(void); void (*reserved2)(void); };
“gradient”
property“gradient” GwyGradient *
Color gradient to display.
Owner: GwyGradientSwatch
Flags: Read / Write