Represents a type not found in the GIR, conforming, as needed, to the interface of GObjectIntrospection::IObjectInfo.
# File lib/gir_ffi/unintrospectable_type_info.rb, line 7 def initialize(gtype, gir = GObjectIntrospection::IRepository.default, gobject = ::GObject) @g_type = gtype @gir = gir @gobject = gobject end
# File lib/gir_ffi/unintrospectable_type_info.rb, line 38 def fields [] end
# File lib/gir_ffi/unintrospectable_type_info.rb, line 15 def info_type :unintrospectable end
# File lib/gir_ffi/unintrospectable_type_info.rb, line 32 def interfaces @gobject.type_interfaces(@g_type).map do |gtype| @gir.find_by_gtype gtype end.compact end
# File lib/gir_ffi/unintrospectable_type_info.rb, line 28 def namespace parent.namespace end
# File lib/gir_ffi/unintrospectable_type_info.rb, line 23 def parent parent_gtype = @gobject.type_parent(@g_type) @gir.find_by_gtype(parent_gtype) || self.class.new(parent_gtype, @gir, @gobject) end
# File lib/gir_ffi/unintrospectable_type_info.rb, line 19 def safe_name @gobject.type_name @g_type end