diff options
| author | Matthias Melcher <github@matthiasm.com> | 2024-04-26 12:42:11 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2024-04-26 12:42:11 +0200 |
| commit | 281ec24c8f4b7daf7cc4e7c30b640cbe0b33d037 (patch) | |
| tree | 254e20596d544cb25d32ab2067d9e18afc4ac097 /src/fl_plastic.cxx | |
| parent | 9a0d1f16d7b78a7e789c30728df79166b95da115 (diff) | |
Box types can now defined and draw their own focus frame, STR 2145, #659
Diffstat (limited to 'src/fl_plastic.cxx')
| -rw-r--r-- | src/fl_plastic.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fl_plastic.cxx b/src/fl_plastic.cxx index eda2337f5..bc897833c 100644 --- a/src/fl_plastic.cxx +++ b/src/fl_plastic.cxx @@ -348,8 +348,8 @@ static void down_round(int x, int y, int w, int h, Fl_Color c) { } -extern void fl_internal_boxtype(Fl_Boxtype, Fl_Box_Draw_F*); - +extern void fl_rounded_focus(Fl_Boxtype bt, int x, int y, int w, int h, Fl_Color fg, Fl_Color bg); +extern void fl_internal_boxtype(Fl_Boxtype, Fl_Box_Draw_F*, Fl_Box_Draw_Focus_F* =NULL); Fl_Boxtype fl_define_FL_PLASTIC_UP_BOX() { fl_internal_boxtype(_FL_PLASTIC_UP_BOX, up_box); @@ -358,8 +358,8 @@ Fl_Boxtype fl_define_FL_PLASTIC_UP_BOX() { fl_internal_boxtype(_FL_PLASTIC_DOWN_FRAME, down_frame); fl_internal_boxtype(_FL_PLASTIC_THIN_UP_BOX, thin_up_box); fl_internal_boxtype(_FL_PLASTIC_THIN_DOWN_BOX, down_box); - fl_internal_boxtype(_FL_PLASTIC_ROUND_UP_BOX, up_round); - fl_internal_boxtype(_FL_PLASTIC_ROUND_DOWN_BOX, down_round); + fl_internal_boxtype(_FL_PLASTIC_ROUND_UP_BOX, up_round, fl_rounded_focus); + fl_internal_boxtype(_FL_PLASTIC_ROUND_DOWN_BOX, down_round, fl_rounded_focus); return _FL_PLASTIC_UP_BOX; } |
