FLTK: Fl_Menu_Button.H Source File

FLTK

Fl_Menu_Button.H
1 //
2 // "$Id$"
3 //
4 // Menu button header file for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2010 by Bill Spitzak and others.
7 //
8 // This library is free software. Distribution and use rights are outlined in
9 // the file "COPYING" which should have been included with this file. If this
10 // file is missing or damaged, see the license at:
11 //
12 // http://www.fltk.org/COPYING.php
13 //
14 // Please report all bugs and problems on the following page:
15 //
16 // http://www.fltk.org/str.php
17 //
18
19 /* \file
20 Fl_Menu_Button widget . */
21
22 #ifndef Fl_Menu_Button_H
23 #define Fl_Menu_Button_H
24
25 #include "Fl_Menu_.H"
26
58 class FL_EXPORT Fl_Menu_Button : public Fl_Menu_ {
59 protected:
60 void draw();
61 public:
68 enum popup_buttons {POPUP1 = 1,
69 POPUP2,
70 POPUP12,
71 POPUP3,
72 POPUP13,
73 POPUP23,
74 POPUP123
75 };
76 int handle(int);
77 const Fl_Menu_Item* popup();
78 Fl_Menu_Button(int,int,int,int,const char * =0);
79 };
80
81 #endif
82
83 //
84 // End of "$Id$".
85 //
Fl_Widget::handle
virtual int handle(int event)
Handles the specified event.
Definition: Fl_Widget.cxx:112
Fl_Widget::draw
virtual void draw()=0
Draws the widget.
- © 1998-2016 by Bill Spitzak and others.