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/View.cpp | |
| parent | 834f019bab5df85b912a7aab7054fc8306f7c52a (diff) | |
desktop: cleanup, unify desktop elements as views (#12563)
Diffstat (limited to 'src/desktop/view/View.cpp')
| -rw-r--r-- | src/desktop/view/View.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/desktop/view/View.cpp b/src/desktop/view/View.cpp new file mode 100644 index 00000000..e7c6ce3a --- /dev/null +++ b/src/desktop/view/View.cpp @@ -0,0 +1,16 @@ +#include "View.hpp" + +using namespace Desktop; +using namespace Desktop::View; + +SP<Desktop::View::CWLSurface> IView::wlSurface() const { + return m_wlSurface; +} + +IView::IView(SP<Desktop::View::CWLSurface> pWlSurface) : m_wlSurface(pWlSurface) { + ; +} + +SP<CWLSurfaceResource> IView::resource() const { + return m_wlSurface ? m_wlSurface->resource() : nullptr; +} |
