54838fec29
* generator/Method.cs: Support libname overrides. Call parms.Finish. * generator/Parameters.cs: New method parms.Finish. Generate a temporary holder variable for enum out parameters. * generator/Property.cs: Pass a boolean to EnumWrapper indicating. if these are flags. * generator/StructBase.cs: Disable array marshalling (it is broken in mono.) * generator/SymbolTable.cs: Add methods IsEnumFlags. * glib/EnumWrapper.cs: New bool "flags". * glib/Value.cs: Call flags variant on GValue for enum props, if needed. * glue/Makefile.am, glue/style.c, glue/widget.c: Add widget and style field accessor methods. * gtk/Style.custom, Widget.custom: Added. * parser/README: Update requirements (needed for pixbuf drawable hack) * parser/Gdk.metadata: Fix library for pixbuf methods in gdk. Add Window.GetPointer "out" parameters. * parser/gapi2xml.pl: Remap gdk_draw_* methods to Drawable. * sample/Makefile.in: Add size and scribble samples. * sample/Scribble.cs: Added. svn path=/trunk/gtk-sharp/; revision=6387
110 lines
2.2 KiB
XML
110 lines
2.2 KiB
XML
<?xml version="1.0"?>
|
|
<metadata>
|
|
|
|
<!-- constructor collision hints -->
|
|
<rule>
|
|
<class name="GdkPixbuf">
|
|
<constructor>gdk_pixbuf_new_from_file</constructor>
|
|
</class>
|
|
<data>
|
|
<attribute target="method">
|
|
<name>preferred</name>
|
|
<value>1</value>
|
|
</attribute>
|
|
</data>
|
|
</rule>
|
|
|
|
<!-- array hints -->
|
|
<rule>
|
|
<class name="GdkPixbufLoader">
|
|
<method>Write</method>
|
|
</class>
|
|
<data>
|
|
<attribute target="param">
|
|
<filter level="type">const-guchar*</filter>
|
|
<name>array</name>
|
|
<value>1</value>
|
|
</attribute>
|
|
</data>
|
|
</rule>
|
|
|
|
<!-- null args -->
|
|
<rule>
|
|
<class name="GdkPixmap">
|
|
<constructor>gdk_pixmap_new</constructor>
|
|
</class>
|
|
<data>
|
|
<attribute target="param">
|
|
<filter level="type">GdkWindow*</filter>
|
|
<name>null_ok</name>
|
|
<value>1</value>
|
|
</attribute>
|
|
</data>
|
|
</rule>
|
|
|
|
<!-- API hacks -->
|
|
<rule>
|
|
<class name="GdkBitmap"/>
|
|
<class name="GdkPixmap"/>
|
|
<class name="GdkWindow"/>
|
|
<data>
|
|
<attribute target="class">
|
|
<name>parent</name>
|
|
<value>GdkDrawable</value>
|
|
</attribute>
|
|
</data>
|
|
</rule>
|
|
<rule>
|
|
<class name="GdkPixmapObject"/>
|
|
<class name="GdkWindowObject"/>
|
|
<data>
|
|
<attribute target="class">
|
|
<delete/>
|
|
</attribute>
|
|
</data>
|
|
</rule>
|
|
<rule>
|
|
<class name="GdkPixbuf">
|
|
<method>RenderThresholdAlpha</method>
|
|
<method>RenderToDrawable</method>
|
|
<method>RenderToDrawableAlpha</method>
|
|
<method>RenderPixmapAndMaskForColormap</method>
|
|
<method>RenderPixmapAndMask</method>
|
|
<method>GetFromDrawable</method>
|
|
<method>GetFromImage</method>
|
|
</class>
|
|
<data>
|
|
<attribute target="method">
|
|
<name>library</name>
|
|
<value>gdk-x11-2.0</value>
|
|
</attribute>
|
|
</data>
|
|
</rule>
|
|
|
|
<!-- out parameters -->
|
|
<rule>
|
|
<class name="GdkWindow">
|
|
<method>GetPointer</method>
|
|
</class>
|
|
<data>
|
|
<attribute target="param">
|
|
<filter level="type">gint*</filter>
|
|
<name>pass_as</name>
|
|
<value>out</value>
|
|
</attribute>
|
|
</data>
|
|
</rule>
|
|
<rule>
|
|
<class name="GdkWindow">
|
|
<method>GetPointer</method>
|
|
</class>
|
|
<data>
|
|
<attribute target="param">
|
|
<filter level="type">GdkModifierType*</filter>
|
|
<name>pass_as</name>
|
|
<value>out</value>
|
|
</attribute>
|
|
</data>
|
|
</rule>
|
|
|
|
</metadata>
|