class GObjectIntrospection::IEnumInfo

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

Public Instance Methods

n_values() click to toggle source
# File lib/ffi-gobject_introspection/i_enum_info.rb, line 5
def n_values
  Lib.g_enum_info_get_n_values @gobj
end
storage_type() click to toggle source
# File lib/ffi-gobject_introspection/i_enum_info.rb, line 14
def storage_type
  Lib.g_enum_info_get_storage_type @gobj
end
value(index) click to toggle source
# File lib/ffi-gobject_introspection/i_enum_info.rb, line 8
def value(index)
  IValueInfo.wrap(Lib.g_enum_info_get_value @gobj, index)
end
values() click to toggle source
# File lib/ffi-gobject_introspection/i_enum_info.rb, line 12
build_array_method :values