Struct typer::RenderBlock
source · pub struct RenderBlock<'a> {
pub lines: Vec<Line<'a>>,
pub text_align: TextAlignHorizontal,
pub width: f32,
pub height: f32,
pub x: f32,
pub y: f32,
}
Fields
lines: Vec<Line<'a>>
text_align: TextAlignHorizontal
width: f32
height: f32
x: f32
y: f32
Implementations
sourceimpl<'a> RenderBlock<'a>
impl<'a> RenderBlock<'a>
pub fn add_line(&mut self)
pub fn get_last_line(&mut self) -> &mut Line<'a>
pub fn get_prev_line(&mut self) -> &mut Line<'a>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for RenderBlock<'a>
impl<'a> Send for RenderBlock<'a>
impl<'a> Sync for RenderBlock<'a>
impl<'a> Unpin for RenderBlock<'a>
impl<'a> UnwindSafe for RenderBlock<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more