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