FLTK logo

[fltk/fltk] Refactor code to make rounded rectangles accessible (PR #553)

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.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

[fltk/fltk] Refactor code to make rounded rectangles accessible (PR #553) Matthias Melcher Nov 23, 2022  
 

This adds fl_rrect and fl_rrectf (note the additional r) so the user can draw rounded rectangles. This uses existing and optimised code that is rearranged.

As mentioned in issue #262, we already implemented drawing code for rounded rectangles, but we did not have an API to access the code besides via box types. I also optimised to code to ignore drawing matrices, do a faster lookup, and avoid searching the graphics driver multiple times.


You can view, comment on, or merge this pull request online at:

  https://github.com/fltk/fltk/pull/553

Commit Summary

  • e00da67 Refactor code to make rounded rectangles accessible

File Changes

(4 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/pull/553@github.com>

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'.