[−][src]Struct kas_text::FontScale
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: f32
y: 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.
fn mul(self, f: f32) -> Self::Output
[src]
impl PartialEq<FontScale> for FontScale
[src]
impl StructuralPartialEq for FontScale
[src]
Auto Trait Implementations
impl RefUnwindSafe for FontScale
impl Send for FontScale
impl Sync for FontScale
impl Unpin for FontScale
impl UnwindSafe for FontScale
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,