Class: GObjectIntrospection::IArgInfo

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

Overview

Wraps a GIArgInfo struct. Represents an argument.

Instance Attribute Summary

Attributes inherited from IBaseInfo

#pointer

Instance Method Summary collapse

Methods included from GirFFI::InfoExt::IArgInfo

#to_callback_ffi_type, #to_ffi_type

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



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

def argument_type
  @argument_type ||= ITypeInfo.wrap Lib.g_arg_info_get_type(self)
end

#caller_allocates?Boolean

Returns:

  • (Boolean)


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

def caller_allocates?
  Lib.g_arg_info_is_caller_allocates self
end

#closureObject



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

def closure
  Lib.g_arg_info_get_closure self
end

#destroyObject



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

def destroy
  Lib.g_arg_info_get_destroy self
end

#directionObject



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

def direction
  Lib.g_arg_info_get_direction self
end

#may_be_null?Boolean

Returns:

  • (Boolean)


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

def may_be_null?
  Lib.g_arg_info_may_be_null self
end

#optional?Boolean

Returns:

  • (Boolean)


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

def optional?
  Lib.g_arg_info_is_optional self
end

#ownership_transferObject



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

def ownership_transfer
  Lib.g_arg_info_get_ownership_transfer self
end

#return_value?Boolean

Returns:

  • (Boolean)


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

def return_value?
  Lib.g_arg_info_is_return_value self
end

#scopeObject



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

def scope
  Lib.g_arg_info_get_scope self
end

#skip?Boolean

Returns:

  • (Boolean)


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

def skip?
  Lib.g_arg_info_is_skip self
end