summaryrefslogtreecommitdiff
path: root/src/fl_draw_arrow.cxx
AgeCommit message (Collapse)Author
2024-11-09Revert gtk+ specific "chevron style" arrow drawing (#1117)Albrecht Schlosser
After comparison with older versions I realized that the gtk+ specific "chevron style" was previously used *exclusively* in Fl_Scrollbar. Unfortunately I had picked this style as template for all arrows. GitHub Issue #1117 requested to add an option for users to change the arrow style but after my investigation I decided to use the "old style" (triangles) for all schemes (except "oxy" that has its own drawing methods). **IF** it turned out that we need the gtk specific drawing for scrollbars we could easily reactivate the "chevron style" by adding yet another arrow type - but I hope this is not necessary.
2023-10-15Fix small circle drawing and add doxygen \since statementAlbrecht Schlosser
src/fl_draw.cxx: improve documentation, add \since 1.4.0, simplify scaling code, use forgotten 'color' argument to set the circle color. src/fl_draw_arrow.cxx: add doxygen \since statement
2022-11-25Add "Oxy" scheme (STR 2675, STR 3477)Albrecht Schlosser
This commit is similar to the patch given in STR 3477, oxy_v5.diff: https://www.fltk.org/strfiles/3477/oxy_v5.diff ... with modifications, and updated to current FLTK code.
2022-11-23Save and restore current color when drawing arrowsAlbrecht Schlosser
Make sure we don't change the current color after we finish drawing.
2022-11-22Refactor and simplify "arrow drawing" in widgetsAlbrecht Schlosser
"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