Added IHyprWindowDecoration and Group Bars

This commit is contained in:
vaxerski
2022-05-28 20:46:20 +02:00
parent b1b24cb21a
commit bdf1c16195
11 changed files with 248 additions and 5 deletions

View File

@@ -0,0 +1,31 @@
#pragma once
#include "../../defines.hpp"
enum eDecorationType {
DECORATION_NONE = -1,
DECORATION_GROUPBAR
};
struct SWindowDecorationExtents {
Vector2D topLeft;
Vector2D bottomRight;
};
class CWindow;
struct SMonitor;
class IHyprWindowDecoration {
public:
virtual ~IHyprWindowDecoration() = 0;
virtual SWindowDecorationExtents getWindowDecorationExtents() = 0;
virtual void draw(SMonitor*) = 0;
virtual eDecorationType getDecorationType() = 0;
virtual void updateWindow(CWindow*) = 0;
virtual void damageEntire() = 0;
};