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:
|
2024-04-27 14:03:46 +02:00
|
|
|
CBordersPlusPlus(PHLWINDOW);
|
2023-02-27 16:24:28 +01:00
|
|
|
virtual ~CBordersPlusPlus();
|
|
|
|
|
2023-11-11 15:39:46 +01:00
|
|
|
virtual SDecorationPositioningInfo getPositioningInfo();
|
2023-02-27 16:24:28 +01:00
|
|
|
|
2023-11-11 15:39:46 +01:00
|
|
|
virtual void onPositioningReply(const SDecorationPositioningReply& reply);
|
2023-02-27 16:24:28 +01:00
|
|
|
|
2024-10-21 20:17:02 +02:00
|
|
|
virtual void draw(PHLMONITOR, float a);
|
2023-02-27 16:24:28 +01:00
|
|
|
|
2023-11-11 15:39:46 +01:00
|
|
|
virtual eDecorationType getDecorationType();
|
2023-02-27 16:24:28 +01:00
|
|
|
|
2024-04-27 14:03:46 +02:00
|
|
|
virtual void updateWindow(PHLWINDOW);
|
2023-02-27 16:24:28 +01:00
|
|
|
|
2023-11-11 15:39:46 +01:00
|
|
|
virtual void damageEntire();
|
|
|
|
|
|
|
|
virtual uint64_t getDecorationFlags();
|
|
|
|
|
|
|
|
virtual eDecorationLayer getDecorationLayer();
|
2023-10-19 15:43:54 +02:00
|
|
|
|
2023-12-29 10:31:24 +01:00
|
|
|
virtual std::string getDisplayName();
|
|
|
|
|
2023-02-27 16:24:28 +01:00
|
|
|
private:
|
2024-06-23 21:21:21 +02:00
|
|
|
SBoxExtents m_seExtents;
|
2023-02-27 16:24:28 +01:00
|
|
|
|
2024-06-23 21:21:21 +02:00
|
|
|
PHLWINDOWREF m_pWindow;
|
2024-04-27 14:03:46 +02:00
|
|
|
|
2024-06-23 21:21:21 +02:00
|
|
|
CBox m_bLastRelativeBox;
|
2024-09-29 17:59:56 +02:00
|
|
|
CBox m_bAssignedGeometry;
|
2023-02-27 16:24:28 +01:00
|
|
|
|
2024-06-23 21:21:21 +02:00
|
|
|
Vector2D m_vLastWindowPos;
|
|
|
|
Vector2D m_vLastWindowSize;
|
2023-11-11 15:39:46 +01:00
|
|
|
|
2024-06-23 21:21:21 +02:00
|
|
|
double m_fLastThickness = 0;
|
|
|
|
};
|