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  * omit structs:
42  * omit prefixes:
43  * omit code:
44  * omit signals:
45  * imports:
46  * 	- gtk.Widget
47  * structWrap:
48  * module aliases:
49  * local aliases:
50  * overrides:
51  */
52 
53 module gtk.VPaned;
54 
55 public  import gtkc.gtktypes;
56 
57 private import gtkc.gtk;
58 private import glib.ConstructionException;
59 private import gobject.ObjectG;
60 
61 
62 private import gtk.Widget;
63 
64 
65 
66 private import gtk.Paned;
67 
68 /**
69  * The VPaned widget is a container widget with two
70  * children arranged vertically. The division between
71  * the two panes is adjustable by the user by dragging
72  * a handle. See GtkPaned for details.
73  *
74  * GtkVPaned has been deprecated, use GtkPaned instead.
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 	 * Warning
129 	 * gtk_vpaned_new has been deprecated since version 3.2 and should not be used in newly-written code. Use gtk_paned_new() with GTK_ORIENTATION_VERTICAL instead
130 	 * Create a new GtkVPaned
131 	 * Throws: ConstructionException GTK+ fails to create the object.
132 	 */
133 	public this ()
134 	{
135 		// GtkWidget * gtk_vpaned_new (void);
136 		auto p = gtk_vpaned_new();
137 		if(p is null)
138 		{
139 			throw new ConstructionException("null returned by gtk_vpaned_new()");
140 		}
141 		this(cast(GtkVPaned*) p);
142 	}
143 }