From 34400a254bd4d3303c13997768ac8ed8c29fd080 Mon Sep 17 00:00:00 2001 From: Bertrand Lorentz Date: Fri, 30 May 2014 16:21:53 +0200 Subject: [PATCH] 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. --- cairo/Context.cs | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/cairo/Context.cs b/cairo/Context.cs index fd3ea3c72..a5902e8c9 100644 --- a/cairo/Context.cs +++ b/cairo/Context.cs @@ -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); - } - } } }