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
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