pub struct MeasurementPanel { /* private fields */ }Implementations§
Source§impl MeasurementPanel
impl MeasurementPanel
Sourcepub const SHOW_MEASUREMENTS_LABEL: &'static str = "👁 Show Measurements"
pub const SHOW_MEASUREMENTS_LABEL: &'static str = "👁 Show Measurements"
Menu/button labels (exported for unit tests).
pub const TAKE_P1_LABEL: &'static str = "⌖ Take P1 at click"
pub const TAKE_P2_LABEL: &'static str = "⌖ Take P2 at click"
Source§impl MeasurementPanel
impl MeasurementPanel
pub fn clear_all(&mut self)
pub fn measurements(&self) -> &[Measurement]
pub fn selected_measurement_index(&self) -> Option<usize>
pub fn restore_measurements( &mut self, measurements: Vec<Measurement>, selected_measurement: Option<usize>, )
Trait Implementations§
Source§impl Default for MeasurementPanel
impl Default for MeasurementPanel
Source§impl Panel for MeasurementPanel
impl Panel for MeasurementPanel
fn state(&self) -> &PanelState
fn state_mut(&mut self) -> &mut PanelState
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.
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
fn update_data(&mut self, data: &mut LivePlotData<'_>)
fn draw( &mut self, plot_ui: &mut PlotUi<'_>, scope: &ScopeData, _traces: &TracesCollection, )
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 MeasurementPanel
impl RefUnwindSafe for MeasurementPanel
impl Send for MeasurementPanel
impl Sync for MeasurementPanel
impl Unpin for MeasurementPanel
impl UnsafeUnpin for MeasurementPanel
impl UnwindSafe for MeasurementPanel
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().