1 /*
2     Custom Checkbox
3 
4     Original ZynAddSubFX author Nasca Octavian Paul
5     Copyright 2021 William Godfrey
6 
7     This file is part of yoshimi, which is free software: you can redistribute
8     it and/or modify it under the terms of the GNU Library General Public
9     License as published by the Free Software Foundation; either version 2 of
10     the License, or (at your option) any later version.
11 
12     yoshimi is distributed in the hope that it will be useful, but WITHOUT ANY
13     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14     FOR A PARTICULAR PURPOSE.   See the GNU General Public License (version 2 or
15     later) for more details.
16 
17     You should have received a copy of the GNU General Public License along with
18     yoshimi; if not, write to the Free Software Foundation, Inc., 51 Franklin
19     Street, Fifth Floor, Boston, MA  02110-1301, USA.
20 
21     This file is derived from (GPL2) fltk 1.3.5 source code.
22 */
23 
24 #ifndef Fl_Light_Button2_H
25 #define Fl_Light_Button2_H
26 
27 #include <FL/Fl_Button.H>
28 
29 /**
30   Custom checkbutton, w. dynamically resized check mark
31 */
32 class Fl_Light_Button2 : public Fl_Button {
33 protected:
34     virtual void draw();
35 public:
36     virtual int handle(int);
37     Fl_Light_Button2(int x,int y,int w,int h,const char *l = 0);
38 };
39 
40 class Fl_Check_Button2 : public Fl_Light_Button2 {
41 public:
42   Fl_Check_Button2(int X, int Y, int W, int H, const char *L = 0);
43 };
44 
45 
46 #endif
47