serenity/Userland/Applications/Piano
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
..
ProcessorParameterWidget LibGUI+Userland: Port Labels to String 2023-04-30 05:48:14 +02:00
AudioPlayerLoop.cpp Piano+LibAudio: Port to Core::File 2023-04-09 20:58:54 -06:00
AudioPlayerLoop.h LibCore: Remove some unnecessary includes from EventLoop.h 2023-04-25 14:48:40 +02:00
CMakeLists.txt Piano: Rename KnobsWidget to TrackControlsWidget 2023-02-25 20:49:41 -07:00
ExportProgressWidget.gml Piano: Show a progress window when exporting WAV 2023-02-08 20:07:37 -05:00
ExportProgressWindow.cpp Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
ExportProgressWindow.h Piano: Show a progress window when exporting WAV 2023-02-08 20:07:37 -05:00
KeysWidget.cpp Piano: Clean up code style with help from clang-tidy 2023-02-25 20:49:41 -07:00
KeysWidget.h
main.cpp Base+Userland: Apply Human Interface Guidelines to Object text 2023-05-23 05:59:49 +02:00
MainWidget.cpp Piano: Allow per-track controls (again) 2023-05-05 01:32:09 +02:00
MainWidget.h Piano: Allow per-track controls (again) 2023-05-05 01:32:09 +02:00
Music.h
PlayerWidget.cpp Piano: Allow per-track controls (again) 2023-05-05 01:32:09 +02:00
PlayerWidget.h Piano: Allow per-track controls (again) 2023-05-05 01:32:09 +02:00
RollWidget.cpp LibGfx+Everywhere: Change Gfx::Rect to be endpoint exclusive 2023-05-23 12:35:42 +02:00
RollWidget.h Piano: Fix insertion and deletion of notes 2023-02-15 12:58:25 +01:00
SamplerWidget.cpp LibGUI+Userland: Port Labels to String 2023-04-30 05:48:14 +02:00
SamplerWidget.h
TrackControlsWidget.cpp Piano: Allow per-track controls (again) 2023-05-05 01:32:09 +02:00
TrackControlsWidget.h Piano: Allow per-track controls (again) 2023-05-05 01:32:09 +02:00
TrackManager.cpp Piano: Clean up code style with help from clang-tidy 2023-02-25 20:49:41 -07:00
TrackManager.h Piano: Allow per-track controls (again) 2023-05-05 01:32:09 +02:00
WaveWidget.cpp
WaveWidget.h