Sha256: afc90bb1ffb7efcb7f8ae5b548754efad4fff1ad3270c7944dd63faa5357dfa2

Contents?: true

Size: 355 Bytes

Versions: 6

Compression:

Stored size: 355 Bytes

Contents

module GirFFI
  # Wraps a GIConstantInfo struct; represents an constant.
  # Not implemented yet.
  class IConstantInfo < IBaseInfo
    def value
      val = Lib::GIArgument.new
      size = Lib.g_constant_info_get_value @gobj, val
      return val
    end

    def constant_type
      ITypeInfo.wrap(Lib.g_constant_info_get_type @gobj)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gir_ffi-0.0.14 lib/gir_ffi/i_constant_info.rb
gir_ffi-0.0.13 lib/gir_ffi/i_constant_info.rb
gir_ffi-0.0.12 lib/gir_ffi/i_constant_info.rb
gir_ffi-0.0.11 lib/gir_ffi/i_constant_info.rb
gir_ffi-0.0.10 lib/gir_ffi/i_constant_info.rb
gir_ffi-0.0.9 lib/gir_ffi/i_constant_info.rb