revue 2.71.1

A Vue-style TUI framework for Rust with CSS styling
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Core types for testing utilities

use crate::event::{KeyEvent, MouseEvent};
use std::time::Duration;

/// Simulated event for testing
#[derive(Debug, Clone)]
pub enum SimulatedEvent {
    /// Key press event
    Key(KeyEvent),
    /// Mouse event
    Mouse(MouseEvent),
    /// Wait for duration
    Wait(Duration),
    /// Custom callback
    Custom(String),
}