/src/wrappers/gobject/library/g_parameter.e
Specman e | 42 lines | 24 code | 8 blank | 10 comment | 0 complexity | 604c4429e9f93a9d34b32d1025ee55ce MD5 | raw file
1indexing 2 copyright: "(C) 2005 Paolo Redaelli " 3 license: "LGPL v2 or later" 4 date: "$Date:$" 5 revision "$REvision:$" 6 description: "G_PARAMETER is an auxiliary data type (structure) used to hand parameter name/value to the creation feature of a G_OBJECT." 7 8class G_PARAMETER 9 -- An auxiliary data type (structure) used to hand parameter 10 -- name/value to the creation feature of a G_OBJECT. 11 12inherit 13 C_STRUCT 14 EIFFEL_OWNED 15 16insert 17 G_PARAMETER_EXTERNALS 18 19creation from_external_pointer 20 21feature 22 name: STRING is 23 -- the parameter name 24 do 25 create {CONST_STRING} Result.from_external(get_name(handle)) 26 end 27 28 -- typedef struct { 29 -- const gchar *name; 30 -- GValue value; 31 -- } GParameter; 32 33 -- gparameter: POINTER to GParameter 34 -- const gchar *name; the parameter name 35 -- GValue value; the parameter value 36 37feature -- size 38 struct_size: INTEGER is 39 external "C inline use <glib-object.h>" 40 alias "sizeof(GParameter)" 41 end 42end