use std::time::Duration;
use torin::geometry::Size2D;
#[derive(Clone, Copy)]
pub struct TestingConfig {
pub vdom_timeout: Duration,
pub size: Size2D,
pub event_loop_ticker: bool,
}
impl Default for TestingConfig {
fn default() -> Self {
Self {
vdom_timeout: Duration::from_millis(16),
size: Size2D::from((500.0, 500.0)),
event_loop_ticker: true,
}
}
}
impl TestingConfig {
pub fn new() -> Self {
TestingConfig::default()
}
pub fn size(&self) -> Size2D {
self.size
}
pub fn vdom_timeout(&self) -> Duration {
self.vdom_timeout
}
}