class GObjectIntrospection::ITypeInfo
Wraps a GITypeInfo struct. Represents type information, direction, transfer etc.
Public Instance Methods
array_fixed_size()
click to toggle source
# File lib/ffi-gobject_introspection/i_type_info.rb, line 34 def array_fixed_size Lib.g_type_info_get_array_fixed_size self end
array_length()
click to toggle source
# File lib/ffi-gobject_introspection/i_type_info.rb, line 30 def array_length @array_length ||= Lib.g_type_info_get_array_length self end
array_type()
click to toggle source
# File lib/ffi-gobject_introspection/i_type_info.rb, line 38 def array_type Lib.g_type_info_get_array_type self end
interface()
click to toggle source
# File lib/ffi-gobject_introspection/i_type_info.rb, line 23 def interface @interface ||= begin ptr = Lib.g_type_info_get_interface self IRepository.wrap_ibaseinfo_pointer ptr end end
name()
click to toggle source
# File lib/ffi-gobject_introspection/i_type_info.rb, line 46 def name raise "Should not call this for ITypeInfo" end
param_type(index)
click to toggle source
# File lib/ffi-gobject_introspection/i_type_info.rb, line 17 def param_type(index) @param_type_cache ||= [] @param_type_cache[index] ||= ITypeInfo.wrap Lib.g_type_info_get_param_type(self, index) end
pointer?()
click to toggle source
# File lib/ffi-gobject_introspection/i_type_info.rb, line 7 def pointer? return @pointer_eh if defined? @pointer_eh @pointer_eh = Lib.g_type_info_is_pointer self end
tag()
click to toggle source
# File lib/ffi-gobject_introspection/i_type_info.rb, line 13 def tag @tag ||= Lib.g_type_info_get_tag self end
zero_terminated?()
click to toggle source
# File lib/ffi-gobject_introspection/i_type_info.rb, line 42 def zero_terminated? Lib.g_type_info_is_zero_terminated self end