#[non_exhaustive]pub struct MText {Show 20 fields
pub text: String,
pub style: Option<Name>,
pub at: P3,
pub height: f64,
pub width: f64,
pub rect_height: f64,
pub attach: u32,
pub direction: u32,
pub x_dir: Option<P3>,
pub rotation: f64,
pub spacing_style: u32,
pub spacing: f64,
pub bg_flags: u32,
pub bg_color: Color,
pub bg_scale: f64,
pub column_type: u32,
pub column_count: u32,
pub column_width: f64,
pub column_gutter: f64,
pub column_heights: Vec<f64>,
}Expand description
MTEXT
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: String3 … and 1, joined, decoded (\U+XXXX); the format codes stay (mtext::parse)
style: Option<Name>§at: P310 (WCS)
height: f6440, 41 (the reference rectangle’s width: 0, no wrapping), 46 (its height, for columns)
width: f64§rect_height: f64§attach: u3271 (1 top left to 9 bottom right), 72 (1 left to right, 3 top to bottom, 5 by style)
direction: u32§x_dir: Option<P3>11 (WCS): the x axis’ direction; else 50 (radians, in the OCS)
rotation: f64§spacing_style: u3273 (1 at least, 2 exactly), 44 (the factor of the single spacing)
spacing: f64§bg_flags: u3290 (1 a background fill, 2 in the background colour, 16 a text frame), 63 / 421 its colour, 45 how far beyond the text (a factor of the height)
bg_color: Color§bg_scale: f64§column_type: u32R2018’s columns (75 type: 0 none, 1 static, 2 dynamic; 76 count; 48 width; 49 gutter; 50 heights)
column_count: u32§column_width: f64§column_gutter: f64§column_heights: Vec<f64>Trait Implementations§
impl StructuralPartialEq for MText
Auto Trait Implementations§
impl Forget for MText
impl Freeze for MText
impl Move for MText
impl RefUnwindSafe for MText
impl Send for MTextwhere
RawVecInner: Send,
impl Sync for MTextwhere
RawVecInner: Sync,
impl Unpin for MText
impl UnsafeUnpin for MText
impl UnwindSafe for MTextwhere
RawVecInner: UnwindSafe,
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