pub struct TextFrame { /* private fields */ }Expand description
A read-only handle to a frame in the document.
Obtained from FlowElement::Frame or TextBlock::frame().
Implementations§
Source§impl TextFrame
impl TextFrame
Sourcepub fn format(&self) -> FrameFormat
pub fn format(&self) -> FrameFormat
Frame formatting (height, width, margins, padding, border, position).
Sourcepub fn flow(&self) -> Vec<FlowElement>
pub fn flow(&self) -> Vec<FlowElement>
Nested flow within this frame. Same child_order traversal as
TextDocument::flow().
Sourcepub fn snapshot(&self) -> FrameSnapshot
pub fn snapshot(&self) -> FrameSnapshot
Snapshot of this frame and all its contents, captured in a single
lock acquisition. Thread-safe — the returned FrameSnapshot
contains only plain data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextFrame
impl !RefUnwindSafe for TextFrame
impl Send for TextFrame
impl Sync for TextFrame
impl Unpin for TextFrame
impl UnsafeUnpin for TextFrame
impl !UnwindSafe for TextFrame
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