desktop: cleanup, unify desktop elements as views (#12563)
This commit is contained in:
parent
834f019bab
commit
920353370b
105 changed files with 2636 additions and 2337 deletions
40
src/desktop/view/SessionLock.hpp
Normal file
40
src/desktop/view/SessionLock.hpp
Normal file
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue