43 lines
1.3 KiB
C++
43 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include "IHyprWindowDecoration.hpp"
|
|
|
|
class CHyprDropShadowDecoration : public IHyprWindowDecoration {
|
|
public:
|
|
CHyprDropShadowDecoration(PHLWINDOW);
|
|
virtual ~CHyprDropShadowDecoration();
|
|
|
|
virtual SDecorationPositioningInfo getPositioningInfo();
|
|
|
|
virtual void onPositioningReply(const SDecorationPositioningReply& reply);
|
|
|
|
virtual void draw(PHLMONITOR, float const& a);
|
|
|
|
virtual eDecorationType getDecorationType();
|
|
|
|
virtual void updateWindow(PHLWINDOW);
|
|
|
|
virtual void damageEntire();
|
|
|
|
virtual eDecorationLayer getDecorationLayer();
|
|
|
|
virtual uint64_t getDecorationFlags();
|
|
|
|
virtual std::string getDisplayName();
|
|
|
|
void render(PHLMONITOR, float const& a);
|
|
|
|
private:
|
|
SBoxExtents m_seExtents;
|
|
SBoxExtents m_seReportedExtents;
|
|
|
|
PHLWINDOWREF m_pWindow;
|
|
|
|
Vector2D m_vLastWindowPos;
|
|
Vector2D m_vLastWindowSize;
|
|
|
|
void drawShadowInternal(const CBox& box, int round, float roundingPower, int range, CHyprColor color, float a);
|
|
|
|
CBox m_bLastWindowBox = {0};
|
|
CBox m_bLastWindowBoxWithDecos = {0};
|
|
};
|