Finish adding debugging command and ability to swap the orientation of a container

This commit is contained in:
Lucas Oskorep
2025-10-17 01:25:47 -04:00
parent c977c61714
commit 5a6c3ccd72
6 changed files with 141 additions and 9 deletions

View File

@@ -30,6 +30,14 @@ export default class WindowContainer {
this.tileWindows();
}
toggleOrientation(): void {
this._orientation = this._orientation === Orientation.HORIZONTAL
? Orientation.VERTICAL
: Orientation.HORIZONTAL;
Logger.info(`Container orientation toggled to ${this._orientation === Orientation.HORIZONTAL ? 'HORIZONTAL' : 'VERTICAL'}`);
this.tileWindows();
}
addWindow(winWrap: WindowWrapper): void {
// Add window to managed windows
this._tiledItems.push(winWrap);