pub struct BlockVisualInfo {
pub block_id: usize,
pub y: f32,
pub height: f32,
}Expand description
Visual position and size of a laid-out block.
Returned by crate::Typesetter::block_visual_info.
Fields§
§block_id: usizeBlock ID (matches BlockSnapshot::block_id).
y: f32Y position of the block’s top edge relative to the document start, in pixels.
height: f32Total height of the block including margins, in pixels.
Auto Trait Implementations§
impl Freeze for BlockVisualInfo
impl RefUnwindSafe for BlockVisualInfo
impl Send for BlockVisualInfo
impl Sync for BlockVisualInfo
impl Unpin for BlockVisualInfo
impl UnsafeUnpin for BlockVisualInfo
impl UnwindSafe for BlockVisualInfo
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