Class: GObjectIntrospection::ICallableInfo

Inherits:
IBaseInfo
  • Object
show all
Defined in:
lib/ffi-gobject_introspection/i_callable_info.rb

Overview

Wraps a GICallableInfo struct; represents a callable, either IFunctionInfo, ICallbackInfo or IVFuncInfo.

Direct Known Subclasses

ICallbackInfo, IFunctionInfo, ISignalInfo, IVFuncInfo

Instance Method Summary collapse

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

#arg(index) ⇒ Object



30
31
32
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 30

def arg(index)
  IArgInfo.wrap Lib.g_callable_info_get_arg(@gobj, index)
end

#caller_ownsObject



14
15
16
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 14

def caller_owns
  Lib.g_callable_info_get_caller_owns @gobj
end

#can_throw_gerror?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 22

def can_throw_gerror?
  Lib.g_callable_info_can_throw_gerror @gobj
end

#instance_ownership_transferObject



40
41
42
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 40

def instance_ownership_transfer
  Lib.g_callable_info_get_instance_ownership_transfer @gobj
end

#may_return_null?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 18

def may_return_null?
  Lib.g_callable_info_may_return_null @gobj
end

#n_argsObject



26
27
28
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 26

def n_args
  Lib.g_callable_info_get_n_args @gobj
end

#return_typeObject



10
11
12
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 10

def return_type
  ITypeInfo.wrap Lib.g_callable_info_get_return_type(@gobj)
end

#skip_return?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 36

def skip_return?
  Lib.g_callable_info_skip_return @gobj
end