pub struct TextLabelLayout {
pub lines: Vec<TextLineLayout>,
pub line_widths: Vec<f64>,
pub width: f64,
pub height: f64,
pub font_name: String,
pub font_size: f64,
pub source: String,
}Expand description
Measured layout of a multiline Graphviz label in points.
Fields§
§lines: Vec<TextLineLayout>Measured lines in top-to-bottom order.
line_widths: Vec<f64>Individual line widths in points (mirrors lines.iter().map(|l| l.width)).
width: f64Total bounding width in points (maximum line width).
height: f64Total bounding height in points (sum of line heights).
font_name: StringFont family name used for measurement.
font_size: f64Font size in points used for measurement.
source: StringThe label text after object-escape substitution and entity conversion (C’s
lp->text), still containing the \\n/\\l/\\r line escapes.
Trait Implementations§
Source§impl Clone for TextLabelLayout
impl Clone for TextLabelLayout
Source§fn clone(&self) -> TextLabelLayout
fn clone(&self) -> TextLabelLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextLabelLayout
impl Debug for TextLabelLayout
Source§impl Default for TextLabelLayout
impl Default for TextLabelLayout
Source§fn default() -> TextLabelLayout
fn default() -> TextLabelLayout
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextLabelLayout
impl<'de> Deserialize<'de> for TextLabelLayout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TextLabelLayout
impl PartialEq for TextLabelLayout
Source§impl Serialize for TextLabelLayout
impl Serialize for TextLabelLayout
impl StructuralPartialEq for TextLabelLayout
Auto Trait Implementations§
impl Freeze for TextLabelLayout
impl RefUnwindSafe for TextLabelLayout
impl Send for TextLabelLayout
impl Sync for TextLabelLayout
impl Unpin for TextLabelLayout
impl UnsafeUnpin for TextLabelLayout
impl UnwindSafe for TextLabelLayout
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