1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:27:35 +00:00

Add basic GUI API for creating labels and buttons.

This commit is contained in:
Andreas Kling 2019-01-13 05:03:17 +01:00
parent 17c7bf01a5
commit b2d86b7597
7 changed files with 99 additions and 8 deletions

View file

@ -11,6 +11,12 @@ public:
WeakPtr() { }
WeakPtr(std::nullptr_t) { }
template<typename U>
WeakPtr(WeakPtr<U>&& other)
: m_link(reinterpret_cast<WeakLink<T>*>(other.leakLink()))
{
}
template<typename U>
WeakPtr& operator=(WeakPtr<U>&& other)
{