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
27 * outFile = SeparatorToolItem
28 * strct = GtkSeparatorToolItem
30 * ctorStrct=GtkToolItem
31 * clss = SeparatorToolItem
39 * - gtk_separator_tool_item_
47 * - GtkToolItem* -> ToolItem
51 module gtk
.SeparatorToolItem
;
53 private import gtk
.gtktypes
;
55 private import lib
.gtk
;
57 private import gtk
.ToolItem
;
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
;
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
;
103 * Create a new GtkSeparatorToolItem
105 * the new GtkSeparatorToolItem
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.
119 * a GtkSeparatorToolItem
121 * whether separator_tool_item is drawn as a vertical line
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().
134 * a GtkSeparatorToolItem
136 * TRUE if separator_tool_item is drawn as a line, or just blank.
139 * The "draw" property
140 * "draw" gboolean : Read / Write
141 * Whether the separator is drawn, or just blank.
142 * Default value: TRUE
147 * A toolbar item containing a radio
152 // gboolean gtk_separator_tool_item_get_draw (GtkSeparatorToolItem *item);
153 return gtk_separator_tool_item_get_draw(gtkSeparatorToolItem
);