Struct ScalingSink26Dot6

Source
struct ScalingSink26Dot6<'a, S> {
    inner: &'a mut S,
    scale: Option<Fixed>,
}
Expand description

Command sink adapter that applies a scaling factor.

This assumes a 26.6 scaling factor packed into a Fixed and thus, this is not public and exists only to match FreeType’s exact scaling process.

Fields§

§inner: &'a mut S§scale: Option<Fixed>

Implementations§

Source§

impl<'a, S> ScalingSink26Dot6<'a, S>

Source

fn new(sink: &'a mut S, scale: Option<Fixed>) -> Self

Source

fn scale(&self, coord: Fixed) -> Fixed

Trait Implementations§

Source§

impl<S: CommandSink> CommandSink for ScalingSink26Dot6<'_, S>

Source§

fn hstem(&mut self, y: Fixed, dy: Fixed)

Horizontal stem hint at y with height dy.
Source§

fn vstem(&mut self, x: Fixed, dx: Fixed)

Vertical stem hint at x with width dx.
Source§

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])

Bitmask defining the counter hints that should be made active for the commands that follow.
Source§

fn move_to(&mut self, x: Fixed, y: Fixed)

Source§

fn line_to(&mut self, x: Fixed, y: Fixed)

Source§

fn curve_to( &mut self, cx1: Fixed, cy1: Fixed, cx2: Fixed, cy2: Fixed, x: Fixed, y: Fixed, )

Source§

fn close(&mut self)

Auto Trait Implementations§

§

impl<'a, S> Freeze for ScalingSink26Dot6<'a, S>

§

impl<'a, S> RefUnwindSafe for ScalingSink26Dot6<'a, S>
where S: RefUnwindSafe,

§

impl<'a, S> Send for ScalingSink26Dot6<'a, S>
where S: Send,

§

impl<'a, S> Sync for ScalingSink26Dot6<'a, S>
where S: Sync,

§

impl<'a, S> Unpin for ScalingSink26Dot6<'a, S>

§

impl<'a, S> !UnwindSafe for ScalingSink26Dot6<'a, S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.