summaryrefslogtreecommitdiff
path: root/src/desktop/view/View.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop/view/View.cpp')
-rw-r--r--src/desktop/view/View.cpp16
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;
+}