Wrote the README_GIT file to be a proper tutorial on git, repo.or.cz and gtkD.
[gtkD.git] / gtkD / src / gtk / Arrow.d
blob4c762927f4004f69d7d2a9405185846bfa7539aa
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 = GtkArrow.html
26 * outPack = gtk
27 * outFile = Arrow
28 * strct = GtkArrow
29 * realStrct=
30 * ctorStrct=
31 * clss = Arrow
32 * interf =
33 * class Code: No
34 * interface Code: No
35 * template for:
36 * extend =
37 * implements:
38 * prefixes:
39 * - gtk_arrow_
40 * - gtk_
41 * omit structs:
42 * omit prefixes:
43 * omit code:
44 * imports:
45 * structWrap:
46 * module aliases:
47 * local aliases:
50 module gtk.Arrow;
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 * GtkArrow should be used to draw simple arrows that need to point in
72 * one of the four cardinal directions (up, down, left, or right). The
73 * style of the arrow can be one of shadow in, shadow out, etched in, or
74 * etched out. Note that these directions and style types may be
75 * ammended in versions of Gtk to come.
76 * GtkArrow will fill any space alloted to it, but since it is inherited
77 * from GtkMisc, it can be padded and/or aligned, to fill exactly the
78 * space the programmer desires.
79 * Arrows are created with a call to gtk_arrow_new(). The direction or
80 * style of an arrow can be changed after creation by using gtk_arrow_set().
82 private import gtk.Misc;
83 public class Arrow : Misc
86 /** the main Gtk struct */
87 protected GtkArrow* gtkArrow;
90 public GtkArrow* getArrowStruct()
92 return gtkArrow;
96 /** the main Gtk struct as a void* */
97 protected void* getStruct()
99 return cast(void*)gtkArrow;
103 * Sets our main struct and passes it to the parent class
105 public this (GtkArrow* gtkArrow)
107 version(noAssert)
109 if ( gtkArrow is null )
111 int zero = 0;
112 version(Tango)
114 Stdout("struct gtkArrow is null on constructor").newline;
116 else
118 printf("struct gtkArrow is null on constructor");
120 zero = zero / zero;
123 else
125 assert(gtkArrow !is null, "struct gtkArrow is null on constructor");
127 super(cast(GtkMisc*)gtkArrow);
128 this.gtkArrow = gtkArrow;
136 * Creates a new arrow widget.
137 * arrow_type:
138 * a valid GtkArrowType.
139 * shadow_type:
140 * a valid GtkShadowType.
141 * Returns:
142 * the new GtkArrow widget.
144 public this (GtkArrowType arrowType, GtkShadowType shadowType)
146 // GtkWidget* gtk_arrow_new (GtkArrowType arrow_type, GtkShadowType shadow_type);
147 this(cast(GtkArrow*)gtk_arrow_new(arrowType, shadowType) );
151 * Sets the direction and style of the GtkArrow, arrow.
152 * arrow:
153 * a widget of type GtkArrow.
154 * arrow_type:
155 * a valid GtkArrowType.
156 * shadow_type:
157 * a valid GtkShadowType.
158 * Property Details
159 * The "arrow-type" property
160 * "arrow-type" GtkArrowType : Read / Write
161 * The direction the arrow should point.
162 * Default value: GTK_ARROW_RIGHT
164 public void set(GtkArrowType arrowType, GtkShadowType shadowType)
166 // void gtk_arrow_set (GtkArrow *arrow, GtkArrowType arrow_type, GtkShadowType shadow_type);
167 gtk_arrow_set(gtkArrow, arrowType, shadowType);