9e325bd283
* generator/ClassBase.cs (GenSignals): remove doc comment param * generator/GenBase.cs (CreateWriter): alter generated file comment * generator/InterfaceGen.cs (CreateWriter): remove doc comments * generator/ObjectGen.cs (Generate): use new GenSignals sig * generator/Signal.cs : make signal marshalers internal and remove doc comments. * generator/SignalHandler.cs : make signal marshalers internal and remove doc comments. * gnome/CanvasProxy.cs : use Gnome.voidObjectSignal since the gtk one is inaccessible now. svn path=/trunk/gtk-sharp/; revision=14385
53 lines
1.1 KiB
C#
53 lines
1.1 KiB
C#
// GtkSharp.Generation.InterfaceGen.cs - The Interface Generatable.
|
|
//
|
|
// Author: Mike Kestner <mkestner@speakeasy.net>
|
|
//
|
|
// (c) 2001-2002 Mike Kestner
|
|
|
|
namespace GtkSharp.Generation {
|
|
|
|
using System;
|
|
using System.IO;
|
|
using System.Xml;
|
|
|
|
public class InterfaceGen : ClassBase, IGeneratable {
|
|
|
|
public InterfaceGen (XmlElement ns, XmlElement elem) : base (ns, elem) {}
|
|
|
|
public void Generate ()
|
|
{
|
|
if (!DoGenerate)
|
|
return;
|
|
|
|
StreamWriter sw = CreateWriter ();
|
|
|
|
sw.WriteLine ("\tusing System;");
|
|
sw.WriteLine ();
|
|
|
|
sw.WriteLine ("#region Autogenerated code");
|
|
sw.WriteLine ("\tpublic interface " + Name + " : GLib.IWrapper {");
|
|
sw.WriteLine ();
|
|
|
|
foreach (Signal sig in sigs.Values) {
|
|
if (sig.Validate ())
|
|
sig.GenerateDecl (sw);
|
|
}
|
|
|
|
foreach (Method method in methods.Values) {
|
|
if (IgnoreMethod (method))
|
|
continue;
|
|
|
|
if (method.Validate ())
|
|
method.GenerateDecl (sw);
|
|
}
|
|
|
|
AppendCustom (sw);
|
|
|
|
sw.WriteLine ("\t}");
|
|
sw.WriteLine ("#endregion");
|
|
CloseWriter (sw);
|
|
Statistics.IFaceCount++;
|
|
}
|
|
}
|
|
}
|
|
|