summaryrefslogtreecommitdiff
path: root/src/Window.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-17 20:22:29 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-17 20:22:29 +0100
commitbc937e3e711e53774e2c9fa26d13125427f6378b (patch)
treebf2c3bf70de21158d5d965ad186699a753290f8a /src/Window.hpp
parentab7d727532cb409c980bb849507984d634611235 (diff)
Renderer
Diffstat (limited to 'src/Window.hpp')
-rw-r--r--src/Window.hpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/Window.hpp b/src/Window.hpp
new file mode 100644
index 00000000..b6a70af4
--- /dev/null
+++ b/src/Window.hpp
@@ -0,0 +1,40 @@
+#pragma once
+
+#include "defines.hpp"
+#include "events/Events.hpp"
+
+
+class CWindow {
+public:
+
+ DYNLISTENER(commitWindow);
+ DYNLISTENER(mapWindow);
+ DYNLISTENER(unmapWindow);
+ DYNLISTENER(destroyWindow);
+ DYNLISTENER(setTitleWindow);
+ DYNLISTENER(fullscreenWindow);
+
+ union {
+ wlr_xdg_surface* xdg;
+ wlr_xwayland_surface* xwayland;
+ } m_uSurface;
+
+ // TODO: XWayland
+
+ // this is the position and size of the "bounding box"
+ Vector2D m_vPosition = Vector2D(0,0);
+ Vector2D m_vSize = Vector2D(0,0);
+
+ // this is the position and size of the goal placement
+ Vector2D m_vEffectivePosition = Vector2D(0,0);
+ Vector2D m_vEffectiveSize = Vector2D(0,0);
+
+ // this is the real position and size used to draw the thing
+ Vector2D m_vRealPosition = Vector2D(0,0);
+ Vector2D m_vRealSize = Vector2D(0,0);
+
+ uint64_t m_iTags = 0;
+ bool m_bIsFloating = false;
+ bool m_bIsFullscreen = false;
+ uint64_t m_iMonitorID = -1;
+}; \ No newline at end of file