class GObjectIntrospection::IObjectInfo

Wraps a GIObjectInfo struct. Represents an object.

Public Instance Methods

abstract?() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 15
def abstract?
  Lib.g_object_info_get_abstract self
end
class_struct() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 117
def class_struct
  IStructInfo.wrap Lib.g_object_info_get_class_struct(self)
end
constant(index) click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 111
def constant(index)
  IConstantInfo.wrap Lib.g_object_info_get_constant(self, index)
end
constants() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 115
build_array_method :constants
field(index) click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 42
def field(index)
  IFieldInfo.wrap Lib.g_object_info_get_field(self, index)
end
fields() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 47
build_array_method :fields
find_method(name) click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 77
def find_method(name)
  IFunctionInfo.wrap Lib.g_object_info_find_method(self, name.to_s)
end
find_property(name) click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 61
def find_property(name)
  name = name.to_s.tr("_", "-")
  properties.find { |prop| prop.name == name }
end
find_vfunc(name) click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 101
def find_vfunc(name)
  IVFuncInfo.wrap Lib.g_object_info_find_vfunc(self, name.to_s)
end
fundamental?() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 19
def fundamental?
  Lib.g_object_info_get_fundamental self
end
get_method(index) click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 70
def get_method(index)
  IFunctionInfo.wrap Lib.g_object_info_get_method(self, index)
end
get_methods() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 75
build_array_method :get_methods
get_n_methods() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 66
def get_n_methods
  Lib.g_object_info_get_n_methods self
end
interface(index) click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 31
def interface(index)
  IInterfaceInfo.wrap Lib.g_object_info_get_interface(self, index)
end
interfaces() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 36
build_array_method :interfaces
n_constants() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 107
def n_constants
  Lib.g_object_info_get_n_constants self
end
n_fields() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 38
def n_fields
  Lib.g_object_info_get_n_fields self
end
n_interfaces() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 27
def n_interfaces
  Lib.g_object_info_get_n_interfaces self
end
n_properties() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 49
def n_properties
  Lib.g_object_info_get_n_properties self
end
n_signals() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 81
def n_signals
  Lib.g_object_info_get_n_signals self
end
n_vfuncs() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 93
def n_vfuncs
  Lib.g_object_info_get_n_vfuncs self
end
parent() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 23
def parent
  @parent ||= IObjectInfo.wrap Lib.g_object_info_get_parent(self)
end
properties() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 57
def properties
  @properties ||= Array.new(n_properties) { |idx| property(idx) }
end
property(index) click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 53
def property(index)
  IPropertyInfo.wrap Lib.g_object_info_get_property(self, index)
end
signal(index) click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 85
def signal(index)
  ISignalInfo.wrap Lib.g_object_info_get_signal(self, index)
end
signals() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 90
build_array_method :signals
type_init() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 11
def type_init
  Lib.g_object_info_get_type_init self
end
type_name() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 7
def type_name
  Lib.g_object_info_get_type_name self
end
vfunc(index) click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 97
def vfunc(index)
  IVFuncInfo.wrap Lib.g_object_info_get_vfunc(self, index)
end
vfuncs() click to toggle source
# File lib/ffi-gobject_introspection/i_object_info.rb, line 105
build_array_method :vfuncs