hyprland-plugins/hyprbars/BarPassElement.hpp
2024-12-22 16:55:36 +00:00

27 lines
No EOL
651 B
C++

#pragma once
#include <hyprland/src/render/pass/PassElement.hpp>
class CHyprBar;
class CBarPassElement : public IPassElement {
public:
struct SBarData {
CHyprBar* deco = nullptr;
float a = 1.F;
};
CBarPassElement(const SBarData& data_);
virtual ~CBarPassElement() = default;
virtual void draw(const CRegion& damage);
virtual bool needsLiveBlur();
virtual bool needsPrecomputeBlur();
virtual std::optional<CBox> boundingBox();
virtual const char* passName() {
return "CBarPassElement";
}
private:
SBarData data;
};