Sha256: c5aa23a2a2a1f8440ae79036902bde8c270076800ebd4c7fd9b3e34cf883f320

Contents?: true

Size: 946 Bytes

Versions: 14

Compression:

Stored size: 946 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 skip?
      Lib.g_arg_info_is_skip @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

14 entries across 14 versions & 1 rubygems

Version Path
gir_ffi-0.9.0 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.8.6 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.8.5 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.8.4 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.8.3 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.8.2 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.8.1 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.8.0 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.7.10 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.7.9 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.7.8 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.7.7 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.7.6 lib/ffi-gobject_introspection/i_arg_info.rb
gir_ffi-0.7.5 lib/ffi-gobject_introspection/i_arg_info.rb