[][src]Struct tge::prelude::TextDrawParams

pub struct TextDrawParams {
    pub text_size: Option<f32>,
    pub char_spacing: Option<f32>,
    pub line_height: Option<f32>,
    pub line_spacing: Option<f32>,
    pub wrap_width: Option<f32>,
    pub wrap_height: Option<f32>,
    pub horizontal_gravity: Option<TextLayoutGravity>,
    pub vertical_gravity: Option<TextLayoutGravity>,
    pub origin: Option<Position>,
    pub color: Option<Color>,
}

Fields

text_size: Option<f32>char_spacing: Option<f32>line_height: Option<f32>line_spacing: Option<f32>wrap_width: Option<f32>wrap_height: Option<f32>horizontal_gravity: Option<TextLayoutGravity>vertical_gravity: Option<TextLayoutGravity>origin: Option<Position>color: Option<Color>

Implementations

impl TextDrawParams[src]

pub fn text_size(self, size: f32) -> Self[src]

pub fn char_spacing(self, spacing: f32) -> Self[src]

pub fn line_height(self, height: f32) -> Self[src]

pub fn line_spacing(self, spacing: f32) -> Self[src]

pub fn wrap_width(self, width: f32) -> Self[src]

pub fn wrap_height(self, height: f32) -> Self[src]

pub fn horizontal_gravity(self, gravity: TextLayoutGravity) -> Self[src]

pub fn vertical_gravity(self, gravity: TextLayoutGravity) -> Self[src]

pub fn origin(self, origin: impl Into<Position>) -> Self[src]

pub fn color(self, color: impl Into<Color>) -> Self[src]

Trait Implementations

impl Clone for TextDrawParams[src]

impl Debug for TextDrawParams[src]

impl Default for TextDrawParams[src]

impl PartialEq<TextDrawParams> for TextDrawParams[src]

impl StructuralPartialEq for TextDrawParams[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> SetParameter for T

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.