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();
|
|
|
|
|
2023-11-11 15:37:17 +01:00
|
|
|
virtual SDecorationPositioningInfo getPositioningInfo();
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2023-11-11 15:37:17 +01:00
|
|
|
virtual void onPositioningReply(const SDecorationPositioningReply& reply);
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2024-03-31 03:14:26 +02:00
|
|
|
virtual void draw(CMonitor*, float a);
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2023-11-11 15:37:17 +01:00
|
|
|
virtual eDecorationType getDecorationType();
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2023-11-11 15:37:17 +01:00
|
|
|
virtual void updateWindow(CWindow*);
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2023-11-11 15:37:17 +01:00
|
|
|
virtual void damageEntire();
|
|
|
|
|
|
|
|
virtual eDecorationLayer getDecorationLayer();
|
2023-11-04 14:10:52 +01:00
|
|
|
|
2023-11-12 14:01:23 +01:00
|
|
|
virtual uint64_t getDecorationFlags();
|
|
|
|
|
2023-12-28 16:38:16 +01:00
|
|
|
virtual std::string getDisplayName();
|
|
|
|
|
2022-12-16 18:17:31 +01:00
|
|
|
private:
|
|
|
|
SWindowDecorationExtents m_seExtents;
|
2023-11-11 16:18:04 +01:00
|
|
|
SWindowDecorationExtents m_seReportedExtents;
|
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;
|
2023-11-04 14:10:52 +01:00
|
|
|
|
2023-11-11 15:37:17 +01:00
|
|
|
CBox m_bLastWindowBox = {0};
|
|
|
|
CBox m_bLastWindowBoxWithDecos = {0};
|
2023-12-28 16:38:16 +01:00
|
|
|
};
|