Adding missing overrides
This commit is contained in:
parent
5dd1062df5
commit
61c2b798be
@ -89,7 +89,7 @@ class Image_Box: public Fl_Box {
|
||||
public:
|
||||
Image_Box(int x, int y, int w, int h, const char *label = nullptr)
|
||||
: Fl_Box(x, y, w, h, label) { }
|
||||
int handle(int event) {
|
||||
int handle(int event) override {
|
||||
if (event == FL_BEFORE_TOOLTIP) {
|
||||
const char *color_name_lut[] = { "blue", "green", "black", "red" };
|
||||
int quadrant = (Fl::event_x() < x()+w()/2) + 2*(Fl::event_y() < y()+h()/2);
|
||||
|
||||
@ -240,7 +240,7 @@ class Dynamic_Choice: public Fl_Choice {
|
||||
public:
|
||||
Dynamic_Choice(int x, int y, int w, int h, const char *label=nullptr)
|
||||
: Fl_Choice(x, y, w, h, label) { }
|
||||
int handle(int event) {
|
||||
int handle(int event) override {
|
||||
static int flip_flop = 0;
|
||||
if (event == FL_BEFORE_MENU) {
|
||||
// The following line is legal because we used `copy()` to create a
|
||||
|
||||
Loading…
Reference in New Issue
Block a user