mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
e0fe38ea25
This adds helpful speech bubbles to CatDog. CatDog just wants to help, that's all.
22 lines
434 B
C++
22 lines
434 B
C++
/*
|
|
* Copyright (c) 2021, Gunnar Beutner <gunnar@beutner.name>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibGUI/Widget.h>
|
|
|
|
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<void()> on_dismiss;
|
|
|
|
private:
|
|
SpeechBubble() = default;
|
|
};
|