Sha256: e96ef774d45daa9a2cbecbfa8f63bd8f67fdd6823325b4ddf01e4029ba660090
Contents?: true
Size: 434 Bytes
Versions: 3
Compression:
Stored size: 434 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gir_ffi-0.0.3 | lib/gir_ffi/i_enum_info.rb |
gir_ffi-0.0.2 | lib/gir_ffi/i_enum_info.rb |
gir_ffi-0.0.1 | lib/gir_ffi/i_enum_info.rb |