summaryrefslogtreecommitdiff
path: root/widget.proto
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-13 17:24:27 -0600
committerJeff Carr <[email protected]>2025-02-13 17:24:27 -0600
commit9a2f103589f2793461bfaa1ce446f7922306f6f0 (patch)
tree7b771cefbd0e0624c552b91c62485d77f71c3b73 /widget.proto
Day 1
Diffstat (limited to 'widget.proto')
-rw-r--r--widget.proto39
1 files changed, 39 insertions, 0 deletions
diff --git a/widget.proto b/widget.proto
new file mode 100644
index 0000000..96c799b
--- /dev/null
+++ b/widget.proto
@@ -0,0 +1,39 @@
+syntax = "proto3";
+
+// playing around with ideas here
+
+package gitpb;
+
+// import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
+import "google/protobuf/any.proto"; // Import 'Any'
+
+
+message Size {
+ int64 width = 1;
+ int64 height = 2;
+}
+
+message Location {
+ int64 x = 1;
+ int64 y = 2;
+}
+
+message Tree {
+ Widget parent = 1;
+ repeated Widget children = 2;
+}
+
+message Widget {
+ int64 id = 1;
+ string name = 2;
+ Size size = 3;
+ Location location = 4;
+ string color = 5;
+ google.protobuf.Any TK = 6;
+}
+
+message Widgets {
+ string uuid = 1; // `autogenpb:uuid:0331fcd7-3c8c-43e4-be1b-77db6a6bc58c`
+ string version = 2; // `autogenpb:version:v1`
+ repeated Widget Widgets = 3;
+}