re_ui 0.30.2

Rerun GUI theme and helpers, built around egui
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub trait ContextExt {
    fn _self(&self) -> &egui::Context;

    /// Is the currently focused widget a text edit?
    fn text_edit_focused(&self) -> bool {
        if let Some(id) = self._self().memory(|mem| mem.focused()) {
            egui::text_edit::TextEditState::load(self._self(), id).is_some()
        } else {
            false
        }
    }
}

impl ContextExt for egui::Context {
    fn _self(&self) -> &egui::Context {
        self
    }
}