Sha256: a49e1e10cba012fe158da61a428465ca3e65e58e41871d1f48f39eba4c42f3ed

Contents?: true

Size: 1.78 KB

Versions: 6

Compression:

Stored size: 1.78 KB

Contents

module GObjectIntrospection
  # 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 get_n_methods
      Lib.g_interface_info_get_n_methods @gobj
    end
    def get_method index
      IFunctionInfo.wrap(Lib.g_interface_info_get_method @gobj, index)
    end
    ##
    build_array_method :get_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
    build_finder_method :find_signal

    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

6 entries across 6 versions & 1 rubygems

Version Path
gir_ffi-0.7.4 lib/ffi-gobject_introspection/i_interface_info.rb
gir_ffi-0.7.3 lib/ffi-gobject_introspection/i_interface_info.rb
gir_ffi-0.7.2 lib/ffi-gobject_introspection/i_interface_info.rb
gir_ffi-0.7.1 lib/ffi-gobject_introspection/i_interface_info.rb
gir_ffi-0.7.0 lib/ffi-gobject_introspection/i_interface_info.rb
gir_ffi-0.6.7 lib/ffi-gobject_introspection/i_interface_info.rb