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:
parent
da5923bc54
commit
e0fe38ea25
6 changed files with 132 additions and 0 deletions
22
Userland/Demos/CatDog/SpeechBubble.h
Normal file
22
Userland/Demos/CatDog/SpeechBubble.h
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue