pub struct TextDescriptor {
pub text: String,
pub font: Font,
pub position: Point,
pub color: Color,
pub rotation: f64,
pub alignment: Alignment,
pub clip_area: Option<Area>,
}
Fields§
§text: String
The text to be drawn.
font: Font
The font to draw the text in.
position: Point
Where to draw the text.
color: Color
The color of the text.
rotation: f64
How the text should be rotated.
alignment: Alignment
What side of the text to align to the position.
clip_area: Option<Area>
Optionally clip drawing to some area.
Trait Implementations§
Source§impl Clone for TextDescriptor
impl Clone for TextDescriptor
Source§fn clone(&self) -> TextDescriptor
fn clone(&self) -> TextDescriptor
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 Debug for TextDescriptor
impl Debug for TextDescriptor
Auto Trait Implementations§
impl Freeze for TextDescriptor
impl RefUnwindSafe for TextDescriptor
impl Send for TextDescriptor
impl Sync for TextDescriptor
impl Unpin for TextDescriptor
impl UnwindSafe for TextDescriptor
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