GI.CallableInfo – gobject-introspection-1.0 Reference Manual
CallableInfo
Object Hierarchy:
GI.CallableInfo
GI.CallableInfo
GI.CallableInfo
GI.BaseInfo
GI.BaseInfo
GI.BaseInfo->GI.CallableInfo
Description:
[
CCode
( type_id =
"g_base_info_gtype_get_type ()"
) ]
[
Compact
]
public
class
CallableInfo
:
BaseInfo
Represents a callable, either
FunctionInfo
,
CallbackInfo
or
VFuncInfo
.
All known sub-classes:
CallbackInfo
FunctionInfo
SignalInfo
VFuncInfo
Namespace:
GI
Package:
gobject-introspection-1.0
Content:
Methods:
public
bool
can_throw_gerror
()
TODO
public
ArgInfo
get_arg
(
int
n)
Obtain information about a particular argument of this callable.
public
Transfer
get_caller_owns
()
See whether the caller owns the return value of this callable.
public
Transfer
get_instance_ownership_transfer
()
Obtains the ownership transfer for the instance argument.
public
int
get_n_args
()
Obtain the number of arguments (both IN and OUT) for this callable.
public
unowned
string
get_return_attribute
(
string
name)
Retrieve an arbitrary attribute associated with the return value.
public
TypeInfo
get_return_type
()
Obtain the return type of a callable item as a
TypeInfo
.
public
bool
invoke
(
void
* function,
Argument
[] in_args,
Argument
[] out_args,
Argument
return_value,
bool
is_method,
bool
@throws)
throws
InvokeError
TODO
public
bool
is_method
()
Determines if the callable info is a method.
public
bool
iterate_return_attributes
(
ref
AttributeIter
iterator,
out
unowned
string
name,
out
unowned
string
value)
Iterate over all attributes associated with the return value.
public
void
load_arg
(
int
n,
out
unowned
ArgInfo
arg)
Obtain information about a particular argument of this callable; this function is a variant of
get_arg
designed for stack allocation.
public
void
load_return_type
(
out
unowned
TypeInfo
type)
Obtain information about a return value of callable; this function is a variant of
get_return_type
designed for stack allocation.
public
bool
may_return_null
()
See if a callable could return
null
.
public
bool
skip_return
()
See if a callable's return value is only useful in C.
Inherited Members:
All known members inherited from class GI.BaseInfo
equal
get_attribute
get_container
get_name
get_namespace
get_type
get_typelib
is_deprecated
iterate_attributes
2022 vala-language.org