Struct game::sandbox::speed::TimePanel [−][src]
pub struct TimePanel { pub panel: Panel, pub override_height: Option<f64>, time: Time, paused: bool, setting: SpeedSetting, baseline_finished_trips: Option<usize>, }
Fields
panel: Panel
override_height: Option<f64>
time: Time
paused: bool
setting: SpeedSetting
baseline_finished_trips: Option<usize>
Implementations
impl TimePanel
[src]
impl TimePanel
[src]pub fn new(ctx: &mut EventCtx<'_>, app: &App) -> TimePanel
[src]
pub fn recreate_panel(&mut self, ctx: &mut EventCtx<'_>, app: &App)
[src]
fn trips_completion_bar(&mut self, ctx: &EventCtx<'_>, app: &App) -> Widget
[src]
fn create_time_panel(&mut self, ctx: &EventCtx<'_>, app: &App) -> Widget
[src]
pub fn event(
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
maybe_mode: Option<&GameplayMode>
) -> Option<Transition<App>>
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &mut App,
maybe_mode: Option<&GameplayMode>
) -> Option<Transition<App>>
pub fn draw(&self, g: &mut GfxCtx<'_>)
[src]
pub fn pause(&mut self, ctx: &mut EventCtx<'_>, app: &App)
[src]
pub fn resume(
&mut self,
ctx: &mut EventCtx<'_>,
app: &App,
setting: SpeedSetting
)
[src]
&mut self,
ctx: &mut EventCtx<'_>,
app: &App,
setting: SpeedSetting
)
pub fn is_paused(&self) -> bool
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TimePanel
impl !Send for TimePanel
impl !Sync for TimePanel
impl Unpin for TimePanel
impl !UnwindSafe for TimePanel
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,