pub struct LayoutResult {
pub root: Fragment,
}Expand description
The result of a layout computation.
Fields§
§root: FragmentThe root fragment.
Implementations§
Source§impl LayoutResult
impl LayoutResult
Sourcepub fn find_fragment(&self, node: NodeId) -> Option<&Fragment>
pub fn find_fragment(&self, node: NodeId) -> Option<&Fragment>
Find a fragment by node ID (depth-first search).
Sourcepub fn get_layout(&self, node: NodeId) -> Option<LayoutOutput>
pub fn get_layout(&self, node: NodeId) -> Option<LayoutOutput>
Get the layout output for a node (the bounding client rect equivalent).
Sourcepub fn bounding_rect(&self, node: NodeId) -> Option<Rect>
pub fn bounding_rect(&self, node: NodeId) -> Option<Rect>
Get the bounding client rect for a node.
Trait Implementations§
Source§impl Clone for LayoutResult
impl Clone for LayoutResult
Source§fn clone(&self) -> LayoutResult
fn clone(&self) -> LayoutResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LayoutResult
impl RefUnwindSafe for LayoutResult
impl Send for LayoutResult
impl Sync for LayoutResult
impl Unpin for LayoutResult
impl UnwindSafe for LayoutResult
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