mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 14:55:32 +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
31 lines
570 B
C#
31 lines
570 B
C#
// GtkSharp.Generation.ConstStringGen.cs - The Const String type Generatable.
|
|
//
|
|
// Author: Rachel Hestilow <rachel@nullenvoid.com>
|
|
//
|
|
// (c) 2003 Rachel Hestilow
|
|
|
|
namespace GtkSharp.Generation {
|
|
|
|
using System;
|
|
|
|
public class ConstStringGen : SimpleGen {
|
|
|
|
public ConstStringGen (string ctype) : base (ctype, "string")
|
|
{
|
|
}
|
|
|
|
public override string MarshalReturnType {
|
|
get
|
|
{
|
|
return "IntPtr";
|
|
}
|
|
}
|
|
|
|
public override string FromNativeReturn(string var)
|
|
{
|
|
return "Marshal.PtrToStringAnsi(" + var + ")";
|
|
}
|
|
}
|
|
}
|
|
|