pub struct GraphicsState {Show 23 fields
pub ctm: Matrix2D,
pub line_width: f64,
pub line_cap: i32,
pub line_join: i32,
pub miter_limit: f64,
pub dash_array: Vec<f64>,
pub dash_phase: f64,
pub fill_color: Vec<f64>,
pub stroke_color: Vec<f64>,
pub fill_color_space: Vec<u8>,
pub stroke_color_space: Vec<u8>,
pub char_spacing: f64,
pub word_spacing: f64,
pub horiz_scaling: f64,
pub text_leading: f64,
pub font_name: Vec<u8>,
pub font_size: f64,
pub text_render_mode: i32,
pub text_rise: f64,
pub text_matrix: Matrix2D,
pub text_line_matrix: Matrix2D,
pub fill_opacity: f64,
pub stroke_opacity: f64,
}Expand description
The complete graphics state at any point during content stream processing.
Fields§
§ctm: Matrix2DCurrent transformation matrix.
line_width: f64Line width.
line_cap: i32Line cap style (0=butt, 1=round, 2=square).
line_join: i32Line join style (0=miter, 1=round, 2=bevel).
miter_limit: f64Miter limit.
dash_array: Vec<f64>Dash pattern.
dash_phase: f64Dash phase.
fill_color: Vec<f64>Fill color components.
stroke_color: Vec<f64>Stroke color components.
fill_color_space: Vec<u8>Fill color space name.
stroke_color_space: Vec<u8>Stroke color space name.
char_spacing: f64Character spacing.
word_spacing: f64Word spacing.
horiz_scaling: f64Horizontal scaling (percentage, default 100).
text_leading: f64Text leading.
font_name: Vec<u8>Current font name (resource name, e.g., “F1”).
font_size: f64Current font size.
text_render_mode: i32Text rendering mode (0-7).
text_rise: f64Text rise.
text_matrix: Matrix2DText matrix (set by Tm, modified by Td/TD/T*).
text_line_matrix: Matrix2DText line matrix (set at start of line, used by T* and ’).
fill_opacity: f64Fill opacity (0.0 - 1.0).
stroke_opacity: f64Stroke opacity (0.0 - 1.0).
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 · 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
Auto Trait Implementations§
impl Freeze for GraphicsState
impl RefUnwindSafe for GraphicsState
impl Send for GraphicsState
impl Sync for GraphicsState
impl Unpin for GraphicsState
impl UnsafeUnpin for GraphicsState
impl UnwindSafe 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