pub struct DrawStyle {
pub fill: Option<String>,
pub stroke: Option<String>,
pub stroke_width: f64,
pub opacity: f64,
}Expand description
Style options for drawing overlays on the SVG page.
Fields§
§fill: Option<String>Fill color (CSS color string). None means no fill.
stroke: Option<String>Stroke color (CSS color string). None means no stroke.
stroke_width: f64Stroke width in points.
opacity: f64Opacity (0.0 = fully transparent, 1.0 = fully opaque).
Implementations§
Source§impl DrawStyle
impl DrawStyle
Sourcepub fn chars_default() -> Self
pub fn chars_default() -> Self
Default style for character bounding boxes (blue outline).
Sourcepub fn lines_default() -> Self
pub fn lines_default() -> Self
Default style for lines (red).
Sourcepub fn rects_default() -> Self
pub fn rects_default() -> Self
Default style for rectangles (green outline).
Sourcepub fn edges_default() -> Self
pub fn edges_default() -> Self
Default style for edges (orange).
Sourcepub fn tables_default() -> Self
pub fn tables_default() -> Self
Default style for table cell boundaries (lightblue fill).
Sourcepub fn intersections_default() -> Self
pub fn intersections_default() -> Self
Default style for intersection points (red filled circles).
Sourcepub fn cells_default() -> Self
pub fn cells_default() -> Self
Default style for cell boundaries (dashed pink outline).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DrawStyle
impl RefUnwindSafe for DrawStyle
impl Send for DrawStyle
impl Sync for DrawStyle
impl Unpin for DrawStyle
impl UnsafeUnpin for DrawStyle
impl UnwindSafe for DrawStyle
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