mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:37:46 +00:00
LibGfx: Add a Line class and a Rect<T>::RelativeLocation class
These helpers will be useful in preparation for supporting multiple displays, e.g. to measure distances to other screens or figure out where rectangles are located relative to each other.
This commit is contained in:
parent
20c066b8e0
commit
499c33ae0c
4 changed files with 458 additions and 0 deletions
|
@ -16,6 +16,10 @@ class Emoji;
|
|||
class Font;
|
||||
class GlyphBitmap;
|
||||
class ImageDecoder;
|
||||
|
||||
template<typename T>
|
||||
class Line;
|
||||
|
||||
class Painter;
|
||||
class Palette;
|
||||
class PaletteImpl;
|
||||
|
@ -34,6 +38,9 @@ class Size;
|
|||
template<typename T>
|
||||
class Rect;
|
||||
|
||||
using IntLine = Line<int>;
|
||||
using FloatLine = Line<float>;
|
||||
|
||||
using IntRect = Rect<int>;
|
||||
using FloatRect = Rect<float>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue