pub struct GraphicsState {
pub ctm: Matrix,
pub line_width: f64,
pub text: TextState,
pub clip: Option<[f64; 4]>,
}Expand description
The parts of the graphics state the interpreter tracks.
Fields§
§ctm: MatrixCurrent transformation matrix: user space to page space.
line_width: f64Line width.
text: TextStateText state.
clip: Option<[f64; 4]>The clip, approximated by its bounding box in page space
([x0, y0, x1, y1]); None is unclipped. Form and annotation
bounding boxes and W/W* paths narrow it.
Implementations§
Source§impl GraphicsState
impl GraphicsState
Trait Implementations§
Source§impl Clone for GraphicsState
impl Clone for GraphicsState
Source§fn clone(&self) -> GraphicsState
fn clone(&self) -> GraphicsState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphicsState
impl Debug for GraphicsState
Source§impl Default for GraphicsState
impl Default for GraphicsState
Source§fn default() -> GraphicsState
fn default() -> GraphicsState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for GraphicsState
impl !UnwindSafe for GraphicsState
impl Freeze for GraphicsState
impl Send for GraphicsState
impl Sync for GraphicsState
impl Unpin for GraphicsState
impl UnsafeUnpin for GraphicsState
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