/src/wrappers/gtk/library/gtk_hbox.e
Specman e | 52 lines | 35 code | 8 blank | 9 comment | 2 complexity | ae01ffcc788944cc0bd007c7babc94f2 MD5 | raw file
1indexing 2 description: "GtkHBox -- A horizontal container box." 3 copyright: "[ 4 Copyright (C) 2006 eiffel-libraries team, 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 hope 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 date: "$Date:$" 22 revision: "$Revision:$" 23 24class GTK_HBOX 25 -- GtkHBox is a container that organizes child widgets into a 26 -- single row. Use the GtkBox packing interface to determine the 27 -- arrangement, spacing, width, and alignment of GtkHBox 28 -- children. All children are allocated the same height. 29 30inherit GTK_BOX 31 -- GtkHBox also implements AtkImplementorIface. 32 33insert GTK_HBOX_EXTERNALS 34 35creation make, from_external_pointer 36 37feature {} -- Creation 38 make (an_homogeneous: BOOLEAN; a_spacing: INTEGER) is 39 -- Creates a new GtkHBox. If `an_homogeneous' is True all 40 -- children are to be given equal space 41 -- allotments. `a_spacing' is the number of pixels to place 42 -- by default between children. 43 require gtk_initialized: gtk.is_initialized 44 do 45 from_external_pointer (gtk_hbox_new (an_homogeneous.to_integer, a_spacing)) 46 end 47feature -- struct size 48 struct_size: INTEGER is 49 external "C inline use <gtk/gtk.h>" 50 alias "sizeof(GtkHBox)" 51 end 52end