vvvv / VL.StandardLibs

A collection of standard libraries for vvvv including VL.Stride, VL.Skia, VL.ImGui, msgpack.org[VL]
https://visualprogramming.net
GNU Lesser General Public License v3.0
36 stars 14 forks source link

Add `MenuBar` input to the ToSkiaLayer? #54

Closed antongit closed 2 years ago

antongit commented 2 years ago

@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 the column and to the ToSkiaLayer. But what if ToSkiaLayer will get its own MenuBar Input (visible or not)?

image

azeno commented 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.

antongit commented 2 years ago

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.

azeno commented 2 years ago

Indeed. Will be interesting how the wrapping will look like in immediate mode @gregsn - ah the region has probably two outputs.