[Gtk-sharp-list] class Gtk.Expander
Borja Sanchez Zamorano
borsanza@yahoo.es
Wed, 18 Aug 2004 03:33:36 +0200
--=-41ZY8fCsp8M8umAR9Lvf
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hello
I develop the class Gtk.Expander. I attach the new file.
--
Borja Sanchez Zamorano <borsanza@yahoo.es>
--=-41ZY8fCsp8M8umAR9Lvf
Content-Disposition: attachment; filename=Expander.cs
Content-Type: text/x-csharp; name=Expander.cs; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
// Expander.cs - class GtkExpander
//
// Author: Borja Sanchez Zamorano <borsanza@yahoo.es>
//
// Copyright (c) 2003 Novell, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser 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 Gtk {
using System;
using System.Runtime.InteropServices;
public class Expander : Gtk.Bin {
~Expander()
{
Dispose();
}
protected Expander(GLib.GType gtype) : base(gtype) {}
public Expander(IntPtr raw) : base(raw) {}
[DllImport("libgtk-win32-2.0-0.dll")]
static extern IntPtr gtk_expander_new (string str);
public Expander (string str) : base (IntPtr.Zero)
{
if (GetType () != typeof (Expander)) {
CreateNativeObject (new string [0], new GLib.Value[0]);
return;
}
Raw = gtk_expander_new(str);
}
[DllImport("libgtk-win32-2.0-0.dll")]
static extern IntPtr gtk_expander_new_with_mnemonic (string str);
public static Expander NewWithMnemonic(string label)
{
return new Expander (gtk_expander_new_with_mnemonic(label));
}
[DllImport("libgtk-win32-2.0-0.dll")]
static extern bool gtk_expander_get_expanded (IntPtr raw);
[DllImport("libgtk-win32-2.0-0.dll")]
static extern void gtk_expander_set_expanded (IntPtr raw, bool expanded);
public bool Expanded {
get {
return gtk_expander_get_expanded(Handle);
}
set {
gtk_expander_set_expanded(Handle, value);
}
}
[DllImport("libgtk-win32-2.0-0.dll")]
static extern int gtk_expander_get_spacing(IntPtr raw);
[DllImport("libgtk-win32-2.0-0.dll")]
static extern void gtk_expander_set_spacing(IntPtr raw, int spacing);
public int Spacing {
get {
return gtk_expander_get_spacing(Handle);
}
set {
gtk_expander_set_spacing(Handle, value);
}
}
[DllImport("libgtk-win32-2.0-0.dll")]
static extern string gtk_expander_get_label(IntPtr raw);
[DllImport("libgtk-win32-2.0-0.dll")]
static extern void gtk_expander_set_label(IntPtr raw, string label);
public string Label {
get {
return gtk_expander_get_label(Handle);
}
set {
gtk_expander_set_label(Handle, value);
}
}
[DllImport("libgtk-win32-2.0-0.dll")]
static extern bool gtk_expander_get_use_underline(IntPtr raw);
[DllImport("libgtk-win32-2.0-0.dll")]
static extern void gtk_expander_set_use_underline(IntPtr raw, bool label);
public bool UseUnderline {
get {
return gtk_expander_get_use_underline(Handle);
}
set {
gtk_expander_set_use_underline(Handle, value);
}
}
[DllImport("libgtk-win32-2.0-0.dll")]
static extern bool gtk_expander_get_use_markup(IntPtr raw);
[DllImport("libgtk-win32-2.0-0.dll")]
static extern void gtk_expander_set_use_markup(IntPtr raw, bool label);
public bool UseMarkup {
get {
return gtk_expander_get_use_markup(Handle);
}
set {
gtk_expander_set_use_markup(Handle, value);
}
}
[DllImport("libgtk-win32-2.0-0.dll")]
static extern IntPtr gtk_expander_get_label_widget(IntPtr raw);
[DllImport("libgtk-win32-2.0-0.dll")]
static extern void gtk_expander_set_label_widget(IntPtr raw, IntPtr label_widget);
public Gtk.Widget LabelWidget {
get {
IntPtr raw_ret = gtk_expander_get_label_widget(Handle);
Gtk.Widget ret;
if (raw_ret == IntPtr.Zero)
ret = null;
else
ret = (Gtk.Widget) GLib.Object.GetObject(raw_ret);
return ret;
}
set {
gtk_expander_set_label_widget(Handle, value.Handle);
}
}
}
}
--=-41ZY8fCsp8M8umAR9Lvf--