/src/wrappers/gtk/library/gtk_separator_tool_item.e
Specman e | 77 lines | 49 code | 13 blank | 15 comment | 2 complexity | 76b0671c5a4302a56175f8e14ebc1ce9 MD5 | raw file
1indexing 2 description: "GtkSeparatorToolItem -- A toolbar item that separates groups of other toolbar items." 3 copyright: "[ 4 Copyright (C) 2007 Paolo Redaelli, GTK+ team 5 6 This library is free software; you can redistribute it and/or 7 modify it under the terms of the GNU Lesser General Public License 8 as published by the Free Software Foundation; either version 2.1 of 9 the License, or (at your option) any later version. 10 11 This library is distributed in the hopeOA that it will be useful, but 12 WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 Lesser General Public License for more details. 15 16 You should have received a copy of the GNU Lesser General Public 17 License along with this library; if not, write to the Free Software 18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 19 02110-1301 USA 20 ]" 21 22 wrapped_version: "2.10.6" 23 24class GTK_SEPARATOR_TOOL_ITEM 25 -- A GTK_SEPARATOR_TOOL_ITEM is a GTK_TOOL_ITEM that separates 26 -- groups of other GTK_TOOL_ITEMs. Depending on the theme, a 27 -- GtkSeparatorToolItem will often look like a vertical line on 28 -- horizontally docked toolbars. If the property "expand" is True 29 -- and the property "draw" is False, a GTK_SEPARATOR_TOOL_ITEM will 30 -- act as a "spring" that forces other items to the ends of the 31 -- toolbar. 32 33inherit 34 GTK_TOOL_ITEM 35 redefine 36 make, 37 struct_size 38 end 39 40 -- GtkSeparatorToolItem implements AtkImplementorIface. 41 42insert 43 GTK_SEPARATOR_TOOL_ITEM_EXTERNALS 44 45creation make, from_external_pointer 46 47feature {} -- Creation 48 make is 49 -- Create a new GtkSeparatorToolItem 50 do 51 from_external_pointer(gtk_separator_tool_item_new) 52 end 53 54feature 55 set_draw (a_setting: BOOLEAN) is 56 -- When separator_tool_items is drawn as a vertical line, or 57 -- just blank. Setting this FALSE along with `set_expand' is 58 -- useful to create an item that forces following items to 59 -- the end of the toolbar. 60 do 61 gtk_separator_tool_item_set_draw(handle,a_setting.to_integer) 62 ensure set: a_setting = is_drawn 63 end 64 65 is_drawn: BOOLEAN is 66 -- Is the separator tool item is drawn as a line, or just 67 -- blank. See `set_draw'. 68 do 69 Result:=(gtk_separator_tool_item_get_draw(handle)).to_boolean 70 end 71feature -- size 72 struct_size: INTEGER is 73 external "C inline use <gtk/gtk.h>" 74 alias "sizeof(GtkSeparatorToolItem)" 75 end 76 77end -- class GTK_SEPARATOR_TOOL_ITEM