pub struct LayoutEngine {
pub stats: LayoutStats,
/* private fields */
}Fields§
§stats: LayoutStatsStatistics from the last frame.
Implementations§
Source§impl LayoutEngine
impl LayoutEngine
pub fn layout_frame( &mut self, root: &View, size_px: (u32, u32), textfield_states: &HashMap<u64, Rc<RefCell<TextFieldState>>>, interactions: &Interactions, focused: Option<u64>, ) -> (Scene, Vec<HitRegion>, Vec<SemNode>)
pub fn intrinsic_size( &mut self, view: &View, mode: IntrinsicSizeMode, ) -> (f32, f32)
pub fn new() -> Self
Sourcepub fn debug_taffy_subtree(&self, node_id: NodeId) -> String
pub fn debug_taffy_subtree(&self, node_id: NodeId) -> String
Debug dump of the taffy subtree rooted at node_id (styles +
computed layout), for the devtools inspector. Empty string when the
node has no taffy node. Backed by taffy’s write_tree.
Sourcepub fn debug_grid_summary(&self, node_id: NodeId) -> Option<String>
pub fn debug_grid_summary(&self, node_id: NodeId) -> Option<String>
One-line grid summary (track counts, line positions, resolved
templates) for a grid container, for the devtools inspector.
None when the node is not a grid container with detailed info.
Requires taffy’s detailed_layout_info feature (default-on).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LayoutEngine
impl !Send for LayoutEngine
impl !Sync for LayoutEngine
impl !UnwindSafe for LayoutEngine
impl Freeze for LayoutEngine
impl Unpin for LayoutEngine
impl UnsafeUnpin for LayoutEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more