pub enum Action {
Show 33 variants
ImportFromCsv {
path: String,
},
ImportFromTxt {
path: String,
},
SetChartTitle(String),
SetAxisLabel {
axis: AxisKind,
label: String,
},
SetAxisLabelFontSize {
axis: AxisKind,
font_size: u32,
},
SetAxisScale {
axis: AxisKind,
scale: ScaleType,
},
SetAxisRange {
axis: AxisKind,
range: RangePolicy,
},
SetAxisMajorTickStep {
axis: AxisKind,
step: Option<f64>,
},
SetAxisMinorTicks {
axis: AxisKind,
per_major: u16,
},
AddSeries {
name: String,
x_column: String,
y_column: String,
},
RemoveSeries {
series_id: SeriesId,
},
RenameSeries {
series_id: SeriesId,
name: String,
},
SetSeriesVisibility {
series_id: SeriesId,
visible: bool,
},
SetSeriesXColumn {
series_id: SeriesId,
x_column: String,
},
SetSeriesYColumn {
series_id: SeriesId,
y_column: String,
},
SetSeriesColor {
series_id: SeriesId,
color: Color,
},
SetSeriesLineWidth {
series_id: SeriesId,
width: f32,
},
SetSeriesLineStyle {
series_id: SeriesId,
line_style: LineStyle,
},
SetSeriesMarker {
series_id: SeriesId,
marker: Option<MarkerShape>,
size: f32,
},
SetLegendVisible(bool),
SetLegendTitle(Option<String>),
SetLegendPosition(LegendPosition),
SetLegendFontSize(u32),
SetLegendFontColor(Color),
SetLayoutMargin(u32),
SetXLabelAreaSize(u32),
SetYLabelAreaSize(u32),
SetLabelFontSize(u32),
SetLabelFontColor(Color),
RequestSaveAs {
path: String,
format: ImageFormat,
size: ImageSize,
},
Undo,
Redo,
ResetPlot,
}Expand description
EN: UI intents emitted by View and consumed by Controller. RU: Namereniya UI, kotorye otpravlyaet View i obrabatyvaet Controller.
Variants§
ImportFromCsv
ImportFromTxt
SetChartTitle(String)
SetAxisLabel
SetAxisLabelFontSize
SetAxisScale
SetAxisRange
SetAxisMajorTickStep
SetAxisMinorTicks
AddSeries
RemoveSeries
RenameSeries
SetSeriesVisibility
SetSeriesXColumn
SetSeriesYColumn
SetSeriesColor
SetSeriesLineWidth
SetSeriesLineStyle
SetSeriesMarker
SetLegendVisible(bool)
SetLegendTitle(Option<String>)
SetLegendPosition(LegendPosition)
SetLegendFontSize(u32)
SetLegendFontColor(Color)
SetLayoutMargin(u32)
SetXLabelAreaSize(u32)
SetYLabelAreaSize(u32)
SetLabelFontSize(u32)
SetLabelFontColor(Color)
RequestSaveAs
Undo
Redo
ResetPlot
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.