structured data editor
git clone https://git.lucas.co/cce-data-editor.git
Implement render_popovers in DataEditorApp to forward popover rendering commands to the Wayland window runner
src/main.rs | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/main.rs b/src/main.rs
index 730c711..c9ffaf7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1307,6 +1307,10 @@ impl Application for DataEditorApp {
&self.text_items
}
+ fn render_popovers(&self, pc: &mut dyn cce_ui::layout::RenderTarget) {
+ cce_ui::layout::render_popovers(pc, &self.ui_context);
+ }
+
fn handle_pointer_move(&mut self, pos: LogicalPosition, needs_rebuild: &mut bool) {
let mut changed = false;
let px = pos.x as f32;
@@ -1422,7 +1426,10 @@ impl Application for DataEditorApp {
changed = true;
editor_handled = true;
}
- if self.selected_choice_editor.mouse_input(button, state, px, py, &mut self.ui_context) {
+ println!("[DEBUG DROPDOWN MAIN] calling mouse_input: button={:?}, state={:?}, pos=({:.1}, {:.1})", button, state, px, py);
+ let ret = self.selected_choice_editor.mouse_input(button, state, px, py, &mut self.ui_context);
+ println!("[DEBUG DROPDOWN MAIN] mouse_input returned: {}, editor_handled before={}", ret, editor_handled);
+ if ret {
changed = true;
editor_handled = true;
}