pub struct SvgRenderer {Show 14 fields
pub chart_width: u32,
pub row_height: u32,
pub label_width: u32,
pub header_height: u32,
pub padding: u32,
pub critical_color: String,
pub normal_color: String,
pub milestone_color: String,
pub background_color: String,
pub grid_color: String,
pub text_color: String,
pub font_family: String,
pub font_size: u32,
pub display_mode: DisplayMode,
}Expand description
SVG Gantt chart renderer configuration
Fields§
§chart_width: u32Width of the chart area (excluding labels) in pixels
row_height: u32Height per task row in pixels
label_width: u32Width of the label column in pixels
header_height: u32Header height in pixels
padding: u32Padding around the chart
critical_color: StringColor for critical path tasks
normal_color: StringColor for normal tasks
milestone_color: StringColor for milestones
background_color: StringBackground color
grid_color: StringGrid line color
text_color: StringText color
font_family: StringFont family
font_size: u32Font size in pixels
display_mode: DisplayModeDisplay mode for task labels
Implementations§
Source§impl SvgRenderer
impl SvgRenderer
pub fn new() -> Self
Sourcepub fn chart_width(self, width: u32) -> Self
pub fn chart_width(self, width: u32) -> Self
Configure chart width
Sourcepub fn row_height(self, height: u32) -> Self
pub fn row_height(self, height: u32) -> Self
Configure row height
Sourcepub fn label_width(self, width: u32) -> Self
pub fn label_width(self, width: u32) -> Self
Configure label column width
Sourcepub fn display_mode(self, mode: DisplayMode) -> Self
pub fn display_mode(self, mode: DisplayMode) -> Self
Configure display mode for task labels
Trait Implementations§
Source§impl Clone for SvgRenderer
impl Clone for SvgRenderer
Source§fn clone(&self) -> SvgRenderer
fn clone(&self) -> SvgRenderer
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 SvgRenderer
impl Debug for SvgRenderer
Source§impl Default for SvgRenderer
impl Default for SvgRenderer
Auto Trait Implementations§
impl Freeze for SvgRenderer
impl RefUnwindSafe for SvgRenderer
impl Send for SvgRenderer
impl Sync for SvgRenderer
impl Unpin for SvgRenderer
impl UnsafeUnpin for SvgRenderer
impl UnwindSafe for SvgRenderer
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