This commit is contained in:
Nathan Sobo 2023-08-25 21:41:21 -06:00
parent cf007a3d3b
commit 147aa0f695
17 changed files with 150 additions and 138 deletions

View file

@ -53,6 +53,7 @@ use std::{
pub use test_app_context::{ContextHandle, TestAppContext};
use util::ResultExt;
use uuid::Uuid;
pub use window::MeasureParams;
use window_input_handler::WindowInputHandler;
pub trait Entity: 'static {

View file

@ -1302,7 +1302,7 @@ impl LayoutEngine {
}
pub fn computed_layout(&mut self, node: LayoutId) -> Result<EngineLayout> {
Ok(self.0.layout(node)?.into())
dbg!(Ok(self.0.layout(node)?.into()))
}
}

View file

@ -157,7 +157,7 @@ impl<T: Clone + Default> Into<taffy::geometry::Point<T>> for Point<T> {
}
}
#[derive(Clone, Refineable)]
#[derive(Clone, Refineable, Debug)]
pub struct Size<T: Clone + Default> {
pub width: T,
pub height: T,

View file

@ -7,6 +7,7 @@ pub use assets::*;
pub mod elements;
pub mod font_cache;
mod image_data;
pub use taffy;
pub use crate::image_data::ImageData;
pub mod views;
pub use font_cache::FontCache;