renamed gimp_cairo_set_source_color() to gimp_cairo_set_source_rgb() and
2007-12-12 Sven Neumann <sven@gimp.org> * libgimpwidgets/gimpcairo-utils.[ch]: renamed gimp_cairo_set_source_color() to gimp_cairo_set_source_rgb() and added an RGBA variant. * libgimpwidgets/gimpcellrenderercolor.c (gimp_cell_renderer_color_render) * app/widgets/gimpviewrenderer.c (gimp_view_renderer_draw): changed accordingly. * libgimpwidgets/gimpwidgets.def: updated. svn path=/trunk/; revision=24342
This commit is contained in:

committed by
Sven Neumann

parent
6f3b1c1e73
commit
dbb325eba6
@ -32,23 +32,40 @@
|
||||
|
||||
|
||||
/**
|
||||
* gimp_cairo_set_source_color:
|
||||
* gimp_cairo_set_source_rgb:
|
||||
* @cr: Cairo context
|
||||
* @color: GimpRGB color
|
||||
*
|
||||
* Sets the source pattern within @cr to the color described by @color.
|
||||
* Sets the source pattern within @cr to the solid opaque color
|
||||
* described by @color.
|
||||
*
|
||||
* This function calls cairo_set_source_rgb() for you.
|
||||
*
|
||||
* Since: GIMP 2.6
|
||||
**/
|
||||
void
|
||||
gimp_cairo_set_source_rgb (cairo_t *cr,
|
||||
GimpRGB *color)
|
||||
{
|
||||
cairo_set_source_rgb (cr, color->r, color->g, color->b);
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_cairo_set_source_rgba:
|
||||
* @cr: Cairo context
|
||||
* @color: GimpRGB color
|
||||
*
|
||||
* Sets the source pattern within @cr to the solid translucent color
|
||||
* described by @color.
|
||||
*
|
||||
* This function calls cairo_set_source_rgba() for you.
|
||||
*
|
||||
* Since: GIMP 2.6
|
||||
**/
|
||||
void
|
||||
gimp_cairo_set_source_color (cairo_t *cr,
|
||||
GimpRGB *color)
|
||||
gimp_cairo_set_source_rgba (cairo_t *cr,
|
||||
GimpRGB *color)
|
||||
{
|
||||
g_return_if_fail (cr != NULL);
|
||||
g_return_if_fail (color != NULL);
|
||||
|
||||
cairo_set_source_rgba (cr, color->r, color->g, color->b, color->a);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user