Class: Gtk::StringSorter

Inherits:
Sorter
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from Sorter

#changed, #compare, #order

Constructor Details

#initialize(expression) ⇒ Gtk::StringSorter

Creates a new string sorter that compares items using the given expression.

Unless an expression is set on it, this sorter will always compare items as invalid.

Parameters:

Instance Method Details

#collationGtk::Collation

The collation method to use for sorting.

The GTK_COLLATION_NONE value is useful when the expression already returns collation keys, or strings that need to be compared byte-by-byte.

The default value, GTK_COLLATION_UNICODE, compares strings according to the Unicode collation algorithm.

Returns:

#collation=(collation) ⇒ Gtk::Collation

The collation method to use for sorting.

The GTK_COLLATION_NONE value is useful when the expression already returns collation keys, or strings that need to be compared byte-by-byte.

The default value, GTK_COLLATION_UNICODE, compares strings according to the Unicode collation algorithm.

Parameters:

Returns:

#expressionGtk::Expression

The expression to evaluate on item to get a string to compare with.

Returns:

#expression=(expression) ⇒ Gtk::Expression

The expression to evaluate on item to get a string to compare with.

Parameters:

Returns:

#ignore_caseBoolean

Gets whether the sorter ignores case differences.

Returns:

  • (Boolean)

    true if self is ignoring case differences

#ignore_case=(ignore_case) ⇒ Boolean

If sorting is case sensitive.

Parameters:

  • ignore_case (Boolean)

Returns:

  • (Boolean)

    ignore-case

  • (Boolean)

    ignore-case

#ignore_case?Boolean

If sorting is case sensitive.

Returns:

  • (Boolean)

    ignore-case