pub trait ExpandGesture: 'static {
// Required method
fn edit(&self, context: &ExpandGestureContext) -> Option<ExpandEdit>;
}Expand description
Which press expands or collapses a group caption or a tree row. Called
once per press on such a line, on the UI thread, after the
ContextMenuGesture. A press on a caption still focuses it; a press
on a tree row’s chevron leaves the focus and the selection as they are,
as Finder’s disclosure triangle does; a press on a chevron is never a
click. The keys (ExpandRow, CollapseRow, ←/→ on a caption) expand
whatever it says.
The default is StandardExpandGesture. Others are plausible: a single
press on a caption toggles (Syncfusion); a double click on a caption
confirms instead; no double click at all.
Required Methods§
Sourcefn edit(&self, context: &ExpandGestureContext) -> Option<ExpandEdit>
fn edit(&self, context: &ExpandGestureContext) -> Option<ExpandEdit>
The edit the press makes, if any.