2005-07-02 Mike Kestner <mkestner@novell.com>

* generator/CallbackGen.cs : implement new IAccessor iface so that
	callback fields on structs can now be accessed.
	* generator/ClassBase.cs : remove/abstract some methods incorrectly
	located here.
	* generator/ClassGen.cs : implement methods previously inherited from
	ClassBase incorrectly.
	* generator/HandleBase.cs : new base class for native ptr wrappers.
	Implements new IAccessor interface and code moved from ClassBase.
	* generator/IAccessor.cs : new iface to generate field/prop accessors.
	* generator/InterfaceGen.cs : derive from new ObjectBase.
	* generator/LPGen.cs : implement IAccessor.
	* generator/LPUGen.cs : implement IAccessor.
	* generator/ObjectBase.cs : new base class for Object/Iface types.
	* generator/ObjectGen.cs : derive from new ObjectBase.
	* generator/OpaqueGen.cs : derive from HandleBase.
	* generator/StructField.cs : refactor Generate method using new
	IAccessor interface.
	* */*.custom : add obsolete impls for some existing c_cased struct
	field accessors that are now StudlyNamed.

svn path=/trunk/gtk-sharp/; revision=46878
This commit is contained in:
Mike Kestner 2005-07-02 15:23:27 +00:00
parent f1336f2f2b
commit 144a0f9d20
56 changed files with 1470 additions and 161 deletions

View file

@ -1,3 +1,25 @@
2005-07-02 Mike Kestner <mkestner@novell.com>
* generator/CallbackGen.cs : implement new IAccessor iface so that
callback fields on structs can now be accessed.
* generator/ClassBase.cs : remove/abstract some methods incorrectly
located here.
* generator/ClassGen.cs : implement methods previously inherited from
ClassBase incorrectly.
* generator/HandleBase.cs : new base class for native ptr wrappers.
Implements new IAccessor interface and code moved from ClassBase.
* generator/IAccessor.cs : new iface to generate field/prop accessors.
* generator/InterfaceGen.cs : derive from new ObjectBase.
* generator/LPGen.cs : implement IAccessor.
* generator/LPUGen.cs : implement IAccessor.
* generator/ObjectBase.cs : new base class for Object/Iface types.
* generator/ObjectGen.cs : derive from new ObjectBase.
* generator/OpaqueGen.cs : derive from HandleBase.
* generator/StructField.cs : refactor Generate method using new
IAccessor interface.
* */*.custom : add obsolete impls for some existing c_cased struct
field accessors that are now StudlyNamed.
2005-07-02 Mike Kestner <mkestner@novell.com>
* generator/CallbackGen.cs : remove an old workaround that put

View file

@ -313,5 +313,17 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="Destroy">
<MemberSignature Language="C#" Value="public Art.DestroyNotify Destroy { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Art.DestroyNotify</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -57,30 +57,30 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="value">
<MemberSignature Language="C#" Value="public Gda.Value value { set; get; };" />
<Member MemberName="Value">
<MemberSignature Language="C#" Value="public Gda.Value Value { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gda.Value</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added</summary>
<value>a <see cref="T:Gda.Value" /></value>
<remarks>To be added</remarks>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="attributes">
<MemberSignature Language="C#" Value="public Gda.FieldAttributes attributes { set; get; };" />
<Member MemberName="Attributes">
<MemberSignature Language="C#" Value="public Gda.FieldAttributes Attributes { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gda.FieldAttributes</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added</summary>
<value>a <see cref="T:Gda.FieldAttributes" /></value>
<remarks>To be added</remarks>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>

View file

@ -82,6 +82,22 @@
<value>a <see cref="T:Gdk.ScanLineList" /></value>
<remarks>To be added</remarks>
</Docs>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Scanlines property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="Scanlines">
<MemberSignature Language="C#" Value="public Gdk.ScanLineList Scanlines { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.ScanLineList</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -123,30 +123,30 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="window">
<MemberSignature Language="C#" Value="public Gdk.Window window { set; get; };" />
<Member MemberName="Window">
<MemberSignature Language="C#" Value="public Gdk.Window Window { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Window</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added</summary>
<value>a <see cref="T:Gdk.Window" /></value>
<remarks>To be added</remarks>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="selection">
<MemberSignature Language="C#" Value="public Gdk.Atom selection { set; get; };" />
<Member MemberName="Selection">
<MemberSignature Language="C#" Value="public Gdk.Atom Selection { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Atom</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added</summary>
<value>a <see cref="T:Gdk.Atom" /></value>
<remarks>To be added</remarks>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>

View file

@ -57,7 +57,11 @@
<value>To be added: an object of type 'Gdk.Pixmap'</value>
<remarks>To be added</remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by ClipMask property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="stipple">
<MemberSignature Language="C#" Value="public Gdk.Pixmap stipple { set; get; };" />
<MemberType>Property</MemberType>
@ -71,7 +75,11 @@
<value>To be added: an object of type 'Gdk.Pixmap'</value>
<remarks>To be added</remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Stipple property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="tile">
<MemberSignature Language="C#" Value="public Gdk.Pixmap tile { set; get; };" />
<MemberType>Property</MemberType>
@ -85,7 +93,11 @@
<value>To be added: an object of type 'Gdk.Pixmap'</value>
<remarks>To be added</remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Tile property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="Foreground">
<MemberSignature Language="C#" Value="public Gdk.Color Foreground;" />
<MemberType>Field</MemberType>
@ -282,5 +294,41 @@
<since version="Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName="Tile">
<MemberSignature Language="C#" Value="public Gdk.Pixmap Tile { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Pixmap</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Stipple">
<MemberSignature Language="C#" Value="public Gdk.Pixmap Stipple { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Pixmap</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ClipMask">
<MemberSignature Language="C#" Value="public Gdk.Pixmap ClipMask { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Pixmap</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -75,7 +75,11 @@
<remarks>To be added</remarks>
<since version="Gtk# 2.4" />
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Stipple property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="Attr">
<MemberSignature Language="C#" Value="public Pango.Attribute Attr;" />
<MemberType>Field</MemberType>
@ -89,5 +93,17 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="Stipple">
<MemberSignature Language="C#" Value="public Gdk.Pixmap Stipple { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Pixmap</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -57,7 +57,11 @@
<value>A <see cref="T:Gdk.Pixbuf" /></value>
<remarks />
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Revert property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="composited">
<MemberSignature Language="C#" Value="public Gdk.Pixbuf composited { set; get; };" />
<MemberType>Property</MemberType>
@ -71,7 +75,11 @@
<value>A <see cref="T:Gdk.Pixbuf" /></value>
<remarks />
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Composited property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="pixbuf">
<MemberSignature Language="C#" Value="public Gdk.Pixbuf pixbuf { set; get; };" />
<MemberType>Property</MemberType>
@ -85,7 +93,11 @@
<value>A <see cref="T:Gdk.Pixbuf" /></value>
<remarks />
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Pixbuf property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="XOffset">
<MemberSignature Language="C#" Value="public int XOffset;" />
<MemberType>Field</MemberType>
@ -177,5 +189,41 @@
<remarks />
</Docs>
</Member>
<Member MemberName="Pixbuf">
<MemberSignature Language="C#" Value="public Gdk.Pixbuf Pixbuf { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Pixbuf</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Composited">
<MemberSignature Language="C#" Value="public Gdk.Pixbuf Composited { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Pixbuf</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Revert">
<MemberSignature Language="C#" Value="public Gdk.Pixbuf Revert { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Pixbuf</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -55,9 +55,13 @@
<Docs>
<summary>Colormap for the window.</summary>
<value>To be added: an object of type 'Gdk.Colormap'</value>
<remarks>None.</remarks>
<remarks>Replaced by <see cref="P:Gdk.WindowAttr.Colormap" />.</remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Colormap property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="visual">
<MemberSignature Language="C#" Value="public Gdk.Visual visual { set; get; };" />
<MemberType>Property</MemberType>
@ -67,13 +71,15 @@
<Parameters>
</Parameters>
<Docs>
<summary>
<see cref="T:Gdk.Visual" /> for the window.</summary>
<value>
<see cref="T:Gdk.Visual" /> for the window.</value>
<remarks>None.</remarks>
<summary>The <see cref="T:Gdk.Visual" /> for the window.</summary>
<value>a <see cref="T:Gdk.Visual" /> for the window.</value>
<remarks>Replaced by <see cref="P:Gdk.WindowAttr.Visual" />.</remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Visual property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="cursor">
<MemberSignature Language="C#" Value="public Gdk.Cursor cursor { set; get; };" />
<MemberType>Property</MemberType>
@ -84,9 +90,13 @@
<Docs>
<summary>Cursor for the window (see <see cref="P:Gdk.Window.Cursor" />).</summary>
<value>Cursor for the window. (see <see cref="P:Gdk.Window.Cursor" />).</value>
<remarks>None.</remarks>
<remarks>Replaced by <see cref="P:Gdk.WindowAttr.Cursor" />.</remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Cursor property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="Title">
<MemberSignature Language="C#" Value="public string Title;" />
<MemberType>Field</MemberType>
@ -244,5 +254,41 @@
<since version="Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName="Visual">
<MemberSignature Language="C#" Value="public Gdk.Visual Visual { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Visual</ReturnType>
</ReturnValue>
<Docs>
<summary>The <see cref="T:Gdk.Visual" /> for the window.</summary>
<value>a <see cref="T:Gdk.Visual" /> for the window.</value>
<remarks />
</Docs>
</Member>
<Member MemberName="Colormap">
<MemberSignature Language="C#" Value="public Gdk.Colormap Colormap { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Colormap</ReturnType>
</ReturnValue>
<Docs>
<summary>Colormap for the window.</summary>
<value>an object of type 'Gdk.Colormap'</value>
<remarks />
</Docs>
</Member>
<Member MemberName="Cursor">
<MemberSignature Language="C#" Value="public Gdk.Cursor Cursor { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Cursor</ReturnType>
</ReturnValue>
<Docs>
<summary>Cursor for the window (see <see cref="P:Gdk.Window.Cursor" />).</summary>
<value>Cursor for the window. (see <see cref="P:Gdk.Window.Cursor" />).</value>
<remarks />
</Docs>
</Member>
</Members>
</Type>

View file

@ -94,7 +94,11 @@
<value>a <see cref="T:Gnome.FontFace" /></value>
<remarks>To be added</remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Face property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="Type">
<MemberSignature Language="C#" Value="public Gnome.GPFontEntryType Type;" />
<MemberType>Field</MemberType>
@ -227,5 +231,17 @@
<since version="Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName="Face">
<MemberSignature Language="C#" Value="public Gnome.FontFace Face { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gnome.FontFace</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -153,5 +153,65 @@
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="InstanceInit">
<MemberSignature Language="C#" Value="public Gnome.ModuleHook InstanceInit { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gnome.ModuleHook</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="PreArgsParse">
<MemberSignature Language="C#" Value="public Gnome.ModuleHook PreArgsParse { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gnome.ModuleHook</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="PostArgsParse">
<MemberSignature Language="C#" Value="public Gnome.ModuleHook PostArgsParse { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gnome.ModuleHook</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="InitPass">
<MemberSignature Language="C#" Value="public Gnome.ModuleInitHook InitPass { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gnome.ModuleInitHook</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ClassInit">
<MemberSignature Language="C#" Value="public Gnome.ModuleClassInitHook ClassInit { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gnome.ModuleClassInitHook</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -70,5 +70,17 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="Function">
<MemberSignature Language="C#" Value="public Gnome.TriggerActionFunction Function { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gnome.TriggerActionFunction</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -57,5 +57,41 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="ConnectFunc">
<MemberSignature Language="C#" Value="public Gnome.UISignalConnectFunc ConnectFunc { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gnome.UISignalConnectFunc</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="RelayFunc">
<MemberSignature Language="C#" Value="public Gtk.CallbackMarshal RelayFunc { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gtk.CallbackMarshal</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="DestroyFunc">
<MemberSignature Language="C#" Value="public Gtk.DestroyNotify DestroyFunc { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gtk.DestroyNotify</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -57,7 +57,11 @@
<value>To be added: an object of type 'Gtk.Widget'</value>
<remarks>To be added</remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Widget property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="Type">
<MemberSignature Language="C#" Value="public Gnome.UIInfoType Type;" />
<MemberType>Field</MemberType>
@ -136,5 +140,17 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="Widget">
<MemberSignature Language="C#" Value="public Gtk.Widget Widget { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gtk.Widget</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -45,19 +45,7 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="properties">
<MemberSignature Language="C#" Value="public Gda.ParameterList properties { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gda.ParameterList</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added</summary>
<value>a <see cref="T:Gda.ParameterList" /></value>
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="Id">
<MemberSignature Language="C#" Value="public string Id;" />
<MemberType>Field</MemberType>
@ -149,5 +137,17 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="Properties">
<MemberSignature Language="C#" Value="public Gda.ParameterList Properties { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gda.ParameterList</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -71,17 +71,17 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="pixbuf">
<MemberSignature Language="C#" Value="public Gdk.Pixbuf pixbuf { set; get; };" />
<Member MemberName="Pixbuf">
<MemberSignature Language="C#" Value="public Gdk.Pixbuf Pixbuf { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Pixbuf</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added</summary>
<value>a <see cref="T:Gdk.Pixbuf" /></value>
<remarks>To be added</remarks>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>

