alternative to assert
[gtkD.git] / gtkD / src / gtk / VRuler.d
blob9603364e3c493d3ff59e7884bd9a7c3f10740042
1 /*
2 * This file is part of gtkD.
4 * gtkD 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 * gtkD 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 gtkD; 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 * module aliases:
47 * local aliases:
50 module gtk.VRuler;
52 version(noAssert)
54 version(Tango)
56 import tango.io.Stdout; // use the tango loging?
60 private import gtkc.gtktypes;
62 private import gtkc.gtk;
69 /**
70 * Description
71 * Note
72 * This widget is considered too specialized/little-used for
73 * GTK+, and will in the future be moved to some other package. If
74 * your application needs this widget, feel free to use it, as the
75 * widget does work and is useful in some applications; it's just not
76 * of general interest. However, we are not accepting new features for
77 * the widget, and it will eventually move out of the GTK+
78 * distribution.
79 * The VRuler widget is a widget arranged vertically creating a ruler that is
80 * utilized around other widgets such as a text widget. The ruler is used to show
81 * the location of the mouse on the window and to show the size of the window in
82 * specified units. The available units of measurement are GTK_PIXELS, GTK_INCHES
83 * and GTK_CENTIMETERS. GTK_PIXELS is the default.
84 * rulers.
86 private import gtk.Ruler;
87 public class VRuler : Ruler
90 /** the main Gtk struct */
91 protected GtkVRuler* gtkVRuler;
94 public GtkVRuler* getVRulerStruct()
96 return gtkVRuler;
100 /** the main Gtk struct as a void* */
101 protected void* getStruct()
103 return cast(void*)gtkVRuler;
107 * Sets our main struct and passes it to the parent class
109 public this (GtkVRuler* gtkVRuler)
111 version(noAssert)
113 if ( gtkVRuler is null )
115 int zero = 0;
116 version(Tango)
118 Stdout("struct gtkVRuler is null on constructor").newline;
120 else
122 printf("struct gtkVRuler is null on constructor");
124 zero = zero / zero;
127 else
129 assert(gtkVRuler !is null, "struct gtkVRuler is null on constructor");
131 super(cast(GtkRuler*)gtkVRuler);
132 this.gtkVRuler = gtkVRuler;
140 * Creates a new vertical ruler
141 * Returns:
142 * a new GtkVRuler.
144 public this ()
146 // GtkWidget* gtk_vruler_new (void);
147 this(cast(GtkVRuler*)gtk_vruler_new() );