summaryrefslogtreecommitdiff
path: root/src/render/decorations/IHyprWindowDecoration.hpp
blob: 6c4a9b5090c2f0d6341589d6adb0e2e6a3c6fec5 (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
28
29
30
31
32
#pragma once

#include "../../defines.hpp"

enum eDecorationType {
    DECORATION_NONE = -1,
    DECORATION_GROUPBAR,
    DECORATION_SHADOW
};

struct SWindowDecorationExtents {
    Vector2D topLeft;
    Vector2D bottomRight;
};

class CWindow;
class CMonitor;

interface IHyprWindowDecoration {
public:
    virtual ~IHyprWindowDecoration() = 0;

    virtual SWindowDecorationExtents getWindowDecorationExtents() = 0;

    virtual void draw(CMonitor*, float a) = 0;

    virtual eDecorationType getDecorationType() = 0;

    virtual void updateWindow(CWindow*) = 0;

    virtual void damageEntire() = 0;
};