Class: GObjectIntrospection::IVFuncInfo

Inherits:
ICallableInfo show all
Includes:
GirFFI::InfoExt::IVFuncInfo, GirFFI::InfoExt::SafeConstantName
Defined in:
lib/ffi-gobject_introspection/i_vfunc_info.rb

Overview

Wraps a GIVFuncInfo struct. Represents a virtual function.

Instance Attribute Summary

Attributes inherited from IBaseInfo

#pointer

Instance Method Summary collapse

Methods included from GirFFI::InfoExt::IVFuncInfo

#argument_ffi_types, #full_name, #has_invoker?, #invoker_name, #return_ffi_type

Methods included from GirFFI::InfoExt::SafeConstantName

#safe_name

Methods inherited from ICallableInfo

#arg, #caller_owns, #can_throw_gerror?, #instance_ownership_transfer, #may_return_null?, #n_args, #return_type, #skip_return?

Methods included from GirFFI::InfoExt::ICallableInfo

#argument_ffi_types

Methods inherited from IBaseInfo

#==, #attribute, build_array_method, build_finder_method, #container, #deprecated?, #info_type, #initialize, make_finalizer, #name, #namespace, #safe_namespace, #to_ptr, wrap

Constructor Details

This class inherits a constructor from GObjectIntrospection::IBaseInfo

Instance Method Details

#flagsObject



7
8
9
# File 'lib/ffi-gobject_introspection/i_vfunc_info.rb', line 7

def flags
  Lib.g_vfunc_info_get_flags self
end

#invokerObject



15
16
17
# File 'lib/ffi-gobject_introspection/i_vfunc_info.rb', line 15

def invoker
  @invoker ||= IFunctionInfo.wrap Lib.g_vfunc_info_get_invoker self
end

#throws?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/ffi-gobject_introspection/i_vfunc_info.rb', line 11

def throws?
  flags.fetch :throws
end