pub struct TriggersPanel {
pub state: PanelState,
pub triggers: HashMap<String, Trigger>,
pub builder: Option<Trigger>,
pub editing: Option<String>,
pub pick_level_pending: bool,
}Fields§
§state: PanelState§triggers: HashMap<String, Trigger>§builder: Option<Trigger>§editing: Option<String>§pick_level_pending: boolWhen true, the next click on the plot will set the builder’s level to the Y coordinate.
Implementations§
Source§impl TriggersPanel
impl TriggersPanel
Trait Implementations§
Source§impl Default for TriggersPanel
impl Default for TriggersPanel
Source§impl Panel for TriggersPanel
impl Panel for TriggersPanel
fn state(&self) -> &PanelState
fn state_mut(&mut self) -> &mut PanelState
Source§fn hotkey_name(&self) -> Option<HotkeyName>
fn hotkey_name(&self) -> Option<HotkeyName>
Return the
HotkeyName associated with this panel, if any. Read moreRender the panel’s top-bar menu button. Read more
Source§fn clear_all(&mut self)
fn clear_all(&mut self)
Clear all internal runtime state / events / buffers specific to the panel.
Default: no-op. Panels with internal collections override this.
fn draw( &mut self, plot_ui: &mut PlotUi<'_>, scope: &ScopeData, traces: &TracesCollection, )
fn update_data(&mut self, data: &mut LivePlotData<'_>)
fn render_panel(&mut self, ui: &mut Ui, data: &mut LivePlotData<'_>)
Source§fn settings_snapshot(&self, _data: &LivePlotData<'_>) -> Option<String>
fn settings_snapshot(&self, _data: &LivePlotData<'_>) -> Option<String>
Returns a lightweight serialized snapshot of this panel’s settings
for undo change detection. Returns
None for panels with no
serializable settings (e.g. export panel, hotkeys panel). Read morefn title(&self) -> &'static str
Source§fn icon_only(&self) -> Option<&'static str>
fn icon_only(&self) -> Option<&'static str>
Icon only: returns Optional icon glyph that can be used in compact UI tabs.
Source§fn title_and_icon(&self) -> String
fn title_and_icon(&self) -> String
Title combined with optional icon (e.g., “⌨️ Hotkeys”). Returns an owned String so callers
can use it directly in
ui.button, ui.label, etc.fn show_detached_dialog(&mut self, ctx: &Context, data: &mut LivePlotData<'_>)
Auto Trait Implementations§
impl Freeze for TriggersPanel
impl RefUnwindSafe for TriggersPanel
impl Send for TriggersPanel
impl Sync for TriggersPanel
impl Unpin for TriggersPanel
impl UnsafeUnpin for TriggersPanel
impl UnwindSafe for TriggersPanel
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.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>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn 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>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which 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)
Converts
&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)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().