pub struct GraphicsState {Show 21 fields
pub ctm: Matrix,
pub text: TextState,
pub fill_color: Color,
pub stroke_color: Color,
pub fill_cs: ColorSpace,
pub stroke_cs: ColorSpace,
pub line_width: f64,
pub line_cap: LineCap,
pub line_join: LineJoin,
pub miter_limit: f64,
pub dash_pattern: Vec<f64>,
pub dash_phase: f64,
pub fill_alpha: f64,
pub stroke_alpha: f64,
pub blend_mode: PdfBlendMode,
pub has_clip: bool,
pub soft_mask: Option<SoftMask>,
pub fill_pattern_name: Option<Vec<u8>>,
pub stroke_pattern_name: Option<Vec<u8>>,
pub text_matrix: Matrix,
pub text_line_matrix: Matrix,
}Expand description
Full graphics state for rendering.
Fields§
§ctm: Matrix§text: TextState§fill_color: Color§stroke_color: Color§fill_cs: ColorSpace§stroke_cs: ColorSpace§line_width: f64§line_cap: LineCap§line_join: LineJoin§miter_limit: f64§dash_pattern: Vec<f64>§dash_phase: f64§fill_alpha: f64§stroke_alpha: f64§blend_mode: PdfBlendMode§has_clip: bool§soft_mask: Option<SoftMask>§fill_pattern_name: Option<Vec<u8>>§stroke_pattern_name: Option<Vec<u8>>§text_matrix: Matrix§text_line_matrix: MatrixImplementations§
Source§impl GraphicsState
impl GraphicsState
pub fn fill_color_rgba(&self) -> [u8; 4]
pub fn stroke_color_rgba(&self) -> [u8; 4]
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more