FLTK 1.4.4: Fl_Menu_Button.H Source File

FLTK 1.4.4

Loading...
Searching...
No Matches
Fl_Menu_Button.H
1//
2// Menu button header file for the Fast Light Tool Kit (FLTK).
3//
4// Copyright 1998-2022 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_Button widget . */
19
20#ifndef Fl_Menu_Button_H
21#define Fl_Menu_Button_H
22
23#include "Fl_Menu_.H"
24
56 class FL_EXPORT Fl_Menu_Button : public Fl_Menu_ {
57protected:
58 void draw() FL_OVERRIDE;
59 static Fl_Menu_Button* pressed_menu_button_;
60public:
67 enum popup_buttons {POPUP1 = 1,
68 POPUP2,
69 POPUP12,
70 POPUP3,
71 POPUP13,
72 POPUP23,
73 POPUP123
74 };
75 int handle(int) FL_OVERRIDE;
76 const Fl_Menu_Item* popup();
77 Fl_Menu_Button(int,int,int,int,const char * =0);
78};
79
80#endif
Fl_Widget::draw
virtual void draw()=0
Draws the widget.
Fl_Widget::handle
virtual int handle(int event)
Handles the specified event.
Definition Fl_Widget.cxx:102
FL_OVERRIDE
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46