Class: GObjectIntrospection::ICallableInfo
- Inherits:
-
IBaseInfo
- Object
- IBaseInfo
- GObjectIntrospection::ICallableInfo
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.
Instance Method Summary
collapse
Methods inherited from IBaseInfo
#==, build_array_method, #container, #deprecated?, #info_type, #initialize, make_finalizer, #name, #namespace, #safe_namespace, #to_ptr, wrap
Instance Method Details
#arg(index) ⇒ Object
21
22
23
|
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 21
def arg(index)
IArgInfo.wrap(Lib.g_callable_info_get_arg @gobj, index)
end
|
#caller_owns ⇒ Object
12
13
14
|
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 12
def caller_owns
Lib.g_callable_info_get_caller_owns @gobj
end
|
#may_return_null? ⇒ Boolean
15
16
17
|
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 15
def may_return_null?
Lib.g_callable_info_may_return_null @gobj
end
|
#n_args ⇒ Object
18
19
20
|
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 18
def n_args
Lib.g_callable_info_get_n_args @gobj
end
|
#return_type ⇒ Object
9
10
11
|
# File 'lib/ffi-gobject_introspection/i_callable_info.rb', line 9
def return_type
ITypeInfo.wrap(Lib.g_callable_info_get_return_type @gobj)
end
|