hyprland-plugins/borders-plus-plus/borderDeco.hpp
Vaxry 2ae696398a borders-plus-plus: Add more borders and controls
Adds up to 9 borders, adds an option to modify size of each, adds natural_rounding
2023-10-19 14:43:54 +01:00

31 lines
No EOL
848 B
C++

#pragma once
#define WLR_USE_UNSTABLE
#include <hyprland/src/render/decorations/IHyprWindowDecoration.hpp>
class CBordersPlusPlus : public IHyprWindowDecoration {
public:
CBordersPlusPlus(CWindow*);
virtual ~CBordersPlusPlus();
virtual SWindowDecorationExtents getWindowDecorationExtents();
virtual void draw(CMonitor*, float a, const Vector2D& offset);
virtual eDecorationType getDecorationType();
virtual void updateWindow(CWindow*);
virtual void damageEntire();
virtual SWindowDecorationExtents getWindowDecorationReservedArea();
private:
SWindowDecorationExtents m_seExtents;
CWindow* m_pWindow = nullptr;
Vector2D m_vLastWindowPos;
Vector2D m_vLastWindowSize;
};