#![allow(dead_code)] use rat_cursor::HasScreenCursor; use rat_event::{HandleEvent, MouseOnly, Outcome, Regular}; use rat_focus::{FocusFlag, HasFocus}; use ratatui::buffer::Buffer; use ratatui::layout::Rect; use ratatui::prelude::{StatefulWidget, Style}; use std::marker::PhantomData; #[derive(Debug, Default)] pub struct TextInputMock<'a> { style: Style, focus_style: Style, phantom_data: PhantomData<&'a ()>, } #[derive(Debug, Clone)] pub struct TextInputMockState { pub focus: FocusFlag, pub area: Rect, } impl<'a> TextInputMock<'a> { /// Base text style. pub fn style(mut self, style: impl Into