Class: GObjectIntrospection::IArgInfo

Inherits:
IBaseInfo
  • Object
show all
Defined in:
lib/ffi-gobject_introspection/i_arg_info.rb

Overview

Wraps a GIArgInfo struct. Represents an argument.

Instance Method Summary collapse

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

#argument_typeObject



47
48
49
# File 'lib/ffi-gobject_introspection/i_arg_info.rb', line 47

def argument_type
  ITypeInfo.wrap Lib.g_arg_info_get_type(@gobj)
end

#caller_allocates?Boolean

Returns:

  • (Boolean)


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

def caller_allocates?
  Lib.g_arg_info_is_caller_allocates @gobj
end

#closureObject



39
40
41
# File 'lib/ffi-gobject_introspection/i_arg_info.rb', line 39

def closure
  Lib.g_arg_info_get_closure @gobj
end

#destroyObject



43
44
45
# File 'lib/ffi-gobject_introspection/i_arg_info.rb', line 43

def destroy
  Lib.g_arg_info_get_destroy @gobj
end

#directionObject



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

def direction
  Lib.g_arg_info_get_direction @gobj
end

#may_be_null?Boolean

Returns:

  • (Boolean)


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

def may_be_null?
  Lib.g_arg_info_may_be_null @gobj
end

#optional?Boolean

Returns:

  • (Boolean)


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

def optional?
  Lib.g_arg_info_is_optional @gobj
end

#ownership_transferObject



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

def ownership_transfer
  Lib.g_arg_info_get_ownership_transfer @gobj
end

#return_value?Boolean

Returns:

  • (Boolean)


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

def return_value?
  Lib.g_arg_info_is_return_value @gobj
end

#scopeObject



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

def scope
  Lib.g_arg_info_get_scope @gobj
end

#skip?Boolean

Returns:

  • (Boolean)


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

def skip?
  Lib.g_arg_info_is_skip @gobj
end