struct ScalingTransformingSink<'a, S> {
inner: &'a mut S,
matrix: [Fixed; 6],
scale: Option<Fixed>,
}
Expand description
Command sink adapter that applies both a transform and a scaling factor.
Fields§
§inner: &'a mut S
§matrix: [Fixed; 6]
§scale: Option<Fixed>
Implementations§
Trait Implementations§
Source§impl<S: CommandSink> CommandSink for ScalingTransformingSink<'_, S>
impl<S: CommandSink> CommandSink for ScalingTransformingSink<'_, S>
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.
fn move_to(&mut self, x: Fixed, y: Fixed)
fn line_to(&mut self, x: Fixed, y: Fixed)
fn curve_to( &mut self, cx1: Fixed, cy1: Fixed, cx2: Fixed, cy2: Fixed, x: Fixed, y: Fixed, )
fn close(&mut self)
Auto Trait Implementations§
impl<'a, S> Freeze for ScalingTransformingSink<'a, S>
impl<'a, S> RefUnwindSafe for ScalingTransformingSink<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for ScalingTransformingSink<'a, S>where
S: Send,
impl<'a, S> Sync for ScalingTransformingSink<'a, S>where
S: Sync,
impl<'a, S> Unpin for ScalingTransformingSink<'a, S>
impl<'a, S> !UnwindSafe for ScalingTransformingSink<'a, S>
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