summaryrefslogtreecommitdiff
path: root/src/desktop/view/SessionLock.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-12-08 15:04:40 +0000
committerGitHub <noreply@github.com>2025-12-08 15:04:40 +0000
commit920353370bba555010506a1c0b204675c60362fe (patch)
tree87ba1036ecad6294a9c86dfc828ed2a356c810bd /src/desktop/view/SessionLock.hpp
parent834f019bab5df85b912a7aab7054fc8306f7c52a (diff)
desktop: cleanup, unify desktop elements as views (#12563)
Diffstat (limited to 'src/desktop/view/SessionLock.hpp')
-rw-r--r--src/desktop/view/SessionLock.hpp40
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;
+ };
+}