From 281ec24c8f4b7daf7cc4e7c30b640cbe0b33d037 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 26 Apr 2024 12:42:11 +0200 Subject: Box types can now defined and draw their own focus frame, STR 2145, #659 --- src/fl_plastic.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/fl_plastic.cxx') 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; } -- cgit v1.2.3