class GirFFI::UserDefinedTypeInfo

Represents a user defined type, conforming, as needed, to the interface of GObjectIntrospection::IObjectInfo. TODO: Rename to UserDefinedObjectInfo

Attributes

g_name[W]
properties[R]
vfunc_implementations[R]

Public Class Methods

new(klass) { |self| ... } click to toggle source
# File lib/gir_ffi/user_defined_type_info.rb, line 11
def initialize(klass)
  @klass = klass
  @properties = []
  @vfunc_implementations = []
  yield self if block_given?
end

Public Instance Methods

described_class() click to toggle source
# File lib/gir_ffi/user_defined_type_info.rb, line 18
def described_class
  @klass
end
find_instance_method(_method) click to toggle source
# File lib/gir_ffi/user_defined_type_info.rb, line 34
def find_instance_method(_method)
  nil
end
find_method(_method) click to toggle source
# File lib/gir_ffi/user_defined_type_info.rb, line 30
def find_method(_method)
  nil
end
g_name() click to toggle source
# File lib/gir_ffi/user_defined_type_info.rb, line 40
def g_name
  @g_name ||= @klass.name
end
install_property(property) click to toggle source
# File lib/gir_ffi/user_defined_type_info.rb, line 22
def install_property(property)
  @properties << UserDefinedPropertyInfo.new(property)
end
install_vfunc_implementation(name, implementation) click to toggle source
# File lib/gir_ffi/user_defined_type_info.rb, line 26
def install_vfunc_implementation(name, implementation)
  @vfunc_implementations << VFuncImplementation.new(name, implementation)
end