Class: GObjectIntrospection::IFunctionInfo

Inherits:
ICallableInfo show all
Includes:
GirFFI::InfoExt::IFunctionInfo, GirFFI::InfoExt::SafeFunctionName
Defined in:
lib/ffi-gobject_introspection/i_function_info.rb

Overview

Wraps a GIFunctionInfo struct. Represents a function or method.

Instance Attribute Summary

Attributes inherited from IBaseInfo

#pointer

Instance Method Summary collapse

Methods included from GirFFI::InfoExt::IFunctionInfo

#argument_ffi_types, #full_name, #return_ffi_type

Methods included from GirFFI::InfoExt::SafeFunctionName

#safe_name

Methods inherited from ICallableInfo

#arg, #caller_owns, #can_throw_gerror?, #instance_ownership_transfer, #may_return_null?, #n_args, #return_type, #skip_return?

Methods included from GirFFI::InfoExt::ICallableInfo

#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

Constructor Details

This class inherits a constructor from GObjectIntrospection::IBaseInfo

Instance Method Details

#constructor?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 19

def constructor?
  flags[:is_constructor]
end

#flagsObject



11
12
13
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 11

def flags
  @flags ||= Lib.g_function_info_get_flags self
end

#getter?Boolean

Returns:

  • (Boolean)


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

def getter?
  flags[:is_getter]
end

#method?Boolean

Returns:

  • (Boolean)


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

def method?
  flags[:is_method]
end

#setter?Boolean

Returns:

  • (Boolean)


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

def setter?
  flags[:is_setter]
end

#symbolObject



7
8
9
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 7

def symbol
  Lib.g_function_info_get_symbol self
end

#throws?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 35

def throws?
  flags[:throws]
end

#wraps_vfunc?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/ffi-gobject_introspection/i_function_info.rb', line 31

def wraps_vfunc?
  flags[:wraps_vfunc]
end