[−][src]Struct kas_text::UpdateEnv
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
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]
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, 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>,