mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2025-01-09 13:59:48 +01:00
26 lines
631 B
C++
26 lines
631 B
C++
|
#pragma once
|
||
|
#include <hyprland/src/render/pass/PassElement.hpp>
|
||
|
|
||
|
class CBordersPlusPlus;
|
||
|
|
||
|
class CBorderPPPassElement : public IPassElement {
|
||
|
public:
|
||
|
struct SBorderPPData {
|
||
|
CBordersPlusPlus* deco = nullptr;
|
||
|
float a = 1.F;
|
||
|
};
|
||
|
|
||
|
CBorderPPPassElement(const SBorderPPData& data_);
|
||
|
virtual ~CBorderPPPassElement() = default;
|
||
|
|
||
|
virtual void draw(const CRegion& damage);
|
||
|
virtual bool needsLiveBlur();
|
||
|
virtual bool needsPrecomputeBlur();
|
||
|
|
||
|
virtual const char* passName() {
|
||
|
return "CBorderPPPassElement";
|
||
|
}
|
||
|
|
||
|
private:
|
||
|
SBorderPPData data;
|
||
|
};
|