Skip to content

Commit

Permalink
feat: fullscreen mouse events, calculator example
Browse files Browse the repository at this point in the history
  • Loading branch information
ccbrown committed Sep 30, 2024
1 parent 13c7ce1 commit 5879712
Show file tree
Hide file tree
Showing 9 changed files with 595 additions and 12 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ anyhow = "1.0.89"
surf = { version = "2.3.2", default-features = false, features = ["h1-client"] }
serde = { version = "1.0.210", features = ["derive"] }
serde_json = "1.0.128"
mexprp = { version = "0.3.1", default-features = false }
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ forms, and more!
<img src="https://raw.githubusercontent.com/ccbrown/iocraft/refs/heads/main/examples/images/table.png" height=402 />
<img src="https://raw.githubusercontent.com/ccbrown/iocraft/refs/heads/main/examples/images/form.png" height=387 />
<img src="https://raw.githubusercontent.com/ccbrown/iocraft/refs/heads/main/examples/images/overlap.png" height=450 />
<img src="https://raw.githubusercontent.com/ccbrown/iocraft/refs/heads/main/examples/images/calculator.png" height=450 />
<img src="https://raw.githubusercontent.com/ccbrown/iocraft/refs/heads/main/examples/images/weather-powershell.png" height=350 />

## Shoutouts
Expand Down
1 change: 1 addition & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ To run any of the examples, use `cargo run --example NAME`. For example, to run
|Example|Preview|
|---|:---:|
|[borders.rs](./borders.rs)<br />Showcases various border styles.|![preview](./images/borders.png)|
|[calculator.rs](./calculator.rs)<br />Uses clickable buttons to provide a calculator app with light/dark mode themes.|![preview](./images/calculator.png)|
|[context.rs](./context.rs)<br />Demonstrates using a custom context via `ContextProvider` and `use_context`.|![preview](./images/context.png)|
|[counter.rs](./counter.rs)<br />Renders a dynamic component which spawns a future to increment a counter every 100ms.|![preview](./images/counter.png)|
|[form.rs](./form.rs)<br />Displays a form prompting the user for input into multiple text fields. Uses mutable reference props to surface the user's input to the caller once the form is submitted.|![preview](./images/form.png)|
Expand Down
Loading

0 comments on commit 5879712

Please sign in to comment.