pub struct TextBlueprint<'a> {
pub text: &'a str,
pub x: f32,
pub y: f32,
pub font: &'a Font<'static>,
pub size: f32,
pub col: u32,
pub alpha: f32,
}
Fields§
§text: &'a str
§x: f32
§y: f32
§font: &'a Font<'static>
§size: f32
§col: u32
§alpha: f32
Implementations§
Source§impl<'a> TextBlueprint<'a>
impl<'a> TextBlueprint<'a>
pub fn text_width(&self) -> f32
pub fn text_height(&self) -> f32
Auto Trait Implementations§
impl<'a> Freeze for TextBlueprint<'a>
impl<'a> RefUnwindSafe for TextBlueprint<'a>
impl<'a> Send for TextBlueprint<'a>
impl<'a> Sync for TextBlueprint<'a>
impl<'a> Unpin for TextBlueprint<'a>
impl<'a> UnwindSafe for TextBlueprint<'a>
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