gtk.string_sorter

Module for [StringSorter] class

Types 3

[gtk.string_sorter.StringSorter] is a [gtk.sorter.Sorter] that compares strings.

It does the comparison in a linguistically correct way using the current locale by normalizing Unicode strings and possibly case-folding them before performing the comparison.

To obtain the strings to compare, this sorter evaluates a [gtk.expression.Expression].

Methods
GType _gType() @property
StringSorter self()Returns `this`, for use in `with` statements.
StringSorterGidBuilder builder()Get builder for [gtk.string_sorter.StringSorter] Returns: New builder object
gtk.types.Collation collation() @propertyGet `collation` property. Returns: The collation method to use for sorting.
void collation(gtk.types.Collation propval) @propertySet `collation` property. Params: propval = The collation method to use for sorting.
gtk.expression.Expression expression() @propertyGet `expression` property. Returns: The expression to evaluate on item to get a string to compare with.
void expression(gtk.expression.Expression propval) @propertySet `expression` property. Params: propval = The expression to evaluate on item to get a string to compare with.
bool ignoreCase() @propertyGet `ignoreCase` property. Returns: If sorting is case sensitive.
void ignoreCase(bool propval) @propertySet `ignoreCase` property. Params: propval = If sorting is case sensitive.
gtk.types.Collation getCollation()Gets which collation method the sorter uses. Returns: The collation method
gtk.expression.Expression getExpression()Gets the expression that is evaluated to obtain strings from items. Returns: a [gtk.expression.Expression]
bool getIgnoreCase()Gets whether the sorter ignores case differences. Returns: true if self is ignoring case differences
void setCollation(gtk.types.Collation collation)Sets the collation method to use for sorting.
void setExpression(gtk.expression.Expression expression = null)Sets the expression that is evaluated to obtain strings from items.
void setIgnoreCase(bool ignoreCase)Sets whether the sorter will ignore case differences.
Constructors
this(void * ptr, Flag!"Take" take)
this(gtk.expression.Expression expression = null)Creates a new string sorter that compares items using the given expression.
Methods
T collation(gtk.types.Collation propval)Set `collation` property. Params: propval = The collation method to use for sorting.
T expression(gtk.expression.Expression propval)Set `expression` property. Params: propval = The expression to evaluate on item to get a string to compare with. Returns: Builder instance for fluent chaining
T ignoreCase(bool propval)Set `ignoreCase` property. Params: propval = If sorting is case sensitive. Returns: Builder instance for fluent chaining

Fluent builder for [gtk.string_sorter.StringSorter]