2023-02-27 13:32:38 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define WLR_USE_UNSTABLE
|
|
|
|
|
2023-05-17 15:59:52 +02:00
|
|
|
#include <hyprland/src/render/decorations/IHyprWindowDecoration.hpp>
|
2023-02-27 13:32:38 +01:00
|
|
|
|
|
|
|
class CCustomDecoration : public IHyprWindowDecoration {
|
|
|
|
public:
|
|
|
|
CCustomDecoration(CWindow*);
|
|
|
|
virtual ~CCustomDecoration();
|
|
|
|
|
|
|
|
virtual SWindowDecorationExtents getWindowDecorationExtents();
|
|
|
|
|
|
|
|
virtual void draw(CMonitor*, float a, const Vector2D& offset);
|
|
|
|
|
|
|
|
virtual eDecorationType getDecorationType();
|
|
|
|
|
|
|
|
virtual void updateWindow(CWindow*);
|
|
|
|
|
|
|
|
virtual void damageEntire();
|
|
|
|
|
|
|
|
private:
|
|
|
|
SWindowDecorationExtents m_seExtents;
|
|
|
|
|
|
|
|
CWindow* m_pWindow = nullptr;
|
|
|
|
|
|
|
|
Vector2D m_vLastWindowPos;
|
|
|
|
Vector2D m_vLastWindowSize;
|
|
|
|
};
|