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
..
2023-03-15 14:55:49 +01:00
2023-04-30 05:48:14 +02:00
2023-04-30 05:48:14 +02:00
2023-02-07 10:43:15 +00:00
2023-03-03 15:23:47 +01:00
2023-03-16 09:58:42 +01:00
2023-02-19 01:09:09 +01:00
2023-05-23 12:35:42 +02:00
2022-12-30 17:16:29 +01:00
2023-04-14 12:05:52 +01:00
2023-01-27 20:33:18 +00:00
2023-02-10 05:12:06 +03:30
2023-03-04 00:29:38 +01:00
2023-05-23 12:35:42 +02:00
2023-02-21 00:54:04 +01:00
2023-05-13 12:53:49 +02:00
2023-02-21 00:54:04 +01:00
2022-12-28 22:32:21 -05:00
2023-02-21 00:54:04 +01:00
2023-05-15 12:15:39 +02:00
2023-05-15 12:15:39 +02:00
2023-05-06 08:50:12 +02:00
2023-05-05 16:41:21 +01:00
2023-04-30 05:49:46 +02:00
2023-02-18 16:56:56 +00:00
2023-02-18 16:56:56 +00:00
2023-02-19 01:09:09 +01:00
2023-02-19 01:09:09 +01:00
2023-05-23 12:35:42 +02:00
2023-04-15 15:24:50 +02:00
2023-03-04 00:29:38 +01:00
2023-02-13 00:45:09 +00:00
2023-05-23 12:35:42 +02:00
2023-03-03 15:38:59 +01:00
2023-05-21 07:53:45 +02:00
2023-05-08 21:06:13 -06:00
2023-03-21 19:03:21 +00:00
2022-11-19 11:04:11 +01:00
2023-03-16 09:58:42 +01:00
2023-05-23 05:59:49 +02:00
2023-05-23 05:59:49 +02:00
2023-05-23 05:59:49 +02:00
2023-05-23 12:35:42 +02:00
2022-12-30 17:16:29 +01:00
2023-05-23 12:35:42 +02:00
2022-12-06 08:54:33 +01:00
2022-12-06 08:54:33 +01:00
2023-05-15 06:42:10 +02:00
2023-05-23 05:59:49 +02:00
2023-03-21 19:03:21 +00:00
2023-01-09 09:45:26 +01:00
2023-04-19 07:59:54 +02:00
2022-12-07 11:48:27 +01:00
2023-02-13 00:50:07 +00:00
2023-02-13 00:50:07 +00:00
2023-02-13 00:50:07 +00:00
2023-03-21 10:06:41 +01:00
2023-03-21 10:06:41 +01:00
2023-05-15 12:15:39 +02:00
2023-05-15 12:15:39 +02:00
2023-02-08 18:50:43 +00:00
2022-12-06 08:54:33 +01:00
2023-03-06 23:46:35 +01:00
2022-12-06 08:54:33 +01:00
2023-03-05 20:21:57 +01:00
2023-04-30 05:49:46 +02:00
2022-12-06 08:54:33 +01:00
2023-02-21 00:54:04 +01:00
2023-02-21 00:54:04 +01:00
2023-05-12 09:40:24 +01:00
2023-03-24 10:58:43 +00:00
2023-05-23 05:59:49 +02:00
2023-05-15 12:15:39 +02:00
2023-02-02 04:05:42 -07:00
2023-05-15 06:42:10 +02:00
2023-05-15 06:42:10 +02:00
2023-05-01 11:10:56 +02:00
2023-05-15 06:42:10 +02:00
2023-05-15 06:42:10 +02:00
2023-05-23 05:59:49 +02:00
2023-02-21 00:54:04 +01:00
2023-02-19 01:09:09 +01:00
2023-05-07 21:12:35 +02:00
2023-04-30 05:49:46 +02:00
2023-03-15 14:55:49 +01:00
2022-11-27 18:28:43 -07:00
2023-05-13 12:53:49 +02:00
2023-05-13 12:53:49 +02:00
2023-05-15 14:15:53 +02:00
2022-12-06 08:54:33 +01:00
2023-05-23 12:35:42 +02:00
2023-02-21 00:54:04 +01:00
2023-02-21 00:54:04 +01:00
2023-05-23 12:35:42 +02:00
2023-02-02 13:15:03 +01:00
2023-05-05 15:20:44 +01:00
2023-03-21 22:39:25 +01:00
2023-05-23 12:35:42 +02:00
2022-12-08 17:20:51 +01:00
2022-11-29 15:39:13 +00:00
2023-01-11 10:24:51 +01:00
2023-01-11 10:24:51 +01:00
2023-03-15 14:55:49 +01:00
2022-11-27 18:28:43 -07:00
2023-05-23 05:59:49 +02:00
2023-04-18 10:05:21 +02:00
2023-05-15 06:42:10 +02:00
2023-05-03 21:39:09 +01:00
2023-05-15 06:42:10 +02:00
2023-04-30 05:49:46 +02:00
2023-04-30 05:48:14 +02:00
2023-04-24 09:21:51 +02:00
2023-02-18 16:56:56 +00:00
2023-05-23 12:35:42 +02:00
2023-04-30 05:48:14 +02:00
2023-04-04 19:15:15 +02:00
2023-04-04 19:15:15 +02:00
2023-04-19 07:59:54 +02:00
2023-04-19 07:59:54 +02:00
2023-04-19 07:59:54 +02:00
2023-04-19 07:59:54 +02:00
2023-04-19 07:59:54 +02:00
2023-03-26 21:55:21 +01:00
2023-05-23 05:59:49 +02:00
2023-05-15 12:15:39 +02:00
2023-03-09 15:51:00 +00:00
2023-05-15 06:42:10 +02:00
2023-04-30 05:49:46 +02:00
2023-04-09 22:00:54 +02:00
2022-12-07 11:48:27 +01:00
2022-12-07 11:48:27 +01:00
2023-05-23 05:59:49 +02:00
2023-01-27 20:33:18 +00:00
2023-03-15 07:52:08 +00:00
2023-02-21 00:54:04 +01:00
2023-05-23 12:35:42 +02:00
2023-01-01 09:38:07 +00:00
2023-04-30 05:48:14 +02:00
2023-04-30 05:48:14 +02:00
2022-12-06 08:54:33 +01:00
2023-03-24 10:58:43 +00:00
2023-02-19 01:09:09 +01:00
2023-03-24 22:06:38 +00:00
2023-03-24 22:06:38 +00:00
2023-02-25 20:51:49 +01:00
2023-02-25 20:51:49 +01:00
2023-03-16 09:58:42 +01:00
2023-02-17 16:25:57 +00:00
2023-05-23 12:35:42 +02:00
2023-03-03 15:23:47 +01:00
2023-03-06 23:46:35 +01:00
2023-05-15 06:42:10 +02:00
2023-05-15 06:42:10 +02:00
2023-02-21 00:54:04 +01:00
2023-02-21 00:54:04 +01:00
2023-05-23 12:35:42 +02:00
2022-12-26 09:27:19 +01:00
2023-05-23 12:35:42 +02:00
2023-03-01 10:55:20 +01:00
2023-05-23 05:59:49 +02:00
2023-03-16 09:58:42 +01:00
2022-12-06 08:54:33 +01:00
2022-12-06 08:54:33 +01:00
2023-04-30 05:49:46 +02:00
2023-02-17 16:25:57 +00:00
2023-05-15 06:42:10 +02:00
2023-05-15 06:42:10 +02:00
2023-05-13 12:53:49 +02:00
2023-05-13 12:53:49 +02:00
2022-12-07 11:48:27 +01:00
2022-12-07 11:48:27 +01:00
2023-04-30 05:49:46 +02:00
2023-04-30 05:49:46 +02:00
2023-05-23 12:35:42 +02:00
2023-05-23 12:35:42 +02:00
2023-03-16 09:58:42 +01:00
2023-05-23 12:35:42 +02:00
2023-02-16 10:47:22 +00:00
2023-05-05 16:48:36 +01:00
2023-03-06 23:46:35 +01:00
2023-05-23 12:35:42 +02:00
2023-04-30 06:08:22 +02:00
2023-04-09 22:00:54 +02:00
2023-02-28 13:23:55 +01:00
2023-05-23 12:35:42 +02:00
2023-03-06 23:46:35 +01:00
2023-05-23 12:35:42 +02:00
2023-05-23 12:35:42 +02:00
2023-02-21 00:54:04 +01:00
2023-05-23 12:35:42 +02:00
2023-02-02 13:15:03 +01:00
2023-03-16 08:05:58 +01:00
2023-03-06 23:46:35 +01:00
2023-01-26 09:57:14 -05:00
2023-03-06 23:46:35 +01:00
2023-03-06 23:46:35 +01:00
2023-05-23 12:35:42 +02:00
2023-02-17 16:25:57 +00:00
2023-05-07 01:05:09 +02:00
2023-02-21 00:54:04 +01:00
2023-04-09 22:00:54 +02:00
2023-01-27 20:33:18 +00:00
2023-05-23 12:35:42 +02:00
2023-03-16 09:58:42 +01:00
2023-05-15 12:15:39 +02:00
2023-05-15 12:15:39 +02:00
2022-11-19 16:04:42 +01:00