alternative to assert
[gtkD.git] / src / gtk / SeparatorToolItem.d
blob9ec6c1a4cb99b41fe505d6ff1d7a319add0a7b23
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 = GtkSeparatorToolItem.html
26 * outPack = gtk
27 * outFile = SeparatorToolItem
28 * strct = GtkSeparatorToolItem
29 * realStrct=
30 * ctorStrct=GtkToolItem
31 * clss = SeparatorToolItem
32 * interf =
33 * class Code: No
34 * interface Code: No
35 * template for:
36 * extend =
37 * implements:
38 * prefixes:
39 * - gtk_separator_tool_item_
40 * - gtk_
41 * omit structs:
42 * omit prefixes:
43 * omit code:
44 * imports:
45 * - gtk.ToolItem
46 * structWrap:
47 * - GtkToolItem* -> ToolItem
48 * local aliases:
51 module gtk.SeparatorToolItem;
53 private import gtk.gtktypes;
55 private import lib.gtk;
57 private import gtk.ToolItem;
59 /**
60 * Description
61 * A GtkSeparatorItem is a GtkToolItem that separates groups of other
62 * GtkToolItems. Depending on the theme, a GtkSeparatorToolItem will
63 * often look like a vertical line on horizontally docked toolbars.
64 * If the property "expand" is TRUE and the property "draw" is FALSE, a
65 * GtkSeparatorToolItem will act as a "spring" that forces other items
66 * to the ends of the toolbar.
67 * Use gtk_separator_tool_item_new() to create a new GtkSeparatorToolItem.
69 private import gtk.ToolItem;
70 public class SeparatorToolItem : ToolItem
73 /** the main Gtk struct */
74 protected GtkSeparatorToolItem* gtkSeparatorToolItem;
77 public GtkSeparatorToolItem* getSeparatorToolItemStruct()
79 return gtkSeparatorToolItem;
83 /** the main Gtk struct as a void* */
84 protected void* getStruct()
86 return cast(void*)gtkSeparatorToolItem;
89 /**
90 * Sets our main struct and passes it to the parent class
92 public this (GtkSeparatorToolItem* gtkSeparatorToolItem)
94 super(cast(GtkToolItem*)gtkSeparatorToolItem);
95 this.gtkSeparatorToolItem = gtkSeparatorToolItem;
98 /**
103 * Create a new GtkSeparatorToolItem
104 * Returns:
105 * the new GtkSeparatorToolItem
106 * Since 2.4
108 public this ()
110 // GtkToolItem* gtk_separator_tool_item_new (void);
111 this(cast(GtkSeparatorToolItem*)gtk_separator_tool_item_new() );
115 * When separator_tool_items is drawn as a vertical line, or just blank.
116 * Setting this FALSE along with gtk_tool_item_set_expand() is useful
117 * to create an item that forces following items to the end of the toolbar.
118 * item:
119 * a GtkSeparatorToolItem
120 * draw:
121 * whether separator_tool_item is drawn as a vertical line
122 * Since 2.4
124 public void setDraw(int draw)
126 // void gtk_separator_tool_item_set_draw (GtkSeparatorToolItem *item, gboolean draw);
127 gtk_separator_tool_item_set_draw(gtkSeparatorToolItem, draw);
131 * Returns whether separator_tool_item is drawn as a
132 * line, or just blank. See gtk_separator_tool_item_set_draw().
133 * item:
134 * a GtkSeparatorToolItem
135 * Returns:
136 * TRUE if separator_tool_item is drawn as a line, or just blank.
137 * Since 2.4
138 * Property Details
139 * The "draw" property
140 * "draw" gboolean : Read / Write
141 * Whether the separator is drawn, or just blank.
142 * Default value: TRUE
143 * See Also
144 * GtkToolbar
145 * The toolbar widget
146 * GtkRadioToolButton
147 * A toolbar item containing a radio
148 * button
150 public int getDraw()
152 // gboolean gtk_separator_tool_item_get_draw (GtkSeparatorToolItem *item);
153 return gtk_separator_tool_item_get_draw(gtkSeparatorToolItem);