summaryrefslogtreecommitdiff
path: root/lib/sway/node.vala
diff options
context:
space:
mode:
authornoname <[email protected]>2025-03-07 17:46:09 +1100
committernoname <[email protected]>2025-03-07 17:46:09 +1100
commit3bee9424f314814e38149a2f98c1ff010797be9e (patch)
treedf800e8ca2b65f57bfed8313d0e044a440fc7c3f /lib/sway/node.vala
parentf40a5c5aa8a5242190464c30521e9aca8e8dc2f0 (diff)
move stuffs to structs.vala
Diffstat (limited to 'lib/sway/node.vala')
-rw-r--r--lib/sway/node.vala26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/sway/node.vala b/lib/sway/node.vala
index 69cc0c1..4f6990b 100644
--- a/lib/sway/node.vala
+++ b/lib/sway/node.vala
@@ -1,30 +1,4 @@
namespace AstalSway {
-public enum NodeType {
- ROOT,
- WORKSPACE,
- CONTAINER,
- WINDOW,
- OUTPUT,
- SCRATCHPAD
-}
-
-public struct Rectangle {
- public static Rectangle from_json(Json.Object obj) {
- return Rectangle() {
- x = (int)obj.get_int_member("x"),
- y = (int)obj.get_int_member("y"),
- width = (int)obj.get_int_member("width"),
- height = (int)obj.get_int_member("height"),
- };
-
- }
-
- public int x;
- public int y;
- public int width;
- public int height;
-}
-
public class Node : Object {
public int id {get; private set; }
public bool urgent { get; private set; }