2004-09-29 18:00:38 +00:00
|
|
|
// GtkSharp.Generation.GStringGen.cs - The GString type Generatable.
|
|
|
|
//
|
2004-12-26 21:22:50 +00:00
|
|
|
// Author: Mike Kestner <mkestner@novell.com>
|
2004-09-29 18:00:38 +00:00
|
|
|
//
|
|
|
|
// Copyright (c) 2004 Novell, Inc.
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of version 2 of the GNU General Public
|
|
|
|
// License as published by the Free Software Foundation.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public
|
|
|
|
// License along with this program; if not, write to the
|
|
|
|
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
// Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
|
|
|
|
namespace GtkSharp.Generation {
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
2004-12-26 21:22:50 +00:00
|
|
|
public class GStringGen : SimpleBase {
|
2004-09-29 18:00:38 +00:00
|
|
|
|
2004-12-26 21:22:50 +00:00
|
|
|
public GStringGen () : base ("GString", "string") {}
|
2004-09-29 18:00:38 +00:00
|
|
|
|
2004-12-26 21:22:50 +00:00
|
|
|
public override string MarshalType {
|
2004-09-29 18:00:38 +00:00
|
|
|
get {
|
|
|
|
return "IntPtr";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-12-26 21:22:50 +00:00
|
|
|
public override string CallByName (string var_name)
|
2004-09-29 18:00:38 +00:00
|
|
|
{
|
|
|
|
return "(new GLib.GString (" + var_name + ")).Handle";
|
|
|
|
}
|
|
|
|
|
2004-12-26 21:22:50 +00:00
|
|
|
public override string FromNative (string var)
|
2004-09-29 18:00:38 +00:00
|
|
|
{
|
|
|
|
return "GLib.GString.PtrToString (" + var + ")";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|