pub struct DrawState {
pub transform: Matrix,
pub fill: u32,
pub stroke: u32,
pub line_width: f32,
pub line_cap: LineCap,
pub line_join: LineJoin,
pub miter_limit: f32,
pub line_dash: Vec<f32>,
pub line_dash_offset: f32,
pub clip: Option<Arc<ClipMask>>,
pub global_alpha: f32,
}Expand description
save()/restore() で退避・復帰する描画状態。
Fields§
§transform: Matrix§fill: u32塗り色(ARGB8888)。
stroke: u32線色(ARGB8888)。
line_width: f32§line_cap: LineCaplineCap。
line_join: LineJoinlineJoin。
miter_limit: f32miterLimit。
line_dash: Vec<f32>setLineDash のパターン。空なら実線。
line_dash_offset: f32lineDashOffset。
clip: Option<Arc<ClipMask>>クリップ領域。None なら全面。
global_alpha: f32globalAlpha(0.0〜1.0)。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DrawState
impl RefUnwindSafe for DrawState
impl Send for DrawState
impl Sync for DrawState
impl Unpin for DrawState
impl UnsafeUnpin for DrawState
impl UnwindSafe for DrawState
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