-
Hi. Is there a way that I could make my app window toggle its visibility on pressing Alt+T? I'm trying to make something simillar to the NVIDIA performance overlay and i need a way to toggle it on/off. Im using standard eframe. |
Beta Was this translation helpful? Give feedback.
Answered by
emilk
Jul 7, 2024
Replies: 2 comments
-
You can send a https://docs.rs/egui/latest/egui/viewport/enum.ViewportCommand.html#variant.Visible to change visibility |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Bamboooz
-
Yep, just did ctx.send_viewport_cmd(egui::viewport::ViewportCommand::Visible(false)); worked as I wanted, thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can send a https://docs.rs/egui/latest/egui/viewport/enum.ViewportCommand.html#variant.Visible to change visibility