View file

@ -108,5 +108,17 @@
"&lt;LastBranch&gt;" creates a right justified item to hold sub items.</remarks>
</Docs>
</Member>
<Member MemberName="Callback">
<MemberSignature Language="C#" Value="public Gtk.ItemFactoryCallback Callback { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gtk.ItemFactoryCallback</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -77,18 +77,29 @@
</remarks>
</Docs>
</Member>
<Member MemberName="widget">
<MemberSignature Language="C#" Value="public Gtk.Widget widget { set; get; };" />
<Member MemberName="Widget">
<MemberSignature Language="C#" Value="public Gtk.Widget Widget { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gtk.Widget</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>The widget related to this menu entry.</summary>
<value>a <see cref="T:Gtk.Widget" /></value>
<remarks>
</remarks>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Callback">
<MemberSignature Language="C#" Value="public Gtk.MenuCallback Callback { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gtk.MenuCallback</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>

View file

@ -57,7 +57,11 @@
<value>a <see cref="T:Gdk.Atom" /></value>
<remarks />
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Target property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="Flags">
<MemberSignature Language="C#" Value="public uint Flags;" />
<MemberType>Field</MemberType>
@ -84,5 +88,17 @@
<remarks />
</Docs>
</Member>
<Member MemberName="Target">
<MemberSignature Language="C#" Value="public Gdk.Atom Target { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Atom</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -58,7 +58,11 @@
<remarks />
<since version="Gtk# 2.4" />
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by FgStipple property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="bg_stipple">
<MemberSignature Language="C#" Value="public Gdk.Pixmap bg_stipple { set; get; };" />
<MemberType>Property</MemberType>
@ -73,7 +77,11 @@
<remarks />
<since version="Gtk# 2.4" />
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by BgStipple property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="BgColor">
<MemberSignature Language="C#" Value="public Gdk.Color BgColor;" />
<MemberType>Field</MemberType>
@ -142,5 +150,29 @@
<since version="Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName="BgStipple">
<MemberSignature Language="C#" Value="public Gdk.Pixmap BgStipple { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Pixmap</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="FgStipple">
<MemberSignature Language="C#" Value="public Gdk.Pixmap FgStipple { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Pixmap</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -122,7 +122,11 @@
<value>a <see cref="Pango.Language" /></value>
<remarks />
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Language property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="tabs">
<MemberSignature Language="C#" Value="public Pango.TabArray tabs { set; get; };" />
<MemberType>Property</MemberType>
@ -136,7 +140,11 @@
<value>a <see cref="T:Pango.TabArray" /></value>
<remarks />
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Tabs property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="font">
<MemberSignature Language="C#" Value="public Pango.FontDescription font { set; get; };" />
<MemberType>Property</MemberType>
@ -150,7 +158,11 @@
<value>a <see cref="T:Pango.FontDescription" /></value>
<remarks />
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Font property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="GType">
<MemberSignature Language="C#" Value="public static GLib.GType GType { get; };" />
<MemberType>Property</MemberType>
@ -395,5 +407,41 @@
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Font">
<MemberSignature Language="C#" Value="public Pango.FontDescription Font { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Pango.FontDescription</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Tabs">
<MemberSignature Language="C#" Value="public Pango.TabArray Tabs { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Pango.TabArray</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Language">
<MemberSignature Language="C#" Value="public Pango.Language Language { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Pango.Language</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -77,7 +77,11 @@
<remarks>
</remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Widget property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="tooltips">
<MemberSignature Language="C#" Value="public Gtk.Tooltips tooltips { set; get; };" />
<MemberType>Property</MemberType>
@ -91,7 +95,11 @@
<value>an object of type <see cref="T:Gtk.Tooltips" /></value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Tooltips property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="TipText">
<MemberSignature Language="C#" Value="public string TipText;" />
<MemberType>Field</MemberType>
@ -122,5 +130,29 @@
</remarks>
</Docs>
</Member>
<Member MemberName="Tooltips">
<MemberSignature Language="C#" Value="public Gtk.Tooltips Tooltips { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gtk.Tooltips</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Widget">
<MemberSignature Language="C#" Value="public Gtk.Widget Widget { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gtk.Widget</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -55,9 +55,13 @@
<Docs>
<summary>The <see cref="T:Pango.Language" /></summary>
<value>an object of type <see cref="T:Pango.Language" /></value>
<remarks />
<remarks>Replaced by <see cref="M:Pango.Analysis.Language" />. </remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Language property", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="font">
<MemberSignature Language="C#" Value="public Pango.Font font { set; get; };" />
<MemberType>Property</MemberType>
@ -69,9 +73,13 @@
<Docs>
<summary>the <see cref="T:Pango.Font" /></summary>
<value>an object of type <see cref="T:Pango.Font" /></value>
<remarks />
<remarks>Replaced by <see cref="M:Pango.Analysis.Font" />. </remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Font property", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="Level">
<MemberSignature Language="C#" Value="public byte Level;" />
<MemberType>Field</MemberType>
@ -96,8 +104,13 @@
<summary>The engine for doing rendering-system-dependent processing.</summary>
<value>a <see cref="T:Pango.EngineShape" /></value>
<remarks />
<remarks>Replaced by <see cref="M:Pango.Analysis.ShapeEngine" />. </remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by ShapeEngine property", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="lang_engine">
<MemberSignature Language="C#" Value="public Pango.EngineLang lang_engine { set; get; };" />
<MemberType>Property</MemberType>
@ -108,9 +121,13 @@
<Docs>
<summary>The engine for doing rendering-system-independent processing.</summary>
<value>a <see cref="T:Pango.EngineLang" /></value>
<remarks />
<remarks>Replaced by <see cref="M:Pango.Analysis.LangEngine" />. </remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by LangEngine property", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="ExtraAttrs">
<MemberSignature Language="C#" Value="public Pango.Attribute[] ExtraAttrs { get; };" />
<MemberType>Property</MemberType>
@ -124,5 +141,53 @@
<since version="Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName="ShapeEngine">
<MemberSignature Language="C#" Value="public Pango.EngineShape ShapeEngine { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Pango.EngineShape</ReturnType>
</ReturnValue>
<Docs>
<summary>The engine for doing rendering-system-dependent processing.</summary>
<value>a <see cref="T:Pango.EngineShape" /></value>
<remarks />
</Docs>
</Member>
<Member MemberName="LangEngine">
<MemberSignature Language="C#" Value="public Pango.EngineLang LangEngine { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Pango.EngineLang</ReturnType>
</ReturnValue>
<Docs>
<summary>The engine for doing rendering-system-independent processing.</summary>
<value>a <see cref="T:Pango.EngineLang" /></value>
<remarks />
</Docs>
</Member>
<Member MemberName="Font">
<MemberSignature Language="C#" Value="public Pango.Font Font { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Pango.Font</ReturnType>
</ReturnValue>
<Docs>
<summary>the <see cref="T:Pango.Font" /></summary>
<value>an object of type <see cref="T:Pango.Font" /></value>
<remarks />
</Docs>
</Member>
<Member MemberName="Language">
<MemberSignature Language="C#" Value="public Pango.Language Language { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Pango.Language</ReturnType>
</ReturnValue>
<Docs>
<summary>The <see cref="T:Pango.Language" /></summary>
<value>an object of type <see cref="T:Pango.Language" /></value>
<remarks />
</Docs>
</Member>
</Members>
</Type>

