package ocgtk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Wrappers.Cell_editable

type t = [ `cell_editable ] Gobject.obj
val from_gobject : 'a Gobject.obj -> t
val start_editing : t -> Ocgtk_gdk.Gdk.Wrappers.Event.t option -> unit

Begins editing on a @cell_editable.

The `GtkCellRenderer` for the cell creates and returns a `GtkCellEditable` from gtk_cell_renderer_start_editing(), configured for the `GtkCellRenderer` type.

gtk_cell_editable_start_editing() can then set up @cell_editable suitably for editing a cell, e.g. making the Esc key emit `GtkCellEditable::editing-done`.

Note that the @cell_editable is created on-demand for the current edit; its lifetime is temporary and does not persist across other edits and/or cells.

val remove_widget : t -> unit

Emits the `GtkCellEditable::remove-widget` signal.

val editing_done : t -> unit

Emits the `GtkCellEditable::editing-done` signal.

val get_editing_canceled : t -> bool

Get property: editing-canceled

val set_editing_canceled : t -> bool -> unit

Set property: editing-canceled

val on_editing_done : ?after:bool -> t -> callback:(unit -> unit) -> Gobject.Signal.handler_id
val on_remove_widget : ?after:bool -> t -> callback:(unit -> unit) -> Gobject.Signal.handler_id