summaryrefslogtreecommitdiff
path: root/src/fl_draw.cxx
AgeCommit message (Collapse)Author
2 dayswi[maxim nikonov
2025-11-21Fix a few more warnings by Clang.Matthias Melcher
- Apple Clang 17.0.0. - png, z, jpeg lib integer cast warnings remain - FLTK callback function cast warnings remain.
2024-12-03Documentation only: add details about fl_override_scale() and clip.ManoloFLTK
2024-11-20Fix fl_draw_image sometimes crashes when window is scaled - cont'd (#1134)ManoloFLTK
2024-11-19 Fix fl_draw_image sometimes crashes when window is scaled (#1134)ManoloFLTK
2024-08-28Fix Doxygen problems with fl_draw() functions.ManoloFLTK
2024-08-27Update comment.Matthias Melcher
2024-08-14Fix Doxygen typos in fl_draw() documentationManoloFLTK
2024-08-14Adding Fl_Widget::label_image_spacing() (#1039)Matthias Melcher
- May need a better method name. - This makes the gap between the image in a label and the label text user settable. - Can be tested using test/label app
2024-08-14Adding gap parameter to fl_draw(...)Matthias Melcher
This allows the user to define the spacing between a possible imge and the text.
2024-08-13Improved documentation for fl_draw()Matthias Melcher
There are no code changes in this commit, only added documentation and improved formatting.
2023-12-02Improve contrast of check marks and radio buttons (#443)Albrecht Schlosser
- add fl_draw_radio(...) to standardize radio button drawing - src/Fl_Light_Button.cxx: use fl_contrast() to determine color of radio button and check (light) button check marks, and use new fl_draw_radio() method - src/Fl_Menu.cxx: same as src/Fl_Light_Button.cxx and use fl_draw_check() instead of "manually" drawing the check mark (forgotten in an earlier update)
2023-10-18Fix trailing whitespaceAlbrecht Schlosser
2023-10-16Add virtual void Fl_Graphics_Driver::draw_circle()ManoloFLTK
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
2023-10-14Draws nicer small circles if display is scaled up.Matthias Melcher
2023-03-18Fix and update alignment #346 (#701)Matthias Melcher
* interactive layout alignment rewritten * interface for new alignment rules * new alignment dialog box * user defined layout rules added * layout rules can be stored in projects, settings, and external files * Valgrind verification
2023-01-11Fix "Long line crashes Fl_Hold_Browser" (#645)ManoloFLTK
This is in fact a regression introduced at commit be0f06e.
2023-01-05Refactor drawing small circles: add fl_draw_circle()Albrecht Schlosser
This method can be used to draw small circles as part of the GUI. It is independent of the current scheme. Very small circles are approximated by drawing several rectangles.
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-24Fix two new Visual Studio compiler warningsAlbrecht Schlosser
2022-11-24Remove two "warning: pointer xxx used after void* realloc()" messagesManoloFLTK
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
2022-07-27Improve check mark visibility for small sizesAlbrecht Schlosser
This looks a little better and more like FLTK 1.3
2021-11-19Fix doxygen docs of fl_draw_check()Albrecht Schlosser
.. as pointed out by Ian in fltk.coredev. Thanks.
2021-11-18Disable check mark debuggingAlbrecht Schlosser
2021-11-15Add fl_draw_check() to draw better check marks (issue #68)Albrecht Schlosser
This new function can and should be used to draw check marks in widgets that need it, e.g. Fl_Check_Browser (issue #68) and Fl_Check_Button.
2021-03-21Remove unnecessary system includes from public headersAlbrecht Schlosser
Add includes of system headers in the implementation files where necessary.
2021-02-27Rename fl_remove_scale() to fl_override_scale() as discussed in fltk.generalManoloFLTK
Re: Can custom box type functions handle their own high-DPI screen scaling?
2021-02-25Add fl_remove_scale()/fl_restore_scale() to transiently draw without scaling ↵ManoloFLTK
factor. This new API is a response to this message in fltk.general : Can custom box type functions handle their own high-DPI screen scaling?
2021-02-13Remove compilation warnings issued by Visual Studio 2019.ManoloFLTK
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2020-02-03Move fl_font(face, size) to fl_draw.cxxAlbrecht Schlosser
I believe this is a better place. Also: add FL_EXPORT since it's no longer inline.
2017-02-19Fix line wrap at word end when string widths are true double values (non ↵Manolo Gouy
integer). Useful for rescaling that creates non-integer string widths. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12176 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-24Doc changes: set fl_font before fl_measure() (STR #3243)Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11848 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-27Fix compiler warnings (STR #2988) - final commit.Albrecht Schlosser
This commit includes all fixes from branch-1.3 (svn r 11243) and additional fixes for warnings that crept in during the porting efforts, particularly C++ ("//") comments in C and included header files, and some more. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11246 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-26Moving image drawing code into the driver systemMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11060 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-03Remove unused code and trailing white space.Albrecht Schlosser
The unused function was commented out about 6 months ago, see svn r 10123. No changes other than comments and white space. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-30Minor reformatting to follow the coding style of the CMP.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10124 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-28Removes a constraint that the fancy string drawing function fl_draw() is ↵Manolo Gouy
limited to 1024 chars/line that blocked a user of the Fl_Browser widget (see "fl_draw MAXBUF limit" in fltk.coredev). Also, removed a useless computation in string expansion that checked for valid UTF-8 sequences: the point is that a valid UTF-8 sequence for a non-ascii char contains no ascii char, thus no tab, space, control, & or @ we want to process differently. Also, invalid UTF-8 sequences are copied unchanged by this procedure. Therefore, checking for tab, space, control, & or @, and copying the byte otherwise, is enough. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10123 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-09Fix STR# 2772: remove dead code in fl_measure()Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9869 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-05fix a typo and indenting.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-05Fixed build error in msvs because Fl ref to FULLSCREEN enum was not ↵Fabien Costantini
accessible in Fl_Widget. new inline is_fullscreen() getter has been implemented to avoid a build error with (at least) msvc compilers. Fixed a ton of warnings / problems when bilding on windows 64 bits target with ms toolchain. cleaned up about 200 warnings raised when building win74 targets. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-02-04fl_measure() doc clarifications for common use errors.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9233 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19Modifications to all LGPL headers for STR #2685.Greg Ercolano
(to clarify static exception LGPL by changing license references) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-30Fix STR #2649: fl_measure() did not handle well double @@ at line start.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8763 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-07Fix STR #2557.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8398 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28Fixed Copyright to 2010.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-30Fixed label alignment (STR #2436)Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7782 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-14Removed compilation warningManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121