Class: GObjectIntrospection::IFunctionInfo
Overview
Wraps a GIFunctioInfo struct. Represents a function.
Instance Method Summary
collapse
#arg, #caller_owns, #may_return_null?, #n_args, #return_type, #skip_return?
Methods inherited from IBaseInfo
#==, build_array_method, build_finder_method, #container, #deprecated?, #info_type, #initialize, make_finalizer, #name, #namespace, #safe_namespace, #to_ptr, wrap
Instance Method Details
#constructor? ⇒ Boolean
16
17
18
|
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 16
def constructor?
flags & 2 != 0
end
|
#flags ⇒ Object
8
9
10
|
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 8
def flags
Lib.g_function_info_get_flags @gobj
end
|
#getter? ⇒ Boolean
19
20
21
|
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 19
def getter?
flags & 4 != 0
end
|
#method? ⇒ Boolean
TODO: Use some sort of bitfield
13
14
15
|
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 13
def method?
flags & 1 != 0
end
|
#setter? ⇒ Boolean
22
23
24
|
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 22
def setter?
flags & 8 != 0
end
|
#symbol ⇒ Object
5
6
7
|
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 5
def symbol
Lib.g_function_info_get_symbol @gobj
end
|
#throws? ⇒ Boolean
28
29
30
|
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 28
def throws?
flags & 32 != 0
end
|
#wraps_vfunc? ⇒ Boolean
25
26
27
|
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 25
def wraps_vfunc?
flags & 16 != 0
end
|