Commit Graph

9570 Commits

Author SHA1 Message Date
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
ManoloFLTK
2c706838a6 Mention the new Wayland platform. 2022-03-21 07:46:33 +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
4966107238 Add note that Wayland apps cannot be notified of clipboard changes. 2022-03-14 07:52:25 +01:00
Albrecht Schlosser
59e028a3a7 CMake: Improve fltk-config generation
- set executable permissions on MinGW and more platforms
- add missing link libraries
- improve code formatting (indent)
- mark some variables as advanced
- simplify search for glib-2.0
2022-03-13 21:56:05 +01:00
Albrecht Schlosser
14e1954859 Fix CMake version test in setup.cmake
Note: CMake operator 'VERSION_GREATER_EQUAL' was added in CMake 3.7
  but we allow 3.2.3
2022-03-13 21:56:05 +01:00
Albrecht Schlosser
5fd182ee50 CMake/Windows (MSVC): remove confusing CMake warning
The Visual Studio generator does often not find GL/glu.h and locale.h
although these headers are in the Visual Studio SDK. The warning has
been changed to "info" and the unnecessary and sometimes confusing
recommendation to rerun CMake has been removed.
2022-03-13 21:56:05 +01:00
Albrecht Schlosser
bed6027cf0 CMake: Improve configuration summary, add fl_debug_pkg macro
fl_debug_pkg(...) can be used to display CMake variables set by
  executing pkg_check_modules(). This is for CMake debugging only.

The CMake configuration summary displays configuration options
  of Wayland, Pango, Xft, and Cairo configuration.
2022-03-13 21:56:05 +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
d5c47132ef Documentation: Wayland is for LINUX not for UNIX. 2022-03-10 15:30:11 +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
Albrecht Schlosser
345e04c083 CMake: Fix OpenGL3 examples libglew link order (#226) 2022-03-09 22:38:05 +01:00
ManoloFLTK
1e68edddc0 Add safety check in Fl_Wayland_Window_Driver::label(). 2022-03-09 17:04:59 +01:00
ManoloFLTK
4eb5816918 Fix changing decorated window title. 2022-03-09 16:57:55 +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
Albrecht Schlosser
fbf7a347ec CMake/MinGW/MSYS2: fix building examples with libglew32 (#226)
CMake/resources.cmake: add NAMES option to find_library

examples/CMakeLists.txt: fix linking libGLEW/libglew32
2022-03-07 15:05:07 +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
f5ad1d2545 Wayland: fix configure-based build 2022-03-05 10:18:11 +01:00
ManoloFLTK
c4ffbf9d8c Restore statement erroneously commented out. 2022-03-05 08:58:55 +01:00