2023-02-27 16:24:28 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define WLR_USE_UNSTABLE
|
|
|
|
|
2023-04-27 00:44:12 +02:00
|
|
|
#include <hyprland/src/render/decorations/IHyprWindowDecoration.hpp>
|
2023-02-27 16:24:28 +01:00
|
|
|
|
|
|
|
class CBordersPlusPlus : public IHyprWindowDecoration {
|
|
|
|
public:
|
|
|
|
CBordersPlusPlus(CWindow*);
|
|
|
|
virtual ~CBordersPlusPlus();
|
|
|
|
|
|
|
|
virtual SWindowDecorationExtents getWindowDecorationExtents();
|
|
|
|
|
2023-09-19 12:21:03 +02:00
|
|
|
virtual void draw(CMonitor*, float a, const Vector2D& offset);
|
2023-02-27 16:24:28 +01:00
|
|
|
|
2023-09-19 12:21:03 +02:00
|
|
|
virtual eDecorationType getDecorationType();
|
2023-02-27 16:24:28 +01:00
|
|
|
|
2023-09-19 12:21:03 +02:00
|
|
|
virtual void updateWindow(CWindow*);
|
2023-02-27 16:24:28 +01:00
|
|
|
|
2023-09-19 12:21:03 +02:00
|
|
|
virtual void damageEntire();
|
2023-02-27 16:24:28 +01:00
|
|
|
|
2023-10-19 15:43:54 +02:00
|
|
|
virtual SWindowDecorationExtents getWindowDecorationReservedArea();
|
|
|
|
|
2023-02-27 16:24:28 +01:00
|
|
|
private:
|
|
|
|
SWindowDecorationExtents m_seExtents;
|
|
|
|
|
2023-09-19 12:21:03 +02:00
|
|
|
CWindow* m_pWindow = nullptr;
|
2023-02-27 16:24:28 +01:00
|
|
|
|
2023-09-19 12:21:03 +02:00
|
|
|
Vector2D m_vLastWindowPos;
|
|
|
|
Vector2D m_vLastWindowSize;
|
2023-02-27 16:24:28 +01:00
|
|
|
};
|