summaryrefslogtreecommitdiff
path: root/test/device.cxx
AgeCommit message (Collapse)Author
2024-04-30Implement and document new class Fl_PDF_File_SurfaceManoloFLTK
2023-12-21Fix a typo, trailing whitespace, and dependenciesAlbrecht Schlosser
2023-12-17Fix MSVC compiler warningAlbrecht Schlosser
2023-12-04New member function Fl_Image_Surface::mask(Fl_RGB_Image*)ManoloFLTK
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()
2021-12-06Fix whitespace errors (no code changes)Albrecht Schlosser
(1) convert tabs to spaces (2) remove trailing whitespace
2021-11-18Clearer GUI for test/deviceManoloFLTK
2021-11-16Add use of fl_capture_window() by test/deviceManoloFLTK
Also, rename fl_capture_window_part() to fl_capture_window().
2021-08-27Remove compiler warnings '-Wextra-semi' (see also PR #266)Albrecht Schlosser
I compiled with `-Wextra-semi -Werror=extra-semi` on Linux and Windows (cross-compiled on Linux) and removed all "extra semicolon" warnings I could find. I didn't check on macOS (yet). Note: Linux configured with and w/o Pango but not w/o Xft. Compilation with other options (e.g. Cairo) might still emit such warnings.
2021-05-08Include bitmap files rather than copying the source codeAlbrecht Schlosser
There's no need to blow up the source file by including the bitmap file literally in the source code. Use '#include' instead. Another benefit is that the original source file is referenced in the source code so it is not accidentally removed.
2020-11-03Add extra argument to Fl_SVG_File_Surface constructor.ManoloFLTK
This makes processing of the underlying FILE object consistant by classes Fl_SVG_File_Surface, Fl_EPS_File_Surface and Fl_PostScript_File_Surface.
2020-10-28Pango ps (#148)ManoloFLTK
Use cairo-PostScript to output PostScript when pango is available. This allows to draw in vectorial form any script. Before, only the Latin script could be drawn to PostScript in vectorial form.
2020-09-07Fix position of the "Return" button.ManoloFLTK
2020-07-11Fix for building without print support (GitHub issue #98).ManoloFLTK
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2020-06-27Add classes Fl_SVG_File_Surface and Fl_EPS_File_Surface to draw to SVG and EPS.ManoloFLTK
Test programs device and pixmap_browser use these new classes. Class Fl_SVG_File_Surface can be optionally made non functional using the --disable-svg configure option or turning off OPTION_USE_SVG in CMake. Class Fl_EPS_File_Surface can be optionally made non functional using the --disable-print configure option or turning off OPTION_PRINT_SUPPORT in CMake.
2020-04-22Add optional argument to Fl_Printer::begin_job() to inform caller when an ↵ManoloFLTK
error occurs. This solves an issue raised in fltk.general : Fl_Printer errors - how can I interpret them? https://www.fltk.org/newsgroups.php?s38419+gfltk.general+v38427
2020-01-11Implement Fl_Window::icon() and default_icon() for macOSManoloFLTK
The implementation is effective for macOS 10.10 and above. Demo program test/device uses the new implementation.
2018-05-22Check also proper RGB image deletion after use.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12924 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-06Deprecate Fl_Image_Surface::highres_image() because ↵Manolo Gouy
Fl_Image_Surface::image() is enough now images are scalable. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12905 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-07Add static void Fl_Surface_Device::push_current(Fl_Surface_Device ↵Manolo Gouy
*new_current) and pop_current() to set/unset the current drawing surface. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12140 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-30Test program "device": add several calls to image destructors to exercise them.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12126 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-27Add tests to avoid null pointer errorsManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11703 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-15Fix position in window of string "Line styles".Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11611 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-04Have the device demo operate also the Fl_PostScript_File_Device class.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11527 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-27Rewrite all fl_XXX_offscreen() functions so they use an Fl_Image_Surface object.Manolo Gouy
These functions become therefore platform-independent. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-25Mac OS platform: make fl_draw_image() draw correctly depth-4 images with ↵Manolo Gouy
transparent areas. This simplifies the drawing of Fl_Pixmap's. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11214 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-12Add Fl_Shared_Image *Fl_Image_Surface::highres_image() to draw into ↵Manolo Gouy
high-resolution bitmap. This new member function returns a high resolution bitmap image scaled to the adequate drawing size. This allows to create a bitmap image able to fill all pixels of a high resolution display. This is functional only for the Mac OS platform. On other platforms, the new member function returns an unscaled bitmap. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11158 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-31Fix compiler warnings (STR 2988), porting from branch-1.3.Albrecht Schlosser
This commit is the accumulated patch introduced in branch 1.3 in svn r 11094, 11095, and 11096. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11097 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-101) Replicate in branch-1.3-porting all recent changes of branch-1.3Manolo Gouy
2) Advance branch-1.3-porting with new function Fl_X::capture_titlebar_and_borders() that contains all the platform-specific code of all operations related to drawing window borders and title bars. What is platform-specific and what is not is therefore much clearer, to ease porting. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11002 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-24Added new method Fl_Copy_Surface::draw_decorated_window()Manolo Gouy
that copies a window to the clipboard together with its title bar and borders. This requires very little new code because the capture of window decorations is shared with the Fl_Paged_Device::print window() method. The device test program is changed to call the new method. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10928 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-08Added Fl_Copy_Surface::w() and Fl_Copy_Surface::h() member functions.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10441 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-23Added copy/paste from/to FLTK applications of graphical data.Manolo Gouy
Added Fl_Image_Surface class to draw into an Fl_Image object. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10159 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19Modifications to all LGPL headers for STR #2685.Greg Ercolano
(to clarify static exception LGPL by changing license references) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16FormattingMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8815 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16Fixed Copyright (another try - sorry!)Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8812 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16Fixed Copyright (damn, why does it not updae the ID?)Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8811 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16Fixed Copyright (2Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8810 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16Fixed CopyrightMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-18Fixed a problem in the WIN32 version of Fl_Paged_Device::print_window_part() andManolo Gouy
Fl_Paged_Device::print_window() where the window didn't redraw well in some cases after printing. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8606 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11Fixed a few GNU compiler warnings (-pedantic): C++ comments in C files,Albrecht Schlosser
extraneous ';' and ',' and an invalid cast. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8263 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-30Updated CMake files with patches from Michael Surette (STR #2317).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7919 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-27Bringing supported IDEs to the newest setup, add device and others.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-20Removed commented out statement.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7307 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-14Merge of branch-1.3-Fl_Printer, with the following main changes:Albrecht Schlosser
(1) adding Fl_Device class (and more) for device abstraction (2) adding Fl_Pinter class (and more) for printing support. Todo: Code cleanup, update dependencies, remove/replace test print window. I'm looking into converting the test window popup in a global shortcut that would pop up the print dialog now... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7263 ea41ed52-d2ee-0310-a9c1-e6b18d33e121