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 module gtk.ToolShellIF; 26 27 private import gobject.ObjectG; 28 private import gtk.SizeGroup; 29 private import gtk.c.functions; 30 public import gtk.c.types; 31 public import gtkc.gtktypes; 32 33 34 /** 35 * The #GtkToolShell interface allows container widgets to provide additional 36 * information when embedding #GtkToolItem widgets. 37 */ 38 public interface ToolShellIF{ 39 /** Get the main Gtk struct */ 40 public GtkToolShell* getToolShellStruct(bool transferOwnership = false); 41 42 /** the main Gtk struct as a void* */ 43 protected void* getStruct(); 44 45 /** 46 * Retrieves the current orientation for the tool shell. Tool items must not 47 * call this function directly, but rely on gtk_tool_item_get_orientation() 48 * instead. 49 * Since: 2.14 50 * Returns: the current orientation of shell 51 */ 52 public GtkOrientation getOrientation(); 53 54 /** 55 */ 56 57 /** */ 58 public static GType getType() 59 { 60 return gtk_tool_shell_get_type(); 61 } 62 63 /** 64 * Retrieves the current ellipsize mode for the tool shell. Tool items must not 65 * call this function directly, but rely on gtk_tool_item_get_ellipsize_mode() 66 * instead. 67 * 68 * Returns: the current ellipsize mode of @shell 69 * 70 * Since: 2.20 71 */ 72 public PangoEllipsizeMode getEllipsizeMode(); 73 74 /** 75 * Retrieves the icon size for the tool shell. Tool items must not call this 76 * function directly, but rely on gtk_tool_item_get_icon_size() instead. 77 * 78 * Returns: the current size (#GtkIconSize) for icons of @shell 79 * 80 * Since: 2.14 81 */ 82 public GtkIconSize getIconSize(); 83 84 /** 85 * Returns the relief style of buttons on @shell. Tool items must not call this 86 * function directly, but rely on gtk_tool_item_get_relief_style() instead. 87 * 88 * Returns: The relief style of buttons on @shell. 89 * 90 * Since: 2.14 91 */ 92 public GtkReliefStyle getReliefStyle(); 93 94 /** 95 * Retrieves whether the tool shell has text, icons, or both. Tool items must 96 * not call this function directly, but rely on gtk_tool_item_get_toolbar_style() 97 * instead. 98 * 99 * Returns: the current style of @shell 100 * 101 * Since: 2.14 102 */ 103 public GtkToolbarStyle getToolBarStyle(); 104 105 /** 106 * Retrieves the current text alignment for the tool shell. Tool items must not 107 * call this function directly, but rely on gtk_tool_item_get_text_alignment() 108 * instead. 109 * 110 * Returns: the current text alignment of @shell 111 * 112 * Since: 2.20 113 */ 114 public float getTextAlignment(); 115 116 /** 117 * Retrieves the current text orientation for the tool shell. Tool items must not 118 * call this function directly, but rely on gtk_tool_item_get_text_orientation() 119 * instead. 120 * 121 * Returns: the current text orientation of @shell 122 * 123 * Since: 2.20 124 */ 125 public GtkOrientation getTextOrientation(); 126 127 /** 128 * Retrieves the current text size group for the tool shell. Tool items must not 129 * call this function directly, but rely on gtk_tool_item_get_text_size_group() 130 * instead. 131 * 132 * Returns: the current text size group of @shell 133 * 134 * Since: 2.20 135 */ 136 public SizeGroup getTextSizeGroup(); 137 138 /** 139 * Calling this function signals the tool shell that the overflow menu item for 140 * tool items have changed. If there is an overflow menu and if it is visible 141 * when this function it called, the menu will be rebuilt. 142 * 143 * Tool items must not call this function directly, but rely on 144 * gtk_tool_item_rebuild_menu() instead. 145 * 146 * Since: 2.14 147 */ 148 public void rebuildMenu(); 149 }