Closed antongit closed 2 years ago
Sounds good to me to have a separate input for the main menu at the very root. Then we wouldn't need the special version.
Hm, maybe then we should get rid of MenuBar
at all?
Every window can have a separate MenuBar
input.
Normal windows will internally call Begin/EndMenuBar
. And the root will call Begin/EndMainMenuBar
.
Indeed. Will be interesting how the wrapping will look like in immediate mode @gregsn - ah the region has probably two outputs.
@azeno: Elias, look, in Order to make a MenuBar for the whole app, not a single window, I had to cons
MenuBar (Main)
in and plug it into thecolumn
and to theToSkiaLayer
. But what ifToSkiaLayer
will get its ownMenuBar
Input (visible or not)?