Class: GObjectIntrospection::IStructInfo
Overview
Wraps a GIStructInfo struct. Represents a struct.
Instance Method Summary
collapse
#g_type, #type_init, #type_name
Methods inherited from IBaseInfo
#==, build_array_method, build_finder_method, #container, #deprecated?, #info_type, #initialize, make_finalizer, #name, #namespace, #safe_namespace, #to_ptr, wrap
Instance Method Details
#alignment ⇒ Object
34
35
36
|
# File 'lib/ffi-gobject_introspection/i_struct_info.rb', line 34
def alignment
Lib.g_struct_info_get_alignment @gobj
end
|
#field(index) ⇒ Object
9
10
11
|
# File 'lib/ffi-gobject_introspection/i_struct_info.rb', line 9
def field index
IFieldInfo.wrap(Lib.g_struct_info_get_field @gobj, index)
end
|
#get_method(index) ⇒ Object
21
22
23
|
# File 'lib/ffi-gobject_introspection/i_struct_info.rb', line 21
def get_method index
IFunctionInfo.wrap(Lib.g_struct_info_get_method @gobj, index)
end
|
#get_n_methods ⇒ Object
17
18
19
|
# File 'lib/ffi-gobject_introspection/i_struct_info.rb', line 17
def get_n_methods
Lib.g_struct_info_get_n_methods @gobj
end
|
#gtype_struct? ⇒ Boolean
38
39
40
|
# File 'lib/ffi-gobject_introspection/i_struct_info.rb', line 38
def gtype_struct?
Lib.g_struct_info_is_gtype_struct @gobj
end
|
#n_fields ⇒ Object
5
6
7
|
# File 'lib/ffi-gobject_introspection/i_struct_info.rb', line 5
def n_fields
Lib.g_struct_info_get_n_fields @gobj
end
|
#size ⇒ Object
30
31
32
|
# File 'lib/ffi-gobject_introspection/i_struct_info.rb', line 30
def size
Lib.g_struct_info_get_size @gobj
end
|