#[non_exhaustive]pub enum ContextMenuAction {
Show 19 variants
None,
CopyPrice(f64),
AddAlert {
symbol: String,
price: f64,
},
AddToWatchlist {
list: usize,
symbol: String,
},
Order(OrderRequest),
ObjectTree,
RemoveAllIndicators,
OpenSettings,
OpenSeriesSettings,
OpenDataTable,
ExportCsv,
ResetChart,
MergeTpoPrevious,
MergeTpoNext,
SplitTpoProfile,
MergeTradeProfilePrevious,
MergeTradeProfileNext,
SplitTradeProfile,
DrawHorizontalLine(f64),
}Expand description
Action triggered by selecting a context menu item
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None
No action
CopyPrice(f64)
Copy price value to clipboard
AddAlert
Add a price alert on a symbol
Fields
AddToWatchlist
Add the symbol to the watchlist at this index of the panel’s lists, with
WatchlistPanel::add_symbol_to.
Fields
list: usizeIndex into the lists given to ChartMenus::set_watchlists.
Order(OrderRequest)
A limit or stop order at the clicked price, for the user to confirm in the order ticket
(Trading::open_ticket).
ObjectTree
Open the object tree panel
RemoveAllIndicators
Remove all indicators from the chart
OpenSettings
Open chart settings dialog
OpenSeriesSettings
Open series settings dialog
OpenDataTable
Open the chart data table
ExportCsv
Export chart data to CSV
ResetChart
Reset the chart view to defaults
MergeTpoPrevious
Merge the clicked TPO profile with its previous neighbour. Already applied by ChartMenus.
MergeTpoNext
Merge the clicked TPO profile with its next neighbour. Already applied by ChartMenus.
SplitTpoProfile
Restore the sessions of the clicked composite TPO profile. Already applied by ChartMenus.
MergeTradeProfilePrevious
Merge the clicked execution profile with its previous neighbour. Applied by ChartMenus.
MergeTradeProfileNext
Merge the clicked execution profile with its next neighbour. Applied by ChartMenus.
SplitTradeProfile
Split the clicked execution profile at the selected bar. Applied by ChartMenus.
DrawHorizontalLine(f64)
Draw a horizontal line at this price in the clicked pane, with the line tool’s default
style, and select it. Already applied by ChartMenus.
Trait Implementations§
Source§impl Clone for ContextMenuAction
impl Clone for ContextMenuAction
Source§fn clone(&self) -> ContextMenuAction
fn clone(&self) -> ContextMenuAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContextMenuAction
impl Debug for ContextMenuAction
Source§impl PartialEq for ContextMenuAction
impl PartialEq for ContextMenuAction
impl StructuralPartialEq for ContextMenuAction
Auto Trait Implementations§
impl Freeze for ContextMenuAction
impl RefUnwindSafe for ContextMenuAction
impl Send for ContextMenuAction
impl Sync for ContextMenuAction
impl Unpin for ContextMenuAction
impl UnsafeUnpin for ContextMenuAction
impl UnwindSafe for ContextMenuAction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more