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/Numeric_sorter/index.html

Module Wrappers.Numeric_sorter

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

Create a new NumericSorter

val set_sort_order : t -> Gtk_enums.sorttype -> unit

Sets whether to sort smaller numbers before larger ones.

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

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

Unless an expression is set on @self, the sorter will always compare items as invalid.

The expression must have a return type that can be compared numerically, such as %G_TYPE_INT or %G_TYPE_DOUBLE.

val get_sort_order : t -> Gtk_enums.sorttype

Gets whether this sorter will sort smaller numbers first.

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

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