summaryrefslogtreecommitdiff
path: root/src/render/decorations/CHyprDropShadowDecoration.hpp
blob: ee8c09a5f9efa47f9a35a4521e3bcce06006f45b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include "IHyprWindowDecoration.hpp"

class CHyprDropShadowDecoration : public IHyprWindowDecoration {
public:
    CHyprDropShadowDecoration(CWindow*);
    virtual ~CHyprDropShadowDecoration();

    virtual SWindowDecorationExtents getWindowDecorationExtents();

    virtual void draw(CMonitor*, float a, const Vector2D& offset);

    virtual eDecorationType getDecorationType();

    virtual void updateWindow(CWindow*);

    virtual void damageEntire();

private:
    SWindowDecorationExtents    m_seExtents;

    CWindow*                    m_pWindow = nullptr;

    Vector2D                    m_vLastWindowPos;
    Vector2D                    m_vLastWindowSize;
};