hyprland-plugins/hyprbars/BarPassElement.hpp

26 lines
572 B
C++
Raw Normal View History

2024-12-22 17:33:07 +01:00
#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 const char* passName() {
return "CBarPassElement";
}
private:
SBarData data;
};