2022-06-25 20:28:40 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "IHyprWindowDecoration.hpp"
|
|
|
|
|
|
|
|
class CHyprDropShadowDecoration : public IHyprWindowDecoration {
|
2022-12-16 18:17:31 +01:00
|
|
|
public:
|
2022-06-25 20:28:40 +02:00
|
|
|
CHyprDropShadowDecoration(CWindow*);
|
|
|
|
virtual ~CHyprDropShadowDecoration();
|
|
|
|
|
|
|
|
virtual SWindowDecorationExtents getWindowDecorationExtents();
|
|
|
|
|
2022-12-16 18:17:31 +01:00
|
|
|
virtual void draw(CMonitor*, float a, const Vector2D& offset);
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2022-12-16 18:17:31 +01:00
|
|
|
virtual eDecorationType getDecorationType();
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2022-12-16 18:17:31 +01:00
|
|
|
virtual void updateWindow(CWindow*);
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2022-12-16 18:17:31 +01:00
|
|
|
virtual void damageEntire();
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2022-12-16 18:17:31 +01:00
|
|
|
private:
|
|
|
|
SWindowDecorationExtents m_seExtents;
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2022-12-16 18:17:31 +01:00
|
|
|
CWindow* m_pWindow = nullptr;
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2022-12-16 18:17:31 +01:00
|
|
|
Vector2D m_vLastWindowPos;
|
|
|
|
Vector2D m_vLastWindowSize;
|
2022-06-25 20:28:40 +02:00
|
|
|
};
|