Skip to content

Commit

Permalink
update fltk
Browse files Browse the repository at this point in the history
  • Loading branch information
MoAlyousef committed Nov 10, 2023
1 parent 45d1da3 commit dec8f60
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion include/cfl_button.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ extern "C" {
int widget##_value(widget *self); \
void widget##_set_value(widget *self, int flag); \
void widget##_set_down_box(widget *self, int); \
int widget##_down_box(const widget *self);
int widget##_down_box(const widget *self); \
void widget##_set_compact(widget *self, unsigned char v); \
unsigned char widget##_compact(const widget *self);

WIDGET_DECLARE(Fl_Button)

Expand Down
4 changes: 3 additions & 1 deletion src/cfl_button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
int widget##_down_box(const widget *self) { \
LOCK(auto ret = self->down_box()); \
return ret; \
}
}\
void widget##_set_compact(widget *self, unsigned char v) { LOCK(self->compact(v)); } \
unsigned char widget##_compact(const widget *self) { LOCK(auto ret = self->compact()); return ret; }

WIDGET_CLASS(Fl_Button)

Expand Down

0 comments on commit dec8f60

Please sign in to comment.