pub struct FloatingSelectionToolbar { /* private fields */ }Expand description
Floating selection toolbar state
Implementations§
Source§impl FloatingSelectionToolbar
impl FloatingSelectionToolbar
Sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Check if toolbar is visible
Sourcepub fn contains_point(&self, point: Pos2) -> bool
pub fn contains_point(&self, point: Pos2) -> bool
Check if a point is inside the toolbar area (for hit testing)
Sourcepub fn set_colors(&mut self, slots: Vec<ColorSlot>)
pub fn set_colors(&mut self, slots: Vec<ColorSlot>)
Set the color slots to display
Sourcepub fn color_slots_mut(&mut self) -> &mut Vec<ColorSlot>
pub fn color_slots_mut(&mut self) -> &mut Vec<ColorSlot>
Get mutable reference to color slots (for updating from outside)
Sourcepub fn set_locked(&mut self, locked: bool)
pub fn set_locked(&mut self, locked: bool)
Set locked state
Sourcepub fn set_object_visible(&mut self, visible: bool)
pub fn set_object_visible(&mut self, visible: bool)
Set visibility state
Sourcepub fn set_alert_available(&mut self, available: bool)
pub fn set_alert_available(&mut self, available: bool)
Show the Add alert button, for an object an alert can follow, such as a drawing with
alert_levels. Hidden by default.
Sourcepub fn show_and_apply(
&mut self,
ui: &mut Ui,
chart: &mut Chart,
) -> Option<DrawingContextMenuAction>
pub fn show_and_apply( &mut self, ui: &mut Ui, chart: &mut Chart, ) -> Option<DrawingContextMenuAction>
Follow the selected drawing, applying quick style edits as undoable chart actions. Returns menu actions for the host’s dialogs, clipboard and drawing commands. Call each frame, including after deselection, to finish a continuous colour edit.
Sourcepub fn show(&mut self, ui: &mut Ui) -> Option<FloatingToolbarAction>
pub fn show(&mut self, ui: &mut Ui) -> Option<FloatingToolbarAction>
Render the toolbar.
Trait Implementations§
Source§impl Clone for FloatingSelectionToolbar
impl Clone for FloatingSelectionToolbar
Source§fn clone(&self) -> FloatingSelectionToolbar
fn clone(&self) -> FloatingSelectionToolbar
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 FloatingSelectionToolbar
impl Debug for FloatingSelectionToolbar
Auto Trait Implementations§
impl Freeze for FloatingSelectionToolbar
impl RefUnwindSafe for FloatingSelectionToolbar
impl Send for FloatingSelectionToolbar
impl Sync for FloatingSelectionToolbar
impl Unpin for FloatingSelectionToolbar
impl UnsafeUnpin for FloatingSelectionToolbar
impl UnwindSafe for FloatingSelectionToolbar
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