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