Type MenubarOverlayOptions
type MenubarOverlayOptions struct {
Layer uint16
Scope ui.ID
DismissID ui.ID
// ID and Side are those of DropdownMenuOptions. End has to be called for the
// popup to animate.
ID ui.ID
Side OverlaySide
// Viewport, with DismissID, makes the popup declare a hit over the whole
// window behind its surface, so pressing anywhere outside it reports
// DismissID (Escape reports it too). The popup is also kept inside it: shifted
// back when it sticks out, and shortened, so that it scrolls, when it is taller
// than the window. Leave it empty to dismiss only on Escape and handle outside
// presses yourself.
Viewport ui.Rect
// Scroll is the scroll position of a popup whose items do not all fit its
// bounds (see MenuScroll). Without one such a popup shows only the items at
// its top.
Scroll *MenuScroll
// Submenu makes this the content of a submenu, which has a smaller minimum
// width (128) than a popup opened from the bar (144).
Submenu bool
}MenubarOverlayOptions supplies application-owned popup identities.