FLTK 1.4.4
Loading...
Searching...
No Matches
Fl_Menu_Bar.H
1//
2// Menu bar header file for the Fast Light Tool Kit (FLTK).
3//
4// Copyright 1998-2017 by Bill Spitzak and others.
5//
6// This library is free software. Distribution and use rights are outlined in
7// the file "COPYING" which should have been included with this file. If this
8// file is missing or damaged, see the license at:
9//
10// https://www.fltk.org/COPYING.php
11//
12// Please see the following page on how to report bugs and issues:
13//
14// https://www.fltk.org/bugs.php
15//
16
17/* \file
18 Fl_Menu_Bar widget . */
19
20#ifndef Fl_Menu_Bar_H
21#define Fl_Menu_Bar_H
22
23#include "Fl_Menu_.H"
24
65class FL_EXPORT Fl_Menu_Bar : public Fl_Menu_ {
66 friend class Fl_Sys_Menu_Bar_Driver;
67protected:
68 void draw() FL_OVERRIDE;
69public:
70 int handle(int) FL_OVERRIDE;
89 Fl_Menu_Bar(int X, int Y, int W, int H, const char *l=0);
93 virtual void update() {}
98 virtual void play_menu(const Fl_Menu_Item *item);
99};
100
101#endif
Fl_Menu_Bar(int X, int Y, int W, int H, const char *l=0)
Creates a new Fl_Menu_Bar widget using the given position, size, and label string.
Definition Fl_Menu_Bar.cxx:66
virtual void update()
Updates the menu bar after any change to its items.
Definition Fl_Menu_Bar.H:93
Fl_Menu_(int, int, int, int, const char *=0)
Creates a new Fl_Menu_ widget using the given position, size, and label string.
Definition Fl_Menu_.cxx:486
virtual void draw()=0
Draws the widget.
virtual int handle(int event)
Handles the specified event.
Definition Fl_Widget.cxx:102
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46
The Fl_Menu_Item structure defines a single menu item that is used by the Fl_Menu_ class.
Definition Fl_Menu_Item.H:124