Sha256: a7333a598714205191f18dea0ccfab10af3d9f8c5987029b38e143e356c0a183

Contents?: true

Size: 1.72 KB

Versions: 3

Compression:

Stored size: 1.72 KB

Contents

module GirFFI
  # Wraps a IInterfaceInfo struct.
  # Represents an interface.
  class IInterfaceInfo < IRegisteredTypeInfo
    def n_prerequisites
      Lib.g_interface_info_get_n_prerequisites @gobj
    end
    def prerequisite index
      IBaseInfo.wrap(Lib.g_interface_info_get_prerequisite @gobj, index)
    end
    ##
    build_array_method :prerequisites

    def n_properties
      Lib.g_interface_info_get_n_properties @gobj
    end
    def property index
      IPropertyInfo.wrap(Lib.g_interface_info_get_property @gobj, index)
    end
    ##
    build_array_method :properties, :property

    def n_methods
      Lib.g_interface_info_get_n_methods @gobj
    end
    def method index
      IFunctionInfo.wrap(Lib.g_interface_info_get_method @gobj, index)
    end
    ##
    build_array_method :methods

    def find_method name
      IFunctionInfo.wrap(Lib.g_interface_info_find_method @gobj, name)
    end

    def n_signals
      Lib.g_interface_info_get_n_signals @gobj
    end
    def signal index
      ISignalInfo.wrap(Lib.g_interface_info_get_signal @gobj, index)
    end
    ##
    build_array_method :signals

    def n_vfuncs
      Lib.g_interface_info_get_n_vfuncs @gobj
    end
    def vfunc index
      IVFuncInfo.wrap(Lib.g_interface_info_get_vfunc @gobj, index)
    end
    ##
    build_array_method :vfuncs

    def find_vfunc name
      IVFuncInfo.wrap(Lib.g_interface_info_find_vfunc @gobj, name)
    end

    def n_constants
      Lib.g_interface_info_get_n_constants @gobj
    end
    def constant index
      IConstantInfo.wrap(Lib.g_interface_info_get_constant @gobj, index)
    end
    ##
    build_array_method :constants

    def iface_struct
      IStructInfo.wrap(Lib.g_interface_info_get_iface_struct @gobj)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-0.0.7 lib/gir_ffi/i_interface_info.rb
gir_ffi-0.0.6 lib/gir_ffi/i_interface_info.rb
gir_ffi-0.0.5 lib/gir_ffi/i_interface_info.rb