Trait rerun::external::re_data_ui::DataUi

source ·
pub trait DataUi {
    // Required method
    fn data_ui(
        &self,
        ctx: &ViewerContext<'_>,
        ui: &mut Ui,
        ui_layout: UiLayout,
        query: &LatestAtQuery,
        db: &EntityDb
    );

    // Provided method
    fn data_ui_recording(
        &self,
        ctx: &ViewerContext<'_>,
        ui: &mut Ui,
        ui_layout: UiLayout
    ) { ... }
}
Expand description

Types implementing DataUi can display themselves in an egui::Ui.

Required Methods§

source

fn data_ui( &self, ctx: &ViewerContext<'_>, ui: &mut Ui, ui_layout: UiLayout, query: &LatestAtQuery, db: &EntityDb )

If you need to lookup something in the chunk store, use the given query to do so.

Provided Methods§

source

fn data_ui_recording( &self, ctx: &ViewerContext<'_>, ui: &mut Ui, ui_layout: UiLayout )

Called Self::data_ui using the default query and recording.

Implementations on Foreign Types§

source§

impl DataUi for SmartChannelSource

source§

fn data_ui( &self, ctx: &ViewerContext<'_>, ui: &mut Ui, ui_layout: UiLayout, _query: &LatestAtQuery, _db: &EntityDb )

Implementors§