alternative to assert
[gtkD.git] / src / gtk / VRuler.d
blob67c1dd69a9e69ba7aadca0cead0d80b5392e9308
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 = GtkVRuler.html
26 * outPack = gtk
27 * outFile = VRuler
28 * strct = GtkVRuler
29 * realStrct=
30 * ctorStrct=
31 * clss = VRuler
32 * interf =
33 * class Code: No
34 * interface Code: No
35 * template for:
36 * extend =
37 * implements:
38 * prefixes:
39 * - gtk_vruler_
40 * - gtk_
41 * omit structs:
42 * omit prefixes:
43 * omit code:
44 * imports:
45 * structWrap:
46 * local aliases:
49 module gtk.VRuler;
51 private import gtk.gtktypes;
53 private import lib.gtk;
56 /**
57 * Description
58 * Note
59 * This widget is considered too specialized/little-used for
60 * GTK+, and will in the future be moved to some other package. If
61 * your application needs this widget, feel free to use it, as the
62 * widget does work and is useful in some applications; it's just not
63 * of general interest. However, we are not accepting new features for
64 * the widget, and it will eventually move out of the GTK+
65 * distribution.
66 * The VRuler widget is a widget arranged vertically creating a ruler that is
67 * utilized around other widgets such as a text widget. The ruler is used to show
68 * the location of the mouse on the window and to show the size of the window in
69 * specified units. The available units of measurement are GTK_PIXELS, GTK_INCHES
70 * and GTK_CENTIMETERS. GTK_PIXELS is the default.
71 * rulers.
73 private import gtk.Ruler;
74 public class VRuler : Ruler
77 /** the main Gtk struct */
78 protected GtkVRuler* gtkVRuler;
81 public GtkVRuler* getVRulerStruct()
83 return gtkVRuler;
87 /** the main Gtk struct as a void* */
88 protected void* getStruct()
90 return cast(void*)gtkVRuler;
93 /**
94 * Sets our main struct and passes it to the parent class
96 public this (GtkVRuler* gtkVRuler)
98 super(cast(GtkRuler*)gtkVRuler);
99 this.gtkVRuler = gtkVRuler;
107 * Creates a new vertical ruler
108 * Returns:
109 * a new GtkVRuler.
111 public this ()
113 // GtkWidget* gtk_vruler_new (void);
114 this(cast(GtkVRuler*)gtk_vruler_new() );