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 -> getToolBarStyle
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 public import gtk.SizeGroup;
66 
67 
68 
69 /**
70  * The GtkToolShell interface allows container widgets to provide additional
71  * information when embedding GtkToolItem widgets.
72  */
73 public template ToolShellT(TStruct)
74 {
75 	
76 	/** the main Gtk struct */
77 	protected GtkToolShell* gtkToolShell;
78 	
79 	
80 	/** Get the main Gtk struct */
81 	public GtkToolShell* getToolShellTStruct()
82 	{
83 		return cast(GtkToolShell*)getStruct();
84 	}
85 	
86 	
87 	/**
88 	 */
89 	
90 	/**
91 	 * Retrieves the current ellipsize mode for the tool shell. Tool items must not
92 	 * call this function directly, but rely on gtk_tool_item_get_ellipsize_mode()
93 	 * instead.
94 	 * Since 2.20
95 	 * Returns: the current ellipsize mode of shell
96 	 */
97 	public PangoEllipsizeMode getEllipsizeMode()
98 	{
99 		// PangoEllipsizeMode gtk_tool_shell_get_ellipsize_mode (GtkToolShell *shell);
100 		return gtk_tool_shell_get_ellipsize_mode(getToolShellTStruct());
101 	}
102 	
103 	/**
104 	 * Retrieves the icon size for the tool shell. Tool items must not call this
105 	 * function directly, but rely on gtk_tool_item_get_icon_size() instead.
106 	 * Since 2.14
107 	 * Returns: the current size for icons of shell. [type int]
108 	 */
109 	public GtkIconSize getIconSize()
110 	{
111 		// GtkIconSize gtk_tool_shell_get_icon_size (GtkToolShell *shell);
112 		return gtk_tool_shell_get_icon_size(getToolShellTStruct());
113 	}
114 	
115 	/**
116 	 * Returns the relief style of buttons on shell. Tool items must not call this
117 	 * function directly, but rely on gtk_tool_item_get_relief_style() instead.
118 	 * Since 2.14
119 	 * Returns: The relief style of buttons on shell.
120 	 */
121 	public GtkReliefStyle getReliefStyle()
122 	{
123 		// GtkReliefStyle gtk_tool_shell_get_relief_style (GtkToolShell *shell);
124 		return gtk_tool_shell_get_relief_style(getToolShellTStruct());
125 	}
126 	
127 	/**
128 	 * Retrieves whether the tool shell has text, icons, or both. Tool items must
129 	 * not call this function directly, but rely on gtk_tool_item_get_toolbar_style()
130 	 * instead.
131 	 * Since 2.14
132 	 * Returns: the current style of shell
133 	 */
134 	public GtkToolbarStyle getToolBarStyle()
135 	{
136 		// GtkToolbarStyle gtk_tool_shell_get_style (GtkToolShell *shell);
137 		return gtk_tool_shell_get_style(getToolShellTStruct());
138 	}
139 	
140 	/**
141 	 * Retrieves the current text alignment for the tool shell. Tool items must not
142 	 * call this function directly, but rely on gtk_tool_item_get_text_alignment()
143 	 * instead.
144 	 * Since 2.20
145 	 * Returns: the current text alignment of shell
146 	 */
147 	public float getTextAlignment()
148 	{
149 		// gfloat gtk_tool_shell_get_text_alignment (GtkToolShell *shell);
150 		return gtk_tool_shell_get_text_alignment(getToolShellTStruct());
151 	}
152 	
153 	/**
154 	 * Retrieves the current text orientation for the tool shell. Tool items must not
155 	 * call this function directly, but rely on gtk_tool_item_get_text_orientation()
156 	 * instead.
157 	 * Since 2.20
158 	 * Returns: the current text orientation of shell
159 	 */
160 	public GtkOrientation getTextOrientation()
161 	{
162 		// GtkOrientation gtk_tool_shell_get_text_orientation (GtkToolShell *shell);
163 		return gtk_tool_shell_get_text_orientation(getToolShellTStruct());
164 	}
165 	
166 	/**
167 	 * Calling this function signals the tool shell that the overflow menu item for
168 	 * tool items have changed. If there is an overflow menu and if it is visible
169 	 * when this function it called, the menu will be rebuilt.
170 	 * Tool items must not call this function directly, but rely on
171 	 * gtk_tool_item_rebuild_menu() instead.
172 	 * Since 2.14
173 	 */
174 	public void rebuildMenu()
175 	{
176 		// void gtk_tool_shell_rebuild_menu (GtkToolShell *shell);
177 		gtk_tool_shell_rebuild_menu(getToolShellTStruct());
178 	}
179 	
180 	/**
181 	 * Retrieves the current text size group for the tool shell. Tool items must not
182 	 * call this function directly, but rely on gtk_tool_item_get_text_size_group()
183 	 * instead.
184 	 * Since 2.20
185 	 * Returns: the current text size group of shell. [transfer none]
186 	 */
187 	public SizeGroup getTextSizeGroup()
188 	{
189 		// GtkSizeGroup * gtk_tool_shell_get_text_size_group (GtkToolShell *shell);
190 		auto p = gtk_tool_shell_get_text_size_group(getToolShellTStruct());
191 		
192 		if(p is null)
193 		{
194 			return null;
195 		}
196 		
197 		return ObjectG.getDObject!(SizeGroup)(cast(GtkSizeGroup*) p);
198 	}
199 }