PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/src/wrappers/gobject/library/g_param_spec_integer.e

http://github.com/tybor/Liberty
Specman e | 41 lines | 28 code | 7 blank | 6 comment | 0 complexity | 89085fbf4b3c7780fda8473593b44081 MD5 | raw file
 1indexing
 2	description: "Integer GParamSpec"
 3	copyright: "Copyright (c) 2005, Paolo Redaelli"
 4	license: "LGPL"
 5	date: "$Date:  $"
 6	revision: "$ $"
 7
 8class G_PARAM_SPEC_INTEGER
 9
10inherit
11	G_PARAM_SPEC
12		redefine
13			struct_size
14		end
15
16creation
17	make, from_external_pointer
18	
19feature -- Creation
20
21	make (a_name,a_nick,a_blurb: STRING;
22			a_min,a_max,a_default: INTEGER; some_flags: INTEGER) is
23			-- Creates a new G_PARAM_SPEC_BOOLEAN.
24			-- `a_name' is the canonical name of the property specified,
25			-- `a_nick' is the nick name for the property specified,
26			-- `a_blurb' is a description of the property specified.
27			--`a_default' is the default value for the property
28			--`some_flags' are flags for the property specified
29		do
30			from_external_pointer (g_param_spec_int
31										  (a_name.to_external, a_nick.to_external, a_blurb.to_external,
32											a_min, a_max, a_default, some_flags))
33		end
34	
35feature
36	struct_size: INTEGER is
37		external "C use <glib-object.h>"
38		alias "sizeof(GParamSpecInt)"
39		end
40end
41