pub struct TextMark {
pub position: [f32; 2],
pub text: String,
pub font: FontStyle,
pub fill: FillStyle,
pub angle: f32,
pub anchor: TextAnchor,
}Expand description
A text label or annotation.
Fields§
§position: [f32; 2]Position.
text: StringText content.
font: FontStyleFont style.
fill: FillStyleFill color for the text.
angle: f32Rotation in degrees.
anchor: TextAnchorText anchor alignment.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextMark
impl RefUnwindSafe for TextMark
impl Send for TextMark
impl Sync for TextMark
impl Unpin for TextMark
impl UnsafeUnpin for TextMark
impl UnwindSafe for TextMark
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