Trait rerun::external::re_data_ui::EntityDataUi

source ·
pub trait EntityDataUi {
    // Required method
    fn entity_data_ui(
        &self,
        ctx: &ViewerContext<'_>,
        ui: &mut Ui,
        ui_layout: UiLayout,
        entity_path: &EntityPath,
        row_id: Option<RowId>,
        query: &LatestAtQuery,
        db: &EntityDb
    );
}
Expand description

Similar to DataUi, but for data that is related to an entity (e.g. a component).

This is given the context of the entity it is part of so it can do queries.

Required Methods§

source

fn entity_data_ui( &self, ctx: &ViewerContext<'_>, ui: &mut Ui, ui_layout: UiLayout, entity_path: &EntityPath, row_id: Option<RowId>, query: &LatestAtQuery, db: &EntityDb )

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

Implementors§