mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 09:35:28 +00:00
[Cairo] Add missing ClipExtents (cairo_clip_extents) method.
This commit is contained in:
parent
887adc0340
commit
edd455ba02
|
@ -620,6 +620,14 @@ namespace Cairo {
|
||||||
NativeMethods.cairo_clip (handle);
|
NativeMethods.cairo_clip (handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Rectangle ClipExtents()
|
||||||
|
{
|
||||||
|
CheckDisposed();
|
||||||
|
double x1, y1, x2, y2;
|
||||||
|
NativeMethods.cairo_clip_extents(handle, out x1, out y1, out x2, out y2);
|
||||||
|
return new Rectangle(x1, y1, x2 - x1, y2 - y1);
|
||||||
|
}
|
||||||
|
|
||||||
public void ClipPreserve ()
|
public void ClipPreserve ()
|
||||||
{
|
{
|
||||||
CheckDisposed ();
|
CheckDisposed ();
|
||||||
|
|
Loading…
Reference in a new issue