Matthias Melcher
a3d89f7e28
Fix malloc/delete mismatch
2023-02-27 14:17:25 +01:00
Matthias Melcher
13cd927ab4
Add Fl_String to Fl_Preferences ( #687 )
2023-02-25 22:44:39 +01:00
Albrecht Schlosser
314ad2310e
Derive internal Fl_Help_View buffer from Fl_String
...
Refactor the internal class HV_Edit_Buffer by deriving it from the
the recently extended Fl_String class.
The class HV_Edit_Buffer still needs some "special" methods but the
code could be simplified substantially.
2023-02-24 14:14:16 +01:00
Matthias Melcher
9f87af8ad9
Fl_String refactoring and extension ( #683 )
...
- add true unittest and Fl_String testing
- interface and printout are similar to gtest
without requiring external linkage.
just run `unittest --core`.
- new Fl_String API
- extended API to fl_input_str and fl_password_str
- co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
2023-02-23 15:42:05 +01:00
Albrecht Schlosser
ce45bcae2f
Silence false positive gcc warning ( #682 )
...
... and fix a typo.
This warning was reported for gcc 12.2 (MinGW-w64 / MSYS2) but may have
appeared in earlier gcc versions (gcc 9.4 is not affected).
It's very likely that this warning needs '-O2' or '-O3' to be issued.
2023-02-21 12:46:47 +01:00
Matthias Melcher
2971625418
Add GLUT_ELAPSED_TIME simulation
2023-02-20 13:40:27 +01:00
ManoloFLTK
6f4cf105b1
Remove 2 compilation warnings under Windows with mingw64
...
Compiling Fl_Native_File_Chooser_WIN32.cxx...
fl_dnd_win32.cxx:436:11: warning: private field 'm_EnumF' is not used [-Wunused-private-field]
FLEnum *m_EnumF;
^
1 warning generated.
Fl_Native_File_Chooser_WIN32.cxx:378:19: warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
bool unixpath = IsUnixPath(_directory) | IsUnixPath(_preset_file); // caller uses unix paths?
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
||
Fl_Native_File_Chooser_WIN32.cxx:378:19: note: cast one or both operands to int to silence this warning
1 warning generated.
2023-02-20 12:43:36 +01:00
ManoloFLTK
147bda5471
Rename fd_callback() to wayland_socket_callback()
2023-02-19 08:53:00 +01:00
ManoloFLTK
2af43ef4c8
Remove special FL_CURSOR_NONE implementation in Wayland
2023-02-17 16:24:41 +01:00
ManoloFLTK
e84a1730ad
Wayland: improve and document support of FL_CURSOR_NONE
2023-02-17 09:52:34 +01:00
ManoloFLTK
f6b87790cc
Wayland: new struct wl_cursor *custom_cursor member variable
2023-02-15 22:52:20 +01:00
Matthias Melcher
6fbfaba19d
Move class Fl_Shortcut_Button from FLUID to core ( #677 ) ( #680 )
2023-02-15 15:24:25 +01:00
ManoloFLTK
a4d0f7d269
Wayland: allow Fl_Window::cursor(Fl_Cursor) for whole window
2023-02-15 12:20:26 +01:00
ManoloFLTK
9ff67f013e
Wayland: add support of Fl_Window::default_cursor(Fl_Cursor)
2023-02-15 06:43:39 +01:00
ManoloFLTK
868ab9696f
Rename class Fl_Display_Cairo_Graphics_Driver to Fl_X11_Cairo_Graphics_Driver
2023-02-14 11:52:21 +01:00
ManoloFLTK
b055b82eb2
Use libdecor/src/os-compatibility.h to declare os_create_anonymous_file()
2023-02-14 10:44:15 +01:00
ManoloFLTK
8038b1f1ad
Update doc of Fl_Image::copy() after new Fl_Anim_GIF_Image class
2023-02-14 08:51:42 +01:00
ManoloFLTK
3d0b96b095
Remove unneeded list of wayland seats
2023-02-13 16:54:16 +01:00
ManoloFLTK
9958016a47
Windows: minor change to support build with mingw64 4.9
...
This old compiler is available as a cross compiler from macOS to 64-bit Windows.
2023-02-13 12:24:27 +01:00
ManoloFLTK
f459fdb637
Allow scaled image in Fl_Window::cursor(const Fl_RGB_Image *, int, int)
2023-02-13 12:11:04 +01:00
ManoloFLTK
bb74d263e2
Wayland: add necessary check to support OWL
2023-02-12 08:52:09 +01:00
Matthias Melcher
5a25641317
Very controlled GDIplus startup and shutdown #635 ( #679 )
...
Fall back to GDI if GDIplus is not available
2023-02-11 19:14:23 +01:00
ManoloFLTK
740c56ce15
Wayland: improve support for FL_CURSOR_{NONE, HELP}
2023-02-11 14:36:58 +01:00
Matthias Melcher
d9b519f969
Infinite undo: fix compiler warning
2023-02-10 17:21:47 +01:00
Matthias Melcher
7f87c847ba
Unlimited undo/redo for Fl_Input_ and Fl_Text_Buffer ( #558 ) ( #676 )
2023-02-10 17:13:20 +01:00
Matthias Melcher
72f8604381
Don't for a box type for pulldowns ( #675 )
2023-02-10 16:58:33 +01:00
Albrecht Schlosser
d7f21d9568
Remove dead code and comments (Windows only)
...
Most of the old code was a leftover of STR 3454 (which fixed winsock
issues).
Also removed an old comment about usage of Windows WSAAsyncSelect()
and why it had been removed (related to Windows socket functions).
2023-02-10 13:31:07 +01:00
Albrecht Schlosser
2239ecc4a1
Fix typos in documentation and comments
...
(no code changes)
2023-02-10 13:13:36 +01:00
Matthias Melcher
ffadc23cab
Expose elapsed time API ( #670 )
2023-02-09 14:48:39 +01:00
ManoloFLTK
3cbbe7be2c
Remove XOR-based code that was unused and incomplete ( #673 )
2023-02-07 15:26:46 +01:00
ManoloFLTK
a496be9178
Fix "\todo TextDPosToLineAndCol does not exist"
2023-02-07 15:00:03 +01:00
ManoloFLTK
afb44149d9
Fix "\todo TextDEndOfLine and BufEndOfLine functions don't exist"
2023-02-07 14:32:26 +01:00
ManoloFLTK
7a8771d3c4
macOS+XQuartz: support new homebrew name for GTK2 shared lib
2023-02-07 12:47:42 +01:00
ManoloFLTK
160eb2926d
Remove usage of __APPLE_QUARTZ__ ( #673 )
2023-02-06 21:42:40 +01:00
ManoloFLTK
f1b2e92f07
Use fl_utf_strcasecmp() for Unicode-aware case-insensitive comparisons
2023-02-06 18:48:43 +01:00
ManoloFLTK
18c363a0d9
Use fl_tolower() for case-insensitive Unicode-aware comparisons
2023-02-06 18:48:43 +01:00
ManoloFLTK
55cb8081c7
Don't assume strcasecmp() is a function because of Visual studio C
2023-02-06 16:30:56 +01:00
ManoloFLTK
e0b45688a7
Add necessary #include "flstring.h"
2023-02-06 16:15:22 +01:00
ManoloFLTK
dc51880e28
Fix "\todo Add a flag to ignore case" from Fl_Browser_.cxx
2023-02-06 15:26:53 +01:00
ManoloFLTK
587687629e
Fix "\todo Make comparison UTF-8 aware" in numericsort.c
2023-02-06 13:17:24 +01:00
ManoloFLTK
57a87f7053
Fix "\todo provide user documentation for fl_set_status function"
2023-02-06 11:17:31 +01:00
ManoloFLTK
a56c48079e
Fix "\todo Complete documentation of class Fl_String"
...
Also
- fix "\todo Unicode?" in Fl_Text_Display::display_insert() after verification
- fix "\todo [Internal] The user_data value must be implemented using \p fl_intptr_t"
because that's now in place.
2023-02-06 10:34:47 +01:00
ManoloFLTK
589c1f31c3
Improve doc of Fl_Widget::test_shortcut() methods
...
This removes a \todo item.
2023-02-05 11:45:23 +01:00
Matthias Melcher
1aa6c4fed8
Fix position() methods that shadow Fl_Widget::position()
...
* `FL_DEPRECATED` macro to mark `position()` method that shadow `Fl_Widget::position()` #69 (#666 )
2023-02-02 20:54:19 +01:00
ManoloFLTK
6276822e9e
Allow cmake -DOPTION_APPLE_X11=On without -U__APPLE__
2023-02-02 18:48:24 +01:00
Albrecht Schlosser
4e75549e7b
Update dependencies and fix whitespace errors
...
- replace tabs with spaces
- remove trailing whitespace
2023-02-02 17:09:14 +01:00
Albrecht Schlosser
fb00fb3d66
Minimize and fix include statements of Fl_Int_Vector
...
- replace <FL/Fl.H> with <FL/Fl_Export.H> in public header
- add missing <string.h> in implementation
2023-02-02 17:00:28 +01:00
ManoloFLTK
16dff07994
Fix "Native file chooser on Linux fails with BROWSE_MULTI_FILE" ( #669 )
2023-02-02 15:20:55 +01:00
ManoloFLTK
ddc213d91c
Add preliminary support of Wayland under macOS
...
Wayland under macOS is WIP at
https://github.com/owl-compositor/owl
2023-02-02 14:39:11 +01:00
ManoloFLTK
96fd8a5f7a
Wayland: use fl_wl_find() instead of fl_find()
2023-02-01 09:30:09 +01:00