re_data_ui

Trait 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, )

Source§

impl DataUi for EntityDb

Source§

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

Source§

impl DataUi for InstancePath

Source§

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

Source§

impl DataUi for ComponentPath

Source§

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

Source§

impl DataUi for EntityPath

Source§

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

Source§

impl DataUi for ApplicationId

Source§

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

Source§

impl DataUi for StoreId

Source§

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

Source§

impl DataUi for AnnotationContext

Source§

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

Source§

impl DataUi for ComponentName

Source§

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

Implementors§