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 37
def alignment
  Lib.g_struct_info_get_alignment @gobj
end
field(index) click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 8
def field(index)
  IFieldInfo.wrap(Lib.g_struct_info_get_field @gobj, index)
end
fields() click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 13
build_array_method :fields
find_method(name) click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 25
def find_method(name)
  method_map[name]
end
get_method(index) click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 18
def get_method(index)
  IFunctionInfo.wrap(Lib.g_struct_info_get_method @gobj, index)
end
get_methods() click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 23
build_array_method :get_methods
get_n_methods() click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 15
def get_n_methods
  Lib.g_struct_info_get_n_methods @gobj
end
gtype_struct?() click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 41
def gtype_struct?
  Lib.g_struct_info_is_gtype_struct @gobj
end
method_map() click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 29
def method_map
  @method_map ||= Hash[get_methods.map {|mthd| [mthd.name, mthd] }]
end
n_fields() click to toggle source
# File lib/ffi-gobject_introspection/i_struct_info.rb, line 5
def n_fields
  Lib.g_struct_info_get_n_fields @gobj
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 @gobj
end