mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 14:45:30 +00:00
058077b7f1
* generator/ConstStringGen.cs: Ditto * generator/Ctor.cs: Ditto * generator/EnumGen.cs: Ditto * generator/ManualGen.cs: Ditto * generator/SignalHandler.cs: Ditto * generator/StringGen.cs: Ditto svn path=/trunk/gtk-sharp/; revision=22710
29 lines
592 B
C#
29 lines
592 B
C#
// GtkSharp.Generation.StringGen.cs - The String type Generatable.
|
|
//
|
|
// Author: Rachel Hestilow <rachel@nullenvoid.com>
|
|
//
|
|
// (c) 2003 Rachel Hestilow
|
|
|
|
namespace GtkSharp.Generation {
|
|
|
|
using System;
|
|
|
|
public class StringGen : ConstStringGen {
|
|
|
|
public StringGen (string ctype) : base (ctype)
|
|
{
|
|
}
|
|
|
|
public override string FromNativeReturn(String var)
|
|
{
|
|
return "GLibSharp.Marshaller.PtrToStringGFree(" + var + ")";
|
|
}
|
|
|
|
public override string ToNativeReturn(String var)
|
|
{
|
|
return "GLibSharp.Marshaller.StringToPtrGStrdup(" + var + ")";
|
|
}
|
|
}
|
|
}
|
|
|