pub struct TextParams<'a> {
pub text: &'a str,
pub x: f32,
pub y: f32,
pub size: u16,
pub color: Color,
pub draw: DrawFrom,
}
Expand description
Text parameters for Fonts::draw_text_ex
Fields§
§text: &'a str
Text to draw to the screen
x: f32
x-coordinate of the text
y: f32
y-coordinate of the text
size: u16
The size of the text in pixels
color: Color
The color of the text
draw: DrawFrom
Where to draw from
Trait Implementations§
Source§impl<'a> Clone for TextParams<'a>
impl<'a> Clone for TextParams<'a>
Source§fn clone(&self) -> TextParams<'a>
fn clone(&self) -> TextParams<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for TextParams<'a>
impl<'a> Debug for TextParams<'a>
Source§impl<'a> Default for TextParams<'a>
impl<'a> Default for TextParams<'a>
Source§impl<'a> PartialEq for TextParams<'a>
impl<'a> PartialEq for TextParams<'a>
impl<'a> Copy for TextParams<'a>
impl<'a> StructuralPartialEq for TextParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for TextParams<'a>
impl<'a> RefUnwindSafe for TextParams<'a>
impl<'a> Send for TextParams<'a>
impl<'a> Sync for TextParams<'a>
impl<'a> Unpin for TextParams<'a>
impl<'a> UnwindSafe for TextParams<'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