I've no idea here...
[gtkD.git] / src / gtk / Bin.d
blob366a75fb285eb8a935637c2c07d30c8d7e92d21e
1 /*
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
26 * outPack = gtk
27 * outFile = Bin
28 * strct = GtkBin
29 * realStrct=
30 * ctorStrct=
31 * clss = Bin
32 * interf =
33 * class Code: No
34 * interface Code: No
35 * template for:
36 * extend =
37 * implements:
38 * prefixes:
39 * - gtk_bin_
40 * - gtk_
41 * omit structs:
42 * omit prefixes:
43 * omit code:
44 * imports:
45 * - gtk.Widget
46 * structWrap:
47 * - GtkWidget* -> Widget
48 * local aliases:
51 module gtk.Bin;
53 private import gtk.gtktypes;
55 private import lib.gtk;
57 private import gtk.Widget;
59 /**
60 * Description
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()
77 return gtkBin;
81 /** the main Gtk struct as a void* */
82 protected void* getStruct()
84 return cast(void*)gtkBin;
87 /**
88 * Sets our main struct and passes it to the parent class
90 public this (GtkBin* gtkBin)
92 super(cast(GtkContainer*)gtkBin);
93 this.gtkBin = gtkBin;
96 /**
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.
104 * bin:
105 * a GtkBin
106 * Returns:
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) );