diff options
| author | Jeff Carr <[email protected]> | 2025-01-29 07:31:26 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-29 12:27:10 -0600 |
| commit | ce11f999f9282e9489e77eb1f9d6c08ae9c9b725 (patch) | |
| tree | 33ae6c702d91c5eddfe4ecd0be68bf907733a394 /view.proto | |
| parent | a16b53c2895669f7f21728334371ab79680699bf (diff) | |
start moving to protobuf. fix mouse clicks (kinda)
Diffstat (limited to 'view.proto')
| -rw-r--r-- | view.proto | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/view.proto b/view.proto new file mode 100644 index 0000000..eeea1c4 --- /dev/null +++ b/view.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; + +package main; + +import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp + +// maybe put all the gocui specific stuff here. +message GocuiState { // `autogenpb:nomutex` + bool visible = 1; + bool internal = 2; + int64 w0 = 3; + int64 h0 = 4; + int64 w1 = 5; + int64 h1 = 6; +} + +message ViewSettings { // `autogenpb:nomutex` + bool pack = 1; + int64 framesize = 5; +} + +message Tree { + View parent = 1; + repeated View children = 2; +} + +// this is the gocui 'view' in binary tree form +message View { + int64 widgetId = 3; // `autogenpb:unique` `autogenpb:sort` + string name = 4; // `autogenpb:unique` `autogenpb:sort` + GocuiState state = 7; +} + +message Views { // `autogenpb:marshal` `autogenpb:mutex` + string uuid = 1; // `autogenpb:uuid:d19c1fbb-32c2-4957-aee6-f8128a511dca` + string version = 2; // `autogenpb:version:v0.0.1` + repeated View Views = 3; + Tree tree = 4; + map<string, string> junk = 5; + ViewSettings settings = 6; +} |
