Class: GObjectIntrospection::IUnionInfo
Overview
Wraps a GIUnionInfo struct. Represents a union.
Instance Attribute Summary
Attributes inherited from IBaseInfo
#pointer
Instance Method Summary
collapse
#g_type, #type_init, #type_name
#full_name
#safe_name
#find_instance_method, #to_callback_ffi_type, #to_ffi_type, #to_type
Methods inherited from IBaseInfo
#==, #attribute, 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
37
38
39
|
# File 'lib/ffi-gobject_introspection/i_union_info.rb', line 37
def alignment
Lib.g_union_info_get_alignment self
end
|
#field(index) ⇒ Object
11
12
13
|
# File 'lib/ffi-gobject_introspection/i_union_info.rb', line 11
def field(index)
IFieldInfo.wrap Lib.g_union_info_get_field(self, index)
end
|
#find_method(name) ⇒ Object
29
30
31
|
# File 'lib/ffi-gobject_introspection/i_union_info.rb', line 29
def find_method(name)
IFunctionInfo.wrap Lib.g_union_info_find_method(self, name.to_s)
end
|
#get_method(index) ⇒ Object
22
23
24
|
# File 'lib/ffi-gobject_introspection/i_union_info.rb', line 22
def get_method(index)
IFunctionInfo.wrap Lib.g_union_info_get_method(self, index)
end
|
#get_n_methods ⇒ Object
18
19
20
|
# File 'lib/ffi-gobject_introspection/i_union_info.rb', line 18
def get_n_methods
Lib.g_union_info_get_n_methods self
end
|
#n_fields ⇒ Object
7
8
9
|
# File 'lib/ffi-gobject_introspection/i_union_info.rb', line 7
def n_fields
Lib.g_union_info_get_n_fields self
end
|
#size ⇒ Object
33
34
35
|
# File 'lib/ffi-gobject_introspection/i_union_info.rb', line 33
def size
Lib.g_union_info_get_size self
end
|