re_data_ui 0.31.2

Provides ui elements for Rerun component data for the Rerun Viewer.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use re_viewer_context::{AppContext, UiLayout};

impl crate::AppUi for re_log_types::StoreId {
    fn app_ui(&self, ctx: &AppContext<'_>, ui: &mut egui::Ui, ui_layout: UiLayout) {
        if let Some(entity_db) = ctx.store_bundle().get(self) {
            entity_db.app_ui(ctx, ui, ui_layout);
        } else {
            ui_layout.label(ui, "<unknown store>").on_hover_ui(|ui| {
                ui.label(format!("{self:?}"));
            });
        }
    }
}