Sha256: 7dc923613b903cd5e8f3ec6c4618c8b00e9a1924d7f07eaa87205f224c8f6fcd

Contents?: true

Size: 857 Bytes

Versions: 7

Compression:

Stored size: 857 Bytes

Contents

require 'gir_ffi/i_base_info'
module GirFFI
  # 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

7 entries across 7 versions & 1 rubygems

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