Files
odfstudio/canvas/qa/cppunit
Noel Grandin a214ac6774 simplify and modernise ScopedBitmapAccess
(*) Make all of it use a "Scoped" paradigm
(*) pass by value, no need to allocate on heap
(*) make all of the construction go via the *Access constructors, instead of it being some via the constructors and some via the Acquire*Access methods.
(*) take the Bitmap& by const& in the constructor, so we can avoid doing const_cast in random places.

Change-Id: Ie03a9145c0965980ee8df9a89b8714a425e18f74
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160293
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-12-07 09:32:14 +01:00
..
…

How to write a canvas test:
===========================

The easiest (relatively speaking) way is to copy&paste from somewhere. Use existing tests
as the base, or canvas/workben/canvasdemo.cxx should be a good source too. If that doesn't
help, then you'll need to find the right UNO interfaces (see canvas/README). Have "fun".


Currently only the vclcanvas implementation is tested, because it's the only one
capable of working with offscreen surfaces. Other implementations would need to
be fixed, and then added to the gb_CppunitTest_use_components list in the makefile.