Sha256: 8d6a2191cbaba47226545b852eb01b3a5b4cfa61f4a9201dc2e2cbf9a72541f1

Contents?: true

Size: 782 Bytes

Versions: 13

Compression:

Stored size: 782 Bytes

Contents

module GObjectIntrospection
  # Wraps a GIUnionInfo struct.
  # Represents a union.
  class IUnionInfo < IRegisteredTypeInfo
    def n_fields
      Lib.g_union_info_get_n_fields @gobj
    end
    def field(index)
      IFieldInfo.wrap(Lib.g_union_info_get_field @gobj, index)
    end

    ##
    build_array_method :fields

    def get_n_methods
      Lib.g_union_info_get_n_methods @gobj
    end
    def get_method(index)
      IFunctionInfo.wrap(Lib.g_union_info_get_method @gobj, index)
    end

    ##
    build_array_method :get_methods

    def find_method(name)
      IFunctionInfo.wrap(Lib.g_union_info_find_method @gobj, name)
    end
    def size
      Lib.g_union_info_get_size @gobj
    end
    def alignment
      Lib.g_union_info_get_alignment @gobj
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gir_ffi-0.7.4 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.7.3 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.7.2 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.7.1 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.7.0 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.6.7 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.6.6 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.6.5 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.6.4 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.6.3 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.6.2 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.6.1 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.6.0 lib/ffi-gobject_introspection/i_union_info.rb