Sha256: ee4d4445182d7a49d2aee814fbb06e9e05304053c7b8a32d4c937b8a0302a19b

Contents?: true

Size: 751 Bytes

Versions: 15

Compression:

Stored size: 751 Bytes

Contents

module GObjectIntrospection
  # Wraps a GIUnionInfo struct.
  # Represents a union.
  # Not implemented yet.
  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

15 entries across 15 versions & 1 rubygems

Version Path
gir_ffi-0.5.2 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.5.1 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.5.0 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.4.3 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.4.2 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.4.1 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.4.0 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.3.2 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.3.1 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.3.0 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.2.3 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.2.2 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.2.1 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.2.0 lib/ffi-gobject_introspection/i_union_info.rb
gir_ffi-0.1.0 lib/ffi-gobject_introspection/i_union_info.rb