1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19  
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 /*
25  * Conversion parameters:
26  * inFile  = GtkVPaned.html
27  * outPack = gtk
28  * outFile = VPaned
29  * strct   = GtkVPaned
30  * realStrct=
31  * ctorStrct=
32  * clss    = VPaned
33  * interf  = 
34  * class Code: Yes
35  * interface Code: No
36  * template for:
37  * extend  = 
38  * implements:
39  * prefixes:
40  * 	- gtk_vpaned_
41  * 	- gtk_
42  * omit structs:
43  * omit prefixes:
44  * omit code:
45  * omit signals:
46  * imports:
47  * 	- gtk.Widget
48  * structWrap:
49  * module aliases:
50  * local aliases:
51  * overrides:
52  */
53 
54 module gtk.VPaned;
55 
56 public  import gtkc.gtktypes;
57 
58 private import gtkc.gtk;
59 private import glib.ConstructionException;
60 private import gobject.ObjectG;
61 
62 
63 private import gtk.Widget;
64 
65 
66 
67 private import gtk.Paned;
68 
69 /**
70  * Description
71  * The VPaned widget is a container widget with two
72  * children arranged vertically. The division between
73  * the two panes is adjustable by the user by dragging
74  * a handle. See GtkPaned for details.
75  */
76 public class VPaned : Paned
77 {
78 	
79 	/** the main Gtk struct */
80 	protected GtkVPaned* gtkVPaned;
81 	
82 	
83 	public GtkVPaned* getVPanedStruct()
84 	{
85 		return gtkVPaned;
86 	}
87 	
88 	
89 	/** the main Gtk struct as a void* */
90 	protected override void* getStruct()
91 	{
92 		return cast(void*)gtkVPaned;
93 	}
94 	
95 	/**
96 	 * Sets our main struct and passes it to the parent class
97 	 */
98 	public this (GtkVPaned* gtkVPaned)
99 	{
100 		super(cast(GtkPaned*)gtkVPaned);
101 		this.gtkVPaned = gtkVPaned;
102 	}
103 	
104 	protected override void setStruct(GObject* obj)
105 	{
106 		super.setStruct(obj);
107 		gtkVPaned = cast(GtkVPaned*)obj;
108 	}
109 	
110 	/**
111 	 * Creates a new HPaned and adds two widgets as it's children
112 	 * Params:
113 	 *  child1 =
114 	 *  child2 =
115 	 */
116 	this(Widget child1, Widget child2)
117 	{
118 		this();
119 		add1(child1);
120 		add2(child2);
121 	}
122 	
123 	
124 	/**
125 	 */
126 	
127 	/**
128 	 * Create a new GtkVPaned
129 	 * Throws: ConstructionException GTK+ fails to create the object.
130 	 */
131 	public this ()
132 	{
133 		// GtkWidget * gtk_vpaned_new (void);
134 		auto p = gtk_vpaned_new();
135 		if(p is null)
136 		{
137 			throw new ConstructionException("null returned by gtk_vpaned_new()");
138 		}
139 		this(cast(GtkVPaned*) p);
140 	}
141 }