pub struct LayoutEngine { /* private fields */ }Implementations§
Source§impl LayoutEngine
impl LayoutEngine
pub fn new(viewport: Viewport) -> Self
pub fn mark_dirty(&mut self)
pub fn compute(&mut self, dom: &Dom)
pub fn ensure_computed(&mut self, dom: &Dom)
pub fn get_bounding_rect(&mut self, dom: &Dom, node_id: NodeId) -> DOMRect
pub fn get_computed_style( &mut self, dom: &Dom, node_id: NodeId, ) -> ComputedStyle
pub fn get_offset_width(&mut self, dom: &Dom, node_id: NodeId) -> f64
pub fn get_offset_height(&mut self, dom: &Dom, node_id: NodeId) -> f64
pub fn get_offset_top(&mut self, dom: &Dom, node_id: NodeId) -> f64
pub fn get_offset_left(&mut self, dom: &Dom, node_id: NodeId) -> f64
Auto Trait Implementations§
impl !Send for LayoutEngine
impl !Sync for LayoutEngine
impl Freeze for LayoutEngine
impl RefUnwindSafe for LayoutEngine
impl Unpin for LayoutEngine
impl UnsafeUnpin 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