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

Module Wrappers.Cell_view

type t = [ `cell_view | `widget | `initially_unowned | `object_ ] Gobject.obj
val new_ : unit -> t

Create a new CellView

val new_with_context : [ `cell_area | `initially_unowned | `object_ ] Gobject.obj -> [ `cell_area_context | `object_ ] Gobject.obj -> t

Create a new CellView

val new_with_markup : string -> t

Create a new CellView

val new_with_text : string -> t

Create a new CellView

val new_with_texture : Ocgtk_gdk.Gdk.Wrappers.Texture.t -> t

Create a new CellView

val set_model : t -> [ `tree_model ] Gobject.obj option -> unit

Sets the model for @cell_view. If @cell_view already has a model set, it will remove it before setting the new model. If @model is %NULL, then it will unset the old model.

val set_fit_model : t -> bool -> unit

Sets whether @cell_view should request space to fit the entire `GtkTreeModel`.

This is used by `GtkComboBox` to ensure that the cell view displayed on the combo box’s button always gets enough space and does not resize when selection changes.

val set_draw_sensitive : t -> bool -> unit

Sets whether @cell_view should draw all of its cells in a sensitive state, this is used by `GtkComboBox` menus to ensure that rows with insensitive cells that contain children appear sensitive in the parent menu item.

val set_displayed_row : t -> [ `tree_path ] Gobject.obj option -> unit

Sets the row of the model that is currently displayed by the `GtkCellView`. If the path is unset, then the contents of the cellview “stick” at their last value; this is not normally a desired result, but may be a needed intermediate state if say, the model for the `GtkCellView` becomes temporarily empty.

val get_model : t -> [ `tree_model ] Gobject.obj option

Returns the model for @cell_view. If no model is used %NULL is returned.

val get_fit_model : t -> bool

Gets whether @cell_view is configured to request space to fit the entire `GtkTreeModel`.

val get_draw_sensitive : t -> bool

Gets whether @cell_view is configured to draw all of its cells in a sensitive state.

val get_displayed_row : t -> [ `tree_path ] Gobject.obj option

Returns a `GtkTreePath` referring to the currently displayed row. If no row is currently displayed, %NULL is returned.

val get_cell_area : t -> [ `cell_area | `initially_unowned | `object_ ] Gobject.obj

Get property: cell-area

val get_cell_area_context : t -> [ `cell_area_context | `object_ ] Gobject.obj

Get property: cell-area-context