mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-08 12:35:59 +01:00
39 lines
No EOL
1.1 KiB
C++
39 lines
No EOL
1.1 KiB
C++
#pragma once
|
|
|
|
#define WLR_USE_UNSTABLE
|
|
|
|
#include <hyprland/src/render/decorations/IHyprWindowDecoration.hpp>
|
|
|
|
class CBordersPlusPlus : public IHyprWindowDecoration {
|
|
public:
|
|
CBordersPlusPlus(CWindow*);
|
|
virtual ~CBordersPlusPlus();
|
|
|
|
virtual SDecorationPositioningInfo getPositioningInfo();
|
|
|
|
virtual void onPositioningReply(const SDecorationPositioningReply& reply);
|
|
|
|
virtual void draw(CMonitor*, float a, const Vector2D& offset);
|
|
|
|
virtual eDecorationType getDecorationType();
|
|
|
|
virtual void updateWindow(CWindow*);
|
|
|
|
virtual void damageEntire();
|
|
|
|
virtual uint64_t getDecorationFlags();
|
|
|
|
virtual eDecorationLayer getDecorationLayer();
|
|
|
|
virtual std::string getDisplayName();
|
|
|
|
private:
|
|
SWindowDecorationExtents m_seExtents;
|
|
|
|
CWindow* m_pWindow = nullptr;
|
|
|
|
Vector2D m_vLastWindowPos;
|
|
Vector2D m_vLastWindowSize;
|
|
|
|
double m_fLastThickness = 0;
|
|
}; |