mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-27 10:35:29 +00:00
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 + ")";
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|