ratkit 0.2.15

A comprehensive collection of reusable TUI components for ratatui including resizable splits, tree views, markdown rendering, toast notifications, dialogs, and terminal embedding
Documentation
//! Events emitted by the code widget.

/// Outcome of code-widget input handling.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum CodeEvent {
    /// No visible state changed.
    None,
    /// Viewport focus moved to a zero-based line.
    Navigated {
        /// Zero-based focused line.
        line: usize,
    },
    /// Text was copied into widget state.
    Copied {
        /// Copied source text.
        text: String,
    },
    /// Selection changed.
    SelectionChanged,
    /// Outline TOC hover state changed.
    OutlineHoverChanged,
}