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:
parent
7a1c328417
commit
335916d8db
Notes:
sideshowbarker
2024-07-19 04:34:50 +09:00
Author: https://github.com/mattco98
Commit: 335916d8db
Pull-request: https://github.com/SerenityOS/serenity/pull/2888
Reviewed-by: https://github.com/awesomekling
33 changed files with 404 additions and 835 deletions
|
@ -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]; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue