Files
omarchy-pkgs/pkgbuilds/omarchy-hyprland-titlebars/BarPassElement.hpp
T
Ryan HughesandClaude Opus 5.5 a57d0fdb7f Add omarchy-hyprland-titlebars
The native Hyprland plugin behind Omarchy's floating workspaces: themed
titlebars and edge snapping, built from a hyprbars fork. It is rebuilt
with every Hyprland change, since a plugin only loads into the exact
build it was compiled against.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 02:23:16 -04:00

27 lines
752 B
C++

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