diff options
| author | srdusr <[email protected]> | 2025-08-24 00:44:00 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2025-08-24 00:44:00 +0200 |
| commit | 72e787a706d372c9a92e424e9b13ece929cb2bce (patch) | |
| tree | 237ea5559a63474c2539761b6ce1015fc31dc1da /legacy-cpp/src/layouts/layout.h | |
| parent | 2a3fdcf2faf6cadb1fa49ed7c4b2963b554b0724 (diff) | |
| download | srdwm-72e787a706d372c9a92e424e9b13ece929cb2bce.tar.gz srdwm-72e787a706d372c9a92e424e9b13ece929cb2bce.zip | |
Remove the stale legacy-cpp implementation
The Rust rewrite (crates/) has fully superseded it - keeping both around
was actively misleading (main looked like it still shipped a C++ build),
and nothing here still depends on it.
Diffstat (limited to 'legacy-cpp/src/layouts/layout.h')
| -rw-r--r-- | legacy-cpp/src/layouts/layout.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/legacy-cpp/src/layouts/layout.h b/legacy-cpp/src/layouts/layout.h deleted file mode 100644 index 00c002f..0000000 --- a/legacy-cpp/src/layouts/layout.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef SRDWM_LAYOUT_H -#define SRDWM_LAYOUT_H - -#include <vector> -#include "../core/window.h" - -struct Monitor { - int id; - int x; - int y; - int width; - int height; - std::string name; - int refresh_rate; - - Monitor() : id(0), x(0), y(0), width(0), height(0), refresh_rate(60) {} - Monitor(int id, int x, int y, int width, int height, const std::string& name = "", int refresh = 60) - : id(id), x(x), y(y), width(width), height(height), name(name), refresh_rate(refresh) {} -}; - -class Layout { -public: - virtual ~Layout() = default; - - // Pure virtual method to arrange windows on a given monitor - virtual void arrange_windows(const std::vector<SRDWindow*>& windows, const Monitor& monitor) = 0; - - // You might add other common layout methods here later, e.g.: - // virtual void add_window(SRDWindow* window) = 0; - // virtual void remove_window(SRDWindow* window) = 0; -}; - -#endif // SRDWM_LAYOUT_H |