[][src]Struct kas_text::UpdateEnv

pub struct UpdateEnv<'a> { /* fields omitted */ }

Helper to modify an environment

Implementations

impl<'a> UpdateEnv<'a>[src]

pub fn env(&self) -> &Environment[src]

Read access to the environment

pub fn set_dpp(&mut self, dpp: f32)[src]

Set DPP

Units are pixels/point (see Environment::dpp).

pub fn set_pt_size(&mut self, pt_size: f32)[src]

Set default font size in points

Units are points/em (see Environment::pt_size).

pub fn set_dir(&mut self, dir: Direction)[src]

Set the default direction

pub fn set_align(&mut self, (horiz, vert): (Align, Align))[src]

Set the alignment

Takes (horiz_align, vert_align) tuple to allow easier parameter passing.

pub fn set_wrap(&mut self, wrap: bool)[src]

Enable or disable line-wrapping

pub fn set_bounds(&mut self, bounds: Vec2)[src]

Set the environment's bounds

Trait Implementations

impl<'a> Debug for UpdateEnv<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for UpdateEnv<'a>

impl<'a> Send for UpdateEnv<'a>

impl<'a> Sync for UpdateEnv<'a>

impl<'a> Unpin for UpdateEnv<'a>

impl<'a> !UnwindSafe for UpdateEnv<'a>

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, 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.