pub struct RenderState {
pub paint: PaintType,
pub stroke: Stroke,
pub fill_rule: Fill,
pub blend_mode: BlendMode,
pub tint: Option<Tint>,
pub transforms: Transforms,
}Expand description
A render state which contains the style properties for path rendering.
Fields§
§paint: PaintTypeThe paint type (solid color, gradient, or image).
stroke: StrokeStroke style for path stroking operations.
fill_rule: FillFill rule for path filling operations.
blend_mode: BlendModeBlend mode for compositing.
tint: Option<Tint>The tint for image painting.
transforms: TransformsState of active transforms.
Implementations§
Source§impl RenderState
impl RenderState
Trait Implementations§
Source§impl Clone for RenderState
impl Clone for RenderState
Source§fn clone(&self) -> RenderState
fn clone(&self) -> RenderState
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 RenderState
impl Debug for RenderState
Auto Trait Implementations§
impl Freeze for RenderState
impl RefUnwindSafe for RenderState
impl Send for RenderState
impl Sync for RenderState
impl Unpin for RenderState
impl UnsafeUnpin for RenderState
impl UnwindSafe for RenderState
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