class GObjectIntrospection::IStructInfo
Wraps a GIStructInfo struct. Represents a struct.
Public Instance Methods
alignment()
click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 41 def alignment Lib.g_struct_info_get_alignment self end
empty?()
click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 37 def empty? size == 0 end
field(index)
click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 11 def field(index) IFieldInfo.wrap Lib.g_struct_info_get_field(self, index) end
fields()
click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 16 build_array_method :fields
get_method(index)
click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 23 def get_method(index) @method_cache ||= [] @method_cache[index] ||= IFunctionInfo.wrap Lib.g_struct_info_get_method(self, index) end
get_methods()
click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 29 build_array_method :get_methods
get_n_methods()
click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 19 def get_n_methods Lib.g_struct_info_get_n_methods self end
gtype_struct?()
click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 45 def gtype_struct? Lib.g_struct_info_is_gtype_struct self end
n_fields()
click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 7 def n_fields Lib.g_struct_info_get_n_fields self end
size()
click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 33 def size Lib.g_struct_info_get_size self end