#![deny(warnings)]
pub use text_buffer::TextBuffer;
pub use sauron;
#[cfg(feature = "with-dom")]
pub mod editor;
mod text_buffer;
mod util;
pub const COMPONENT_NAME: &str = "ultron";
pub const CH_WIDTH: u32 = 8;
pub const CH_HEIGHT: u32 = 16;
#[derive(Clone, Debug)]
pub struct Options {
pub use_block_mode: bool,
pub show_line_numbers: bool,
pub show_status_line: bool,
pub show_cursor: bool,
pub use_spans: bool,
pub use_for_ssg: bool,
pub use_background: bool,
pub theme_name: Option<String>,
pub syntax_token: String,
}
impl Default for Options {
fn default() -> Self {
Self {
use_block_mode: false,
show_line_numbers: true,
show_status_line: true,
show_cursor: true,
use_spans: true,
use_for_ssg: false,
use_background: true,
theme_name: None,
syntax_token: "txt".to_string(),
}
}
}
#[cfg(test)]
mod unit_tests;