mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2025-01-08 05:19:48 +01:00
27 lines
No EOL
651 B
C++
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;
|
|
}; |