File: BorderppPassElement.hpp

package info (click to toggle)
hyprland-plugins 0.53.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 720 kB
  • sloc: cpp: 4,176; makefile: 99
file content (26 lines) | stat: -rw-r--r-- 631 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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;
};