diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2025-12-08 15:04:40 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-08 15:04:40 +0000 |
| commit | 920353370bba555010506a1c0b204675c60362fe (patch) | |
| tree | 87ba1036ecad6294a9c86dfc828ed2a356c810bd /src/desktop/view/SessionLock.hpp | |
| parent | 834f019bab5df85b912a7aab7054fc8306f7c52a (diff) | |
desktop: cleanup, unify desktop elements as views (#12563)
Diffstat (limited to 'src/desktop/view/SessionLock.hpp')
| -rw-r--r-- | src/desktop/view/SessionLock.hpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/desktop/view/SessionLock.hpp b/src/desktop/view/SessionLock.hpp new file mode 100644 index 00000000..c6141fb2 --- /dev/null +++ b/src/desktop/view/SessionLock.hpp @@ -0,0 +1,40 @@ +#pragma once + +#include "../../defines.hpp" +#include <vector> +#include "WLSurface.hpp" +#include "View.hpp" + +class CSessionLockSurface; + +namespace Desktop::View { + class CSessionLock : public IView { + public: + static SP<CSessionLock> create(SP<CSessionLockSurface> resource); + + static SP<CSessionLock> fromView(SP<IView>); + + virtual ~CSessionLock(); + + virtual eViewType type() const; + virtual bool visible() const; + virtual std::optional<CBox> logicalBox() const; + virtual bool desktopComponent() const; + virtual std::optional<CBox> surfaceLogicalBox() const; + + PHLMONITOR monitor() const; + + WP<CSessionLock> m_self; + + private: + CSessionLock(); + + void init(); + + struct { + CHyprSignalListener destroy; + } m_listeners; + + WP<CSessionLockSurface> m_surface; + }; +} |
