Struct gtk4::builders::StringSorterBuilder
source · pub struct StringSorterBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct StringSorter
objects.
Implementations§
source§impl StringSorterBuilder
impl StringSorterBuilder
sourcepub fn collation(self, collation: Collation) -> Self
Available on crate feature v4_10
only.
pub fn collation(self, collation: Collation) -> Self
v4_10
only.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.
sourcepub fn expression(self, expression: impl AsRef<Expression>) -> Self
pub fn expression(self, expression: impl AsRef<Expression>) -> Self
The expression to evaluate on item to get a string to compare with.
sourcepub fn ignore_case(self, ignore_case: bool) -> Self
pub fn ignore_case(self, ignore_case: bool) -> Self
If sorting is case sensitive.
sourcepub fn build(self) -> StringSorter
pub fn build(self) -> StringSorter
Build the StringSorter
.