Class: GObjectIntrospection::ITypeInfo

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

Overview

Wraps a GITypeInfo struct. Represents type information, direction, transfer etc.

Instance Method Summary collapse

Methods inherited from IBaseInfo

#==, #attribute, build_array_method, build_finder_method, #container, #deprecated?, #info_type, #initialize, make_finalizer, #namespace, #safe_namespace, #to_ptr, wrap

Constructor Details

This class inherits a constructor from GObjectIntrospection::IBaseInfo

Instance Method Details

#array_fixed_sizeObject



26
27
28
# File 'lib/ffi-gobject_introspection/i_type_info.rb', line 26

def array_fixed_size
  Lib.g_type_info_get_array_fixed_size @gobj
end

#array_lengthObject



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

def array_length
  Lib.g_type_info_get_array_length @gobj
end

#array_typeObject



30
31
32
# File 'lib/ffi-gobject_introspection/i_type_info.rb', line 30

def array_type
  Lib.g_type_info_get_array_type @gobj
end

#interfaceObject



17
18
19
20
# File 'lib/ffi-gobject_introspection/i_type_info.rb', line 17

def interface
  ptr = Lib.g_type_info_get_interface @gobj
  IRepository.wrap_ibaseinfo_pointer ptr
end

#nameObject



38
39
40
# File 'lib/ffi-gobject_introspection/i_type_info.rb', line 38

def name
  raise 'Should not call this for ITypeInfo'
end

#param_type(index) ⇒ Object



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

def param_type(index)
  ITypeInfo.wrap Lib.g_type_info_get_param_type(@gobj, index)
end

#pointer?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/ffi-gobject_introspection/i_type_info.rb', line 5

def pointer?
  Lib.g_type_info_is_pointer @gobj
end

#tagObject



9
10
11
# File 'lib/ffi-gobject_introspection/i_type_info.rb', line 9

def tag
  Lib.g_type_info_get_tag @gobj
end

#zero_terminated?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/ffi-gobject_introspection/i_type_info.rb', line 34

def zero_terminated?
  Lib.g_type_info_is_zero_terminated @gobj
end