summaryrefslogtreecommitdiff
path: root/src/fl_oxy.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2024-04-26 12:42:11 +0200
committerMatthias Melcher <github@matthiasm.com>2024-04-26 12:42:11 +0200
commit281ec24c8f4b7daf7cc4e7c30b640cbe0b33d037 (patch)
tree254e20596d544cb25d32ab2067d9e18afc4ac097 /src/fl_oxy.cxx
parent9a0d1f16d7b78a7e789c30728df79166b95da115 (diff)
Box types can now defined and draw their own focus frame, STR 2145, #659
Diffstat (limited to 'src/fl_oxy.cxx')
-rw-r--r--src/fl_oxy.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fl_oxy.cxx b/src/fl_oxy.cxx
index 59909fdf9..763f5012f 100644
--- a/src/fl_oxy.cxx
+++ b/src/fl_oxy.cxx
@@ -504,7 +504,8 @@ void round_down_box(int x, int y, int w, int h, Fl_Color col) {
}
-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_OXY_UP_BOX() {
@@ -516,8 +517,8 @@ Fl_Boxtype fl_define_FL_OXY_UP_BOX() {
fl_internal_boxtype(_FL_OXY_THIN_DOWN_BOX, thin_down_box);
fl_internal_boxtype(_FL_OXY_THIN_UP_FRAME, thin_up_frame);
fl_internal_boxtype(_FL_OXY_THIN_DOWN_FRAME, thin_down_frame);
- fl_internal_boxtype(_FL_OXY_ROUND_UP_BOX, round_up_box);
- fl_internal_boxtype(_FL_OXY_ROUND_DOWN_BOX, round_down_box);
+ fl_internal_boxtype(_FL_OXY_ROUND_UP_BOX, round_up_box, fl_rounded_focus);
+ fl_internal_boxtype(_FL_OXY_ROUND_DOWN_BOX, round_down_box, fl_rounded_focus);
fl_internal_boxtype(_FL_OXY_BUTTON_UP_BOX, button_up_box);
fl_internal_boxtype(_FL_OXY_BUTTON_DOWN_BOX, button_down_box);