#[non_exhaustive]pub enum DrawingContextMenuAction {
}Expand description
Actions from the drawing context menu
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No action requested.
AddAlert(Box<Alert>)
Open the alert dialog on this alert, the price crossing the drawing’s first visible level, for
example with AlertDialog::edit,
listing the levels of Drawing::alert_levels_with_bars
as its sources.
Edit
Open drawing settings dialog
BringToFront
Bring drawing to front of render order
BringForward
Move drawing above its next neighbour in render order.
SendToBack
Send drawing to back of render order
SendBackward
Move drawing below its previous neighbour in render order.
Copy
Copy the selected drawings to the clipboard.
MoveTo(PaneId)
Move the drawing to this pane, for example with Chart::move_drawing_to_pane.
Lock
Toggle drawing lock state
Hide
Toggle drawing visibility
Clone
Clone drawing with offset
Delete
Delete drawing
Trait Implementations§
Source§impl Clone for DrawingContextMenuAction
impl Clone for DrawingContextMenuAction
Source§fn clone(&self) -> DrawingContextMenuAction
fn clone(&self) -> DrawingContextMenuAction
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 DrawingContextMenuAction
impl Debug for DrawingContextMenuAction
Source§impl PartialEq for DrawingContextMenuAction
impl PartialEq for DrawingContextMenuAction
impl StructuralPartialEq for DrawingContextMenuAction
Auto Trait Implementations§
impl Freeze for DrawingContextMenuAction
impl RefUnwindSafe for DrawingContextMenuAction
impl Send for DrawingContextMenuAction
impl Sync for DrawingContextMenuAction
impl Unpin for DrawingContextMenuAction
impl UnsafeUnpin for DrawingContextMenuAction
impl UnwindSafe for DrawingContextMenuAction
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
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> ⓘ
Converts
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> ⓘ
Converts
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