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 /FL/Fl.H | |
| parent | 9a0d1f16d7b78a7e789c30728df79166b95da115 (diff) | |
Box types can now defined and draw their own focus frame, STR 2145, #659
Diffstat (limited to 'FL/Fl.H')
| -rw-r--r-- | FL/Fl.H | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |
