Sha256: 06108b25d51215e5e8f8598bca0d79be9278f97e44c603bc55752c045e11b810

Contents?: true

Size: 458 Bytes

Versions: 11

Compression:

Stored size: 458 Bytes

Contents

module GirFFI
  # Wraps a GIEnumInfo struct if it represents an enum.
  # If it represents a flag, an IFlagsInfo object is used instead.
  class IEnumInfo < IRegisteredTypeInfo
    def n_values
      Lib.g_enum_info_get_n_values @gobj
    end
    def value(index)
      IValueInfo.wrap(Lib.g_enum_info_get_value @gobj, index)
    end
    ##
    build_array_method :values

    def storage_type
      Lib.g_enum_info_get_storage_type @gobj
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gir_ffi-0.0.14 lib/gir_ffi/i_enum_info.rb
gir_ffi-0.0.13 lib/gir_ffi/i_enum_info.rb
gir_ffi-0.0.12 lib/gir_ffi/i_enum_info.rb
gir_ffi-0.0.11 lib/gir_ffi/i_enum_info.rb
gir_ffi-0.0.10 lib/gir_ffi/i_enum_info.rb
gir_ffi-0.0.9 lib/gir_ffi/i_enum_info.rb
gir_ffi-0.0.8 lib/gir_ffi/i_enum_info.rb
gir_ffi-0.0.7 lib/gir_ffi/i_enum_info.rb
gir_ffi-0.0.6 lib/gir_ffi/i_enum_info.rb
gir_ffi-0.0.5 lib/gir_ffi/i_enum_info.rb
gir_ffi-0.0.4 lib/gir_ffi/i_enum_info.rb