2022-05-28 20:46:20 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../../defines.hpp"
|
|
|
|
|
|
|
|
enum eDecorationType {
|
|
|
|
DECORATION_NONE = -1,
|
2022-06-25 20:28:40 +02:00
|
|
|
DECORATION_GROUPBAR,
|
|
|
|
DECORATION_SHADOW
|
2022-05-28 20:46:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct SWindowDecorationExtents {
|
|
|
|
Vector2D topLeft;
|
|
|
|
Vector2D bottomRight;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CWindow;
|
2022-07-27 12:36:56 +02:00
|
|
|
class CMonitor;
|
2022-05-28 20:46:20 +02:00
|
|
|
|
2022-06-30 12:09:05 +02:00
|
|
|
interface IHyprWindowDecoration {
|
2022-05-28 20:46:20 +02:00
|
|
|
public:
|
|
|
|
virtual ~IHyprWindowDecoration() = 0;
|
|
|
|
|
|
|
|
virtual SWindowDecorationExtents getWindowDecorationExtents() = 0;
|
|
|
|
|
2022-10-07 12:34:54 +01:00
|
|
|
virtual void draw(CMonitor*, float a, const Vector2D& offset = Vector2D()) = 0;
|
2022-05-28 20:46:20 +02:00
|
|
|
|
|
|
|
virtual eDecorationType getDecorationType() = 0;
|
|
|
|
|
|
|
|
virtual void updateWindow(CWindow*) = 0;
|
|
|
|
|
|
|
|
virtual void damageEntire() = 0;
|
|
|
|
};
|