mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-22 20:05:41 +00:00
Implement Cairo.Context.PathExtents()
This exposes the cairo_path_extents() method, and is closely related to the existing StrokeExtents() method.
This commit is contained in:
parent
3b90cbf9f2
commit
b33208f716
|
@ -545,6 +545,14 @@ namespace Cairo {
|
|||
NativeMethods.cairo_append_path (handle, path.Handle);
|
||||
}
|
||||
|
||||
public Rectangle PathExtents ()
|
||||
{
|
||||
CheckDisposed ();
|
||||
double x1, y1, x2, y2;
|
||||
NativeMethods.cairo_path_extents (handle, out x1, out y1, out x2, out y2);
|
||||
return new Rectangle (x1, y1, x2 - x1, y2 - y1);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Painting Methods
|
||||
|
|
Loading…
Reference in a new issue