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 --- FL/Fl.H | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'FL/Fl.H') diff --git a/FL/Fl.H b/FL/Fl.H index e35ebe2ad..fef27fa93 100644 --- a/FL/Fl.H +++ b/FL/Fl.H @@ -88,6 +88,9 @@ typedef void (Fl_Label_Measure_F)(const Fl_Label *label, int &width, int &height /** Signature of some box drawing functions passed as parameters */ typedef void (Fl_Box_Draw_F)(int x, int y, int w, int h, Fl_Color color); +/** Signature of box focus frame drawing functions */ +typedef void (Fl_Box_Draw_Focus_F)(Fl_Boxtype bt, int x, int y, int w, int h, Fl_Color fg, Fl_Color bg); + /** Signature of timeout callback functions passed as parameters. Please see Fl::add_timeout() for details. */ @@ -1215,7 +1218,9 @@ public: // boxtypes: static Fl_Box_Draw_F *get_boxtype(Fl_Boxtype); - static void set_boxtype(Fl_Boxtype, Fl_Box_Draw_F*,uchar,uchar,uchar,uchar); + static void set_boxtype(Fl_Boxtype, Fl_Box_Draw_F*, + uchar, uchar, uchar, uchar, + Fl_Box_Draw_Focus_F* =NULL); static void set_boxtype(Fl_Boxtype, Fl_Boxtype from); static int box_dx(Fl_Boxtype); static int box_dy(Fl_Boxtype); -- cgit v1.2.3