Sha256: 79615dc5708a31bb8cbd60c87e16f41a8fb747a17129e15fabf463cd54312bda

Contents?: true

Size: 702 Bytes

Versions: 11

Compression:

Stored size: 702 Bytes

Contents

require 'gir_ffi/i_base_info'
require 'gir_ffi/i_type_info'
require 'gir_ffi/i_arg_info'

module GirFFI
  # Wraps a GICallableInfo struct; represents a callable, either
  # IFunctionInfo, ICallbackInfo or IVFuncInfo.
  class ICallableInfo < IBaseInfo
    def return_type
      ITypeInfo.wrap(Lib.g_callable_info_get_return_type @gobj)
    end
    def caller_owns
      Lib.g_callable_info_get_caller_owns @gobj
    end
    def may_return_null?
      Lib.g_callable_info_may_return_null @gobj
    end
    def n_args
      Lib.g_callable_info_get_n_args @gobj
    end
    def arg(index)
      IArgInfo.wrap(Lib.g_callable_info_get_arg @gobj, index)
    end
    ##
    build_array_method :args
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gir_ffi-0.0.14 lib/gir_ffi/i_callable_info.rb
gir_ffi-0.0.13 lib/gir_ffi/i_callable_info.rb
gir_ffi-0.0.12 lib/gir_ffi/i_callable_info.rb
gir_ffi-0.0.11 lib/gir_ffi/i_callable_info.rb
gir_ffi-0.0.10 lib/gir_ffi/i_callable_info.rb
gir_ffi-0.0.9 lib/gir_ffi/i_callable_info.rb
gir_ffi-0.0.8 lib/gir_ffi/i_callable_info.rb
gir_ffi-0.0.7 lib/gir_ffi/i_callable_info.rb
gir_ffi-0.0.6 lib/gir_ffi/i_callable_info.rb
gir_ffi-0.0.5 lib/gir_ffi/i_callable_info.rb
gir_ffi-0.0.4 lib/gir_ffi/i_callable_info.rb