View file

@ -96,7 +96,11 @@
<value>a <see cref="T:Rsvg.PaintServer" /></value>
<remarks>To be added</remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Fill property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="stroke">
<MemberSignature Language="C#" Value="public Rsvg.PaintServer stroke { set; get; };" />
<MemberType>Property</MemberType>
@ -109,7 +113,11 @@
<value>a <see cref="T:Rsvg.PaintServer" /></value>
<remarks>To be added</remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Stroke property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="dash">
<MemberSignature Language="C#" Value="public Art.VpathDash dash { set; get; };" />
<MemberType>Property</MemberType>
@ -122,7 +130,11 @@
<value>a <see cref="T:Art.VpathDash" /></value>
<remarks>To be added</remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by Dash property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="save_pixbuf">
<MemberSignature Language="C#" Value="public Gdk.Pixbuf save_pixbuf { set; get; };" />
<MemberType>Property</MemberType>
@ -135,7 +147,11 @@
<value>a <see cref="T:Gdk.Pixbuf" /></value>
<remarks>To be added</remarks>
</Docs>
</Member>
<Attributes>
<Attribute>
<AttributeName>System.Obsolete(Message="Replaced by SavePixbuf property.", IsError=False)</AttributeName>
</Attribute>
</Attributes></Member>
<Member MemberName="Affine">
<MemberSignature Language="C#" Value="public double[] Affine;" />
<MemberType>Field</MemberType>
@ -456,5 +472,53 @@
<since version="Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName="Fill">
<MemberSignature Language="C#" Value="public Rsvg.PaintServer Fill { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Rsvg.PaintServer</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Stroke">
<MemberSignature Language="C#" Value="public Rsvg.PaintServer Stroke { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Rsvg.PaintServer</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Dash">
<MemberSignature Language="C#" Value="public Art.VpathDash Dash { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Art.VpathDash</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="SavePixbuf">
<MemberSignature Language="C#" Value="public Gdk.Pixbuf SavePixbuf { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Pixbuf</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -84,5 +84,17 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="Free">
<MemberSignature Language="C#" Value="public Vte.RingFreeFunc Free { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Vte.RingFreeFunc</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>

33
gdk/EdgeTable.custom Normal file
View file

@ -0,0 +1,33 @@
// Gdk.EdgeTable.custom - Gdk EdgeTable class customizations
//
// Author: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2005 Novell, Inc.
//
// This code is inserted after the automatically generated code.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
[Obsolete ("Replaced by Scanlines property.")]
public Gdk.ScanLineList scanlines {
get {
Gdk.ScanLineList ret = new Gdk.ScanLineList(_scanlines);
if (ret == null) ret = new Gdk.ScanLineList(_scanlines);
return ret;
}
set { _scanlines = value.Handle; }
}

50
gdk/GCValues.custom Normal file
View file

@ -0,0 +1,50 @@
// Gdk.GCValues.custom - Gdk GCValues class customizations
//
// Author: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2005 Novell, Inc.
//
// This code is inserted after the automatically generated code.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
[Obsolete ("Replaced by Tile property.")]
public Gdk.Pixmap tile {
get {
Gdk.Pixmap ret = (Gdk.Pixmap) GLib.Object.GetObject(_tile);
return ret;
}
set { _tile = value.Handle; }
}
[Obsolete ("Replaced by Stipple property.")]
public Gdk.Pixmap stipple {
get {
Gdk.Pixmap ret = (Gdk.Pixmap) GLib.Object.GetObject(_stipple);
return ret;
}
set { _stipple = value.Handle; }
}
[Obsolete ("Replaced by ClipMask property.")]
public Gdk.Pixmap clip_mask {
get {
Gdk.Pixmap ret = (Gdk.Pixmap) GLib.Object.GetObject(_clip_mask);
return ret;
}
set { _clip_mask = value.Handle; }
}

