Class: GObjectIntrospection::IEnumInfo

Inherits:
IRegisteredTypeInfo show all
Defined in:
lib/ffi-gobject_introspection/i_enum_info.rb

Overview

Wraps a GIEnumInfo struct if it represents an enum. If it represents a flag, an IFlagsInfo object is used instead.

Direct Known Subclasses

IFlagsInfo

Instance Attribute Summary

Attributes inherited from IBaseInfo

#pointer

Instance Method Summary collapse

Methods inherited from IRegisteredTypeInfo

#g_type, #type_init, #type_name

Methods included from GirFFI::InfoExt::FullTypeName

#full_name

Methods included from GirFFI::InfoExt::SafeConstantName

#safe_name

Methods included from GirFFI::InfoExt::IRegisteredTypeInfo

#find_instance_method, #find_method, #to_callback_ffi_type, #to_ffi_type, #to_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

#get_method(index) ⇒ Object



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

def get_method(index)
  IFunctionInfo.wrap Lib.g_enum_info_get_method(self, index)
end

#get_n_methodsObject



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

def get_n_methods
  Lib.g_enum_info_get_n_methods self
end

#n_valuesObject



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

def n_values
  Lib.g_enum_info_get_n_values self
end

#storage_typeObject



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

def storage_type
  Lib.g_enum_info_get_storage_type self
end

#value(index) ⇒ Object



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

def value(index)
  IValueInfo.wrap Lib.g_enum_info_get_value(self, index)
end