Struct macroquad::text::TextDimensions
source · [−]Expand description
World space dimensions of the text, measured by “measure_text” function
Fields
width: f32
Distance from very left to very right of the rasterized text
height: f32
Distance from the bottom to the top of the text.
offset_y: f32
Height offset from the baseline of the text. “draw_text(.., X, Y, ..)” will be rendered in a “Rect::new(X, Y - dimensions.offset_y, dimensions.width, dimensions.height)” For reference check “text_dimensions” example.
Auto Trait Implementations
impl RefUnwindSafe for TextDimensions
impl Send for TextDimensions
impl Sync for TextDimensions
impl Unpin for TextDimensions
impl UnwindSafe for TextDimensions
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