Gjsify LogoGjsify Logo

Index

Enumerations

Classes

Interfaces

Variables

Functions

Variables

PEER_DBUS_IFACE: string
SEQUENCE_MODEL_DBUS_IFACE: string

String constant defining the name of the DBus Model interface.

SHARED_MODEL_DBUS_IFACE: string

String constant defining the name of the DBus Model interface.

Functions

  • Create a new #DeeFilter with the given parameters. This call will zero the out_filter struct.

    Parameters

    • mapFunc: FilterMapFunc

      The #DeeFilterMapFunc to use for the filter

    • mapNotify: FilterMapNotify

      The #DeeFilterMapNotify to use for the filter

    Returns Dee.Filter

  • filterNewCollator(column: number): Dee.Filter
  • Create a #DeeFilter that takes string values from a column in the model and builds a #DeeFilterModel with the rows sorted according to the collation rules of the current locale.

    Parameters

    • column: number

      The index of a column containing the strings to sort after

    Returns Dee.Filter

  • filterNewCollatorDesc(column: number): Dee.Filter
  • Create a #DeeFilter that takes string values from a column in the model and builds a #DeeFilterModel with the rows sorted descending according to the collation rules of the current locale.

    Parameters

    • column: number

      The index of a column containing the strings to sort after

    Returns Dee.Filter

  • Create a #DeeFilter that only includes rows from the original model which match a variant value in a given column. A #DeeFilterModel created with this filter will be ordered in accordance with its parent model.

    This method will work on any column, disregarding its schema, since the value comparison is done using g_variant_equal(). This means you can use this filter as a convenient fallback when there is no predefined filter for your column type if raw performance is not paramount.

    Parameters

    • column: number

      The index of a column containing the string to match

    • value: GLib.Variant

      A #GVariant value columns must match exactly. The matching semantics are those of g_variant_equal(). If value is floating the ownership will be transfered to the filter

    Returns Dee.Filter

  • filterNewForKeyColumn(column: number, key: string): Dee.Filter
  • Create a #DeeFilter that only includes rows from the original model which has an exact match on some string column. A #DeeFilterModel created with this filter will be ordered in accordance with its parent model.

    Parameters

    • column: number

      The index of a column containing the string key to match

    • key: string

    Returns Dee.Filter

  • Create a #DeeFilter that only includes rows from the original model which match a regular expression on some string column. A #DeeFilterModel created with this filter will be ordered in accordance with its parent model.

    Parameters

    • column: number

      The index of a column containing the string to match

    • regex: GLib.Regex

      The regular expression column must match

    Returns Dee.Filter

  • Create a new #DeeModelReader with the given parameters. This call will zero the out_reader struct.

    Parameters

    Returns ModelReader

  • modelReaderNewForInt32Column(column: number): ModelReader
  • A #DeeModelReader reading a %gint32 from a #DeeModel at a given column

    Parameters

    • column: number

      The column index to read a %gint32 from

    Returns ModelReader

  • modelReaderNewForStringColumn(column: number): ModelReader
  • A #DeeModelReader reading a string from a #DeeModel at a given column

    Parameters

    • column: number

      The column index to read a string from

    Returns ModelReader

  • modelReaderNewForUint32Column(column: number): ModelReader
  • A #DeeModelReader reading a %guint32 from a #DeeModel at a given column

    Parameters

    • column: number

      The column index to read a %guint32 from

    Returns ModelReader

  • Reconstruct a #DeeSerializable from #GVariant data. For this function to work you need to register a parser with dee_serializable_register_parser(). Any native Dee class will do so automatically.

    This method only works on data created with dee_serializable_serialize() and not with data from dee_serializable_externalize().

    Since a #DeeSerializableParseFunc is not allowed to fail - by contract - it can be guaranteed that this function only returns %NULL in case there is no known parser for type and #GVariant signature of data.

    Parameters

    • data: GLib.Variant

      The #GVariant data to parse. If this is a floating reference it will be consumed

    • type: GType<unknown>

      The #GType of the class to instantiate from data

    Returns GObject.Object

  • Reconstruct a #DeeSerializable from #GVariant data. For this function to work you need to register a parser with dee_serializable_register_parser(). Any native Dee class will do so automatically.

    This method only works on data created with dee_serializable_externalize() and not with data from dee_serializable_serialize().

    Since a #DeeSerializableParseFunc is not allowed to fail - by contract - it can be guaranteed that this function only returns %NULL in case there is no known parser for the #GType or #GVariant signature of data.

    Parameters

    Returns GObject.Object

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method