pub struct TransformSink<S> {
sink: S,
transform: Matrix<f32>,
}Expand description
A sink that applies an affine transform to every point and forwards the result to another sink.
Fields§
§sink: S§transform: Matrix<f32>Implementations§
Source§impl<S> TransformSink<S>
impl<S> TransformSink<S>
Trait Implementations§
Source§impl<S: Clone> Clone for TransformSink<S>
impl<S: Clone> Clone for TransformSink<S>
Source§fn clone(&self) -> TransformSink<S>
fn clone(&self) -> TransformSink<S>
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<S: Debug> Debug for TransformSink<S>
impl<S: Debug> Debug for TransformSink<S>
Source§impl<S: PathSink> PathSink for TransformSink<S>
impl<S: PathSink> PathSink for TransformSink<S>
Source§fn quad_to(&mut self, cx0: f32, cy0: f32, x: f32, y: f32)
fn quad_to(&mut self, cx0: f32, cy0: f32, x: f32, y: f32)
Emit a quadratic bezier segment from the current point with a control
point at (cx0, cy0) and ending at (x, y).
Auto Trait Implementations§
impl<S> Freeze for TransformSink<S>where
S: Freeze,
impl<S> RefUnwindSafe for TransformSink<S>where
S: RefUnwindSafe,
impl<S> Send for TransformSink<S>where
S: Send,
impl<S> Sync for TransformSink<S>where
S: Sync,
impl<S> Unpin for TransformSink<S>where
S: Unpin,
impl<S> UnsafeUnpin for TransformSink<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for TransformSink<S>where
S: UnwindSafe,
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<P> CommandSink for Pwhere
P: PathSink,
impl<P> CommandSink for Pwhere
P: PathSink,
fn move_to(&mut self, x: Fixed, y: Fixed)
fn line_to(&mut self, x: Fixed, y: Fixed)
fn curve_to( &mut self, cx0: Fixed, cy0: Fixed, cx1: Fixed, cy1: Fixed, x: Fixed, y: Fixed, )
fn close(&mut self)
Source§fn hint_mask(&mut self, mask: &[u8])
fn hint_mask(&mut self, mask: &[u8])
Bitmask defining the hints that should be made active for the
commands that follow.
Source§fn counter_mask(&mut self, mask: &[u8])
fn counter_mask(&mut self, mask: &[u8])
Bitmask defining the counter hints that should be made active for the
commands that follow.
Source§fn clear_hints(&mut self)
fn clear_hints(&mut self)
Clear accumulated stem hints and all data derived from them.