View file

@ -38,12 +38,16 @@ customs = \
DisplayManager.custom \
DragContext.custom \
Drawable.custom \
EdgeTable.custom \
GCValues.custom \
Global.custom \
Input.custom \
Keymap.custom \
PangoAttrStipple.custom \
Pixmap.custom \
Pixbuf.custom \
PixbufAnimation.custom \
PixbufFrame.custom \
PixbufLoader.custom \
Pixdata.custom \
Point.custom \

View file

@ -0,0 +1,32 @@
// Gdk.PangoAttrStipple.custom - Gdk PangoAttrStipple class customizations
//
// Author: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2005 Novell, Inc.
//
// This code is inserted after the automatically generated code.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
[Obsolete ("Replaced by Stipple property.")]
public Gdk.Pixmap stipple {
get {
Gdk.Pixmap ret = GLib.Object.GetObject(_stipple) as Gdk.Pixmap;
return ret;
}
set { _stipple = value.Handle; }
}

49
gdk/PixbufFrame.custom Normal file
View file

@ -0,0 +1,49 @@
// Gdk.PixbufFrame.custom - Gdk PixbufFrame class customizations
//
// Author: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2005 Novell, Inc.
//
// This code is inserted after the automatically generated code.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
[Obsolete ("Replaced by Pixbuf property.")]
public Gdk.Pixbuf pixbuf {
get {
Gdk.Pixbuf ret = (Gdk.Pixbuf) GLib.Object.GetObject(_pixbuf);
return ret;
}
set { _pixbuf = value.Handle; }
}
[Obsolete ("Replaced by Composited property.")]
public Gdk.Pixbuf composited {
get {
Gdk.Pixbuf ret = (Gdk.Pixbuf) GLib.Object.GetObject(_composited);
return ret;
}
set { _composited = value.Handle; }
}
[Obsolete ("Replaced by Revert property.")]
public Gdk.Pixbuf revert {
get {
Gdk.Pixbuf ret = (Gdk.Pixbuf) GLib.Object.GetObject(_revert);
return ret;
}
set { _revert = value.Handle; }
}

View file

@ -29,3 +29,31 @@
}
}
[Obsolete ("Replaced by Visual property.")]
public Gdk.Visual visual {
get {
Gdk.Visual ret = (Gdk.Visual) GLib.Object.GetObject(_visual);
return ret;
}
set { _visual = value.Handle; }
}
[Obsolete ("Replaced by Colormap property.")]
public Gdk.Colormap colormap {
get {
Gdk.Colormap ret = (Gdk.Colormap) GLib.Object.GetObject(_colormap);
return ret;
}
set { _colormap = value.Handle; }
}
[Obsolete ("Replaced by Cursor property.")]
public Gdk.Cursor cursor {
get {
Gdk.Cursor ret = new Gdk.Cursor(_cursor);
if (ret == null) ret = new Gdk.Cursor(_cursor);
return ret;
}
set { _cursor = value.Handle; }
}

View file

