/src/wrappers/gtk/library/gtk_check_button.e
Specman e | 82 lines | 45 code | 20 blank | 17 comment | 2 complexity | 24dcef4c56f2972936ef638615db05ea MD5 | raw file
1indexing 2 description: "." 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_CHECK_BUTTON 25 26inherit 27 GTK_TOGGLE_BUTTON redefine make,with_label,with_mnemonic,struct_size end 28 29insert 30 GTK_CHECK_BUTTON_EXTERNALS 31 32creation make,with_label,with_mnemonic, from_external_pointer 33 34feature {} -- Creation 35 36 make is 37 -- Creates a new GtkCheckButton. 38 do 39 from_external_pointer (gtk_check_button_new) 40 end 41 42 with_label (a_label: STRING) is 43 -- Creates a new GtkCheckButton with a GtkLabel to the right of it. 44 do 45 from_external_pointer (gtk_check_button_new_with_label (a_label.to_external)) 46 end 47 48 with_mnemonic (a_label: STRING) is 49 -- Creates a new GtkCheckButton containing a label. The label 50 -- will be created using GTK_LABEL.with_mnemonic(), so 51 -- underscores in label indicate the mnemonic for the check 52 -- button. 53 do 54 from_external_pointer (gtk_check_button_new_with_mnemonic (a_label.to_external)) 55 end 56feature 57 struct_size: INTEGER is 58 external "C inline use <gtk/gtk.h>" 59 alias "sizeof(GtkCheckButton)" 60 end 61 62feature -- Style Properties TODO 63-- The "indicator-size" style property 64 65-- "indicator-size" gint : Read 66 67-- Size of check or radio indicator. 68 69-- Allowed values: >= 0 70 71-- Default value: 13 72-- The "indicator-spacing" style property 73 74-- "indicator-spacing" gint : Read 75 76-- Spacing around check or radio indicator. 77 78-- Allowed values: >= 0 79 80-- Default value: 2 81-- See Also 82end