Replies: 3 comments 3 replies
-
|
I'm not entirely sure what you mean by The information you get back from Some widgets will do this internally without writing any extra code. For instance, the |
Beta Was this translation helpful? Give feedback.
-
|
I'm also interested in this. I'm working on an egui integration for my own hobby game engine. It is possible I'm doing something wrong, but what I noticed is this: I have an |
Beta Was this translation helpful? Give feedback.
-
|
As @parasyte already said let response = egui::Window::new("Window 1").show(egui_ctx, |ui| {
ui.vertical(|ui| {
ui.label("Label 1");
ui.label("Label 2");
ui.label("Label 3");
});
}).unwrap();
if response.hovered() {
println!("hovered!");
}But if response.rect.contains(mouse) {
println!("hovered!");
} |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If I click the mouse, how do I determine that egui didn't do anything with the click?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions