Skip to content

Commit

Permalink
Add forgotten go_fltk_new_Light_Button function
Browse files Browse the repository at this point in the history
For #88
  • Loading branch information
pwiecz committed Jun 29, 2023
1 parent 837a183 commit bb29d08
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions button.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,18 @@ class GToggle_Button : public EventHandler<Fl_Toggle_Button> {
: EventHandler<Fl_Toggle_Button>(x, y, w, h, label) {}
};

GToggle_Button *go_fltk_new_Toggle_Button(int x, int y, int w, int h, const char *label) {
return new GToggle_Button(x, y, w, h, label);
}

class GLight_Button : public EventHandler<Fl_Light_Button> {
public:
GLight_Button(int x, int y, int w, int h, const char *label)
: EventHandler<Fl_Light_Button>(x, y, w, h, label) {}
};

GToggle_Button *go_fltk_new_Toggle_Button(int x, int y, int w, int h, const char *label) {
return new GToggle_Button(x, y, w, h, label);
GLight_Button *go_fltk_new_Light_Button(int x, int y, int w, int h, const char *label) {
return new GLight_Button(x, y, w, h, label);
}

class GRadio_Button : public EventHandler<Fl_Radio_Button> {
Expand Down

0 comments on commit bb29d08

Please sign in to comment.