Sha256: f6469a30426fc04e4bb7aad89cbadce07088126058e678177ab6b4dc953959e7

Contents?: true

Size: 889 Bytes

Versions: 22

Compression:

Stored size: 889 Bytes

Contents

require 'ffi-gobject_introspection/i_base_info'
module GObjectIntrospection
  # Wraps a GIArgInfo struct.
  # Represents an argument.
  class IArgInfo < IBaseInfo
    def direction
      Lib.g_arg_info_get_direction @gobj
    end

    def return_value?
      Lib.g_arg_info_is_return_value @gobj
    end

    def optional?
      Lib.g_arg_info_is_optional @gobj
    end

    def caller_allocates?
      Lib.g_arg_info_is_caller_allocates @gobj
    end

    def may_be_null?
      Lib.g_arg_info_may_be_null @gobj
    end

    def ownership_transfer
      Lib.g_arg_info_get_ownership_transfer @gobj
    end

    def scope
      Lib.g_arg_info_get_scope @gobj
    end

    def closure
      Lib.g_arg_info_get_closure @gobj
    end

    def destroy
      Lib.g_arg_info_get_destroy @gobj
    end

    def argument_type
      ITypeInfo.wrap(Lib.g_arg_info_get_type @gobj)
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
gir_ffi-0.6.6 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.6.5 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.6.4 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.6.3 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.6.2 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.6.1 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.6.0 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.5.2 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.5.1 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.5.0 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.4.3 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.4.2 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.4.1 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.4.0 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.3.2 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.3.1 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.3.0 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.2.3 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.2.2 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.2.1 lib/ffi-gobject_introspection/i_arg_info.rb