BeginMenubar#
func BeginMenubar(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect) MenubarBeginMenubar paints the official 36px bordered root surface.
API 文档由 Go 源码生成,内容为英文。
type Menubar struct {
// contains filtered or unexported fields
}Menubar paints the persistent top-level bar and advances trigger geometry.
BeginMenubar#func BeginMenubar(canvas *ui.Canvas, theme ui.Theme, bounds ui.Rect) MenubarBeginMenubar paints the official 36px bordered root surface.
AddTrigger#func (menubar *Menubar) AddTrigger(trigger MenubarTrigger) ui.RectAddTrigger paints one top-level menu trigger and returns its geometry.
Bounds#func (menubar Menubar) Bounds() ui.RectBounds returns the normalized bar geometry.
NextTriggerBounds#func (menubar Menubar) NextTriggerBounds(label string) ui.RectNextTriggerBounds computes the next trigger row without advancing it.