Class: GObjectIntrospection::ICallableInfo
Overview
Wraps a GICallableInfo struct; represents a callable, either IFunctionInfo, ICallbackInfo or IVFuncInfo.
Instance Attribute Summary
Attributes inherited from IBaseInfo
#pointer
Instance Method Summary
collapse
#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
Instance Method Details
#arg(index) ⇒ Object
31
32
33
|
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 31
def arg(index)
IArgInfo.wrap Lib.g_callable_info_get_arg(self, index)
end
|
#caller_owns ⇒ Object
15
16
17
|
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 15
def caller_owns
Lib.g_callable_info_get_caller_owns self
end
|
#can_throw_gerror? ⇒ Boolean
23
24
25
|
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 23
def can_throw_gerror?
Lib.g_callable_info_can_throw_gerror self
end
|
#instance_ownership_transfer ⇒ Object
41
42
43
|
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 41
def instance_ownership_transfer
Lib.g_callable_info_get_instance_ownership_transfer self
end
|
#may_return_null? ⇒ Boolean
19
20
21
|
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 19
def may_return_null?
Lib.g_callable_info_may_return_null self
end
|
#n_args ⇒ Object
27
28
29
|
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 27
def n_args
Lib.g_callable_info_get_n_args self
end
|
#return_type ⇒ Object
11
12
13
|
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 11
def return_type
@return_type ||= ITypeInfo.wrap Lib.g_callable_info_get_return_type(self)
end
|
#skip_return? ⇒ Boolean
37
38
39
|
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 37
def skip_return?
Lib.g_callable_info_skip_return self
end
|