2022-06-25 20:28:40 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "IHyprWindowDecoration.hpp"
|
|
|
|
|
|
|
|
|
|
class CHyprDropShadowDecoration : public IHyprWindowDecoration {
|
2022-12-16 17:17:31 +00:00
|
|
|
public:
|
2024-04-27 12:43:12 +01:00
|
|
|
CHyprDropShadowDecoration(PHLWINDOW);
|
2022-06-25 20:28:40 +02:00
|
|
|
virtual ~CHyprDropShadowDecoration();
|
|
|
|
|
|
2023-11-11 14:37:17 +00:00
|
|
|
virtual SDecorationPositioningInfo getPositioningInfo();
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2023-11-11 14:37:17 +00:00
|
|
|
virtual void onPositioningReply(const SDecorationPositioningReply& reply);
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2024-10-31 00:20:32 +01:00
|
|
|
virtual void draw(PHLMONITOR, float const& a);
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2023-11-11 14:37:17 +00:00
|
|
|
virtual eDecorationType getDecorationType();
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2024-04-27 12:43:12 +01:00
|
|
|
virtual void updateWindow(PHLWINDOW);
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2023-11-11 14:37:17 +00:00
|
|
|
virtual void damageEntire();
|
|
|
|
|
|
|
|
|
|
virtual eDecorationLayer getDecorationLayer();
|
2023-11-04 13:10:52 +00:00
|
|
|
|
2023-11-12 13:01:23 +00:00
|
|
|
virtual uint64_t getDecorationFlags();
|
|
|
|
|
|
2023-12-28 15:38:16 +00:00
|
|
|
virtual std::string getDisplayName();
|
|
|
|
|
|
2024-12-22 17:12:09 +01:00
|
|
|
void render(PHLMONITOR, float const& a);
|
|
|
|
|
|
2022-12-16 17:17:31 +00:00
|
|
|
private:
|
2024-06-19 16:20:06 +02:00
|
|
|
SBoxExtents m_seExtents;
|
|
|
|
|
SBoxExtents m_seReportedExtents;
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2024-06-19 16:20:06 +02:00
|
|
|
PHLWINDOWREF m_pWindow;
|
2022-06-25 20:28:40 +02:00
|
|
|
|
2024-06-19 16:20:06 +02:00
|
|
|
Vector2D m_vLastWindowPos;
|
|
|
|
|
Vector2D m_vLastWindowSize;
|
2023-11-04 13:10:52 +00:00
|
|
|
|
2025-01-26 15:05:34 +00:00
|
|
|
void drawShadowInternal(const CBox& box, int round, float roundingPower, int range, CHyprColor color, float a);
|
2024-11-05 15:44:40 +00:00
|
|
|
|
2024-06-19 16:20:06 +02:00
|
|
|
CBox m_bLastWindowBox = {0};
|
|
|
|
|
CBox m_bLastWindowBoxWithDecos = {0};
|
2023-12-28 15:38:16 +00:00
|
|
|
};
|