[][src]Struct kas_text::FontScale

pub struct FontScale {
    pub x: f32,
    pub y: f32,
}

Font scale

This is approximately the pixel-height of a line of text or double the "pt" size. Usually you want to use the same scale for both components, e.g. FontScale::from(18.0).

Fields

x: f32y: f32

Trait Implementations

impl Clone for FontScale[src]

impl Copy for FontScale[src]

impl Debug for FontScale[src]

impl Default for FontScale[src]

impl From<FontScale> for PxScale[src]

impl From<f32> for FontScale[src]

impl Mul<f32> for FontScale[src]

type Output = Self

The resulting type after applying the * operator.

impl PartialEq<FontScale> for FontScale[src]

impl StructuralPartialEq for FontScale[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.