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 = ToolShellIF 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 * extend = 38 * implements: 39 * prefixes: 40 * - gtk_tool_shell_ 41 * omit structs: 42 * omit prefixes: 43 * omit code: 44 * - gtk_tool_shell_get_orientation 45 * omit signals: 46 * imports: 47 * - gtk.SizeGroup 48 * structWrap: 49 * - GtkSizeGroup* -> SizeGroup 50 * module aliases: 51 * local aliases: 52 * - getStyle -> getToolBarStyle 53 * overrides: 54 */ 55 56 module gtk.ToolShellIF; 57 58 public import gtkc.gtktypes; 59 60 private import gtkc.gtk; 61 private import glib.ConstructionException; 62 private import gobject.ObjectG; 63 64 private import gtk.SizeGroup; 65 66 67 68 /** 69 * The GtkToolShell interface allows container widgets to provide additional 70 * information when embedding GtkToolItem widgets. 71 */ 72 public interface ToolShellIF 73 { 74 75 76 /** Get the main Gtk struct */ 77 public GtkToolShell* getToolShellTStruct(); 78 79 /** the main Gtk struct as a void* */ 80 protected void* getStruct(); 81 82 83 /** 84 * Retrieves the current orientation for the tool shell. Tool items must not 85 * call this function directly, but rely on gtk_tool_item_get_orientation() 86 * instead. 87 * Since 2.14 88 * Returns: the current orientation of shell 89 */ 90 public GtkOrientation getOrientation(); 91 92 /** 93 */ 94 95 /** 96 * Retrieves the current ellipsize mode for the tool shell. Tool items must not 97 * call this function directly, but rely on gtk_tool_item_get_ellipsize_mode() 98 * instead. 99 * Since 2.20 100 * Returns: the current ellipsize mode of shell 101 */ 102 public PangoEllipsizeMode getEllipsizeMode(); 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 /** 113 * Returns the relief style of buttons on shell. Tool items must not call this 114 * function directly, but rely on gtk_tool_item_get_relief_style() instead. 115 * Since 2.14 116 * Returns: The relief style of buttons on shell. 117 */ 118 public GtkReliefStyle getReliefStyle(); 119 120 /** 121 * Retrieves whether the tool shell has text, icons, or both. Tool items must 122 * not call this function directly, but rely on gtk_tool_item_get_toolbar_style() 123 * instead. 124 * Since 2.14 125 * Returns: the current style of shell 126 */ 127 public GtkToolbarStyle getToolBarStyle(); 128 129 /** 130 * Retrieves the current text alignment for the tool shell. Tool items must not 131 * call this function directly, but rely on gtk_tool_item_get_text_alignment() 132 * instead. 133 * Since 2.20 134 * Returns: the current text alignment of shell 135 */ 136 public float getTextAlignment(); 137 138 /** 139 * Retrieves the current text orientation for the tool shell. Tool items must not 140 * call this function directly, but rely on gtk_tool_item_get_text_orientation() 141 * instead. 142 * Since 2.20 143 * Returns: the current text orientation of shell 144 */ 145 public GtkOrientation getTextOrientation(); 146 147 /** 148 * Calling this function signals the tool shell that the overflow menu item for 149 * tool items have changed. If there is an overflow menu and if it is visible 150 * when this function it called, the menu will be rebuilt. 151 * Tool items must not call this function directly, but rely on 152 * gtk_tool_item_rebuild_menu() instead. 153 * Since 2.14 154 */ 155 public void rebuildMenu(); 156 157 /** 158 * Retrieves the current text size group for the tool shell. Tool items must not 159 * call this function directly, but rely on gtk_tool_item_get_text_size_group() 160 * instead. 161 * Since 2.20 162 * Returns: the current text size group of shell. [transfer none] 163 */ 164 public SizeGroup getTextSizeGroup(); 165 }