Module: GirFFI::InfoExt::IVFuncInfo

Included in:
GObjectIntrospection::IVFuncInfo
Defined in:
lib/gir_ffi/info_ext/i_vfunc_info.rb

Overview

Extensions for GObjectIntrospection::IVFuncInfo needed by GirFFI TODO: Merge implementation with ICallbackInfo and ISignalInfo extensions.

Instance Method Summary collapse

Instance Method Details

#argument_ffi_typesObject



8
9
10
11
12
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 8

def argument_ffi_types
  args.map(&:to_callback_ffi_type).tap do |types|
    types << :pointer if throws?
  end
end

#full_nameObject



26
27
28
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 26

def full_name
  "#{container.full_name}::#{safe_name}"
end

#has_invoker?Boolean

Returns:



22
23
24
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 22

def has_invoker?
  invoker
end

#invoker_nameObject



18
19
20
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 18

def invoker_name
  invoker&.name
end

#return_ffi_typeObject



14
15
16
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 14

def return_ffi_type
  return_type.to_callback_ffi_type
end