mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-10 22:25:40 +00:00
2004-04-01 Joshua Tauberer <tauberer@for.net>
* gdk/Gdk.metadata : hide Region.GetRectangles * gdk/Region.custom : implement Rectangles prop [fixes #55811] svn path=/trunk/gtk-sharp/; revision=24912
This commit is contained in:
parent
f445ce3b19
commit
80824aafa7
|
@ -1,3 +1,8 @@
|
|||
2004-04-01 Joshua Tauberer <tauberer@for.net>
|
||||
|
||||
* gdk/Gdk.metadata : hide Region.GetRectangles
|
||||
* gdk/Region.custom : implement Rectangles prop [fixes #55811]
|
||||
|
||||
2004-04-01 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* glib/Value.cs : NULL check for g_value_get_string Thanks to Jeroen
|
||||
|
|
171
gdk/Gdk.metadata
171
gdk/Gdk.metadata
|
@ -1,90 +1,91 @@
|
|||
<?xml version="1.0"?>
|
||||
<metadata>
|
||||
<attr path="//boxed[@cname='GdkColor']/method[@name='Copy']" name="hidden">1</attr>
|
||||
<attr path="//boxed[@cname='GdkColor']/method[@name='Free']" name="hidden">1</attr>
|
||||
<attr path="//boxed[@cname='GdkColor']/method[@name='Hash']" name="hidden">1</attr>
|
||||
<attr path="//boxed[@cname='GdkColor']/method[@name='Parse']/return-type" name="type">gboolean</attr>
|
||||
<attr path="//boxed[@cname='GdkColor']/method[@name='Parse']/*/*[@type='GdkColor*']" name="pass_as">ref</attr>
|
||||
<attr path="//boxed[@cname='GdkCursor']" name="opaque">1</attr>
|
||||
<attr path="//callback[@cname='GdkPixbufDestroyNotify']/*/*[@type='guchar*']" name="array">1</attr>
|
||||
<attr path="//class[@cname='GdkDrag_']/method[@name='Begin']" name="hidden">1</attr>
|
||||
<attr path="//class[@cname='GdkEvent_']" name="name">EventHelper</attr>
|
||||
<attr path="//class[@cname='GdkGlobal']/method[@name='DevicesList']" name="hidden">1</attr>
|
||||
<attr path="//class[@cname='GdkGlobal']/method[@name='ListVisuals']" name="hidden">1</attr>
|
||||
<attr path="//class[@cname='GdkPango_']" name="name">PangoHelper</attr>
|
||||
<attr path="//class[@cname='GdkPixbuf_']" name="hidden">1</attr>
|
||||
<attr path="//class[@cname='GdkPointer_']/method[@name='Grab']/*/*[@name='confine_to']" name="null_ok">1</attr>
|
||||
<attr path="//class[@cname='GdkPointer_']/method[@name='Grab']/*/*[@name='cursor']" name="null_ok">1</attr>
|
||||
<attr path="//object[@cname='GdkBitmap']" name="parent">GdkDrawable</attr>
|
||||
<attr path="//object[@cname='GdkColormap']/method[@name='AllocColor']/*/*[@type='GdkColor*']" name="pass_as">ref</attr>
|
||||
<attr path="//object[@cname='GdkColormap']/method[@name='AllocColors']/*/*[@type='GdkColor*']" name="array">1</attr>
|
||||
<attr path="//object[@cname='GdkColormap']/method[@name='AllocColors']/*/*[@name='success']" name="array">1</attr>
|
||||
<attr path="//object[@cname='GdkColormap']/method[@name='QueryColor']/*/*[@type='GdkColor*']" name="pass_as">ref</attr>
|
||||
<attr path="//object[@cname='GdkColormap']/method[@name='FreeColors']/*/*[@type='GdkColor*']" name="array">1</attr>
|
||||
<attr path="//object[@cname='GdkDisplay']/method[@name='ListDevices']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkDisplayManager']/method[@name='ListDisplays']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkDrawable']/method[@name='DrawLines']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkDrawable']/method[@name='DrawPolygon']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkDrawable']/method[@name='GetSize']/*/*[@type='gint*']" name="pass_as">out</attr>
|
||||
<attr path="//object[@cname='GdkPixbuf']/constructor[@cname='gdk_pixbuf_new_from_data']/*/*[@name='data']" name="array">1</attr>
|
||||
<attr path="//object[@cname='GdkPixbuf']/constructor[@cname='gdk_pixbuf_new_from_file']" name="preferred">1</attr>
|
||||
<attr path="//object[@cname='GdkPixbuf']/constructor[@cname='gdk_pixbuf_new_from_inline']/*/*[@name='data']" name="array">1</attr>
|
||||
<attr path="//object[@cname='GdkPixbuf']/constructor[@cname='gdk_pixbuf_new_from_xpm_data']/*/*[@name='data']" name="array">1</attr>
|
||||
<attr path="//object[@cname='GdkPixbuf']/method[@name='AddAlpha']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkPixbuf']/method[@name='CompositeColorSimple']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkPixbuf']/method[@name='GetFromDrawable']" name="library">libgdk-win32-2.0-0.dll</attr>
|
||||
<attr path="//object[@cname='GdkPixbuf']/method[@name='GetFormats']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkPixbuf']/method[@name='GetFromImage']" name="library">libgdk-win32-2.0-0.dll</attr>
|
||||
<attr path="//object[@cname='GdkPixbuf']/method[@name='GetPixels']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkPixbuf']/method[@name='RenderThresholdAlpha']" name="library">libgdk-win32-2.0-0.dll</attr>
|
||||
<attr path="//object[@cname='GdkPixbuf']/method[@name='RenderToDrawable']" name="library">libgdk-win32-2.0-0.dll</attr>
|
||||
<attr path="//object[@cname='GdkPixbuf']/method[@name='RenderToDrawableAlpha']" name="library">libgdk-win32-2.0-0.dll</attr>
|
||||
<attr path="//object[@cname='GdkPixbuf']/method[@name='RenderPixmapAndMaskForColormap']" name="library">libgdk-win32-2.0-0.dll</attr>
|
||||
<attr path="//object[@cname='GdkPixbuf']/method[@name='RenderPixmapAndMask']" name="library">libgdk-win32-2.0-0.dll</attr>
|
||||
<attr path="//object[@cname='GdkPixbuf']/method[@name='ScaleSimple']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkPixbufLoader']/method[@name='GetPixbuf']" name="needs_ref">1</attr>
|
||||
<attr path="//object[@cname='GdkPixbufLoader']/method[@name='Write']/*/*[@name='buf']" name="array">1</attr>
|
||||
<attr path="//object[@cname='GdkPixmap']" name="parent">GdkDrawable</attr>
|
||||
<attr path="//object[@cname='GdkPixmap']/constructor[@cname='gdk_pixmap_new']/*/*[@type='GdkDrawable*']" name="null_ok">1</attr>
|
||||
<attr path="//object[@cname='GdkScreen']/method[@name='GetMonitorGeometry']/*/*[@type='GdkRectangle*']" name="pass_as">out</attr>
|
||||
<attr path="//object[@cname='GdkScreen']/method[@name='GetToplevelWindows']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkScreen']/method[@name='Height']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkScreen']/method[@name='HeightMm']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkScreen']/method[@name='ListVisuals']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkScreen']/method[@name='Width']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkScreen']/method[@name='WidthMm']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkWindow']/method[@name='GetChildren']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkWindow']" name="parent">GdkDrawable</attr>
|
||||
<attr path="//object[@cname='GdkWindow']/method[@name='GetInternalPaintInfo']/*/*[@type='gint*']" name="pass_as">out</attr>
|
||||
<attr path="//object[@cname='GdkWindow']/method[@name='GetInternalPaintInfo']/*/*[@type='GdkDrawable**']" name="pass_as">out</attr>
|
||||
<attr path="//object[@cname='GdkWindow']/method[@name='GetOrigin']/*/*[@type='gint*']" name="pass_as">out</attr>
|
||||
<attr path="//object[@cname='GdkWindow']/method[@name='GetPointer']/*/*[@type='gint*']" name="pass_as">out</attr>
|
||||
<attr path="//object[@cname='GdkWindow']/method[@name='GetPointer']/*/*[@type='GdkModifierType*']" name="pass_as">out</attr>
|
||||
<attr path="//object[@cname='GdkWindow']/method[@name='GetToplevels']" name="hidden">1</attr>
|
||||
<attr path="//object[@cname='GdkWindow']/method[@name='PeekChildren']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GdkColor']/method[@name='Copy']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GdkColor']/method[@name='Free']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GdkColor']/method[@name='Hash']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GdkColor']/method[@name='Parse']/return-type" name="type">gboolean</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GdkColor']/method[@name='Parse']/*/*[@type='GdkColor*']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/boxed[@cname='GdkCursor']" name="opaque">1</attr>
|
||||
<attr path="/api/namespace/callback[@cname='GdkPixbufDestroyNotify']/*/*[@type='guchar*']" name="array">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='GdkDrag_']/method[@name='Begin']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='GdkEvent_']" name="name">EventHelper</attr>
|
||||
<attr path="/api/namespace/class[@cname='GdkGlobal']/method[@name='DevicesList']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='GdkGlobal']/method[@name='ListVisuals']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='GdkPango_']" name="name">PangoHelper</attr>
|
||||
<attr path="/api/namespace/class[@cname='GdkPixbuf_']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='GdkPointer_']/method[@name='Grab']/*/*[@name='confine_to']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='GdkPointer_']/method[@name='Grab']/*/*[@name='cursor']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkBitmap']" name="parent">GdkDrawable</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkColormap']/method[@name='AllocColor']/*/*[@type='GdkColor*']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkColormap']/method[@name='AllocColors']/*/*[@type='GdkColor*']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkColormap']/method[@name='AllocColors']/*/*[@name='success']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkColormap']/method[@name='QueryColor']/*/*[@type='GdkColor*']" name="pass_as">ref</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkColormap']/method[@name='FreeColors']/*/*[@type='GdkColor*']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDisplay']/method[@name='ListDevices']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDisplayManager']/method[@name='ListDisplays']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDrawable']/method[@name='DrawLines']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDrawable']/method[@name='DrawPolygon']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkDrawable']/method[@name='GetSize']/*/*[@type='gint*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/constructor[@cname='gdk_pixbuf_new_from_data']/*/*[@name='data']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/constructor[@cname='gdk_pixbuf_new_from_file']" name="preferred">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/constructor[@cname='gdk_pixbuf_new_from_inline']/*/*[@name='data']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/constructor[@cname='gdk_pixbuf_new_from_xpm_data']/*/*[@name='data']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/method[@name='AddAlpha']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/method[@name='CompositeColorSimple']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/method[@name='GetFromDrawable']" name="library">libgdk-win32-2.0-0.dll</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/method[@name='GetFormats']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/method[@name='GetFromImage']" name="library">libgdk-win32-2.0-0.dll</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/method[@name='GetPixels']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/method[@name='RenderThresholdAlpha']" name="library">libgdk-win32-2.0-0.dll</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/method[@name='RenderToDrawable']" name="library">libgdk-win32-2.0-0.dll</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/method[@name='RenderToDrawableAlpha']" name="library">libgdk-win32-2.0-0.dll</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/method[@name='RenderPixmapAndMaskForColormap']" name="library">libgdk-win32-2.0-0.dll</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/method[@name='RenderPixmapAndMask']" name="library">libgdk-win32-2.0-0.dll</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbuf']/method[@name='ScaleSimple']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbufLoader']/method[@name='GetPixbuf']" name="needs_ref">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixbufLoader']/method[@name='Write']/*/*[@name='buf']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixmap']" name="parent">GdkDrawable</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkPixmap']/constructor[@cname='gdk_pixmap_new']/*/*[@type='GdkDrawable*']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkScreen']/method[@name='GetMonitorGeometry']/*/*[@type='GdkRectangle*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkScreen']/method[@name='GetToplevelWindows']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkScreen']/method[@name='Height']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkScreen']/method[@name='HeightMm']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkScreen']/method[@name='ListVisuals']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkScreen']/method[@name='Width']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkScreen']/method[@name='WidthMm']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='GetChildren']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkWindow']" name="parent">GdkDrawable</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='GetInternalPaintInfo']/*/*[@type='gint*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='GetInternalPaintInfo']/*/*[@type='GdkDrawable**']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='GetOrigin']/*/*[@type='gint*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='GetPointer']/*/*[@type='gint*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='GetPointer']/*/*[@type='GdkModifierType*']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='GetToplevels']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='PeekChildren']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='SetCursor']/parameters/parameter[@name='cursor']" name="null_ok">1</attr>
|
||||
<attr path="//object[@cname='GdkWindow']/method[@name='SetIconList']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventAny']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventButton']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventClient']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventConfigure']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventCrossing']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventDND']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventExpose']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventFocus']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventKey']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventMotion']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventNoExpose']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventProperty']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventProximity']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventScroll']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventSelection']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventSetting']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventVisibility']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventWindowState']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkPixmapObject']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkRegion']" name="opaque">1</attr>
|
||||
<attr path="//struct[@cname='GdkTimeCoord']/field[@cname='axes']" name="array_len">128</attr>
|
||||
<attr path="//struct[@cname='GdkWindowObject']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='SetIconList']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventAny']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventButton']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventClient']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventConfigure']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventCrossing']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventDND']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventExpose']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventFocus']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventKey']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventMotion']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventNoExpose']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventProperty']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventProximity']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventScroll']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventSelection']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventSetting']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventVisibility']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventWindowState']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkPixmapObject']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkRegion']" name="opaque">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkRegion']/method[@name='GetRectangles']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkTimeCoord']/field[@cname='axes']" name="array_len">128</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkWindowObject']" name="hidden">1</attr>
|
||||
</metadata>
|
||||
|
||||
|
|
|
@ -50,6 +50,7 @@ customs = \
|
|||
PixbufLoader.custom \
|
||||
Point.custom \
|
||||
Rectangle.custom \
|
||||
Region.custom \
|
||||
Screen.custom \
|
||||
Selection.custom \
|
||||
Window.custom
|
||||
|
|
33
gdk/Region.custom
Normal file
33
gdk/Region.custom
Normal file
|
@ -0,0 +1,33 @@
|
|||
// Gdk.Region.custom - Gdk Region class customizations
|
||||
//
|
||||
// Author: Joshua Tauberer <tauberer@for.net>
|
||||
//
|
||||
// (c) 2004 Joshua Tauberer
|
||||
//
|
||||
// This code is inserted after the automatically generated code.
|
||||
|
||||
[DllImport("libglib-2.0-0.dll")]
|
||||
static extern void g_free (IntPtr mem);
|
||||
|
||||
[DllImport("libgdk-win32-2.0-0.dll")]
|
||||
static extern void gdk_region_get_rectangles(IntPtr raw, out IntPtr rectangles, out int n_rectangles);
|
||||
|
||||
public Rectangle[] GetRectangles ()
|
||||
{
|
||||
int n;
|
||||
IntPtr rectangles;
|
||||
gdk_region_get_rectangles(Handle, out rectangles, out n);
|
||||
|
||||
Rectangle[] ret = new Rectangle[n];
|
||||
int step = Marshal.SizeOf(typeof(Rectangle));
|
||||
int ptr = (int)rectangles;
|
||||
for (int i = 0; i < n; i++) {
|
||||
ret[i] = (Rectangle)Marshal.PtrToStructure((IntPtr)ptr, typeof(Rectangle));
|
||||
ptr += step;
|
||||
}
|
||||
|
||||
g_free(rectangles);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in a new issue