cairo: Added SetSourceColor method to Cairo.Context.

Cherry-picked from the gtk-sharp-2.12 branch.
This commit is contained in:
Mike Krüger 2013-08-14 06:08:13 +02:00 committed by Bertrand Lorentz
parent 6352e7d2db
commit 6e0efb08f2

View file

@ -159,7 +159,7 @@ namespace Cairo {
}
}
[Obsolete ("Use SetSourceRGBA method")]
[Obsolete ("Use SetSourceColor method")]
public Color Color {
set {
NativeMethods.cairo_set_source_rgba (handle, value.R, value.G, value.B, value.A);
@ -329,6 +329,11 @@ namespace Cairo {
get { return NativeMethods.cairo_get_reference_count (handle); }
}
public void SetSourceColor (Color color)
{
NativeMethods.cairo_set_source_rgba (handle, color.R, color.G, color.B, color.A);
}
public void SetSourceRGB (double r, double g, double b)
{
NativeMethods.cairo_set_source_rgb (handle, r, g, b);