1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19  
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 /*
25  * Conversion parameters:
26  * inFile  = GtkToolShell.html
27  * outPack = gtk
28  * outFile = ToolShellT
29  * strct   = GtkToolShell
30  * realStrct=
31  * ctorStrct=
32  * clss    = ToolShellT
33  * interf  = ToolShellIF
34  * class Code: No
35  * interface Code: Yes
36  * template for:
37  * 	- TStruct
38  * extend  = 
39  * implements:
40  * prefixes:
41  * 	- gtk_tool_shell_
42  * omit structs:
43  * omit prefixes:
44  * omit code:
45  * 	- gtk_tool_shell_get_orientation
46  * omit signals:
47  * imports:
48  * 	- gtk.SizeGroup
49  * structWrap:
50  * 	- GtkSizeGroup* -> SizeGroup
51  * module aliases:
52  * local aliases:
53  * 	- getStyle -> toolShellGetStyle
54  * overrides:
55  */
56 
57 module gtk.ToolShellT;
58 
59 public  import gtkc.gtktypes;
60 
61 public import gtkc.gtk;
62 public import glib.ConstructionException;
63 public import gobject.ObjectG;
64 
65 
66 public import gtk.SizeGroup;
67 
68 
69 
70 
71 /**
72  * Description
73  * The GtkToolShell interface allows container widgets to provide additional
74  * information when embedding GtkToolItem widgets.
75  * see_also: GtkToolbar, GtkToolItem
76  */
77 public template ToolShellT(TStruct)
78 {
79 	
80 	/** the main Gtk struct */
81 	protected GtkToolShell* gtkToolShell;
82 	
83 	
84 	public GtkToolShell* getToolShellTStruct()
85 	{
86 		return cast(GtkToolShell*)getStruct();
87 	}
88 	
89 	
90 	/**
91 	 */
92 	
93 	/**
94 	 * Retrieves the current ellipsize mode for the tool shell. Tool items must not
95 	 * call this function directly, but rely on gtk_tool_item_get_ellipsize_mode()
96 	 * instead.
97 	 * Since 2.20
98 	 * Returns: the current ellipsize mode of shell
99 	 */
100 	public PangoEllipsizeMode getEllipsizeMode()
101 	{
102 		// PangoEllipsizeMode gtk_tool_shell_get_ellipsize_mode (GtkToolShell *shell);
103 		return gtk_tool_shell_get_ellipsize_mode(getToolShellTStruct());
104 	}
105 	
106 	/**
107 	 * Retrieves the icon size for the tool shell. Tool items must not call this
108 	 * function directly, but rely on gtk_tool_item_get_icon_size() instead.
109 	 * Since 2.14
110 	 * Returns: the current size for icons of shell. [type int]
111 	 */
112 	public GtkIconSize getIconSize()
113 	{
114 		// GtkIconSize gtk_tool_shell_get_icon_size (GtkToolShell *shell);
115 		return gtk_tool_shell_get_icon_size(getToolShellTStruct());
116 	}
117 	
118 	/**
119 	 * Returns the relief style of buttons on shell. Tool items must not call this
120 	 * function directly, but rely on gtk_tool_item_get_relief_style() instead.
121 	 * Since 2.14
122 	 * Returns: The relief style of buttons on shell.
123 	 */
124 	public GtkReliefStyle getReliefStyle()
125 	{
126 		// GtkReliefStyle gtk_tool_shell_get_relief_style (GtkToolShell *shell);
127 		return gtk_tool_shell_get_relief_style(getToolShellTStruct());
128 	}
129 	
130 	/**
131 	 * Retrieves whether the tool shell has text, icons, or both. Tool items must
132 	 * not call this function directly, but rely on gtk_tool_item_get_style()
133 	 * instead.
134 	 * Since 2.14
135 	 * Returns: the current style of shell
136 	 */
137 	public GtkToolbarStyle toolShellGetStyle()
138 	{
139 		// GtkToolbarStyle gtk_tool_shell_get_style (GtkToolShell *shell);
140 		return gtk_tool_shell_get_style(getToolShellTStruct());
141 	}
142 	
143 	/**
144 	 * Retrieves the current text alignment for the tool shell. Tool items must not
145 	 * call this function directly, but rely on gtk_tool_item_get_text_alignment()
146 	 * instead.
147 	 * Since 2.20
148 	 * Returns: the current text alignment of shell
149 	 */
150 	public float getTextAlignment()
151 	{
152 		// gfloat gtk_tool_shell_get_text_alignment (GtkToolShell *shell);
153 		return gtk_tool_shell_get_text_alignment(getToolShellTStruct());
154 	}
155 	
156 	/**
157 	 * Retrieves the current text orientation for the tool shell. Tool items must not
158 	 * call this function directly, but rely on gtk_tool_item_get_text_orientation()
159 	 * instead.
160 	 * Since 2.20
161 	 * Returns: the current text orientation of shell
162 	 */
163 	public GtkOrientation getTextOrientation()
164 	{
165 		// GtkOrientation gtk_tool_shell_get_text_orientation (GtkToolShell *shell);
166 		return gtk_tool_shell_get_text_orientation(getToolShellTStruct());
167 	}
168 	
169 	/**
170 	 * Calling this function signals the tool shell that the overflow menu item for
171 	 * tool items have changed. If there is an overflow menu and if it is visible
172 	 * when this function it called, the menu will be rebuilt.
173 	 * Tool items must not call this function directly, but rely on
174 	 * gtk_tool_item_rebuild_menu() instead.
175 	 * Since 2.14
176 	 */
177 	public void rebuildMenu()
178 	{
179 		// void gtk_tool_shell_rebuild_menu (GtkToolShell *shell);
180 		gtk_tool_shell_rebuild_menu(getToolShellTStruct());
181 	}
182 	
183 	/**
184 	 * Retrieves the current text size group for the tool shell. Tool items must not
185 	 * call this function directly, but rely on gtk_tool_item_get_text_size_group()
186 	 * instead.
187 	 * Since 2.20
188 	 * Returns: the current text size group of shell. [transfer none]
189 	 */
190 	public SizeGroup getTextSizeGroup()
191 	{
192 		// GtkSizeGroup * gtk_tool_shell_get_text_size_group (GtkToolShell *shell);
193 		auto p = gtk_tool_shell_get_text_size_group(getToolShellTStruct());
194 		
195 		if(p is null)
196 		{
197 			return null;
198 		}
199 		
200 		return ObjectG.getDObject!(SizeGroup)(cast(GtkSizeGroup*) p);
201 	}
202 }