mirror of https://github.com/GNOME/gimp.git
libgimpcolor: Remove unnecessary GimpRGB Cairo functions
gimp_cairo_set_source_rgb () and gimp_cairo_set_source_rgba () are no longer used in the code base, so let's remove them as part of the move to GeglColor.
This commit is contained in:
parent
70ef4bb507
commit
1f5a5812dd
|
@ -43,44 +43,6 @@
|
|||
**/
|
||||
|
||||
|
||||
/**
|
||||
* gimp_cairo_set_source_rgb:
|
||||
* @cr: Cairo context
|
||||
* @color: GimpRGB 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: 2.6
|
||||
**/
|
||||
void
|
||||
gimp_cairo_set_source_rgb (cairo_t *cr,
|
||||
const 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: 2.6
|
||||
**/
|
||||
void
|
||||
gimp_cairo_set_source_rgba (cairo_t *cr,
|
||||
const GimpRGB *color)
|
||||
{
|
||||
cairo_set_source_rgba (cr, color->r, color->g, color->b, color->a);
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_cairo_checkerboard_create:
|
||||
* @cr: Cairo context
|
||||
|
|
|
@ -24,11 +24,6 @@
|
|||
#define __GIMP_CAIRO_H__
|
||||
|
||||
|
||||
void gimp_cairo_set_source_rgb (cairo_t *cr,
|
||||
const GimpRGB *color);
|
||||
void gimp_cairo_set_source_rgba (cairo_t *cr,
|
||||
const GimpRGB *color);
|
||||
|
||||
cairo_pattern_t * gimp_cairo_checkerboard_create (cairo_t *cr,
|
||||
gint size,
|
||||
const GeglColor *light,
|
||||
|
|
|
@ -7,8 +7,6 @@ EXPORTS
|
|||
gimp_bilinear_rgb
|
||||
gimp_bilinear_rgba
|
||||
gimp_cairo_checkerboard_create
|
||||
gimp_cairo_set_source_rgb
|
||||
gimp_cairo_set_source_rgba
|
||||
gimp_cairo_surface_create_buffer
|
||||
gimp_cairo_surface_get_format
|
||||
gimp_color_is_out_of_gamut
|
||||
|
|
Loading…
Reference in New Issue