2 * This file is part of duit.
4 * duit is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
9 * duit is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with duit; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
24 * Conversion parameters:
25 * inFile = GtkBin.html
47 * - GtkWidget* -> Widget
53 private import gtk
.gtktypes
;
55 private import lib
.gtk
;
57 private import gtk
.Widget
;
61 * The GtkBin widget is a container with just one child.
62 * It is not very useful itself, but it is useful for deriving subclasses,
63 * since it provides common code needed for handling a single child widget.
64 * Many GTK+ widgets are subclasses of GtkBin, including GtkWindow, GtkButton,
65 * GtkFrame, GtkHandleBox, and GtkScrolledWindow.
67 private import gtk
.Container
;
68 public class Bin
: Container
71 /** the main Gtk struct */
72 protected GtkBin
* gtkBin
;
75 public GtkBin
* getBinStruct()
81 /** the main Gtk struct as a void* */
82 protected void* getStruct()
84 return cast(void*)gtkBin
;
88 * Sets our main struct and passes it to the parent class
90 public this (GtkBin
* gtkBin
)
92 super(cast(GtkContainer
*)gtkBin
);
101 * Gets the child of the GtkBin, or NULL if the bin contains
102 * no child widget. The returned widget does not have a reference
103 * added, so you do not need to unref it.
107 * pointer to child of the GtkBin
109 public Widget
getChild()
111 // GtkWidget* gtk_bin_get_child (GtkBin *bin);
112 return new Widget( gtk_bin_get_child(gtkBin
) );