PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/src/wrappers/gobject/library/g_param_spec_boolean.e

http://github.com/tybor/Liberty
Specman e | 57 lines | 41 code | 9 blank | 7 comment | 3 complexity | 7860fe031a8155c405833dd6ec8ed84e MD5 | raw file
 1indexing
 2	description: "Boolean GParamSpec Metadata for parameter specifications"
 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
22class G_PARAM_SPEC_BOOLEAN
23
24inherit
25	G_PARAM_SPEC
26		redefine 
27			struct_size
28		end	
29
30creation make, from_external_pointer
31	
32feature -- Creation
33	make (a_name,a_nick,a_blurb: STRING; a_default: BOOLEAN; some_flags: INTEGER) is
34			-- Creates a new G_PARAM_SPEC_BOOLEAN.
35			-- `a_name' is the canonical name of the property specified,
36			-- `a_nick' is the nick name for the property specified,
37			-- `a_blurb' is a description of the property specified.
38			--`a_default' is the default value for the property
39			--`some_flags' are flags for the property specified
40		do
41			from_external_pointer (g_param_spec_boolean(a_name.to_external,
42																	  a_nick.to_external,
43																	  a_blurb.to_external,
44																	  a_default.to_integer,
45																	  some_flags))
46			-- Note: where Gobject type system took this?
47			owner_class := g_type_class_peek(get_owner_type(handle))
48			param_id := get_param_id (handle)
49		end
50	
51feature
52	struct_size: INTEGER is
53		external "C use <glib-object.h>"
54		alias "sizeof(GParamSpecInt)"
55		end
56end
57