| 1 |
// ===================================================================== |
| 2 |
// |
| 3 |
// drop_button.cxx |
| 4 |
// |
| 5 |
// Author: David Freese, W1HKJ |
| 6 |
// Copyright: 2020 |
| 7 |
// |
| 8 |
// This file is part of flmsg. |
| 9 |
// |
| 10 |
// This is free software; you can redistribute it and/or modify |
| 11 |
// it under the terms of the GNU General Public License as published by |
| 12 |
// the Free Software Foundation; either version 3 of the License, or |
| 13 |
// (at your option) any later version. |
| 14 |
// |
| 15 |
// This software is distributed in the hope that it will be useful, |
| 16 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. It is |
| 18 |
// copyright under the GNU General Public License. |
| 19 |
// |
| 20 |
// You should have received a copy of the GNU General Public License |
| 21 |
// along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 22 |
// |
| 23 |
// ===================================================================== |
| 24 |
// |
| 25 |
// extends normal button to allow drop events |
| 26 |
// --------------------------------------------------------------------- |
| 27 |
|
| 28 |
#ifndef FL_DROP_BUTTON_ |
| 29 |
#define FL_DROP_BUTTON_ |
| 30 |
|
| 31 |
#include "config.h" |
| 32 |
|
| 33 |
#include <FL/Fl.H> |
| 34 |
#include <FL/Fl_Button.H> |
| 35 |
|
| 36 |
class Fl_Drop_Button : public Fl_Button |
| 37 |
{ |
| 38 |
int last_event; |
| 39 |
public: |
| 40 |
Fl_Drop_Button(int x, int y, int w, int h, const char* l = 0); |
| 41 |
int handle(int event); |
| 42 |
}; |
| 43 |
|
| 44 |
#endif // FL_DROP_BUTTON_ |