pub struct LayoutBox {
pub box_type: BoxType,
pub dimensions: Dimensions,
pub style: ComputedStyle,
pub children: Vec<LayoutBox>,
pub node_id: Option<NodeId>,
pub line_boxes: Vec<LineBox>,
}Expand description
A layout box in the layout tree
Fields§
§box_type: BoxType§dimensions: Dimensions§style: ComputedStyle§children: Vec<LayoutBox>§node_id: Option<NodeId>§line_boxes: Vec<LineBox>Implementations§
Source§impl LayoutBox
impl LayoutBox
Sourcepub fn new(
box_type: BoxType,
style: ComputedStyle,
node_id: Option<NodeId>,
) -> Self
pub fn new( box_type: BoxType, style: ComputedStyle, node_id: Option<NodeId>, ) -> Self
Create a new layout box
Sourcepub fn margin_box_height(&self) -> FixedPoint
pub fn margin_box_height(&self) -> FixedPoint
Get the margin box height
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LayoutBox
impl RefUnwindSafe for LayoutBox
impl Send for LayoutBox
impl Sync for LayoutBox
impl Unpin for LayoutBox
impl UnwindSafe for LayoutBox
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)