|static NamedStyle *||default_style = &::style|
Subclass of fltk::Menu. The top level menu items are visible and drawn in a horizontal row. Put this at the top edge of your window and you get a typical menubar.
You can call popup() on this same widget in response to a right-click in your work area and you will get the exact same menu as a vertical pop up menu.
Fltk calls this virtual function to draw the widget, after setting up the graphics (current window, xy translation, etc) so that any drawing functions will go into this widget.
User code should not call this! You probably want to call redraw().
The default version calls draw_box() and draw_label(), thus drawing the box() to fill the widget and putting the label() and image() inside it to fill it, unless the align() flags are set to put it outside.
Information on how to write your own version is here.
Reimplemented from fltk::Group.
This style is assigned to Menu subclasses.
Because of the need to be compatable with Windows, which has a somewhat inconsistent appearance, the default is different than Widget::default_style, and the usage of the fields is somewhat unusual:
The Browser subclass sets the style back to Widget::default_style, so that they appear more like a text editor (ie they put the color and leading back to normal).
Reimplemented from fltk::Menu.