dumo 0.1.1

An embedded-graphics backend for Ratatui with an adjustable font size
Documentation
use super::cache::Cache;

#[derive(Debug, Clone)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub struct State {
    pub cache: Cache,
    pub ticks: usize,
    pub blinking: bool,
    pub cursor_dirty: Option<()>,
}

impl State {
    pub const fn new() -> Self {
        Self {
            cache: Cache::new(),
            ticks: 0,
            blinking: false,
            cursor_dirty: None,
        }
    }
}

impl Default for State {
    fn default() -> Self {
        Self::new()
    }
}