cairo: Added SetSourceColor method to Cairo.Context.
Cherry-picked from the gtk-sharp-2.12 branch.
This commit is contained in:
parent
6352e7d2db
commit
6e0efb08f2
1 changed files with 6 additions and 1 deletions
|
@ -159,7 +159,7 @@ namespace Cairo {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Obsolete ("Use SetSourceRGBA method")]
|
[Obsolete ("Use SetSourceColor method")]
|
||||||
public Color Color {
|
public Color Color {
|
||||||
set {
|
set {
|
||||||
NativeMethods.cairo_set_source_rgba (handle, value.R, value.G, value.B, value.A);
|
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); }
|
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)
|
public void SetSourceRGB (double r, double g, double b)
|
||||||
{
|
{
|
||||||
NativeMethods.cairo_set_source_rgb (handle, r, g, b);
|
NativeMethods.cairo_set_source_rgb (handle, r, g, b);
|
||||||
|
|
Loading…
Reference in a new issue