Class: GObjectIntrospection::IUnionInfo

Inherits:
IRegisteredTypeInfo show all
Defined in:
lib/ffi-gobject_introspection/i_union_info.rb

Overview

Wraps a GIUnionInfo struct. Represents a union.

Instance Method Summary collapse

Methods inherited from IRegisteredTypeInfo

#g_type, #type_init, #type_name

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

Constructor Details

This class inherits a constructor from GObjectIntrospection::IBaseInfo

Instance Method Details

#alignmentObject



36
37
38
# File 'lib/ffi-gobject_introspection/i_union_info.rb', line 36

def alignment
  Lib.g_union_info_get_alignment @gobj
end

#field(index) ⇒ Object



10
11
12
# File 'lib/ffi-gobject_introspection/i_union_info.rb', line 10

def field(index)
  IFieldInfo.wrap Lib.g_union_info_get_field(@gobj, index)
end

#find_method(name) ⇒ Object



28
29
30
# File 'lib/ffi-gobject_introspection/i_union_info.rb', line 28

def find_method(name)
  IFunctionInfo.wrap Lib.g_union_info_find_method(@gobj, name.to_s)
end

#get_method(index) ⇒ Object



21
22
23
# File 'lib/ffi-gobject_introspection/i_union_info.rb', line 21

def get_method(index)
  IFunctionInfo.wrap Lib.g_union_info_get_method(@gobj, index)
end

#get_n_methodsObject



17
18
19
# File 'lib/ffi-gobject_introspection/i_union_info.rb', line 17

def get_n_methods
  Lib.g_union_info_get_n_methods @gobj
end

#n_fieldsObject



6
7
8
# File 'lib/ffi-gobject_introspection/i_union_info.rb', line 6

def n_fields
  Lib.g_union_info_get_n_fields @gobj
end

#sizeObject



32
33
34
# File 'lib/ffi-gobject_introspection/i_union_info.rb', line 32

def size
  Lib.g_union_info_get_size @gobj
end