ManoloFLTK
6c6a80b90e
Add detailed explanations in Fl_Wayland_Gl_Window_Driver::make_current_before()
2022-05-24 11:07:04 +02:00
ManoloFLTK
d971f6f59f
Simpler, compositor-independent procedure to map GL window under Wayland.
2022-05-23 19:45:12 +02:00
Albrecht Schlosser
40569e53c7
Fix MinGW build with shared libs ( #445 )
...
Add missing lib 'gdiplus' to shared libs.
2022-05-22 00:07:40 +02:00
ManoloFLTK
ad96df9e93
Wayland under FreeBSD: detect <GL/glu.h> and fix LIBDECOR_PLUGIN_DIR.
2022-05-21 07:55:03 +02:00
ManoloFLTK
de91a92e67
Wayland under FreeBSD: add support for CMake-based builds.
2022-05-20 17:46:05 +02:00
ManoloFLTK
9c9ce66d05
Wayland under FreeBSD: fix support of GL windows.
2022-05-20 15:22:28 +02:00
ManoloFLTK
1c37c29e2d
Avoid "hides overloaded function" warning messages.
2022-05-19 10:28:39 +02:00
ManoloFLTK
905a90f660
Make Fl_Wayland_Screen_Driver::close_display() close the GL connection if any.
2022-05-17 12:11:18 +02:00
ManoloFLTK
f01216f167
Weston support: handle click on titlebar.
2022-05-17 10:40:09 +02:00
ManoloFLTK
b2bd12ae5e
Fix Fl_Wayland_Window_Driver::wait_for_expose() - still WIP.
2022-05-16 19:22:57 +02:00
ManoloFLTK
2c52ebe210
Improve Fl_Wayland_Window_Driver::wait_for_expose().
2022-05-16 16:34:59 +02:00
ManoloFLTK
5747c3eed9
Fix Fl_Wayland_Window_Driver::take_focus() required for recent Wayland versions.
2022-05-16 11:25:28 +02:00
ManoloFLTK
6efdcb1e6f
Simpler code to map GL windows under Wayland.
2022-05-15 09:04:47 +02:00
ManoloFLTK
b6dae138d4
Restore top-level GL window under Weston.
2022-05-14 17:21:25 +02:00
ManoloFLTK
7fe6f4cf1d
Have FLTK follow the Wayland surface holding keyboard focus.
2022-05-13 09:13:11 +02:00
ManoloFLTK
879f5f0770
Slightly simplify Fl_Wayland_Window_Driver::use_border().
2022-05-10 17:26:37 +02:00
ManoloFLTK
9d054a169b
Remove typos.
2022-05-10 17:00:32 +02:00
ManoloFLTK
a638d90e00
Add missing closing parenthesis.
2022-05-10 16:56:25 +02:00
ManoloFLTK
b6e0122926
Fix for issue #441 : Some minor regressions with borderless+fullscreen (Wayland).
2022-05-10 16:52:46 +02:00
ManoloFLTK
ad27da578a
Avoid glpuzzle crash when resizing while puzzle is spinning - cont'd.
2022-05-09 19:56:17 +02:00
ManoloFLTK
48ca0e3b50
Avoid glpuzzle crash when resizing while puzzle is spinning.
2022-05-09 14:07:02 +02:00
ManoloFLTK
20c50312fc
Cleaner declaration of public function fl_wl_cairo().
2022-05-09 09:41:50 +02:00
ManoloFLTK
c02fba6bb9
Slight simplification of Fl_Wayland_Graphics_Driver::create_shm_buffer().
2022-05-07 18:08:07 +02:00
ManoloFLTK
1d64b78554
Change protection levels in classes Fl_XXX_Gl_Window_Driver
2022-05-07 15:16:29 +02:00
ManoloFLTK
d4472e5e53
Remove useless typedef declaration.
2022-05-06 09:52:52 +02:00
ManoloFLTK
217120c281
Move struct shape_data_type inside Fl_XXX_Window_Driver.
2022-05-05 18:57:07 +02:00
ManoloFLTK
170a9d8e1f
Approximate result of pango_font_metrics_get_height() for Pango < 1.44
2022-05-05 12:20:24 +02:00
ManoloFLTK
af91083a7f
Fl_Cairo_Graphics_Driver: simpler code with early calls to cairo_surface_destroy().
...
Add also replacement for pango_font_metrics_get_height() which requires Pango 1.44
2022-05-05 11:34:10 +02:00
ManoloFLTK
e02ee7d5f1
Add check against null pointer occurrence reported with Gmsh (Issue #434 ).
2022-05-05 10:21:50 +02:00
ManoloFLTK
7d5d2af547
Cairo: reduce vertical offset for text position needed by Fl_Text_Display.
2022-05-04 08:28:12 +02:00
ManoloFLTK
a6e2940792
Remove one-pixel top and left borders of shaped windows.
2022-05-03 11:49:38 +02:00
ManoloFLTK
9082c44cd0
Issue #438 : Wayland: Text drawing different from Xft version - cont'd.
2022-05-02 19:40:43 +02:00
ManoloFLTK
049cef17f7
Set line height as computed by Pango.
2022-05-02 12:41:20 +02:00
ManoloFLTK
85cf597765
Keep the PangoLayout member private in class Fl_Cairo_Graphics_Driver.
2022-05-02 11:05:23 +02:00
ManoloFLTK
71dedbc886
Issue #438 : Wayland: Text drawing different from Xft version - cont'd.
2022-05-01 09:44:20 +02:00
ManoloFLTK
cf1c8b1125
Fix for issue #438 : Wayland: Text drawing different from Xft version - cont'd.
2022-04-30 16:37:28 +02:00
ManoloFLTK
5341f0e45e
Add explanatory comments about text size and vertical position.
2022-04-29 16:34:47 +02:00
ManoloFLTK
1b513d3f00
Fix for issue #438 : Wayland: Textdrawing different from Xft version.
2022-04-29 13:10:40 +02:00
ManoloFLTK
a8da590d11
Fix for issue #434 : Segfaults on macOS.
2022-04-29 09:38:27 +02:00
ManoloFLTK
4618fa9053
Create member function Fl_Cairo_Graphics_Driver::set_cairo()- cont'd.
2022-04-25 10:29:57 +02:00
ManoloFLTK
8808d11578
Create member function Fl_Cairo_Graphics_Driver::set_cairo().
2022-04-25 10:22:23 +02:00
ManoloFLTK
285e8e843a
Create Fl_Cairo_Graphics_Driver::handle_dummy_cairo(cairo_t *cr).
2022-04-23 16:15:05 +02:00
ManoloFLTK
8e21120f75
Restore use of CMake OPTION_USE_SYSTEM_LIBDECOR
2022-04-22 08:00:00 +02:00
ManoloFLTK
9367bb5108
Avoid code duplication using os_create_anonymous_file() from libdecor.
2022-04-21 07:38:51 +02:00
ManoloFLTK
24885b3810
Minor improvement of get_prog_name().
2022-04-21 07:06:18 +02:00
Albrecht Schlosser
804c48515d
Improve docs of Fl_Image and related classes ( #431 )
...
Clarifications as discussed since April 15, 2022 07:00 UTC (see GitHub
issue #431 ).
2022-04-20 17:26:33 +02:00
ManoloFLTK
c1d0783df9
Document how to set window icons under Wayland - cont'd.
2022-04-15 11:05:19 +02:00
ManoloFLTK
827f91110b
Remove unimplemented window icon-related member functions and variables.
...
Wayland uses .desktop files to set window icons.
2022-04-15 08:31:32 +02:00
Albrecht Schlosser
8bcfb88679
Fix documentation typo
...
Fix missing opening quote. (#431 cont'd)
2022-04-15 02:16:06 +02:00
Albrecht Schlosser
114dbc9c81
Clarify documentation of Fl_Image::copy() and more ( #431 )
...
- emphasize that Fl_Image::copy(W, H) creates an image with
w() == data_w() == W and h() == data_h() == H
- clarify some more docs of Fl_Image methods (ensure that data_w()
and data_h() are used where appropriate rather than w() and h()
- improve wording, examples, and formatting of related docs.
Closes #431
2022-04-15 02:01:33 +02:00
ManoloFLTK
d83d89679b
Fix for issue #429 : Segfault with Ctrl+/- with current git version
2022-04-14 11:07:56 +02:00
Albrecht Schlosser
10537b7143
Make Fl_Image::copy() 'const', including all derived classes
...
Copying an image does not (and must not) change the original object,
hence copy() should always be 'const'.
This is *necessary* if the given Fl_Image object is 'const'.
2022-04-13 16:50:30 +02:00
ManoloFLTK
e25758582e
Fix for issue #427 - continued.
2022-04-13 09:30:31 +02:00
ManoloFLTK
bfae813c4e
Fix for issue #427 : Problems with data_w, data_h, w, h of Fl_Image.
2022-04-12 15:06:21 +02:00
ManoloFLTK
fad867a5d3
Modify test/cairo_test.cxx to show roles of OPTION_CAIRO and OPTION_CAIROEXT.
...
Also make clear that these options require, for now, Fl_Double_Window to work cross-platform.
2022-04-12 09:20:34 +02:00
ManoloFLTK
0d59e32b84
Fix for issue #426 - cont'd.
2022-04-10 15:09:25 +02:00
ManoloFLTK
223bf6309b
Fix for issue #426 : "configure --enable-cairoext" flips display upside down
2022-04-08 16:22:22 +02:00
Albrecht Schlosser
385f0d5b4d
Rename remaining FLTK_USE_CAIRO to FLTK_HAVE_CAIROEXT
...
Thanks to Manolo for finding this.
2022-04-07 15:14:30 +02:00
ManoloFLTK
21428bad10
Undo most of f6a93eb
that was a bad move.
2022-04-07 11:31:12 +02:00
Albrecht Schlosser
dacf243889
Fix build w/o Xft
2022-04-07 03:40:43 +02:00
ManoloFLTK
d1bffee04a
Remove useless instructions.
2022-04-06 13:25:54 +02:00
ManoloFLTK
f6a93eb060
Remove warnings: comparison of integer expressions of different signedness [-Wsign-compare]
2022-04-06 13:25:17 +02:00
ManoloFLTK
6a30f63fe4
Fix for "Fl_Native_File_Chooser_GTK does not respect PREVIEW option" in fltk.general.
2022-04-05 09:19:26 +02:00
ManoloFLTK
2ee27e39db
Catch also Fl_Posix_System_Driver after rename stat -> flstat in Fl_System_Driver
2022-04-04 08:30:43 +02:00
Albrecht Schlosser
9a7af11108
Silence compiler warnings [-Wunused-but-set-variable]
2022-04-03 22:30:59 +02:00
Albrecht Schlosser
717a7d266b
Remove '#include <sys/stat.h>' from FL/platform_types.h
...
- Add this include statement only where needed.
- Rename Fl_System_Driver::stat() to flstat().
This fixes an issue when using some (!) MinGW 64-bit build systems
that obviously '#define stat _stat64' or similar. This would
result in compiler problems if 'stat()' is a member function of
Fl_System_Driver.
2022-04-03 22:01:41 +02:00
ManoloFLTK
9aba7c9db0
Fl_Wayland_Window_Driver::scroll() when GUI scaling >= 2.
2022-04-01 14:52:47 +02:00
ManoloFLTK
d992a12403
Merge remote-tracking branch 'refs/remotes/origin/master'
2022-04-01 14:36:41 +02:00
ManoloFLTK
a53efd73d7
Fix regression introduced with d9a6ec8
visible in test/scroll.
2022-04-01 14:36:33 +02:00
Albrecht Schlosser
e91d65cd2f
Fix whitespace errors (no code changes)
2022-03-31 16:00:11 +02:00
ManoloFLTK
d9a6ec88e4
Add support of Fl_Region to the Cairo graphics driver
...
and remove it from the Wayland graphics driver.
2022-03-31 10:36:01 +02:00
Albrecht Schlosser
df4503ea2c
Export fl_cmap to be able to build shared FLTK libraries
2022-03-27 17:13:16 +02:00
Albrecht Schlosser
b037472649
Move src/cmap.cxx to util/cmap.cxx (utilities folder)
...
Regenerated src/fl_cmap.h with less spaces, updated copyright year.
Only whitespace and comments are changed in this file.
Note that src/cmap.cxx is not compiled to build the FLTK libs,
it's only used to generate src/fl_cmap.h.
2022-03-27 17:05:55 +02:00
ManoloFLTK
dc8c4b5676
Wayland: replace public fl_event_time by static wld_event_time.
2022-03-27 09:20:30 +02:00
YX
e9b1c2fed0
Add const
to Fl_Image::fail() (PR #415 )
2022-03-26 17:55:13 +01:00
Albrecht Schlosser
fc250a3aa2
Update documentation and dependencies
2022-03-25 17:27:46 +01:00
ManoloFLTK
0ab3ca7cf6
Remove documentation of non-existant function return values.
2022-03-25 16:54:53 +01:00
ManoloFLTK
427e4dbc7a
Remove platform-dependent type Fl_Bitmask (not in documented public API).
2022-03-24 10:00:01 +01:00
ManoloFLTK
70f61a63f4
Merge remote-tracking branch 'refs/remotes/origin/master'
2022-03-24 06:30:33 +01:00
ManoloFLTK
194164054b
Remove useless virtual member function overrides.
2022-03-24 06:30:27 +01:00
ian.macarthur
29c6d6c679
Remove vsscanf_l() call from Win32 driver (it appears to be a BSD-ism and unsupported by the MS tools) and rename several clocale specific methods from "name" to "vname" since they take a va_list not a variable list of arguments.
2022-03-23 19:46:35 +01:00
ManoloFLTK
54ecae9bda
Create struct wld_window *Fl_Wayland_Window_Driver::wld_window to replace eventually fl_window.
2022-03-23 14:11:49 +01:00
ManoloFLTK
2d71a95b5d
Wayland: replace global fl_display by function struct wl_display *fl_wl_display().
2022-03-23 11:37:25 +01:00
ManoloFLTK
26a78c4992
Fix for issue #419 : Wayland: scale/resize issue.
2022-03-23 07:57:17 +01:00
Albrecht Schlosser
f1b00c6637
Fix driver definitions of vsnprintf() and vsscanf()
...
These two functions are fully defined in the platform specific driver
methods, there's no need to define them in the base class.
This quick fix returns 0 from the base class method. The main reason
was to avoid a compiler error of MSVC 2010 and earlier, i.e. before
MSVC 2012.
Todo: int Fl_WinAPI_System_Driver::clocale_sscanf() needs to be fixed
because '_vsscanf_l()' (with lower case 'L' for 'locale') does not
exist in MSVC 2010 and earlier. It is not clear yet in which version
it was added - current MS docs show it in MSVC 2015 and later.
2022-03-21 17:16:14 +01:00
Albrecht Schlosser
fa84b58cd5
Fix silly MSVC 2010 parser warnings
...
Code like "void copy(const char */*stuff*/, ...)" would issue the
warning "'*/' seen outside comment" which is formally true but ...
These warnings don't appear with newer MS compilers, but I fixed them
anyway.
2022-03-21 17:03:13 +01:00
Albrecht Schlosser
35c212ef3b
Fix MSVC 2010 warning: using 'this' in initializer list
...
This is a legitimate warning although it probably didn't do any harm.
2022-03-21 16:57:32 +01:00
Albrecht Schlosser
9e16f3439e
Fix MSVC 2010 warning/error: declare variables in C early
...
... before other code gets executed in a block. The warning or errors
generated were MORE than confusing.
2022-03-21 16:55:07 +01:00
ManoloFLTK
ff4cf80891
Avoid using same name (p) for distinct members of derived classes - cont'd.
2022-03-21 16:10:34 +01:00
ManoloFLTK
d87b62ea69
Avoid using same name (p) for distinct members of derived classes.
2022-03-21 15:56:50 +01:00
ManoloFLTK
bf5b902180
Rename member Fl_Graphics_Driver::p to xpoint to avoid shadowing.
2022-03-21 14:39:00 +01:00
ManoloFLTK
49dae86edf
Fix for issue #418 : some warnings about unused functions.
2022-03-21 12:12:07 +01:00
ManoloFLTK
a9412b41bb
Issue #359 RFE: access the MacOS windowid .
2022-03-21 11:41:51 +01:00
ManoloFLTK
7e76929aff
Fix for issue #416 : Fl_Xlib_Graphics_Driver_font_xft.cxx has a libasan error.
2022-03-21 10:31:09 +01:00
ManoloFLTK
19439e8e0a
Remove unnecessary constructors.
2022-03-21 10:01:45 +01:00
Albrecht Schlosser
4bcd5c467b
Improve documentation of Fl_Image::copy()
...
Mention the new Fl_Image::release() method to delete all types of
images.
2022-03-20 15:52:08 +01:00
Albrecht Schlosser
7758020edb
Fix Fl_Tiled_Image::copy(int W, int H)
...
Remove false "optimization" that would return the same pointer
if the requested width and height are the same.
Note: copy() must always return a new image (this is the expected
behavior of copy). Otherwise deleting one of the objects (either
the source or the copy) would delete the other one as well.
2022-03-20 15:35:04 +01:00
ManoloFLTK
791fc7d6eb
Update description of Fl_Graphics_Driver class hierarchy.
2022-03-20 15:10:43 +01:00
ManoloFLTK
a2229c8b6b
Fix typo in comment.
2022-03-20 14:07:33 +01:00
ManoloFLTK
bc606cce57
Simpler updateTrackingAreas method of class FLView is enough.
2022-03-20 14:06:30 +01:00
ManoloFLTK
f5628aa66d
Fix issue #413 : Commit 29d9e31
creates memory handling problem under macOS.
2022-03-20 08:09:34 +01:00
Albrecht Schlosser
733ffed630
Add missing initialization parts of Fl_SVG_Image
2022-03-19 15:34:45 +01:00
ManoloFLTK
5884d37ee8
Restore default YES value for FLWindow releasedWhenClosed property.
2022-03-19 08:42:09 +01:00
ManoloFLTK
aa955812f9
Fix for issue #411 : send FL_ENTER / FL_LEAVE events to Fl_Window objects.
2022-03-18 14:26:44 +01:00
ManoloFLTK
ace51a4b8d
More detailed doc of how to change the current drawing surface.
2022-03-18 06:52:06 +01:00
ManoloFLTK
618eb8f105
Improve handling of custom cursor by Wayland platform.
2022-03-17 11:08:02 +01:00
ManoloFLTK
b12ec7d75e
Add necessary #include <FL/platform.H> directive.
2022-03-16 08:06:42 +01:00
ManoloFLTK
8bfb0aa75c
Remove typo in Fl_Wayland_Image_Surface_Driver.H
2022-03-16 08:04:44 +01:00
ManoloFLTK
6235abf79d
Add member variable Window Fl_Wayland_Image_Surface_Driver::pre_window.
2022-03-16 08:00:51 +01:00
ManoloFLTK
576fbcde53
Fix for issue fltk#410 - continued.
2022-03-15 15:58:48 +01:00
ManoloFLTK
7f5ce4d7a9
Fix for issue #410
2022-03-15 05:57:19 +01:00
ManoloFLTK
2d833a54fd
Move initialisation of X11 and Wayland built-in font names to fl_???_platform_init.cxx
2022-03-14 15:28:38 +01:00
ManoloFLTK
2500899b09
Remove unnecessary #include directives
2022-03-13 09:44:37 +01:00
ManoloFLTK
b549cfaaea
Separate platform init functions from platform-specific driver files
2022-03-13 08:56:35 +01:00
ManoloFLTK
e8461a6191
Document Fl::set_font(Fl_Font, const char *) with platform-specific details.
2022-03-10 19:06:46 +01:00
ManoloFLTK
5b26d2b203
Fix for issue #404 about Fl::get_key(int).
2022-03-10 16:06:04 +01:00
ManoloFLTK
9d869d73c1
Begin documenting the Wayland platform, new in FLTK version 1.4
2022-03-10 15:05:26 +01:00
ManoloFLTK
9e4c7aa77c
Restore building for X11 platform + Pango (issue #405 ).
2022-03-10 09:09:29 +01:00
ManoloFLTK
1e68edddc0
Add safety check in Fl_Wayland_Window_Driver::label().
2022-03-09 17:04:59 +01:00
Greg Ercolano
6d3071b859
Small doc improvements for Fl_Tree_Item.
2022-03-09 06:12:42 -08:00
ManoloFLTK
f97fbffa7b
Move all font stuff to Fl_Cairo_Graphics_Driver from Fl_Wayland_Graphics_Driver.
2022-03-09 08:46:49 +01:00
ManoloFLTK
e3f67b8e56
Add necessary call to Fl_Cairo_Graphics_Driver::needs_commit_tag().
2022-03-09 08:33:49 +01:00
Albrecht Schlosser
af9cffc2db
Fix doxygen warning
2022-03-08 16:00:46 +01:00
ManoloFLTK
5b1d1e2470
Some reformatting and fix else reach in Fl_Cairo_Graphics_Driver::transformed_vertex.
2022-03-08 09:30:32 +01:00
Albrecht Schlosser
53b40f4138
Improve documentation on Fl_Menu_Item's and related methods ( #332 )
...
See discussion on GitHub Issue #332 .
Summary: don't change FLTK code but document what to do and not to do.
2022-03-07 18:28:32 +01:00
ManoloFLTK
9e7f49f56f
Add missing member initialisation in Fl_Cairo_Graphics_Driver constructor.
2022-03-07 08:34:49 +01:00
ManoloFLTK
f8db18597a
Complete class Fl_Cairo_Graphics_Driver using Fl_Wayland_Graphics_Driver
2022-03-06 19:47:06 +01:00
Albrecht Schlosser
272bc2560c
Fix MSVC compiler warning
...
warning C4099: 'Fl_Menu_Item': type name first seen using 'struct'
now seen using 'class'
2022-03-05 16:05:31 +01:00
Albrecht Schlosser
5ebb76050b
Fix size_range() - continued (issue #392 )
...
- fix window size of GL windows as reported for test/glpuzzle.cxx
- fix window not resizing on ctrl/+/- (X11 only)
Unfortunately the previous commit "optimized" a necessary X11 message
away. This is now fixed.
Fixes #392 .
2022-03-05 15:50:49 +01:00
ManoloFLTK
c2c7795614
Rename Fl_wayland.cxx to fl_wayland_clipboard_dnd.cxx
2022-03-05 12:28:21 +01:00
ManoloFLTK
3718effc43
Add the Wayland platform to FLTK 1.4
2022-03-04 15:41:00 +01:00
Albrecht Schlosser
a773fdc44b
Fix whitespace, update dependencies and fluid files
2022-03-03 17:20:24 +01:00
ManoloFLTK
d8cb8ec916
Fix for issue #401 . No longer attempt to transiently inactivate the maximize button.
...
This inactivation works with some window managers, but not with KDE or xfce.
It's probably an issue of these WM rather than of FLTK.
2022-03-03 09:46:37 +01:00
Albrecht Schlosser
47154602dd
Simplify internal Fl_WinAPI_Window_Driver::fake_X_wm() method
...
Add optional arguments 'style' and 'styleEx' to fake_X_wm().
Remove static function fake_X_wm_style() and include its code in the
Window driver method Fl_WinAPI_Window_Driver::fake_X_wm(). This
removes some calls and function arguments.
2022-03-01 13:45:51 +01:00
Albrecht Schlosser
091712bea8
Fix default size_range() calculation (issue #392 , STR 3352)
2022-03-01 13:45:51 +01:00
Albrecht Schlosser
fcf89b580e
Fix Visual Studio build warnings in OpenGL graphics driver
2022-02-26 19:48:47 +01:00
Albrecht Schlosser
7810cda145
Fix Visual Studio build warnings
2022-02-26 18:19:43 +01:00
Albrecht Schlosser
cdd1933661
X11: Disable "boxcheat" hack
...
For details see comment in src/Fl_x.cxx: this "Hack to speed up
bg box drawing" is now disabled for several reasons. The code
is still available if the macro ENABLE_BOXCHEAT is defined.
2022-02-22 19:55:11 +01:00
Albrecht Schlosser
406f2c33f4
Update dependencies
2022-02-21 20:44:04 +01:00
Albrecht Schlosser
84c06419bc
Remove obsolete/disabled "boxcheat" code
...
Windows platform: Remove comments about obsolete code and one
exported declaration of the variable 'fl_background_pixel' which
is used only on the X11 platform.
X11 platform: Remove comments.
Other platforms: not affected.
2022-02-21 20:38:33 +01:00
Albrecht Schlosser
fd8170525b
Fix typos and copyright
2022-02-19 12:55:06 +01:00
Albrecht Schlosser
1cdd669dc6
Fix "fl_message_icon() regression" ( #395 )
...
Some attributes of the default message icon had not been copied to
the new Fl_Message class when opening a new dialog.
Clarify documentation about supported icon attributes.
2022-02-16 14:50:50 +01:00
silverduner
52bfbbc2fa
expose position(int, int), x(), y(), w() and h() from Fl_File_Chooser ( #80 )
...
* expose position(int, int), x(), y(), w() and h() from Fl_File_Chooser for positioning
* exposed size() and resize() in Fl_File_Chooser.
2022-02-12 20:46:12 +01:00
Albrecht Schlosser
f6c2531b5b
Enable end user to copy standard dialog text to clipboard ( #388 )
...
All standard dialogs like fl_message() now handle command-c (macOS)
and ctrl-c (other platforms) to copy the message text of standard
dialogs to the clipboard as requested by GitHub Issue #388 .
2022-02-09 16:33:55 +01:00
ManoloFLTK
01db172010
Fix for issue #373 apparent with macOS platform and SDK ≤ 10.13
...
Many thanks to @CendioOssman for finding the cure.
2022-02-08 07:16:37 +01:00
Matthias Melcher
db0a1f4bae
OpenGL implementation of all fl_
"Drawing Fast Shapes" graphics calls ( #385 )
...
* Fix build system for unites,
* Updated unittest to check OpenGL drawing.
Making sure that OpenGL drawing is exactly the same
as native drawing to make FLTK widget rendering
look the same in GL windows.
* Make OpenGL optional.
* Implemented clipping in OpenGL
* unites drawing fast shapes
* Fixed CMake
* Updating unittest.
Added tests for fl_pi and fl_arc (int)
Renamed tab to render complex shapes.
* Improved OpenGL FLTK drawing emulation.
* Fixed GTK ROUND DOWN BOX
* Fixing Makefile for unittest
* Correctly aligning OpenGL text.
* Fixed text alignment in GL windows.
Explained the "FLTK over GL " example in Cube.
* Overlapping test.
* Better GL graphics alignment.
* Drawing the focus rect.
* Adding Alpha Channel support for GL.
* Added FLTK-on-GL documentation.
2022-02-06 15:22:24 +01:00
Albrecht Schlosser
6f09219c43
CMake: Remove unnecessary file from build system
...
Remove macOS warning "ranlib: file ... has no symbols".
2022-02-05 21:36:48 +01:00
ManoloFLTK
2ef4a81d18
Minor improvement in Fl_Mac_App_Menu::custom_application_menu_items().
2022-02-05 09:01:51 +01:00
Albrecht Schlosser
e73f9d466d
Rearrange "Print Button Window" functions
...
- Rename Fl_Screen_Driver::print_or_copy_window() to
fl_print_or_copy_window()
- Add header file src/print_button.h
- Update dependencies
2022-02-03 21:57:47 +01:00
Albrecht Schlosser
c483c4c5de
Fl_Preferences (X11): Fix detection of preferences directory
...
- Fix compiler warning [-Wmaybe-uninitialized] for variable home
- Reformat enum 'Root' for better readability
- Add new enum values CORE_SYSTEM_L and CORE_USER_L
- Improve documentation (deprecated and new enums)
- Initialize internal static variable 'filename' which could be used
uninitialized and thus return any previous value (type == MEMORY)
2022-02-03 20:46:13 +01:00