pub struct GraphicsState {
pub ctm: Affine,
pub fill: ColorValue,
pub stroke: ColorValue,
pub stroke_params: StrokeParams,
pub clip: ClipStack,
pub general: GeneralState,
pub text: TextState,
}Expand description
Everything q saves and Q restores.
Cloning is cheap: the clip stack’s paths and the soft mask are shared, and the rest is a handful of scalars.
Fields§
§ctm: AffineThe current transformation matrix.
fill: ColorValueThe non-stroking colour.
stroke: ColorValueThe stroking colour.
stroke_params: StrokeParamsHow paths are stroked.
clip: ClipStackThe clipping path.
general: GeneralStateAlphas, blend mode, soft mask and the inert /ExtGState keys.
text: TextStateThe text-showing parameters.
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§impl PartialEq for GraphicsState
impl PartialEq for GraphicsState
impl StructuralPartialEq for GraphicsState
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