gtk.string_sorter
Module for [StringSorter] class
Types 3
classStringSorter : gtk.sorter.Sorter
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
StringSorterGidBuilder builder() static nothrowGet builder for [gtk.string_sorter.StringSorter] Returns: New builder objectgtk.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 methodgtk.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 differencesvoid 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.Constructors
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 chainingT ignoreCase(bool propval) nothrowSet `ignoreCase` property. Params: propval = If sorting is case sensitive. Returns: Builder instance for fluent chainingFluent builder for gtk.string_sorter.StringSorter
Methods