pub struct ReplayControls<'a> { /* private fields */ }Expand description
Replay control bar widget
Provides play/pause, step, speed control, and progress bar for replaying historical market data.
§Example
use egui_charts::ui::replay::{ReplayConfig, ReplayControls, ReplayState};
let mut state = ReplayState::new();
let config = ReplayConfig::default();
let controls = ReplayControls::new(&config);
// In your UI loop:
let action = controls.show(ui, &mut state);Implementations§
Source§impl<'a> ReplayControls<'a>
impl<'a> ReplayControls<'a>
Sourcepub fn new(config: &'a ReplayConfig) -> Self
pub fn new(config: &'a ReplayConfig) -> Self
Create new replay controls
Sourcepub fn show(&self, ui: &mut Ui, state: &mut ReplayState) -> ReplayAction
pub fn show(&self, ui: &mut Ui, state: &mut ReplayState) -> ReplayAction
Show the replay control bar
Auto Trait Implementations§
impl<'a> Freeze for ReplayControls<'a>
impl<'a> RefUnwindSafe for ReplayControls<'a>
impl<'a> Send for ReplayControls<'a>
impl<'a> Sync for ReplayControls<'a>
impl<'a> Unpin for ReplayControls<'a>
impl<'a> UnsafeUnpin for ReplayControls<'a>
impl<'a> UnwindSafe for ReplayControls<'a>
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> 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