Commit Graph

11777 Commits

Author SHA1 Message Date
Matthias Melcher
47bf422e42 Ducumentation fix for previous commit 2024-08-18 14:42:21 +02:00
Matthias Melcher
5ad07b7b4b Fix fl_overlay_rect smearing on macOS (#735)
If fl_overlay_rect crosses window bounds, reading the
window contents would fail and restoring the contents
would fail, generating a smear effect.
2024-08-18 14:42:21 +02:00
ManoloFLTK
afc2072878 Fix Doxygen typos in fl_draw() documentation 2024-08-14 18:27:35 +02:00
Matthias Melcher
05c91b287f FLUID: fixing compiler warning 2024-08-14 01:56:22 +02:00
Matthias Melcher
1badb48e71 FLUID: fixing unintialised widget 2024-08-14 01:52:37 +02:00
Matthias Melcher
ede61089be FLUID: add image spacing control 2024-08-14 01:52:37 +02:00
Matthias Melcher
a9e989cc2d Adding image support for angraved and shadow label types 2024-08-14 01:52:37 +02:00
Matthias Melcher
cfc54a3b19 Adding Fl_Widget::label_image_spacing() (#1039)
- 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-14 01:52:37 +02:00
Matthias Melcher
325ac336c7 Adding gap parameter to fl_draw(...)
This allows the user to define the spacing between a
possible imge and the text.
2024-08-14 00:35:55 +02:00
Matthias Melcher
9f04497d6e Improved documentation for fl_draw()
There are no code changes in this commit, only added
documentation and improved formatting.
2024-08-13 20:58:35 +02:00
Greg Ercolano
85d1d904ec Small doc fixes (\See -> \see) 2024-08-12 18:31:05 -07:00
Greg Ercolano
f825fca43c Improve handling of malformed ANSI. (#950) 2024-08-12 18:00:54 -07:00
Albrecht Schlosser
f74f66e507 Re-enable quoting in fltk-config(.in) [fix PR #17]
- add some more missing quotes
- use `eval` to execute the compile/build command.

Tested with both configure/Make and CMake (Ninja) after installing
in a path that contains spaces (Linux only so far).
2024-08-12 17:12:44 +02:00
Matthias Melcher
3922ef67c1 Further accelerating Fl_Text_Display (#596)
This commit adds lazy evaluation for the wrapped line calculation,
making scrolling much more interactive.
2024-08-12 12:22:25 +02:00
Matthias Melcher
2013c4fd67 Adding Fl_Input comments. 2024-08-11 12:11:35 +02:00
ManoloFLTK
48303cd295 Add DnD problem under KWin to list of known limitations (#997) 2024-08-11 09:38:50 +02:00
ManoloFLTK
419ec5269c Remove "struct Fl_XColor" from list of documented classes 2024-08-10 23:14:56 +02:00
ManoloFLTK
eaf62a99dc Documentation: improve description of how to use drawing surfaces 2024-08-10 23:14:56 +02:00
Albrecht Schlosser
666bbda70e Fix tabs, trailing spaces, and update dependencies 2024-08-10 20:32:19 +02:00
Albrecht Schlosser
4077dfa629 Revert quoting variables in fltk-config.in partially
Fix regression: commit b83a6abe01 broke
  `fltk-config --compile` even in the build folder and in folders not
  containing spaces.

This commit partially reverts the above mentioned commit so
  `fltk-config` works as before.

To do: fltk-config does not work if installed in a directory that
  contains spaces, check if this can be fixed.
2024-08-10 20:14:50 +02:00
Albrecht Schlosser
85e08b981e
Merge pull request #17 from mid-kid/patch-1
Quote variables that may contain spaces (#17)
2024-08-10 16:51:36 +02:00
Albrecht Schlosser
ac8724502f Quote variables that may contain spaces in fltk-options/Makefile 2024-08-10 16:40:06 +02:00
mid-kid
b83a6abe01 Configure/make: Quote variables that may contain spaces
This allows installing FLTK to directories that contain spaces.
2024-08-10 16:28:37 +02:00
Matthias Melcher
02a208b928 Fixed warning in Sudoku (unused variable) 2024-08-10 14:49:51 +02:00
Albrecht Schlosser
fe7560fe61 CMake: add FLTKConfigVersion.cmake
This file enables consumers to search for a particular FLTK version.
2024-08-09 18:23:22 +02:00
Albrecht Schlosser
b7fc02e523 Simplify test/handle_keys.cxx and remove comments 2024-08-08 17:50:31 +02:00
Albrecht Schlosser
60330a6d6f CMake: remove debug statements 2024-08-08 17:43:38 +02:00
Albrecht Schlosser
e65681c9ac CMake: fix usage of OPENGL_GLU_INCLUDE_DIR (#1001)
This commit consists of two parts:

1. CMake/resources.cmake: remove the old variable OPENGL_GLU_INCLUDE_DIR
   from the CMake cache if possible, otherwise enforce a clean build.

2. src/CMakeLists.txt, CMake/options.cmake: use the new variable name
   FLTK_OPENGL_GLU_INCLUDE_DIR.

For details please see GitHub Issue #1001.
2024-08-08 14:49:34 +02:00
ManoloFLTK
713f0b0f64 Add -lwinspool necessary for new class Fl_PDF_File_Surface 2024-08-06 17:27:10 +02:00
Matthias Melcher
44a8508ffe Add Sudoku undo and redo. 2024-08-04 23:42:03 +02:00
Matthias Melcher
fad1a67734 Sudoku formatting, hint updates. 2024-08-04 17:28:35 +02:00
Matthias Melcher
cee2af13b3 Fix Sudoku's use of Fl_Sys_Menu->parent(). 2024-08-04 16:46:04 +02:00
Matthias Melcher
72ee34d1cb Fixes Fl_Text_Editor Home and End keys in line wrap mode
Pressing Home would go to hard newline character, even in
line wrap mode. It now stops  at the soft newline, as expected.
Same for End which now findes the wrapped line break
instaead of the next '\n' character.
2024-08-04 15:59:44 +02:00
dannye
46dd1b33cc
Fix testing of multi-label alt shortcuts (#974)
* find_shortcut(): fix testing of multi-label alt shortcuts
* Use static function instead of macro
2024-08-04 11:53:35 +02:00
Matthias Melcher
9bb9cb3f96 Optimize Fl_Text_Display scrolling speed (#596). 2024-08-04 00:32:11 +02:00
Matthias Melcher
bc73580366 Pulldown button size in Fl_Tag configurable with OV_BORDER now. 2024-08-03 21:39:22 +02:00
Matthias Melcher
803ad5ace9 Fixes missing default argument in Fl_Fill_Dial constructor. 2024-08-03 19:06:23 +02:00
Albrecht Schlosser
7d90a3b373 Fix indenting, add comments for clarity
no operative code changes in this commit
2024-08-03 18:09:58 +02:00
Albrecht Schlosser
fd691b6173 Remove obsolete statement (#1033)
Thanks to @xuyun018 for finding this.
2024-08-03 18:07:05 +02:00
Matthias Melcher
68f437b63e Improve visibility of selected tab in Fl_Tabs (#1032). 2024-08-03 15:26:03 +02:00
Matthias Melcher
0654da9d4a Fixes Fl_Tags close button and pulldown button color. 2024-08-03 14:18:04 +02:00
Matthias Melcher
97b1df805e Better Fl_Tabs callback handling. 2024-08-03 13:05:31 +02:00
Matthias Melcher
abb2971654 Fix Fl_Tabs callback in Overflow mode (#1031). 2024-08-02 21:15:18 +02:00
ManoloFLTK
48ec9ea660 libdecor: prevent crash using bullt-in libdecor with GDK_BACKEND=x11 (#1029) 2024-08-01 18:55:10 +02:00
Albrecht Schlosser
53469038ce Enable setting a fixed font for 'wine' in test/handle_keys.cxx
... w/o editing a file. The default font is "Liberation Mono".

Just set environment variable FLTK_USING_WINE=1 to enable this feature.

Rationale: on /my/ current test system the font chosen by `wine` for
FL_COURIER is a proportional font whereas the display in Fl_Terminal
requires a fixed font for correct output. Font "Liberation Mono"
solves this long standing issue for me w/o having to change source code
but other Linux systems may require a different font.
2024-07-31 17:04:34 +02:00
Matthias Melcher
089f31018b Add RMB pulldown menu to Fl_Help_View, #75
- append underscores to private varaibles per CMP
- add public Fl_Help_View::copy() and Fl_Help_View::text_selected()
- add public Fl_Help_View::copy_menu_text
- fixes some of the focus handling
- add pulldown menu to copy selected text
2024-07-29 14:03:16 +02:00
Matthias Melcher
e7b8a24685 Add chapter in CMake docs for building FLTK under Windows WSL. 2024-07-29 13:05:31 +02:00
Cyprinus Carpio
471aca03bc GDI: fix StretchBlt mode setting 2024-07-28 22:30:55 +02:00
ManoloFLTK
9c7a473778 Crash in macOS when switching fullscreen window between displays (#1022) 2024-07-28 18:27:37 +02:00
ManoloFLTK
80b496cfe2 Remove useless #include directive from Fl_Window_Driver.H 2024-07-28 18:27:37 +02:00