/* * Copyright (c) 2021, Gunnar Beutner * Copyright (c) 2022, kleines Filmröllchen * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "CatDog.h" #include #include class SpeechBubble final : public GUI::Widget { C_OBJECT(SpeechBubble); public: virtual void paint_event(GUI::PaintEvent&) override; virtual void mousedown_event(GUI::MouseEvent&) override; Function on_dismiss; NonnullRefPtr m_cat_dog; private: SpeechBubble(NonnullRefPtr cat_dog) : m_cat_dog(move(cat_dog)) { } };