Add support for a measure function to the layout engine facade

This commit is contained in:
Nathan Sobo 2023-08-15 22:02:56 -06:00
parent 4efc46c763
commit a8ecc1a643
5 changed files with 261 additions and 181 deletions

View file

@ -2,13 +2,14 @@ use std::{any::Any, rc::Rc};
use crate::{
adapter::Adapter,
style::{DefinedLength, Display, ElementStyle, Fill, Length, Overflow, Position},
style::{Display, ElementStyle, Fill, Overflow, Position},
};
use anyhow::Result;
use derive_more::{Deref, DerefMut};
use gpui::{
scene::MouseClick, EngineLayout, LayoutContext as LegacyLayoutContext,
PaintContext as LegacyPaintContext,
geometry::{DefinedLength, Length},
scene::MouseClick,
EngineLayout, LayoutContext as LegacyLayoutContext, PaintContext as LegacyPaintContext,
};
use playground_macros::tailwind_lengths;
pub use taffy::tree::NodeId;