pub struct HtmlGanttRenderer {
pub chart_width: u32,
pub row_height: u32,
pub label_width: u32,
pub header_height: u32,
pub padding: u32,
pub theme: GanttTheme,
pub show_dependencies: bool,
pub interactive: bool,
pub focus: Option<FocusConfig>,
}Expand description
HTML 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
theme: GanttThemeTheme (light or dark)
show_dependencies: boolShow dependency arrows
interactive: boolEnable interactivity (tooltips, click handlers)
focus: Option<FocusConfig>Focus view configuration (None = show all tasks)
Implementations§
Source§impl HtmlGanttRenderer
impl HtmlGanttRenderer
pub fn new() -> Self
Sourcepub fn dark_theme(self) -> Self
pub fn dark_theme(self) -> Self
Use dark theme
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 hide_dependencies(self) -> Self
pub fn hide_dependencies(self) -> Self
Disable dependency arrows
Sourcepub fn static_chart(self) -> Self
pub fn static_chart(self) -> Self
Disable interactivity
Sourcepub fn context_depth(self, depth: usize) -> Self
pub fn context_depth(self, depth: usize) -> Self
Trait Implementations§
Source§impl Clone for HtmlGanttRenderer
impl Clone for HtmlGanttRenderer
Source§fn clone(&self) -> HtmlGanttRenderer
fn clone(&self) -> HtmlGanttRenderer
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 HtmlGanttRenderer
impl Debug for HtmlGanttRenderer
Source§impl Default for HtmlGanttRenderer
impl Default for HtmlGanttRenderer
Auto Trait Implementations§
impl Freeze for HtmlGanttRenderer
impl RefUnwindSafe for HtmlGanttRenderer
impl Send for HtmlGanttRenderer
impl Sync for HtmlGanttRenderer
impl Unpin for HtmlGanttRenderer
impl UnsafeUnpin for HtmlGanttRenderer
impl UnwindSafe for HtmlGanttRenderer
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