pub struct Style {
pub stroke: Option<String>,
pub fill: Option<Fill>,
pub fill_open: bool,
pub dash: Dash,
pub thick: Option<f64>,
pub invis: bool,
pub invis_bounds: bool,
pub arrow_ht: f64,
pub arrow_wid: f64,
pub arrow_filled: bool,
}Expand description
Visual style shared by all shapes.
Fields§
§stroke: Option<String>Stroke color (CSS), or None to use the default.
fill: Option<Fill>§fill_open: boolWhether open paths/splines/arcs should emit a filled area. color on an
open object only changes the stroke; fill and shaded fill.
dash: Dash§thick: Option<f64>Stroke thickness in points; None = backend default.
invis: boolInvisible (used by move and invis): geometry is still available for
placement and anchors, but is not drawn.
invis_bounds: boolInvisible geometry that still contributes to output bounds. Dpic uses
this for move; explicit invis helpers remain bounds-neutral.
arrow_ht: f64Arrowhead dimensions in inches (arrowht/arrowwid), used when this
shape carries arrowheads.
arrow_wid: f64§arrow_filled: boolFilled (solid triangle, arrowhead=2) vs open (two strokes,
arrowhead=0).
Trait Implementations§
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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