26 lines
561 B
C++
26 lines
561 B
C++
#pragma once
|
|
|
|
#include <gtkmm/box.h>
|
|
#include <gtkmm/label.h>
|
|
#include <sigc++/connection.h>
|
|
|
|
#include "services/hyprland.hpp"
|
|
|
|
class WorkspaceIndicator : public Gtk::Box
|
|
{
|
|
public:
|
|
WorkspaceIndicator(HyprlandService &service, int monitorId);
|
|
~WorkspaceIndicator() override;
|
|
|
|
private:
|
|
HyprlandService &m_service;
|
|
int m_monitorId;
|
|
sigc::connection m_workspaceConnection;
|
|
sigc::connection m_monitorConnection;
|
|
|
|
void rebuild();
|
|
void on_workspace_update(int monitorId);
|
|
void on_monitor_update();
|
|
void clear_children();
|
|
};
|