summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI
AgeCommit message (Collapse)Author
2023-01-13Fix for "Rename Fl_X* Fl_Window::i private class member" (#223)ManoloFLTK
2023-01-09Virtual member Fl_Window_Driver::makeWindow() now returns voidManoloFLTK
2023-01-02Fix missing include file for Visual StudioAlbrecht Schlosser
... if GDIPLUS is disabled. Thanks to Winfried Szukalski for reporting this.
2022-12-30Use `FL_OVERRIDE` for all overridden virtual methods (#611)Matthias Melcher
FL_OVERRIDE is defined as `override` for C++11 and higher FL_OVERRIDE is defined as `override` for VisualC 2015 and newer Don't interfere with Fl_Widget::override()
2022-12-17Remove further unused code after 12da87bManoloFLTK
2022-12-17Remove useless Fl_System_Driver members after 12da87bManoloFLTK
2022-12-10Windows: fix memory leak caused by RegisterDragDrop (#569)Albrecht Schlosser
- call RevokeDragDrop() when the window is hidden - do not delete the *static* FLDropTarget object
2022-11-30Remove small files fl_XXX_gl_platform_init.cxxManoloFLTK
The single-function content of these files is moved to Fl_XXX_Gl_Window_Driver.cxx.
2022-11-15Add support of .svgz image files to fluidManoloFLTK
The prototype of the public Fl_SVG_Image constructor is expanded to allow construction from in-memory, gzip'ed binary data.
2022-11-11Remove redundant doxygen docs of fl_beep()Albrecht Schlosser
Also add a comment to all platform driver implementations.
2022-11-07Create class Fl_Unix_Screen_Driver used by X11 and Wayland platformsManoloFLTK
2022-10-02Add missing return value to Fl_WinAPI_Gl_Window_Driver::create_gl_context()ManoloFLTK
2022-10-02Clean use of virtual GLContext Fl_Gl_Window_Driver::create_gl_context().ManoloFLTK
2022-09-30FLTK widgets in OpenGL 3 windows: rewrite for driver system.ManoloFLTK
2022-09-26Replace all calls to sprintf() by calls to snprintf().ManoloFLTK
2022-09-01Simplify Fl_Window_Driver::screen_num() member functions.ManoloFLTK
2022-08-29Make hybrid Wayland/X11 platform.ManoloFLTK
2022-08-20Remove FL_EXPORT qualifier from platform-specific class declarations.ManoloFLTK
2022-06-19Move input method support to Fl_Screen_Driver from Fl_Graphics_DriverManoloFLTK
2022-06-12Issue #141: fl_filename_absolute bugs fixed for MSWindows.MatthiasWM
2022-05-07Change protection levels in classes Fl_XXX_Gl_Window_DriverManoloFLTK
2022-05-05Move struct shape_data_type inside Fl_XXX_Window_Driver.ManoloFLTK
2022-04-12Modify test/cairo_test.cxx to show roles of OPTION_CAIRO and OPTION_CAIROEXT.ManoloFLTK
Also make clear that these options require, for now, Fl_Double_Window to work cross-platform.
2022-04-03Remove '#include <sys/stat.h>' from FL/platform_types.hAlbrecht Schlosser
- 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-03-31Fix whitespace errors (no code changes)Albrecht Schlosser
2022-03-23Remove vsscanf_l() call from Win32 driver (it appears to be a BSD-ism and ↵ian.macarthur
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-13Separate platform init functions from platform-specific driver filesManoloFLTK
2022-03-01Simplify internal Fl_WinAPI_Window_Driver::fake_X_wm() methodAlbrecht Schlosser
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-01Fix default size_range() calculation (issue #392, STR 3352)Albrecht Schlosser
2022-02-03Reorganize classes Fl_System_Driver and Fl_Screen_DriverManoloFLTK
These virtual members are moved from Fl_Screen_Driver to Fl_System_Driver - wait(double) - ready() These virtual members are moved from Fl_System_Driver to Fl_Screen_Driver - copy(const char *stuff, int len, int clipboard, const char *type) - void paste(Fl_Widget &widget, int clipboard, const char *type) - clipboard_contains(const char *type) - clipboard_notify_change() These members are moved from Fl_X11_Screen_Driver to Fl_X11_System_Driver - poll_or_select_with_delay(double time_to_wait) - poll_or_select() and are made virtual in preparation for the introduction of class Fl_Unix_System_Driver.
2022-01-31Consolidate timeout handling across platforms (#379)Albrecht Schlosser
Add Fl_Timeout class Move platform independent code of Fl::wait() to main part - basic timeout handling - Fl::run_checks() - Fl::run_idle() - Fl::idle() - waiting time calculation (next timeout) - remove platform dependent "screen driver" stuff
2022-01-19Fixing and upgrading Fl_Preferences (#374)Matthias Melcher
* Added filename function to Fl_Preferences Static function to get filename before opening. Member to get filename after opening. Bug fixes for memory mapped preferences. * ERROR is a macro on Windows, don't use it * Added Fl_Preferences::dirty(). User can now check if the database will be written when flushed or destroyed. Flush returns a crude error code. * Fl_Preferences::get binary data returns # of bytes read. * Verified group deletion code * Fl_Preferences ignores locale. This will make .prefs files interchangeable between different computers. * Updating the Preferences Mode to ignore locale. * Fixes in docs.
2022-01-16Rename FL/fl_string.h to FL/fl_string_functions.hAlbrecht Schlosser
This is part 1 of the final fix for a previous name clash on case insensitive file systems (fl_string.h vs. Fl_String.H).
2021-12-18Generate FL/fl_config.h rather than FL/abi-version.hAlbrecht Schlosser
... as discussed in fltk.coredev in thread "RFC: introduce public config header <FL/fl_config.h>", see: https://groups.google.com/g/fltkcoredev/c/xLCs1AIXMVo/m/MHZpQggzAQAJ - Rename abi-version.h to fl_config.h, rename input files, update dependencies, .gitignore, CMake, configure and Makefiles. - Include Cairo options in FL/fl_config.h - Rename FLTK_USE_CAIRO to FLTK_HAVE_CAIROEXT for consistency. - Include <FL/fl_config.h> in config.h and wherever necessary, fix include order (move FL/Fl.H to the top) and more. - Move USE_X11 to fl_config.h and rename to FLTK_USE_X11 - Do not include <config.h> in Cairo demo program which is no longer required in Cairo programs since FLTK 1.4.0
2021-10-31Consistently make Fl_Paged_Device::begin_page call ↵ManoloFLTK
Fl_Surface_Device::push_current.
2021-06-26Fix a potential memory leak (PR #241)Albrecht Schlosser
This is a hypothetical fix, since the condition `count == 0` may not be true although `doit` has been allocated. In practice this should not be possible since the same loop is executed twice in lines 463++ and 471++. But anyway, here it is...
2021-06-26Fix potential memory leak (#241)fire-eggs
Signed-off-by: Albrecht Schlosser <albrechts.fltk@online.de>
2021-05-26Fix trailing whitespace and formattingAlbrecht Schlosser
2021-05-26Windows: fix fl_system() and fl_execvp() (STR 3438)Albrecht Schlosser
Use correct conversions to Windows "wide character" encoding and use the appropriate wide character functions.
2021-04-13Update Fl_WinAPI_Window_Driver.HDaniel G
Fix copy paste error.
2021-03-21Windows: fix fl_filename_isdir()Albrecht Schlosser
- convert filename from UTF-8 to "Windows wide chars" - use GetFileAttributesW() instead of _stat()
2021-03-11Unification of scaled coordinate calculations in class ↵ManoloFLTK
Fl_Scalable_Graphics_Driver Most coordinate calculations are done with the new inline function int Fl_Scalable_Graphics_Driver::floor(int coord) that is used by both the Windows and X11 platforms.
2021-02-24Improve precision of GUI scaling for Windows platform.ManoloFLTK
2021-02-18Make clear we're calling a member function of class Fl_WinAPI_System_Driver.ManoloFLTK
2021-02-16Remove FL_CFG_SYS_POSIX and FL_CFG_SYS_WIN32 preprocessor vars from Fl_lock.cxxManoloFLTK
2021-02-16Use <config.h> when appropriate.ManoloFLTK
2021-02-16Create classes Fl_XXX_Gl_Window_Driver according to driver model.ManoloFLTK
2021-02-15PR #174: Skip the call to MonitorFromRect when it is not needed.ManoloFLTK
2021-02-13Remove compilation warnings issued by Visual Studio 2019.ManoloFLTK
2021-02-01Scaling support under Windows: fix fullscreen window mode.ManoloFLTK
When scale was > 1, fullscreen window did not cover the task bar, as seen with test/fullscreen.