pub struct DviWriter { /* private fields */ }Expand description
The state of the DVI file being written.
Implementations§
Source§impl DviWriter
impl DviWriter
Sourcepub fn begin_page(
&mut self,
engine: &mut Engine,
dims: (i32, i32, i32),
offsets: (i32, i32),
)
pub fn begin_page( &mut self, engine: &mut Engine, dims: (i32, i32, i32), offsets: (i32, i32), )
Starts a page (§640): writes the preamble before the first page,
then bop with \count0–\count9. width, height and depth
are the box dimensions, h_off and v_off the page offsets.
Sourcepub fn push(&mut self, depth: i32)
pub fn push(&mut self, depth: i32)
Opens a nested box (push); depth is its nesting level
(cur_s, 1 for a box inside the page box).
Sourcepub fn note_depth(&mut self, depth: i32)
pub fn note_depth(&mut self, depth: i32)
Records the nesting level of the page box itself (0).
Sourcepub fn glyph(
&mut self,
engine: &Engine,
f: u32,
chr: u32,
h: i32,
v: i32,
width: i32,
)
pub fn glyph( &mut self, engine: &Engine, f: u32, chr: u32, h: i32, v: i32, width: i32, )
Typesets character chr of font f at (h, v) (§620); the
reader then advances by width.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DviWriter
impl RefUnwindSafe for DviWriter
impl Send for DviWriter
impl Sync for DviWriter
impl Unpin for DviWriter
impl UnsafeUnpin for DviWriter
impl UnwindSafe for DviWriter
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