cairo: Remove FormatStrideForWidth and PathExtents methods from Context

Those methods are not in Mono.Cairo, and are not necessary for Gtk#, so
I'm assuming they are not really needed.

The idea is to have the same API as Mono.Cairo shipped with mono, so if
you need those methods, get them first in Mono.Cairo available at
https://github.com/mono/mono

Also move the HasCurrentPoint property to its logical place in the
source, next to CurrentPoint.
This commit is contained in:
Bertrand Lorentz 2014-05-30 16:21:53 +02:00
parent ae624a0048
commit 34400a254b

View file

@ -314,6 +314,13 @@ namespace Cairo {
}
}
public bool HasCurrentPoint {
get {
CheckDisposed ();
return NativeMethods.cairo_has_current_point (handle);
}
}
[Obsolete ("Use GetTarget/SetTarget")]
public Cairo.Surface Target {
set {
@ -538,12 +545,6 @@ namespace Cairo {
NativeMethods.cairo_append_path (handle, path.Handle);
}
public void PathExtents (out double x1, out double y1, out double x2, out double y2)
{
CheckDisposed ();
NativeMethods.cairo_path_extents (handle, out x1, out y1, out x2, out y2);
}
#endregion
#region Painting Methods
@ -1024,17 +1025,5 @@ namespace Cairo {
return extents;
}
public static int FormatStrideForWidth (Format format, int width)
{
return NativeMethods.cairo_format_stride_for_width (format, width);
}
public bool HasCurrentPoint {
get {
CheckDisposed ();
return NativeMethods.cairo_has_current_point (handle);
}
}
}
}