[−][src]Struct tge::prelude::TextDrawParams
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]
fn clone(&self) -> TextDrawParams
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TextDrawParams
[src]
impl Default for TextDrawParams
[src]
fn default() -> TextDrawParams
[src]
impl PartialEq<TextDrawParams> for TextDrawParams
[src]
fn eq(&self, other: &TextDrawParams) -> bool
[src]
fn ne(&self, other: &TextDrawParams) -> bool
[src]
impl StructuralPartialEq for TextDrawParams
[src]
Auto Trait Implementations
impl RefUnwindSafe for TextDrawParams
impl Send for TextDrawParams
impl Sync for TextDrawParams
impl Unpin for TextDrawParams
impl UnwindSafe for TextDrawParams
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> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
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>,