Hyprland/src/render/decorations/IHyprWindowDecoration.hpp

32 lines
603 B
C++
Raw Normal View History

#pragma once
#include "../../defines.hpp"
enum eDecorationType {
DECORATION_NONE = -1,
2022-06-25 20:28:40 +02:00
DECORATION_GROUPBAR,
DECORATION_SHADOW
};
struct SWindowDecorationExtents {
Vector2D topLeft;
Vector2D bottomRight;
};
class CWindow;
struct SMonitor;
class IHyprWindowDecoration {
public:
virtual ~IHyprWindowDecoration() = 0;
virtual SWindowDecorationExtents getWindowDecorationExtents() = 0;
2022-06-25 20:31:54 +02:00
virtual void draw(SMonitor*, float a) = 0;
virtual eDecorationType getDecorationType() = 0;
virtual void updateWindow(CWindow*) = 0;
virtual void damageEntire() = 0;
};