ftui-widgets 0.4.0

Widget library built on FrankenTUI render and layout.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Shared mouse event result type for widget mouse handling.

/// Result of processing a mouse event on a widget.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum MouseResult {
    /// Event not relevant to this widget.
    Ignored,
    /// Selection changed to the given index.
    Selected(usize),
    /// Item activated (double-click, expand/collapse).
    Activated(usize),
    /// Scroll position changed.
    Scrolled,
    /// Hover state changed.
    HoverChanged,
}