FLTK logo

Re: [RFE] STR #3533: Fl_Counter with fixed arrow widths - preliminary code sample

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.bugs  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [RFE] STR #3533: Fl_Counter with fixed arrow widths - preliminary code sample Nicholas Shea Nov 17, 2020  
 
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR Pending]

Link: https://www.fltk.org/str.php?L3533
Version: 1.3-feature


That looks like an elegant solution. I’m glad you kept the compute_sizes
function; I can foresee this eventually belonging in the base Fl_Widget
class, so it can be overridden for all widget types. The only problem with
your modification (and this is purely a cosmetic issue), is that the
original FLTK fl_symbol drawing routines rarely produce symmetrical
triangles, so they tend to suffer aliasing artefacts on at least one
diagonal; if this issue was resolved, perhaps the requirement for custom
drawing routines would not be so great. Albrecht, thank you very much for
looking into this. Your work is highly appreciated.


Link: https://www.fltk.org/str.php?L3533
Version: 1.3-feature


Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.