mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:07:43 +00:00
30 lines
709 B
C++
30 lines
709 B
C++
#pragma once
|
|
|
|
#include <LibCore/CObject.h>
|
|
#include <WindowServer/WSCPUMonitor.h>
|
|
#include <WindowServer/WSWindow.h>
|
|
|
|
class WSMenuBarKeeper final : public CObject {
|
|
public:
|
|
WSMenuBarKeeper();
|
|
virtual ~WSMenuBarKeeper() override;
|
|
|
|
void setup();
|
|
void refresh();
|
|
|
|
virtual void event(CEvent&) override;
|
|
virtual const char* class_name() const override { return "WSMenuBarKeeper"; }
|
|
|
|
private:
|
|
WSWindow& window() { return *m_window; }
|
|
const WSWindow& window() const { return *m_window; }
|
|
|
|
void handle_menu_mouse_event(WSMenu&, const WSMouseEvent&);
|
|
|
|
void draw();
|
|
void tick_clock();
|
|
|
|
OwnPtr<WSWindow> m_window;
|
|
WSCPUMonitor m_cpu_monitor;
|
|
String m_username;
|
|
};
|