[−][src]Trait gtk::CellEditableExt
Trait containing all CellEditable
methods.
Implementors
AppChooserButton
, CellEditable
, ComboBoxText
, ComboBox
, Entry
, SearchEntry
, SpinButton
Required methods
fn editing_done(&self)
Emits the CellEditable::editing-done
signal.
fn remove_widget(&self)
Emits the CellEditable::remove-widget
signal.
fn start_editing(&self, event: Option<&Event>)
Begins editing on a self
.
The CellRenderer
for the cell creates and returns a CellEditable
from
CellRendererExt::start_editing
, configured for the CellRenderer
type.
CellEditable::start_editing
can then set up self
suitably for
editing a cell, e.g. making the Esc key emit CellEditable::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 GdkEvent
that began the editing process, or
None
if editing was initiated programmatically
fn get_property_editing_canceled(&self) -> bool
Indicates whether editing on the cell has been canceled.
fn set_property_editing_canceled(&self, editing_canceled: bool)
Indicates whether editing on the cell has been canceled.
fn connect_editing_done<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
This signal is a sign for the cell renderer to update its
value from the cell_editable
.
Implementations of CellEditable
are responsible for
emitting this signal when they are done editing, e.g.
Entry
emits this signal when the user presses Enter. Typical things to
do in a handler for ::editing-done are to capture the edited value,
disconnect the cell_editable
from signals on the CellRenderer
, etc.
CellEditable::editing_done
is a convenience method
for emitting CellEditable::editing-done
.
fn connect_remove_widget<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
This signal is meant to indicate that the cell is finished
editing, and the cell_editable
widget is being removed and may
subsequently be destroyed.
Implementations of CellEditable
are responsible for
emitting this signal when they are done editing. It must
be emitted after the CellEditable::editing-done
signal,
to give the cell renderer a chance to update the cell's value
before the widget is removed.
CellEditable::remove_widget
is a convenience method
for emitting CellEditable::remove-widget
.
fn connect_property_editing_canceled_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<CellEditable>> CellEditableExt for O
[src]
fn editing_done(&self)
[src]
fn remove_widget(&self)
[src]
fn start_editing(&self, event: Option<&Event>)
[src]
fn get_property_editing_canceled(&self) -> bool
[src]
fn set_property_editing_canceled(&self, editing_canceled: bool)
[src]
fn connect_editing_done<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
fn connect_remove_widget<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
fn connect_property_editing_canceled_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId