summaryrefslogtreecommitdiff
path: root/src/layout/target/WindowGroupTarget.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-02-21 21:30:39 +0000
committerGitHub <noreply@github.com>2026-02-21 21:30:39 +0000
commit723870337f299d4c80aa0048144f3a1ca1c885bd (patch)
treeca3279ae5dbc841f676c64d2f58f895de13cd3bf /src/layout/target/WindowGroupTarget.hpp
parent51f8849e541f0a8150ac3a43fa928c1e299daf18 (diff)
layout: rethonk layouts from the ground up (#12890)
Rewrites layouts to be much smaller, and deal with much less annoying BS. Improves the overall architecture, unifies handling of pseudotiling, and various other improvements.
Diffstat (limited to 'src/layout/target/WindowGroupTarget.hpp')
-rw-r--r--src/layout/target/WindowGroupTarget.hpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/layout/target/WindowGroupTarget.hpp b/src/layout/target/WindowGroupTarget.hpp
new file mode 100644
index 00000000..3d4b85a0
--- /dev/null
+++ b/src/layout/target/WindowGroupTarget.hpp
@@ -0,0 +1,39 @@
+#pragma once
+
+#include "Target.hpp"
+
+#include "../../desktop/view/Window.hpp"
+#include "../../desktop/view/Group.hpp"
+
+namespace Layout {
+
+ class CWindowGroupTarget : public ITarget {
+ public:
+ static SP<CWindowGroupTarget> create(SP<Desktop::View::CGroup> g);
+ virtual ~CWindowGroupTarget() = default;
+
+ virtual eTargetType type();
+
+ virtual void setPositionGlobal(const CBox& box);
+ virtual void assignToSpace(const SP<CSpace>& space, std::optional<Vector2D> focalPoint = std::nullopt);
+ virtual PHLWINDOW window() const;
+
+ virtual bool floating();
+ virtual void setFloating(bool x);
+ virtual std::expected<SGeometryRequested, eGeometryFailure> desiredGeometry();
+ virtual eFullscreenMode fullscreenMode();
+ virtual void setFullscreenMode(eFullscreenMode mode);
+ virtual std::optional<Vector2D> minSize();
+ virtual std::optional<Vector2D> maxSize();
+ virtual void damageEntire();
+ virtual void warpPositionSize();
+ virtual void onUpdateSpace();
+
+ private:
+ CWindowGroupTarget(SP<Desktop::View::CGroup> g);
+
+ void updatePos();
+
+ WP<Desktop::View::CGroup> m_group;
+ };
+}; \ No newline at end of file