C4 Engine
C4 Engine API Documentation

class MenuBarWidget

Defined in:  C4Menus.h
The MenuBarWidget class represents an interface widget that displays a menu bar.
Definition

class MenuBarWidget final : public RenderableWidget

Constructor

MenuBarWidget(const Vector2D& size, const char *font = "font/Regular", float em = kDefaultMenuFontSize);

Parameters
size The size of the menu bar widget, in pixels.
font The name of the font in which menu titles are displayed.
em The em size of the menu title font, in pixels.
Description
The MenuBarWidget class displays a menu bar that allows the user to choose commands from pull-down menus.

The default widget color corresponds to the kWidgetColorBackground color type and determines the background color of the menu bar. The kWidgetColorHilite color type is also supported by the menu bar widget, and it determines the color that highlights the selected menu when the user clicks in the menu bar. If a highlight color has not been explicitly specified, then the Interface Manager's global highlight color is used.
Base Classes
RenderableWidget All rendered interface widgets are subclasses of RenderableWidget.
Wiki Articles

Menu Bar Widget