1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 02:45:08 +00:00
serenity/Applications/Taskbar/TaskbarButton.h
Andreas Kling 956bd23aae WindowServer+TaskBar: Add a taskbar window button popup menu.
This patch only hooks up the minimize and unminimize actions.
2019-04-23 23:14:14 +02:00

18 lines
394 B
C++

#pragma once
#include <LibGUI/GButton.h>
#include "WindowIdentifier.h"
class TaskbarButton final : public GButton {
public:
TaskbarButton(const WindowIdentifier&, GWidget* parent);
virtual ~TaskbarButton() override;
private:
virtual void context_menu_event(GContextMenuEvent&) override;
GMenu& ensure_menu();
WindowIdentifier m_identifier;
OwnPtr<GMenu> m_menu;
};