pub struct TextItem {
pub text: String,
pub x: f32,
pub y: f32,
pub font_size: f32,
pub color: Color,
pub anchor: TextAnchor,
pub baseline: TextBaseline,
}Expand description
A text item to be rendered
Fields§
§text: String§x: f32§y: f32§font_size: f32§color: Color§anchor: TextAnchor§baseline: TextBaselineTrait Implementations§
Auto Trait Implementations§
impl Freeze for TextItem
impl RefUnwindSafe for TextItem
impl Send for TextItem
impl Sync for TextItem
impl Unpin for TextItem
impl UnsafeUnpin for TextItem
impl UnwindSafe for TextItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more