Add support for a measure function to the layout engine facade
This commit is contained in:
parent
4efc46c763
commit
a8ecc1a643
5 changed files with 261 additions and 181 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue