Trait gtk4::prelude::CellEditableExtManual
source · pub trait CellEditableExtManual {
// Required method
fn start_editing(&self, event: Option<&impl AsRef<Event>>);
}
Required Methods§
sourcefn start_editing(&self, event: Option<&impl AsRef<Event>>)
fn start_editing(&self, event: Option<&impl AsRef<Event>>)
Begins editing on a @self.
The CellRenderer
for the cell creates and returns a CellEditable
from
gtk_cell_renderer_start_editing(), configured for the CellRenderer
type.
gtk_cell_editable_start_editing() can then set up @self suitably for
editing a cell, e.g. making the Esc key emit GtkCellEditable::editing-done
.
Note that the @self is created on-demand for the current edit; its lifetime is temporary and does not persist across other edits and/or cells.
event
The gdk::Event
that began the editing process, or
None
if editing was initiated programmatically