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 _getGType() static nothrow
GType _gType() @property nothrow
StringSorter self() nothrowReturns `this`, for use in `with` statements.
StringSorterGidBuilder builder() static nothrowGet builder for [gtk.string_sorter.StringSorter] Returns: New builder object
gtk.types.Collation collation() @property nothrowGet `collation` property. Returns: The collation method to use for sorting.
void collation(gtk.types.Collation propval) @property nothrowSet `collation` property. Params: propval = The collation method to use for sorting.
gtk.expression.Expression expression() @property nothrowGet `expression` property. Returns: The expression to evaluate on item to get a string to compare with.
void expression(gtk.expression.Expression propval) @property nothrowSet `expression` property. Params: propval = The expression to evaluate on item to get a string to compare with.
bool ignoreCase() @property nothrowGet `ignoreCase` property. Returns: If sorting is case sensitive.
void ignoreCase(bool propval) @property nothrowSet `ignoreCase` property. Params: propval = If sorting is case sensitive.
gtk.types.Collation getCollation() nothrowGets which collation method the sorter uses. Returns: The collation method
gtk.expression.Expression getExpression() nothrowGets the expression that is evaluated to obtain strings from items. Returns: a [gtk.expression.Expression]
bool getIgnoreCase() nothrowGets whether the sorter ignores case differences. Returns: true if self is ignoring case differences
void setCollation(gtk.types.Collation collation) nothrowSets the collation method to use for sorting.
void setExpression(gtk.expression.Expression expression = null) nothrowSets the expression that is evaluated to obtain strings from items.
void setIgnoreCase(bool ignoreCase) nothrowSets 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.

Fluent builder implementation template for gtk.string_sorter.StringSorter

Methods
T collation(gtk.types.Collation propval) nothrowSet `collation` property. Params: propval = The collation method to use for sorting.
T expression(gtk.expression.Expression propval) nothrowSet `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) nothrowSet `ignoreCase` property. Params: propval = If sorting is case sensitive. Returns: Builder instance for fluent chaining
Methods
StringSorter build() nothrowCreate object from builder. Returns: New object