Skip to content

Commit a0cce55

Browse files
authored
feat(gui): dimension entry (#45)
wip view dimension lines while drawing
1 parent db773d7 commit a0cce55

File tree

8 files changed

+1104
-109
lines changed

8 files changed

+1104
-109
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/compiler/examples/nested_inst.ar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cell top() {
2727
eq(left.x, 0.);
2828
eq(left.y, 0.);
2929
eq(right.x, 300.);
30-
eq(right.y, 0.);
30+
eq(right.y, 100.);
3131
}
3232
#scope1 if 1 > 2 { } else { }
3333
let met3 = rect("met3", x0=left.bot.met1.x0, y0=20., x1=right.bot.met1.x1, y1=80.)!;

core/gui/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ futures = "0.3"
2525
geometry = { version = "0.7.1", registry = "substrate" }
2626
indexmap = { version = "2", features = ["serde"] }
2727
rgb = { version = "0.8", features = ["serde"] }
28+
unicode-segmentation = "1"
29+

core/gui/src/actions.rs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
use gpui::actions;
2+
3+
// Associate actions using the `actions!` macro (or `impl_actions!` macro)
4+
actions!(
5+
Argon,
6+
[
7+
Quit,
8+
DrawRect,
9+
DrawDim,
10+
Cancel,
11+
Backspace,
12+
Delete,
13+
Left,
14+
Right,
15+
SelectLeft,
16+
SelectRight,
17+
SelectAll,
18+
Home,
19+
End,
20+
Enter,
21+
ShowCharacterPalette,
22+
Paste,
23+
Cut,
24+
Copy,
25+
]
26+
);

0 commit comments

Comments
 (0)