mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-26 12:05:58 +01:00
41 lines
1 KiB
C++
41 lines
1 KiB
C++
#pragma once
|
|
|
|
#define WLR_USE_UNSTABLE
|
|
|
|
#include <hyprland/src/render/decorations/IHyprWindowDecoration.hpp>
|
|
|
|
class CBordersPlusPlus : public IHyprWindowDecoration {
|
|
public:
|
|
CBordersPlusPlus(PHLWINDOW);
|
|
virtual ~CBordersPlusPlus();
|
|
|
|
virtual SDecorationPositioningInfo getPositioningInfo();
|
|
|
|
virtual void onPositioningReply(const SDecorationPositioningReply& reply);
|
|
|
|
virtual void draw(CMonitor*, float a);
|
|
|
|
virtual eDecorationType getDecorationType();
|
|
|
|
virtual void updateWindow(PHLWINDOW);
|
|
|
|
virtual void damageEntire();
|
|
|
|
virtual uint64_t getDecorationFlags();
|
|
|
|
virtual eDecorationLayer getDecorationLayer();
|
|
|
|
virtual std::string getDisplayName();
|
|
|
|
private:
|
|
SBoxExtents m_seExtents;
|
|
|
|
PHLWINDOWREF m_pWindow;
|
|
|
|
CBox m_bLastRelativeBox;
|
|
|
|
Vector2D m_vLastWindowPos;
|
|
Vector2D m_vLastWindowSize;
|
|
|
|
double m_fLastThickness = 0;
|
|
};
|