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