pub struct TextInfo {
pub text: String,
pub font_name: String,
pub font_color: u32,
pub font_weight: u32,
pub font_size: u32,
pub x: f64,
pub y: f64,
}Expand description
Stores a text label with its rendering attributes.
Direct port from C++ SvgWriter::TextInfo class.
Fields§
§text: String§font_name: String§font_color: u32§font_weight: u32§font_size: u32§x: f64§y: f64Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextInfo
impl RefUnwindSafe for TextInfo
impl Send for TextInfo
impl Sync for TextInfo
impl Unpin for TextInfo
impl UnwindSafe for TextInfo
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