pub struct LayoutEngine {
pub stats: LayoutStats,
/* private fields */
}
Expand description
Layout engine responsible for computing layouts
Fields§
§stats: LayoutStats
Performance metrics
Implementations§
Source§impl LayoutEngine
impl LayoutEngine
Sourcepub fn calculate_layout(
&mut self,
root: &mut LayoutNode,
container_size: Size,
) -> Result<(), LayoutError>
pub fn calculate_layout( &mut self, root: &mut LayoutNode, container_size: Size, ) -> Result<(), LayoutError>
Calculate layout for a node tree
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear the layout cache
Sourcepub fn get_stats(&self) -> &LayoutStats
pub fn get_stats(&self) -> &LayoutStats
Get layout statistics
Sourcepub fn reset_stats(&mut self)
pub fn reset_stats(&mut self)
Reset layout statistics
Trait Implementations§
Source§impl Debug for LayoutEngine
impl Debug for LayoutEngine
Auto Trait Implementations§
impl Freeze for LayoutEngine
impl RefUnwindSafe for LayoutEngine
impl Send for LayoutEngine
impl Sync for LayoutEngine
impl Unpin for LayoutEngine
impl UnwindSafe 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