ladybird/Documentation
Nico Weber d551263b11 LibGfx: Make it possible to apply an (integer) scale to a Painter
This adds a scale factor to Painter, which will be used for HighDPI
support. It's also a step towards general affine transforms on Painters.

All of Painter's public API takes logical coordinates, while some
internals deal with physical coordinates now. If scale == 1, logical
and physical coordinates are the same. For scale == 2, a 200x100 bitmap
would be covered by a logical {0, 0, 100, 50} rect, while its physical
size would be {0, 0, 200, 100}.

Most of Painter's functions just assert that scale() == 1 is for now,
but most functions called by WindowServer are updated to handle
arbitrary (integer) scale.

Also add a new Demo "LibGfxScaleDemo" that covers the converted
functions and that can be used to iteratively add scaling support
to more functions.

To make Painter's interface deal with logical coordinates only,
make translation() and clip_rect() non-public.
2021-01-12 23:32:54 +01:00
..
Browser LibWeb: Rename WebContentView => OutOfProcessWebView 2020-08-17 18:05:35 +02:00
BuildInstructions.md Meta+Docs+CI: Require clang-format >= 11 2020-12-31 21:51:00 +01:00
CLionConfiguration.md Meta: Update CLion and WSL configuration documentations 2020-05-17 23:07:35 +02:00
CodingStyle.md Meta+Docs+CI: Require clang-format >= 11 2020-12-31 21:51:00 +01:00
HardwareCompatibility.md Meta: Add Hardware Compatbility List 2020-12-16 17:30:09 +01:00
HighDPI.md LibGfx: Make it possible to apply an (integer) scale to a Painter 2021-01-12 23:32:54 +01:00
INSTALL.md Meta: Update install guide with link to hardware compatibility list 2020-12-24 11:02:43 +01:00
NotesOnWSL.md Docs: Update WSL notes with some workarounds for known issues 2020-12-30 20:31:30 +01:00
SmartPointers.md Documentation: Tweak document about smart pointers a bit 2020-03-20 14:41:02 +01:00
UsingQtCreator.md Meta+Docs+CI: Require clang-format >= 11 2020-12-31 21:51:00 +01:00
VirtualBox.md Documentation: Add an installation guide for VirtualBox 2020-08-05 10:52:48 +02:00
VirtualBox_Creation_Reference.png Documentation: Add an installation guide for VirtualBox 2020-08-05 10:52:48 +02:00