pub struct StrokeAdjustHint {
pub ctrl0: usize,
pub ctrl1: usize,
pub first_pt: usize,
pub last_pt: usize,
}Expand description
Stroke-adjust hint: a pair of path segments that should be snapped to integer pixel boundaries to avoid seams between adjacent filled rectangles.
Matches SplashPathHint in SplashPath.h.
Fields§
§ctrl0: usizeIndex (into Path::pts) of the first control segment.
ctrl1: usizeIndex (into Path::pts) of the second control segment.
first_pt: usizeFirst point of the range to adjust (inclusive, index into Path::pts).
last_pt: usizeLast point of the range to adjust (inclusive, index into Path::pts).
Trait Implementations§
Source§impl Clone for StrokeAdjustHint
impl Clone for StrokeAdjustHint
Source§fn clone(&self) -> StrokeAdjustHint
fn clone(&self) -> StrokeAdjustHint
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 StrokeAdjustHint
impl Debug for StrokeAdjustHint
impl Copy for StrokeAdjustHint
Auto Trait Implementations§
impl Freeze for StrokeAdjustHint
impl RefUnwindSafe for StrokeAdjustHint
impl Send for StrokeAdjustHint
impl Sync for StrokeAdjustHint
impl Unpin for StrokeAdjustHint
impl UnsafeUnpin for StrokeAdjustHint
impl UnwindSafe for StrokeAdjustHint
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