1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:58:11 +00:00
serenity/Userland/Services
Jelle Raaijmakers f391ccfe53 LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive
Previously, calling `.right()` on a `Gfx::Rect` would return the last
column's coordinate still inside the rectangle, or `left + width - 1`.
This is called 'endpoint inclusive' and does not make a lot of sense for
`Gfx::Rect<float>` where a rectangle of width 5 at position (0, 0) would
return 4 as its right side. This same problem exists for `.bottom()`.

This changes `Gfx::Rect` to be endpoint exclusive, which gives us the
nice property that `width = right - left` and `height = bottom - top`.
It enables us to treat `Gfx::Rect<int>` and `Gfx::Rect<float>` exactly
the same.

All users of `Gfx::Rect` have been updated accordingly.
2023-05-23 12:35:42 +02:00
..
AudioServer AudioServer: Migrate from DeprecatedFile to File 2023-05-12 19:46:54 +01:00
ChessEngine Userland: Merge DEFAULT_PATH into LibFileSystem/FileSystem.h 2023-05-13 07:53:13 +02:00
Clipboard Clipboard: Avoid unnecessary IPC::Dictionary wrapper 2023-05-21 07:53:45 +02:00
ConfigServer LibCore: Move Stream-based sockets into the Core namespace 2023-02-13 00:50:07 +00:00
CrashDaemon AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
DHCPClient DHCPClient: Remove usage of DeprecatedFile 2023-04-27 07:29:49 +02:00
EchoServer Everywhere: Remove unintentional partial stream reads and writes 2023-03-13 15:16:20 +00:00
FileOperation Everywhere: Remove unintentional partial stream reads and writes 2023-03-13 15:16:20 +00:00
FileSystemAccessServer FileSystemAccessServer: Prefer LibFileSystem over DeprecatedFile 2023-05-21 07:52:41 +02:00
ImageDecoder LibGfx: Move all image loaders and writers to a subdirectory 2023-03-21 22:39:25 +01:00
KeyboardPreferenceLoader KeyboardPreferenceLoader: Remove usage of DeprecatedFile 2023-04-27 07:29:49 +02:00
LaunchServer LaunchServer: Prefer FileSystem over DeprecatedFile 2023-05-15 06:50:43 +02:00
LoginServer LibGUI: Make Application's construction fallible 2023-05-05 16:41:21 +01:00
LookupServer LookupServer: Prefer File::read_until_eof over DeprecatedFile 2023-05-19 23:31:20 +02:00
NetworkServer LibCore: Move Stream-based file into the Core namespace 2023-02-13 00:50:07 +00:00
NotificationServer LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
RequestServer RequestServer: Avoid unnecessary IPC::Dictionary wrapper 2023-05-21 07:53:45 +02:00
SpiceAgent SpiceAgent: Gracefully exit when the Spice server disconnects 2023-05-22 15:11:33 +02:00
SQLServer Everywhere: Remove unused DeprecatedString includes 2023-04-09 22:00:54 +02:00
SystemServer SystemServer: Print useful information when failing to drop privileges 2023-05-20 21:44:03 +02:00
Taskbar LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
TelnetServer Userland: Merge DEFAULT_PATH into LibFileSystem/FileSystem.h 2023-05-13 07:53:13 +02:00
WebContent LibWeb: Resolve CSS custom properties on pseudo elements 2023-05-17 20:37:29 +02:00
WebDriver AK: Add new failable JsonArray::{append/set} functions 2023-04-24 09:21:51 +02:00
WebServer WebServer: Convert document_root_path from DeprecatedString to String 2023-05-21 07:52:41 +02:00
WebSocket WebSocket: Avoid unnecessary IPC::Dictionary wrapper 2023-05-21 07:53:45 +02:00
WindowServer LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
CMakeLists.txt Userland: Remove "Inspector" program and related utilities 2023-04-25 14:48:40 +02:00