mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 19:45:37 +00:00
460b3e5623
* generator/AliasGen.cs : stub new Generate overload. * generator/BoxedGen.cs : implement new Generate overload. * generator/CallbackGen.cs (Generate):implement new overload. * generator/ClassBase.cs : implement new Generate overload and pass around the gen_info. * generator/ClassGen.cs : implement new Generate overload. * generator/Ctor.cs (Generate): s/sw/gen_info. * generator/EnumGen.cs : implement new Generate overload. * generator/GenBase.cs : expose NSElem, add gen_info param to AppendCustom. kill CreateWriter. (GenWrapper): add gen_info param and use it to open stream. * generator/GenerationInfo.cs : new class to pass around generation related information and perform tasks like opening streams. * generator/IGeneratable.cs : add Generate(gen_info) overload. * generator/InterfaceGen.cs : implement new Generate overload. * generator/ManualGen.cs : stub new Generate overload. * generator/Method.cs (Generate): accept gen_info. kill GenerateComments. * generator/ObjectGen.cs : implement new Generate overload. * generator/OpaqueGen.cs : implement new Generate overload. * generator/Parameters.cs (Initialize): s/sw/gen_info. * generator/Property.cs (Generate): accept gen_info. * generator/Signal.cs (Generate): accept gen_info. * generator/SimpleGen.cs : stub new Generate overload. * generator/StructBase.cs : s/sw/gen_info * generator/StructGen.cs : implement new Generate overload. svn path=/trunk/gtk-sharp/; revision=18615
86 lines
1.2 KiB
C#
86 lines
1.2 KiB
C#
// GtkSharp.Generation.SimpleGen.cs - The Simple type Generatable.
|
|
//
|
|
// Author: Mike Kestner <mkestner@speakeasy.net>
|
|
//
|
|
// (c) 2003 Mike Kestner
|
|
|
|
namespace GtkSharp.Generation {
|
|
|
|
using System;
|
|
|
|
public class SimpleGen : IGeneratable {
|
|
|
|
string type;
|
|
string ctype;
|
|
|
|
public SimpleGen (string ctype, string type)
|
|
{
|
|
this.ctype = ctype;
|
|
this.type = type;
|
|
}
|
|
|
|
public string CName {
|
|
get
|
|
{
|
|
return ctype;
|
|
}
|
|
}
|
|
|
|
public string Name {
|
|
get
|
|
{
|
|
return type;
|
|
}
|
|
}
|
|
|
|
public string QualifiedName {
|
|
get
|
|
{
|
|
return type;
|
|
}
|
|
}
|
|
|
|
public string MarshalType {
|
|
get
|
|
{
|
|
return type;
|
|
}
|
|
}
|
|
public virtual string MarshalReturnType {
|
|
get
|
|
{
|
|
return type;
|
|
}
|
|
}
|
|
|
|
public string CallByName (string var_name)
|
|
{
|
|
return var_name;
|
|
}
|
|
|
|
public string FromNative(string var)
|
|
{
|
|
return var;
|
|
}
|
|
|
|
public virtual string FromNativeReturn(string var)
|
|
{
|
|
return var;
|
|
}
|
|
|
|
public virtual string ToNativeReturn(string var)
|
|
{
|
|
return var;
|
|
}
|
|
|
|
public void Generate ()
|
|
{
|
|
}
|
|
|
|
public void Generate (GenerationInfo gen_info)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|