blob: cc2ab900d3d7741119197f65db7d564376f7662d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include "WindowIdentifier.h"
#include <LibGUI/Button.h>
class TaskbarButton final : public GUI::Button {
C_OBJECT(TaskbarButton)
public:
virtual ~TaskbarButton() override;
void update_taskbar_rect();
void clear_taskbar_rect();
private:
explicit TaskbarButton(const WindowIdentifier&);
virtual void context_menu_event(GUI::ContextMenuEvent&) override;
virtual void resize_event(GUI::ResizeEvent&) override;
virtual void paint_event(GUI::PaintEvent&) override;
WindowIdentifier m_identifier;
};
|