2020-01-18 05:38:21 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 05:38:21 -03:00
|
|
|
*/
|
|
|
|
|
|
2019-04-23 18:14:14 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "WindowIdentifier.h"
|
2020-02-06 16:33:02 -03:00
|
|
|
#include <LibGUI/Button.h>
|
2019-04-23 18:14:14 -03:00
|
|
|
|
2020-02-02 11:07:41 -03:00
|
|
|
class TaskbarButton final : public GUI::Button {
|
2019-09-21 15:04:00 -03:00
|
|
|
C_OBJECT(TaskbarButton)
|
2019-04-23 18:14:14 -03:00
|
|
|
public:
|
|
|
|
|
virtual ~TaskbarButton() override;
|
|
|
|
|
|
2020-08-18 16:35:34 -03:00
|
|
|
void update_taskbar_rect();
|
|
|
|
|
void clear_taskbar_rect();
|
|
|
|
|
|
2019-04-23 18:14:14 -03:00
|
|
|
private:
|
2020-02-23 06:57:42 -03:00
|
|
|
explicit TaskbarButton(const WindowIdentifier&);
|
|
|
|
|
|
2020-02-02 11:07:41 -03:00
|
|
|
virtual void context_menu_event(GUI::ContextMenuEvent&) override;
|
|
|
|
|
virtual void resize_event(GUI::ResizeEvent&) override;
|
2020-05-30 17:10:22 -03:00
|
|
|
virtual void paint_event(GUI::PaintEvent&) override;
|
2019-04-23 18:14:14 -03:00
|
|
|
|
|
|
|
|
WindowIdentifier m_identifier;
|
|
|
|
|
};
|