#[non_exhaustive]pub enum PanelEvent {
Show 24 variants
Number {
id: String,
value: f64,
},
Choice {
id: String,
index: usize,
},
Toggle {
id: String,
on: bool,
},
Text {
id: String,
value: String,
},
Button {
id: String,
},
Pick {
id: String,
},
Select {
id: String,
index: usize,
},
Cell {
id: String,
row: usize,
column: usize,
value: String,
},
CellText {
id: String,
row: usize,
column: usize,
value: String,
},
CellCheck {
id: String,
row: usize,
column: usize,
on: bool,
},
DiagramPress {
id: String,
x: f32,
y: f32,
dragging: bool,
released: bool,
},
Hover {
id: String,
index: Option<usize>,
},
Activate {
id: String,
index: usize,
},
ContextMenu {
id: String,
index: usize,
action: String,
},
Tag {
id: String,
index: usize,
tag: usize,
},
Selection {
id: String,
indices: Vec<usize>,
},
Filter {
id: String,
text: String,
kind: usize,
},
Clear {
id: String,
},
Badge {
id: String,
index: usize,
badge: usize,
},
HoverPart {
id: String,
index: Option<usize>,
tag: Option<usize>,
badge: Option<usize>,
},
ItemText {
id: String,
index: usize,
value: String,
done: bool,
},
Color {
id: String,
color: [f32; 3],
},
TextLeft {
id: String,
value: String,
escaped: bool,
},
CardClose {
id: String,
accept: bool,
},
}Expand description
What the user did to a panel widget, by the widget’s id.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Number
Choice
Toggle
Text
Button
Pick
Select
Cell
A cell of a table’s editable column, typed in: its text as left.
CellText
A sheet’s editable cell, once typing ended.
CellCheck
A sheet’s box ticked or cleared.
DiagramPress
A diagram pressed at x, y in its own coordinates; dragging
for each move of the pointer held down after the press, and
released once, where the drag ended.
Hover
The pointer came onto an item (index in its list, 0 for an
item alone), or left the list (None).
Activate
An item double clicked.
ContextMenu
An entry of an item’s menu chosen: the entry’s id in action.
Tag
A tag of an item clicked: tag is its place among the item’s.
Selection
A multiple list’s selection, whole, as the user left it.
Filter
A filter the bench applies, typed in or its kind chosen.
Clear
A picked chip cleared.
Badge
A badge of an item clicked: badge is its place among the item’s.
HoverPart
What the pointer is on in a list changed: the item (None off
the list), and the tag or badge of it under the pointer.
ItemText
An item’s name typed in while it is editing: at each change,
and with done as the field is left.
Color
A colour field’s colour changed: red, green and blue from 0 to 1.
TextLeft
A live Entry’s field left, its text as it stands: by Escape
when escaped, which drops what was typed.
CardClose
The floating card id closed: by OK (or Enter, or a click
elsewhere in the view) when accept, else by Cancel or Escape.