Hyprland/src/render/decorations/CHyprDropShadowDecoration.hpp

37 lines
1.1 KiB
C++
Raw Normal View History

2022-06-25 20:28:40 +02:00
#pragma once
#include "IHyprWindowDecoration.hpp"
class CHyprDropShadowDecoration : public IHyprWindowDecoration {
public:
2022-06-25 20:28:40 +02:00
CHyprDropShadowDecoration(CWindow*);
virtual ~CHyprDropShadowDecoration();
virtual SDecorationPositioningInfo getPositioningInfo();
2022-06-25 20:28:40 +02:00
virtual void onPositioningReply(const SDecorationPositioningReply& reply);
2022-06-25 20:28:40 +02:00
virtual void draw(CMonitor*, float a, const Vector2D& offset);
2022-06-25 20:28:40 +02:00
virtual eDecorationType getDecorationType();
2022-06-25 20:28:40 +02:00
virtual void updateWindow(CWindow*);
2022-06-25 20:28:40 +02:00
virtual void damageEntire();
virtual eDecorationLayer getDecorationLayer();
virtual uint64_t getDecorationFlags();
private:
SWindowDecorationExtents m_seExtents;
SWindowDecorationExtents m_seReportedExtents;
2022-06-25 20:28:40 +02:00
CWindow* m_pWindow = nullptr;
2022-06-25 20:28:40 +02:00
Vector2D m_vLastWindowPos;
Vector2D m_vLastWindowSize;
CBox m_bLastWindowBox = {0};
CBox m_bLastWindowBoxWithDecos = {0};
2022-06-25 20:28:40 +02:00
};