mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:47:35 +00:00
LibGfx: Allow outside specilization of Rect::to_rounded
This commit is contained in:
parent
9e22f01eba
commit
17b4109ba9
1 changed files with 4 additions and 0 deletions
|
@ -976,6 +976,10 @@ public:
|
||||||
return Rect<U>(*this);
|
return Rect<U>(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For extern specialization, like CSSPixels
|
||||||
|
template<typename U>
|
||||||
|
[[nodiscard]] Rect<U> to_rounded() const = delete;
|
||||||
|
|
||||||
template<FloatingPoint U>
|
template<FloatingPoint U>
|
||||||
[[nodiscard]] ALWAYS_INLINE Rect<U> to_rounded() const
|
[[nodiscard]] ALWAYS_INLINE Rect<U> to_rounded() const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue