From ecc47d0cc3e1784e17ac94829202f2bdbd38a682 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sun, 22 Nov 2020 19:19:19 +0100 Subject: Refactor and simplify "arrow drawing" in widgets "Arrows" in widgets are those GUI elements mostly represented by triangles pointing in a particular direction as in scrollbars, choice widgets, some menus, valuators and Fl_Counter widgets. The code has been simplified and standardized such that all these GUI elements are drawn identically per FLTK scheme. Widget authors no longer need to write code to calculate arrow sizes and draw polygons etc. Different schemes can and do implement different drawing functions. Todo: see comments "FIXME_ARROW" in src/Fl_Menu_Button.cxx and src/Fl_Menu.cxx --- src/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 0964f7b00..388f69b23 100644 --- a/src/Makefile +++ b/src/Makefile @@ -139,6 +139,7 @@ CPPFILES = \ fl_curve.cxx \ fl_diamond_box.cxx \ fl_draw.cxx \ + fl_draw_arrow.cxx \ fl_draw_pixmap.cxx \ fl_encoding_latin1.cxx \ fl_encoding_mac_roman.cxx \ -- cgit v1.2.3