mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 04:15:36 +00:00
9f54a63375
* gtk/Container.custom : add CallbackInvoke and use it in OnForall. 2004-05-19 Mike Kestner <mkestner@ximian.com> * generator/Makefile.am : add TimeTGen.cs * generator/SymbolTable.cs : use new TimeTGen. * generator/StringGen.cs : s/GLibSharp/GLib * generator/TimeTGen.cs : generatable to marshal time_t. * glib/time_t_CustomMarshaler.cs : kill * glib/Makefile.am : remove time_t_CustomMarshaler.cs * glib/Markup.cs : s/GLibSharp/GLib * glib/Marshaller.cs : move to GLib namespace. Add methods to marshal time_t to and from DateTime. * glib/glue/time_t.c : kill * glib/glue/Makefile.am : remove time_t.c * glib/glue/makefile.win32 : remove time_t.o * gnome/*.custom : use GLib.Marshaller instead of the time_t custom marshaler. * gtk/*.custom : s/GLibSharp/GLib svn path=/trunk/gtk-sharp/; revision=27704
81 lines
1.2 KiB
C#
81 lines
1.2 KiB
C#
// GtkSharp.Generation.TimeTGen.cs - The time_t Generatable.
|
|
//
|
|
// Author: Mike Kestner <mkestner@speakeasy.net>
|
|
//
|
|
// (c) 2003 Mike Kestner
|
|
|
|
namespace GtkSharp.Generation {
|
|
|
|
using System;
|
|
|
|
public class TimeTGen : IGeneratable {
|
|
|
|
string ctype;
|
|
string type;
|
|
string ns = "";
|
|
|
|
public string CName {
|
|
get
|
|
{
|
|
return "time_t";
|
|
}
|
|
}
|
|
|
|
public string Name {
|
|
get
|
|
{
|
|
return "DateTime";
|
|
}
|
|
}
|
|
|
|
public string QualifiedName {
|
|
get
|
|
{
|
|
return "System.DateTime";
|
|
}
|
|
}
|
|
|
|
public string MarshalType {
|
|
get
|
|
{
|
|
return "IntPtr";
|
|
}
|
|
}
|
|
public string MarshalReturnType {
|
|
get
|
|
{
|
|
return "IntPtr";
|
|
}
|
|
}
|
|
|
|
public string CallByName (string var_name)
|
|
{
|
|
return "GLib.Marshaller.DateTimeTotime_t (" + var_name + ")";
|
|
}
|
|
|
|
public virtual string FromNative(string var)
|
|
{
|
|
return "GLib.Marshaller.time_tToDateTime (" + var + ")";
|
|
}
|
|
|
|
public virtual string FromNativeReturn(string var)
|
|
{
|
|
return FromNative (var);
|
|
}
|
|
|
|
public virtual string ToNativeReturn(string var)
|
|
{
|
|
return CallByName (var);
|
|
}
|
|
|
|
public void Generate ()
|
|
{
|
|
}
|
|
|
|
public void Generate (GenerationInfo gen_info)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|