Skip to content

Commit

Permalink
Update spec (#68)
Browse files Browse the repository at this point in the history
* fix: more demo fixes

* update spec
  • Loading branch information
matthewhammer authored Jun 10, 2021
1 parent d1a23a2 commit 4b13a9e
Showing 1 changed file with 13 additions and 25 deletions.
38 changes: 13 additions & 25 deletions service.did
Original file line number Diff line number Diff line change
@@ -1,30 +1,20 @@
type UserInfo =
type UserInfo =
record {
textColor: record {
record {
nat;
nat;
nat;
};
record {
nat;
nat;
nat;
};
};
textColor:
record { // foreground, background
record { nat; nat; nat; };
record { nat; nat; nat; };
};
userName: text;
};
type Result =
variant {
err: record {
message: opt text;
out: Out;
};
err: opt text;
ok: Out;
};
type Rect =
record {
dim: Dim_2;
dim: Dim;
pos: Pos;
};
type Pos =
Expand Down Expand Up @@ -54,13 +44,12 @@ type KeyInfo =
meta: bool;
shift: bool;
};
type GraphicsRequest_2 =
type GraphicsRequest =
variant {
all: Dim_2;
last: Dim_2;
all: Dim;
last: Dim;
none;
};
type GraphicsRequest = GraphicsRequest_2;
type Graphics = Result;
type Fill =
variant {
Expand Down Expand Up @@ -91,7 +80,7 @@ type Event =
mouseDown: Pos;
quit;
skip;
windowSize: Dim_2;
windowSize: Dim;
};
type Elms = vec Elm;
type Elm =
Expand All @@ -102,12 +91,11 @@ type Elm =
Fill;
};
};
type Dim_2 =
type Dim =
record {
height: nat;
width: nat;
};
type Dim = Dim_2;
type Color =
record {
nat;
Expand Down

0 comments on commit 4b13a9e

Please sign in to comment.