1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

LibGfx: Templatize Point, Size, and Rect

This commit is contained in:
Matthew Olsson 2020-07-25 21:31:47 -07:00 committed by Andreas Kling
parent 7a1c328417
commit 335916d8db
Notes: sideshowbarker 2024-07-19 04:34:50 +09:00
33 changed files with 404 additions and 835 deletions

View file

@ -48,14 +48,14 @@ public:
void map(float unmapped_x, float unmapped_y, float& mapped_x, float& mapped_y) const;
IntPoint map(const IntPoint&) const;
FloatPoint map(const FloatPoint&) const;
template<typename T>
Point<T> map(const Point<T>&) const;
IntSize map(const IntSize&) const;
FloatSize map(const FloatSize&) const;
template<typename T>
Size<T> map(const Size<T>&) const;
IntRect map(const IntRect&) const;
FloatRect map(const FloatRect&) const;
template<typename T>
Rect<T> map(const Rect<T>&) const;
float a() const { return m_values[0]; }
float b() const { return m_values[1]; }