1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-27 23:32:08 +00:00
serenity/Userland/Applications
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
..
3DFileViewer AK: Add the Input word to input-only buffered streams 2023-05-09 11:18:46 +02:00
About LibGUI: Make Application's construction fallible 2023-05-05 16:41:21 +01:00
AnalogClock LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
Assistant Userland: Silence or resolve new GCC 13 warnings 2023-05-15 07:00:29 +02:00
Browser LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
BrowserSettings Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
Calculator Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
Calendar Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
CalendarSettings Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
CertificateSettings Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
CharacterMap Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
ClockSettings Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
CrashReporter LibGUI: Make Application's construction fallible 2023-05-05 16:41:21 +01:00
Debugger Debugger: Support attaching to a running process 2023-02-08 19:23:07 +01:00
DisplaySettings Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
Escalator Escalator: Major rework and enable forwarding of stdin/stdout 2023-05-13 17:59:37 -06:00
FileManager Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
FontEditor Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
GamesSettings LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
Help Help: Fix link to Contents page 2023-05-10 09:13:07 +01:00
HexEditor LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
ImageViewer Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
KeyboardMapper Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
KeyboardSettings Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
Magnifier LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
Mail Userland: Port Model::column_name() to String 2023-05-15 06:42:10 +02:00
MailSettings Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
MouseSettings LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
NetworkSettings Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
PartitionEditor Userland: Port Model::column_name() to String 2023-05-15 06:42:10 +02:00
PDFViewer Userland: Port Model::column_name() to String 2023-05-15 06:42:10 +02:00
Piano LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
PixelPaint LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
Presenter Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
Run LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
Settings LibGUI: Make Application's construction fallible 2023-05-05 16:41:21 +01:00
SoundPlayer Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
SpaceAnalyzer LibGUI: Make Application's construction fallible 2023-05-05 16:41:21 +01:00
Spreadsheet Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
SystemMonitor LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
Terminal Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
TerminalSettings LibGUI: Make Application's construction fallible 2023-05-05 16:41:21 +01:00
TextEditor Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
ThemeEditor Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
VideoPlayer Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
Welcome AK: Add the Input word to input-only buffered streams 2023-05-09 11:18:46 +02:00
CMakeLists.txt CertificateSettings: Create basic Cert Store application 2023-04-03 19:58:47 -06:00