Skip to main content

re_time_panel/
lib.rs

1//! Rerun Time Panel
2//!
3//! This crate provides a panel that shows all entities in the store and allows control of time and
4//! timelines, as well as all necessary ui elements that make it up.
5
6#![warn(clippy::iter_over_hash_type)] //  TODO(#6198): enable everywhere
7
8mod data_density_graph;
9mod paint_ticks;
10mod recursive_chunks_per_timeline_subscriber;
11mod streams_tree_data;
12mod time_axis;
13mod time_control_ui;
14mod time_panel;
15mod time_ranges_ui;
16mod time_selection_ui;
17
18pub use time_panel::TimePanel;
19#[cfg(feature = "testing")]
20pub use {streams_tree_data::StreamsTreeData, time_panel::TimePanelSource};
21
22#[doc(hidden)]
23pub mod __bench {
24    pub use crate::data_density_graph::*;
25    pub use crate::time_panel::TimePanelItem;
26    pub use crate::time_ranges_ui::TimeRangesUi;
27}
28
29/// Indicate moving the time cursor.
30const MOVE_TIME_CURSOR_ICON: egui::CursorIcon = egui::CursorIcon::ResizeColumn;
31
32/// Indicate creating a new time loop selection.
33const CREATE_TIME_LOOP_CURSOR_ICON: egui::CursorIcon = egui::CursorIcon::Default;
34// const CREATE_TIME_LOOP_CURSOR_ICON: egui::CursorIcon = egui::CursorIcon::ResizeHorizontal;   // TODO(rust-windowing/winit#4390)