pub enum Message {
Show 13 variants
Nop,
Call(CallableId, ValArray),
EditorAction(ExprId, Action),
Scroll(f32, f32, f32, f32),
CellClick(usize, ArcStr),
CellEdit(usize, ArcStr),
CellEditInput(CompactString),
CellEditSubmit,
CellEditCancel,
ColumnResizeStart(usize),
ColumnResizeMove(f32),
ColumnResizeEnd,
TableKey(TableKeyAction),
}Expand description
Message type for iced widget interactions.
Variants§
Nop
Call(CallableId, ValArray)
EditorAction(ExprId, Action)
Scroll(f32, f32, f32, f32)
Virtual scroll position changed: (offset_x, offset_y, viewport_w, viewport_h) All values in logical pixels.
CellClick(usize, ArcStr)
A cell was clicked in a data table (row index, column name).
Column name is the data_table widget’s cached ColumnSpec.name
or one of the synthesized sentinels (ROW_NAME_KEY/value-mode);
either way it’s a refcount-bump clone, never a fresh allocation.
CellEdit(usize, ArcStr)
A cell was clicked to begin editing (row index, column name).
CellEditInput(CompactString)
Cell edit text changed (new text). CompactString keeps small
edits inline (≤ 24 bytes) without heap traffic on each
keystroke.
CellEditSubmit
Cell edit submitted (Enter pressed).
CellEditCancel
Cell edit cancelled (Escape or click elsewhere).
ColumnResizeStart(usize)
Column resize drag started (col_meta index).
ColumnResizeMove(f32)
Cursor moved while a column resize drag might be active
(cursor x in widget-local coordinates). The event loop filters
this against the widget’s is_column_resizing state — only
widgets currently dragging consume it.
ColumnResizeEnd
Column resize drag ended.
TableKey(TableKeyAction)
Keyboard navigation in a data table.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl !RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl !UnwindSafe for Message
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.