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

Module Wrappers.Column_view_row

type t = [ `column_view_row | `object_ ] Gobject.obj
val set_selectable : t -> bool -> unit

Sets @self to be selectable.

If a row is selectable, clicking on the row or using the keyboard will try to select or unselect the row. Whether this succeeds is up to the model to determine, as it is managing the selected state.

Note that this means that making a row non-selectable has no influence on the selected state at all. A non-selectable row may still be selected.

By default, rows are selectable.

val set_focusable : t -> bool -> unit

Sets @self to be focusable.

If a row is focusable, it can be focused using the keyboard. This works similar to method@Gtk.Widget.set_focusable.

Note that if row are not focusable, the contents of cells can still be focused if they are focusable.

By default, rows are focusable.

val set_activatable : t -> bool -> unit

Sets @self to be activatable.

If a row is activatable, double-clicking on the row, using the Return key or calling gtk_widget_activate() will activate the row. Activating instructs the containing columnview to emit the signal@Gtk.ColumnView::activate signal.

By default, row are activatable.

val set_accessible_label : t -> string -> unit

Sets the accessible label for the row, which may be used by e.g. screen readers.

val set_accessible_description : t -> string -> unit

Sets the accessible description for the row, which may be used by e.g. screen readers.

val get_selected : t -> bool

Checks if the item is selected that this row corresponds to.

The selected state is maintained by the list widget and its model and cannot be set otherwise.

val get_selectable : t -> bool

Checks if the row has been set to be selectable via gtk_column_view_row_set_selectable().

Do not confuse this function with method@Gtk.ColumnViewRow.get_selected.

val get_position : t -> int

Gets the position in the model that @self currently displays.

If @self is unbound, %GTK_INVALID_LIST_POSITION is returned.

val get_item : t -> [ `object_ ] Gobject.obj option

Gets the model item that associated with @self.

If @self is unbound, this function returns %NULL.

val get_focusable : t -> bool

Checks if a row item has been set to be focusable via gtk_column_view_row_set_focusable().

val get_activatable : t -> bool

Checks if the row has been set to be activatable via gtk_column_view_row_set_activatable().

val get_accessible_label : t -> string

Gets the accessible label of @self.

val get_accessible_description : t -> string

Gets the accessible description of @self.