2001-11-05 Mike Kestner <mkestner@speakeasy.net>

* codegen/defs-parse.pl (gen_object): Generate a ctor (IntPtr obj) for
	every object.  This is a wrapper constructor for use by an Object
	manager which will be called by GLib.Object.GetObject eventually to
	wrap raw GObject pointers returned by methods/props.

svn path=/trunk/gtk-sharp/; revision=1270
This commit is contained in:
Mike Kestner 2001-11-06 01:08:51 +00:00
parent aba851645c
commit 4fbf115083
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2001-11-05 Mike Kestner <mkestner@speakeasy.net>
* codegen/defs-parse.pl (gen_object): Generate a ctor (IntPtr obj) for
every object. This is a wrapper constructor for use by an Object
manager which will be called by GLib.Object.GetObject eventually to
wrap raw GObject pointers returned by methods/props.
2001-11-04 Mike Kestner <mkestner@speakeasy.net>
* codegen/defs-parse.pl : struct generation. Added float and double

View file

@ -236,6 +236,13 @@ sub gen_object
}
print OUTFILE "class $typename : $parent {\n\n";
print OUTFILE "\t\t/// <summary> $typename Constructor </summary>\n";
print OUTFILE "\t\t/// <remarks>\n";
print OUTFILE "\t\t///\tWraps a raw GObject reference.\n";
print OUTFILE "\t\t/// </remarks>\n\n";
print OUTFILE "\t\tpublic $typename (IntPtr o)\n\t\t{\n";
print OUTFILE "\t\t\tRawObject = o;\n\t\t}\n\n";
foreach $ctor (@ctors) {
print OUTFILE gen_ctor ($ctor, "gtk-1.3.dll");
}