Struct rstk::chart::gantt_chart::TkGanttChartDefinition
source · pub struct TkGanttChartDefinition { /* private fields */ }
Expand description
Intermediate definition for a gantt chart
Implementations§
source§impl TkGanttChartDefinition
impl TkGanttChartDefinition
Methods to set options for gantt-chart - call ‘plot’ method at end to finally create the chart.
sourcepub fn bar_height(&mut self, value: u64) -> &mut Self
pub fn bar_height(&mut self, value: u64) -> &mut Self
Adds information on the required height of each bar in pixels (to specify spacing).
sourcepub fn max_width(&mut self, value: u64) -> &mut Self
pub fn max_width(&mut self, value: u64) -> &mut Self
Adds information on the expected width of descriptive text (to specify spacing). Value defaults to 20 characters.
sourcepub fn num_items(&mut self, value: u64) -> &mut Self
pub fn num_items(&mut self, value: u64) -> &mut Self
Adds information on the expected number of items (to specify spacing).
sourcepub fn ylabel_width(&mut self, value: u64) -> &mut Self
pub fn ylabel_width(&mut self, value: u64) -> &mut Self
Adds information on the width of each label, in pixels.
sourcepub fn plot(&self) -> TkGanttChart
pub fn plot(&self) -> TkGanttChart
Completes the definition of a time chart and creates the chart.
Trait Implementations§
source§impl Clone for TkGanttChartDefinition
impl Clone for TkGanttChartDefinition
source§fn clone(&self) -> TkGanttChartDefinition
fn clone(&self) -> TkGanttChartDefinition
Returns a copy of the value. Read more
1.0.0 · 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 TkGanttChartDefinition
impl Debug for TkGanttChartDefinition
source§impl PartialEq for TkGanttChartDefinition
impl PartialEq for TkGanttChartDefinition
source§fn eq(&self, other: &TkGanttChartDefinition) -> bool
fn eq(&self, other: &TkGanttChartDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TkGanttChartDefinition
Auto Trait Implementations§
impl RefUnwindSafe for TkGanttChartDefinition
impl Send for TkGanttChartDefinition
impl Sync for TkGanttChartDefinition
impl Unpin for TkGanttChartDefinition
impl UnwindSafe for TkGanttChartDefinition
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