API to show standalone context menu #5270
crumblingstatue
started this conversation in
Ideas
Replies: 1 comment
-
My current "workaround" is to show a little mouse icon as indicator that the user should click the menu button. |
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
-
Right now, context menus must be rooted in other widgets. Egui to my knowledge doesn't have an API to show a standalone context menu.
It can be hacked around by showing e.g. an
egui::Area
with anegui::Frame
, but it won't fully act like a context menu, becausemenu_button
s inside it act like top-level menu buttons, rather than nested menu buttons.There is no way around this as far as I can tell.
Ui::submenu_button
ispub(crate)
.Beta Was this translation helpful? Give feedback.
All reactions