package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/String_sorter/index.html

Module Wrappers.String_sorter

type t = [ `string_sorter | `sorter | `object_ ] Gobject.obj
val new_ : [ `expression ] Gobject.obj option -> t

Create a new StringSorter

val set_ignore_case : t -> bool -> unit

Sets whether the sorter will ignore case differences.

val set_expression : t -> [ `expression ] Gobject.obj option -> unit

Sets the expression that is evaluated to obtain strings from items.

The expression must have the type %G_TYPE_STRING.

val set_collation : t -> Gtk_enums.collation -> unit

Sets the collation method to use for sorting.

val get_ignore_case : t -> bool

Gets whether the sorter ignores case differences.

val get_expression : t -> [ `expression ] Gobject.obj option

Gets the expression that is evaluated to obtain strings from items.

val get_collation : t -> Gtk_enums.collation

Gets which collation method the sorter uses.