Class: GirFFI::ReceiverTypeInfo

Inherits:
Object
  • Object
show all
Includes:
InfoExt::ITypeInfo
Defined in:
lib/gir_ffi/receiver_type_info.rb

Overview

Represents the type of the receiver of a signal, vfunc, or method, conforming, as needed, to the interface of GObjectIntrospection::ITypeInfo

Constant Summary

Constants included from InfoExt::ITypeInfo

InfoExt::ITypeInfo::FLATTENED_TAG_POINTER_TO_GTYPE_MAP, InfoExt::ITypeInfo::FLATTENED_TAG_TO_GTYPE_MAP, InfoExt::ITypeInfo::GOBJECT_VALUE_NAME, InfoExt::ITypeInfo::TAGS_NEEDING_C_TO_RUBY_CONVERSION, InfoExt::ITypeInfo::TAGS_NEEDING_RUBY_TO_C_CONVERSION, InfoExt::ITypeInfo::TAG_TO_WRAPPER_CLASS_MAP

Instance Method Summary collapse

Methods included from InfoExt::ITypeInfo

#argument_class_name, #element_type, #extra_conversion_arguments, #flattened_tag, #gtype, #gvalue?, #hidden_struct_type?, #interface_class, #interface_class_name, #interface_type, #make_g_value, #needs_c_to_ruby_conversion_for_callbacks?, #needs_c_to_ruby_conversion_for_closures?, #needs_c_to_ruby_conversion_for_functions?, #needs_c_to_ruby_conversion_for_properties?, #needs_ruby_to_c_conversion_for_callbacks?, #needs_ruby_to_c_conversion_for_closures?, #needs_ruby_to_c_conversion_for_functions?, #needs_ruby_to_c_conversion_for_properties?, #tag_or_class, #to_callback_ffi_type, #to_ffi_type

Constructor Details

#initialize(interface_info) ⇒ ReceiverTypeInfo

Returns a new instance of ReceiverTypeInfo.



9
10
11
# File 'lib/gir_ffi/receiver_type_info.rb', line 9

def initialize(interface_info)
  @interface_info = interface_info
end

Instance Method Details

#array_lengthObject



25
26
27
# File 'lib/gir_ffi/receiver_type_info.rb', line 25

def array_length
  -1
end

#interfaceObject



13
14
15
# File 'lib/gir_ffi/receiver_type_info.rb', line 13

def interface
  @interface_info
end

#pointer?Boolean

Returns:



21
22
23
# File 'lib/gir_ffi/receiver_type_info.rb', line 21

def pointer?
  false
end

#tagObject



17
18
19
# File 'lib/gir_ffi/receiver_type_info.rb', line 17

def tag
  :interface
end