@ -25,7 +25,7 @@ namespace GtkSharp.Generation {
using System.IO;
using System.Xml;
public class CallbackGen : GenBase {
public class CallbackGen : GenBase, IAccessor {
private Parameters parms;
private Signature sig = null;
@ -55,6 +55,13 @@ namespace GtkSharp.Generation {
return NS + "Sharp." + Name + "Wrapper.GetManagedDelegate (" + var + ")";
}
public void WriteAccessors (StreamWriter sw, string indent, string var)
{
sw.WriteLine (indent + "get {");
sw.WriteLine (indent + "\treturn " + FromNative (var) + ";");
sw.WriteLine (indent + "}");
}
public string GenWrapper (GenerationInfo gen_info)
{
string wrapper = Name + "Native";

View file

@ -135,6 +135,10 @@ namespace GtkSharp.Generation {
}
}
public abstract string AssignToName { get; }
public abstract string CallByName ();
protected bool IsNodeNameHandled (string name)
{
switch (name) {
@ -152,31 +156,6 @@ namespace GtkSharp.Generation {
}
}
public override string MarshalType {
get {
return "IntPtr";
}
}
public override string CallByName (string name)
{
return name + " == null ? IntPtr.Zero : " + name + ".Handle";
}
public virtual string CallByName ()
{
return "Handle";
}
public virtual string AssignToName {
get { return "Raw"; }
}
public override string FromNative(string var)
{
return "GLib.Object.GetObject(" + var + ") as " + QualifiedName;
}
protected void GenProperties (GenerationInfo gen_info)
{
if (props.Count == 0)

View file

@ -31,6 +31,33 @@ namespace GtkSharp.Generation {
public ClassGen (XmlElement ns, XmlElement elem) : base (ns, elem) {}
public override string AssignToName {
get {
return String.Empty;
}
}
public override string MarshalType {
get {
return String.Empty;
}
}
public override string CallByName ()
{
return String.Empty;
}
public override string CallByName (string var)
{
return String.Empty;
}
public override string FromNative (string var)
{
return String.Empty;
}
public override void Generate (GenerationInfo gen_info)
{
gen_info.CurrentType = Name;

View file

@ -19,22 +19,36 @@ represent types.
GenBase: Abstract base class for any api.xml element that will have
its own generated .cs file
CallbackGen: Handles <callback> elements by creating a public
delegate type for the public API (in NAME.cs), and an
internal type that wraps that delegate, to be passed
as the actual unmanaged callback (in
NAMESPACESharp.NAMENative.cs)
ClassBase: Abstract base class for types that will be converted
to C# classes, structs, or interfaces
ClassGen: Handles <class> elements (static classes)
InterfaceGen: Handles <interface> elements
ObjectGen: Handles <object> elements
OpaqueGen: Handles <boxed> and <struct> elements with the
"opaque" flag (by creating C# classes)
HandleBase: base class for wrapped IntPtr reference types.
OpaqueGen: Handles <boxed> and <struct> elements with the
"opaque" flag (by creating C# classes)
ObjectBase: base class for GObject/GInterface types
InterfaceGen: Handles <interface> elements
ObjectGen: Handles <object> elements
StructBase: Abstract base class for types that will be
translated to C# structs.
BoxedGen: Handles non-opaque <boxed> elements
StructGen: Handles non-opaque <struct> elements
EnumGen: Handles <enum> elements.
SimpleBase: Abstract base class for types which aren't generated from

64
generator/HandleBase.cs Normal file
View file

@ -0,0 +1,64 @@
// HandleBase.cs - Base class for Handle types
//
// Authors: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2005 Novell, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the GNU General Public
// License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
namespace GtkSharp.Generation {
using System;
using System.IO;
using System.Xml;
public abstract class HandleBase : ClassBase, IAccessor {
protected HandleBase (XmlElement ns, XmlElement elem) : base (ns, elem) {}
public override string AssignToName {
get {
return "Raw";
}
}
public override string MarshalType {
get {
return "IntPtr";
}
}
public override string CallByName (string name)
{
return name + " == null ? IntPtr.Zero : " + name + ".Handle";
}
public override string CallByName ()
{
return "Handle";
}
public void WriteAccessors (StreamWriter sw, string indent, string var)
{
sw.WriteLine (indent + "get {");
sw.WriteLine (indent + "\treturn " + FromNative (var) + ";");
sw.WriteLine (indent + "}");
sw.WriteLine (indent + "set {");
sw.WriteLine (indent + "\t" + var + " = " + CallByName ("value") + ";");
sw.WriteLine (indent + "}");
}
}
}

29
generator/IAccessor.cs Normal file
View file

@ -0,0 +1,29 @@
// IAccessor.cs - Interface to generate property accessors.
//
// Author: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2005 Novell, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the GNU General Public
// License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
namespace GtkSharp.Generation {
public interface IAccessor {
void WriteAccessors (System.IO.StreamWriter sw, string indentation, string field_name);
}
}

View file

@ -27,7 +27,7 @@ namespace GtkSharp.Generation {
using System.IO;
using System.Xml;
public class InterfaceGen : ClassBase {
public class InterfaceGen : ObjectBase {
ArrayList vms = new ArrayList ();
ArrayList members = new ArrayList ();

View file

@ -22,8 +22,9 @@
namespace GtkSharp.Generation {
using System;
using System.IO;
public class LPGen : SimpleGen {
public class LPGen : SimpleGen, IAccessor {
public LPGen (string ctype) : base (ctype, "long") {}
@ -42,6 +43,16 @@ namespace GtkSharp.Generation {
{
return "(long) " + var;
}
public void WriteAccessors (StreamWriter sw, string indent, string var)
{
sw.WriteLine (indent + "get {");
sw.WriteLine (indent + "\treturn " + FromNative (var) + ";");
sw.WriteLine (indent + "}");
sw.WriteLine (indent + "set {");
sw.WriteLine (indent + "\t" + var + " = " + CallByName ("value") + ";");
sw.WriteLine (indent + "}");
}
}
}

View file

@ -22,8 +22,9 @@
namespace GtkSharp.Generation {
using System;
using System.IO;
public class LPUGen : SimpleGen {
public class LPUGen : SimpleGen, IAccessor {
public LPUGen (string ctype) : base (ctype, "ulong") {}
@ -42,6 +43,16 @@ namespace GtkSharp.Generation {
{
return "(ulong) " + var;
}
public void WriteAccessors (StreamWriter sw, string indent, string var)
{
sw.WriteLine (indent + "get {");
sw.WriteLine (indent + "\treturn " + FromNative (var) + ";");
sw.WriteLine (indent + "}");
sw.WriteLine (indent + "set {");
sw.WriteLine (indent + "\t" + var + " = " + CallByName ("value") + ";");
sw.WriteLine (indent + "}");
}
}
}

View file

@ -22,6 +22,8 @@ sources = \
FieldBase.cs \
GenBase.cs \
GenerationInfo.cs \
HandleBase.cs \
IAccessor.cs \
IGeneratable.cs \
IManualMarshaler.cs \
ImportSignature.cs \
@ -35,6 +37,7 @@ sources = \
MethodBody.cs \
Method.cs \
ObjectField.cs \
ObjectBase.cs \
ObjectGen.cs \
OpaqueGen.cs \
Parameters.cs \

36
generator/ObjectBase.cs Normal file
View file

@ -0,0 +1,36 @@
// ObjectBase.cs - Base class for Object types
//
// Authors: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2005 Novell, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the GNU General Public
// License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
namespace GtkSharp.Generation {
using System;
using System.Xml;
public abstract class ObjectBase : HandleBase {
protected ObjectBase (XmlElement ns, XmlElement elem) : base (ns, elem) {}
public override string FromNative(string var)
{
return "GLib.Object.GetObject(" + var + ") as " + QualifiedName;
}
}
}

View file

@ -28,7 +28,7 @@ namespace GtkSharp.Generation {
using System.Text;
using System.Xml;
public class ObjectGen : ClassBase {
public class ObjectGen : ObjectBase {
private ArrayList strings = new ArrayList();
private ArrayList vm_nodes = new ArrayList();

View file

@ -26,7 +26,7 @@ namespace GtkSharp.Generation {
using System.IO;
using System.Xml;
public class OpaqueGen : ClassBase {
public class OpaqueGen : HandleBase {
public OpaqueGen (XmlElement ns, XmlElement elem) : base (ns, elem) {}

View file

@ -3,7 +3,7 @@
//
// Author: Mike Kestner <mkestner@ximian.com>
//
// Copyright (c) 2004 Novell, Inc.
// Copyright (c) 2004-2005 Novell, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the GNU General Public
@ -34,6 +34,9 @@ namespace GtkSharp.Generation {
protected override string DefaultAccess {
get {
if (IsPadding)
return "private";
return "public";
}
}
@ -46,7 +49,7 @@ namespace GtkSharp.Generation {
int result;
try {
result = Int32.Parse (elem.GetAttribute("array_len"));
} catch (Exception e) {
} catch (Exception) {
Console.Write ("Non-numeric array_len: " + elem.GetAttribute("array_len"));
Console.WriteLine (" warning: array field {0} incorrectly generated", Name);
result = 0;
@ -62,14 +65,12 @@ namespace GtkSharp.Generation {
type += "[]";
else if ((IsPointer || SymbolTable.Table.IsOpaque (CType)) && type != "string")
type = "IntPtr";
else if (SymbolTable.Table.IsCallback (CType))
type = "IntPtr";
return type;
}
}
public bool IsPadding {
bool IsPadding {
get {
return (CName.StartsWith ("dummy") || CName.StartsWith ("padding"));
}
@ -92,7 +93,7 @@ namespace GtkSharp.Generation {
}
}
public string StudlyName {
string StudlyName {
get {
string studly = base.Name;
if (studly != "")
@ -120,45 +121,25 @@ namespace GtkSharp.Generation {
StreamWriter sw = gen_info.Writer;
SymbolTable table = SymbolTable.Table;
if (IsArray)
sw.WriteLine (indent + "[MarshalAs (UnmanagedType.ByValArray, SizeConst=" + ArrayLength + ")]");
string wrapped = table.GetCSType (CType);
string wrapped_name = SymbolTable.Table.MangleName (CName);
IGeneratable gen = table [CType];
if (IsArray) {
sw.WriteLine (indent + "[MarshalAs (UnmanagedType.ByValArray, SizeConst=" + ArrayLength + ")]");
sw.WriteLine (indent + "{0} {1} {2};", Access, CSType, StudlyName);
} else if (IsPadding) {
sw.WriteLine (indent + "private {0} {1};", CSType, Name);
} else if (IsBitfield) {
base.Generate (gen_info, indent);
} else if (table.IsCallback (CType)) {
// FIXME
sw.WriteLine (indent + "private {0} {1};", CSType, Name);
} else if (gen is LPGen || gen is LPUGen) {
sw.WriteLine (indent + "private " + gen.MarshalType + " " + Name + ";");
sw.WriteLine (indent + "public " + CSType + " " + StudlyName + " {");
sw.WriteLine (indent + "\tget {");
sw.WriteLine (indent + "\t\treturn " + gen.FromNative (Name) + ";");
sw.WriteLine (indent + "\t}");
sw.WriteLine (indent + "\tset {");
sw.WriteLine (indent + "\t\t" + Name + " = " + gen.CallByName ("value") + ";");
sw.WriteLine (indent + "\t}");
sw.WriteLine (indent + "}");
} else if (table.IsObject (CType) || table.IsOpaque (CType)) {
sw.WriteLine (indent + "private {0} {1};", CSType, Name);
} else if (table [CType] is IAccessor) {
sw.WriteLine (indent + "private {0} {1};", gen.MarshalType, Name);
if (Access != "private") {
sw.WriteLine (indent + Access + " " + wrapped + " " + wrapped_name + " {");
sw.WriteLine (indent + "\tget { ");
sw.WriteLine (indent + "\t\treturn " + table.FromNativeReturn(CType, Name) + ";");
sw.WriteLine (indent + "\t}");
sw.WriteLine (indent + "\tset { " + Name + " = " + table.CallByName (CType, "value") + "; }");
IAccessor acc = table [CType] as IAccessor;
sw.WriteLine (indent + Access + " " + wrapped + " " + StudlyName + " {");
acc.WriteAccessors (sw, indent + "\t", Name);
sw.WriteLine (indent + "}");
}
} else if (IsPointer && (table.IsStruct (CType) || table.IsBoxed (CType))) {
} else if (IsPointer && (gen is StructGen || gen is BoxedGen)) {
sw.WriteLine (indent + "private {0} {1};", CSType, Name);
sw.WriteLine ();
if (Access != "private") {
@ -169,10 +150,8 @@ namespace GtkSharp.Generation {
} else if (IsPointer && CSType != "string") {
// FIXME: probably some fields here which should be visible.
sw.WriteLine (indent + "private {0} {1};", CSType, Name);
} else if (Access != "public") {
sw.WriteLine (indent + "{0} {1} {2};", Access, CSType, Name);
} else {
sw.WriteLine (indent + "public {0} {1};", CSType, StudlyName);
sw.WriteLine (indent + "{0} {1} {2};", Access, CSType, Access == "public" ? StudlyName : Name);
}
}
}

26
gnome/GPFontEntry.custom Normal file
View file

@ -0,0 +1,26 @@
// GPFontEntry.custom - Gnome.GPFontEntry customizations
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
[Obsolete ("Replaced by Face property.")]
public Gnome.FontFace face {
get {
Gnome.FontFace ret = (Gnome.FontFace) GLib.Object.GetObject(_face);
return ret;
}
set { _face = value.Handle; }
}

View file

@ -46,6 +46,7 @@ customs = \
DruidPageEdge.custom \
Font.custom \
FontFamily.custom \
GPFontEntry.custom \
IconList.custom \
IconTextItem.custom \
PanelApplet.custom \
@ -54,7 +55,8 @@ customs = \
PrintDialog.custom \
PrintJob.custom \
Program.custom \
Scores.custom
Scores.custom \
UIInfo.custom
add_dist = gnome-sharp-2.0.pc.in

26
gnome/UIInfo.custom Normal file
View file

@ -0,0 +1,26 @@
// UIInfo.custom - Gnome.UIInfo customizations
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
[Obsolete ("Replaced by Widget property.")]
public Gtk.Widget widget {
get {
Gtk.Widget ret = (Gtk.Widget) GLib.Object.GetObject(_widget);
return ret;
}
set { _widget = value.Handle; }
}

View file

@ -90,12 +90,16 @@ customs = \
Table.custom \
TargetEntry.custom \
TargetList.custom \
TargetPair.custom \
TextAttributes.custom \
TextAppearance.custom \
TextBuffer.custom \
TextChildAnchor.custom \
TextIter.custom \
TextTag.custom \
TextView.custom \
Toolbar.custom \
TooltipsData.custom \
TreeIter.custom \
TreeModel.custom \
TreeModelFilter.custom \

33
gtk/TargetPair.custom Normal file
View file

@ -0,0 +1,33 @@
// Gtk.TargetPair.custom - Gtk TargetPair class customizations
//
// Authors: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2005 Novell, Inc.
//
// This code is inserted after the automatically generated code.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
[Obsolete ("Replaced by Target property.")]
public Gdk.Atom target {
get {
Gdk.Atom ret = new Gdk.Atom(_target);
if (ret == null) ret = new Gdk.Atom(_target);
return ret;
}
set { _target = value.Handle; }
}

41
gtk/TextAppearance.custom Normal file
View file

@ -0,0 +1,41 @@
// Gtk.TextAppearance.custom - Gtk TextAppearance class customizations
//
// Authors: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2005 Novell, Inc.
//
// This code is inserted after the automatically generated code.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
[Obsolete ("Replaced by BgStipple property.")]
public Gdk.Pixmap bg_stipple {
get {
Gdk.Pixmap ret = GLib.Object.GetObject(_bg_stipple) as Gdk.Pixmap;
return ret;
}
set { _bg_stipple = value.Handle; }
}
[Obsolete ("Replaced by FgStipple property.")]
public Gdk.Pixmap fg_stipple {
get {
Gdk.Pixmap ret = GLib.Object.GetObject(_fg_stipple) as Gdk.Pixmap;
return ret;
}
set { _fg_stipple = value.Handle; }
}

53
gtk/TextAttributes.custom Normal file
View file

@ -0,0 +1,53 @@
// Gtk.TextAttributes.custom - Gtk TextAttributes class customizations
//
// Authors: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2005 Novell, Inc.
//
// This code is inserted after the automatically generated code.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
[Obsolete ("Replaced by Font property.")]
public Pango.FontDescription font {
get {
Pango.FontDescription ret = new Pango.FontDescription(_font);
if (ret == null) ret = new Pango.FontDescription(_font);
return ret;
}
set { _font = value.Handle; }
}
[Obsolete ("Replaced by Tabs property.")]
public Pango.TabArray tabs {
get {
Pango.TabArray ret = new Pango.TabArray(_tabs);
if (ret == null) ret = new Pango.TabArray(_tabs);
return ret;
}
set { _tabs = value.Handle; }
}
[Obsolete ("Replaced by Language property.")]
public Pango.Language language {
get {
Pango.Language ret = new Pango.Language(_language);
if (ret == null) ret = new Pango.Language(_language);
return ret;
}
set { _language = value.Handle; }
}

39
gtk/TooltipsData.custom Normal file
View file

@ -0,0 +1,39 @@
// Gtk.TooltipsData.custom - Gtk TooltipsData class customizations
//
// Author: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2005 Novell, Inc.
//
// This code is inserted after the automatically generated code.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
[Obsolete ("Replaced by Tooltips property.")]
public Gtk.Tooltips tooltips {
get {
return GLib.Object.GetObject(_tooltips) as Gtk.Tooltips;
}
set { _tooltips = value == null ? IntPtr.Zero : value.Handle; }
}
[Obsolete ("Replaced by Widget property.")]
public Gtk.Widget widget {
get {
return GLib.Object.GetObject(_widget) as Gtk.Widget;
}
set { _widget = value == null ? IntPtr.Zero : value.Handle; }
}

View file

@ -30,3 +30,36 @@
return result;
}
}
[Obsolete ("Replaced by ShapeEngine property")]
public Pango.EngineShape shape_engine {
get {
return _shape_engine == IntPtr.Zero ? null : new Pango.EngineShape(_shape_engine);
}
set { _shape_engine = value == null ? IntPtr.Zero : value.Handle; }
}
[Obsolete ("Replaced by LangEngine property")]
public Pango.EngineLang lang_engine {
get {
return _lang_engine == IntPtr.Zero ? null : new Pango.EngineLang(_lang_engine);
}
set { _lang_engine = value == null ? IntPtr.Zero : value.Handle; }
}
[Obsolete ("Replaced by Font property")]
public Pango.Font font {
get {
return GLib.Object.GetObject(_font) as Pango.Font;
}
set { _font = value == null ? IntPtr.Zero : value.Handle; }
}
[Obsolete ("Replaced by Language property")]
public Pango.Language language {
get {
return _language == IntPtr.Zero ? null : new Pango.Language(_language);
}
set { _language = value == null ? IntPtr.Zero : value.Handle; }
}

View file

@ -16,7 +16,8 @@ sources = \
customs = \
Handle.custom \
Pixbuf.custom
Pixbuf.custom \
State.custom
add_dist = rsvg-sharp-2.0.pc.in

55
rsvg/State.custom Normal file
View file

@ -0,0 +1,55 @@
// Rsvg.State.custom - Rsvg State class customizations
//
// Author: Mike Kestner <mkestner@novell.com>
//
// Copyright (c) 2005 Novell, Inc.
//
// This code is inserted after the automatically generated code.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
[Obsolete ("Replaced by Fill property.")]
public Rsvg.PaintServer fill {
get {
return _fill == IntPtr.Zero ? null : new Rsvg.PaintServer(_fill);
}
set { _fill = value == null ? IntPtr.Zero : value.Handle; }
}
[Obsolete ("Replaced by Stroke property.")]
public Rsvg.PaintServer stroke {
get {
return _stroke == IntPtr.Zero ? null : new Rsvg.PaintServer(_stroke);
}
set { _stroke = value == null ? IntPtr.Zero : value.Handle; }
}
[Obsolete ("Replaced by Dash property.")]
public Art.VpathDash dash {
get {
return _dash == IntPtr.Zero ? null : new Art.VpathDash(_dash);
}
set { _dash = value == null ? IntPtr.Zero : value.Handle; }
}
[Obsolete ("Replaced by SavePixbuf property.")]
public Gdk.Pixbuf save_pixbuf {
get {
return GLib.Object.GetObject(_save_pixbuf) as Gdk.Pixbuf;
}
set { _save_pixbuf = value == null ? IntPtr.Zero : value.Handle; }
}