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  = GtkVScrollbar.html
27  * outPack = gtk
28  * outFile = VScrollbar
29  * strct   = GtkVScrollbar
30  * realStrct=
31  * ctorStrct=
32  * clss    = VScrollbar
33  * interf  = 
34  * class Code: No
35  * interface Code: No
36  * template for:
37  * extend  = 
38  * implements:
39  * prefixes:
40  * 	- gtk_vscrollbar_
41  * omit structs:
42  * omit prefixes:
43  * omit code:
44  * omit signals:
45  * imports:
46  * 	- gtk.Adjustment
47  * structWrap:
48  * 	- GtkAdjustment* -> Adjustment
49  * module aliases:
50  * local aliases:
51  * overrides:
52  */
53 
54 module gtk.VScrollbar;
55 
56 public  import gtkc.gtktypes;
57 
58 private import gtkc.gtk;
59 private import glib.ConstructionException;
60 private import gobject.ObjectG;
61 
62 private import gtk.Adjustment;
63 
64 
65 private import gtk.Scrollbar;
66 
67 /**
68  * The GtkVScrollbar widget is a widget arranged vertically creating a
69  * scrollbar. See GtkScrollbar for details on
70  * scrollbars. GtkAdjustment pointers may be added to handle the
71  * adjustment of the scrollbar or it may be left NULL in which case one
72  * will be created for you. See GtkScrollbar for a description of what the
73  * fields in an adjustment represent for a scrollbar.
74  *
75  * GtkVScrollbar has been deprecated, use GtkScrollbar instead.
76  */
77 public class VScrollbar : Scrollbar
78 {
79 	
80 	/** the main Gtk struct */
81 	protected GtkVScrollbar* gtkVScrollbar;
82 	
83 	
84 	/** Get the main Gtk struct */
85 	public GtkVScrollbar* getVScrollbarStruct()
86 	{
87 		return gtkVScrollbar;
88 	}
89 	
90 	
91 	/** the main Gtk struct as a void* */
92 	protected override void* getStruct()
93 	{
94 		return cast(void*)gtkVScrollbar;
95 	}
96 	
97 	/**
98 	 * Sets our main struct and passes it to the parent class
99 	 */
100 	public this (GtkVScrollbar* gtkVScrollbar)
101 	{
102 		super(cast(GtkScrollbar*)gtkVScrollbar);
103 		this.gtkVScrollbar = gtkVScrollbar;
104 	}
105 	
106 	protected override void setStruct(GObject* obj)
107 	{
108 		super.setStruct(obj);
109 		gtkVScrollbar = cast(GtkVScrollbar*)obj;
110 	}
111 	
112 	/**
113 	 */
114 	
115 	/**
116 	 * Warning
117 	 * gtk_vscrollbar_new has been deprecated since version 3.2 and should not be used in newly-written code. Use gtk_scrollbar_new() with GTK_ORIENTATION_VERTICAL instead
118 	 * Creates a new vertical scrollbar.
119 	 * Params:
120 	 * adjustment = the GtkAdjustment to use, or NULL to create a new adjustment. [allow-none]
121 	 * Throws: ConstructionException GTK+ fails to create the object.
122 	 */
123 	public this (Adjustment adjustment)
124 	{
125 		// GtkWidget * gtk_vscrollbar_new (GtkAdjustment *adjustment);
126 		auto p = gtk_vscrollbar_new((adjustment is null) ? null : adjustment.getAdjustmentStruct());
127 		if(p is null)
128 		{
129 			throw new ConstructionException("null returned by gtk_vscrollbar_new((adjustment is null) ? null : adjustment.getAdjustmentStruct())");
130 		}
131 		this(cast(GtkVScrollbar*) p);
132 	}
133 }