Class: GObjectIntrospection::IFunctionInfo

Inherits:
ICallableInfo show all
Defined in:
lib/ffi-gobject_introspection/i_function_info.rb

Overview

Wraps a GIFunctioInfo struct. Represents a function.

Instance Method Summary collapse

Methods inherited from ICallableInfo

#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

Constructor Details

This class inherits a constructor from GObjectIntrospection::IBaseInfo

Instance Method Details

#constructor?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 16

def constructor?
  flags & 2 != 0
end

#flagsObject



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

Returns:

  • (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

Returns:

  • (Boolean)


13
14
15
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 13

def method?
  flags & 1 != 0
end

#setter?Boolean

Returns:

  • (Boolean)


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

def setter?
  flags & 8 != 0
end

#symbolObject



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

Returns:

  • (Boolean)


28
29
30
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 28

def throws?
  flags & 32 != 0
end

#wraps_vfunc?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 25

def wraps_vfunc?
  flags & 16 != 0
end