
</h2>
<div class="declaration-description"><div class="sections"><p>A menubar is the bar across the top of a window holding the menu items.
</p><p><h3>Example</h3><pre><span class="comment">// Add a menu bar to a window.
</span><span class="keyword">auto</span> menuBar = <span class="keyword">new</span> <span class="symbol">MenuBar</span>(mainWindow)
	.pack();

<span class="comment">// Add a menu to the menu bar.
</span><span class="keyword">auto</span> menu = <span class="keyword">new</span> Menu(