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

CatDog: Help the user debug their programs

This adds helpful speech bubbles to CatDog. CatDog just wants to
help, that's all.
This commit is contained in:
Gunnar Beutner 2021-05-09 12:13:51 +02:00 committed by Andreas Kling
parent da5923bc54
commit e0fe38ea25
6 changed files with 132 additions and 0 deletions

View file

@ -0,0 +1,22 @@
/*
* 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;
};