You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: druid/examples/readme.md
+15-15
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
There are several different kind of examples, some demonstrate one particular
4
4
Druid concept, some are tools used for testing and debugging, and
5
5
others are more complete examples of how to tie everything together.
6
-
The later are listed separately under [showcases](##Showcases).
6
+
The latter are listed separately under [showcases](##Showcases).
7
7
8
8
## Anim
9
9
```
@@ -24,7 +24,7 @@ cargo run --example blocking_functions
24
24
Sometimes you need to fetch some data from disk or from the internet,
25
25
but you should never block the UI thread with long running operations!
26
26
Instead you should run this task in a separate thread, and have it send
27
-
you the data as it arrives. This is very similair to [async event](##Async Event)
27
+
you the data as it arrives. This is very similar to [async event](##Async Event)
28
28
except the event is initiated by the main thread.
29
29
30
30
## Cursor
@@ -64,13 +64,13 @@ This is an example of how to get almost any druid application can be used on the
64
64
```
65
65
cargo run --example identity
66
66
```
67
-
In druid identity is used to send specific widgets commands. Instead of a command going to all the widgets, you can send them to just the one you need. This example has some colorwels and some buttons that interact with them. All of them are identical, except the identity, which makes it possible for the buttons to only affect a single colorwel.
67
+
In druid identity is used to send specific widgets commands. Instead of a command going to all the widgets, you can send them to just the one you need. This example has some colorwells and some buttons that interact with them. All of them are identical, except the identity, which makes it possible for the buttons to only affect a single colorwell.
68
68
69
69
## Invalidation
70
70
```
71
71
cargo run --example invalidation --features="im"
72
72
```
73
-
A demonstration how to use debug invalidation regeons in your own widgets, including some examples of builtin widgets.
73
+
A demonstration how to use debug invalidation regions in your own widgets, including some examples of builtin widgets.
74
74
75
75
## Layout
76
76
```
@@ -90,7 +90,7 @@ cargo run --example list --features="im"
90
90
```
91
91
This shows you how you could, for example, add items to lists and delete them.
92
92
93
-
## Multiwine
93
+
## Multiple Windows
94
94
```
95
95
cargo run --example multiwin
96
96
```
@@ -106,13 +106,13 @@ Opening and saving files is crucial for a lot of applications. This shows you ho
106
106
```
107
107
cargo run --example panels
108
108
```
109
-
Very similair to [layout](##Layout) but it splits the screen into 2 segments
109
+
Very similar to [layout](##Layout) but it splits the screen into 2 segments
110
110
111
111
## Parse
112
112
```
113
113
cargo run --example parse
114
114
```
115
-
Druid doesnt have numeric specific texboxes, instead you have to parse the input as if it ware a numeric value.
115
+
Druid doesnt have numeric specific texboxes, instead you have to parse the input as if it were a numeric value.
116
116
117
117
## Scroll
118
118
```
@@ -130,7 +130,7 @@ An example of how to split a widget in 2 in various ways. This also includes hav
130
130
```
131
131
cargo run --example styled_text
132
132
```
133
-
Not all text should look the same. You are able to change a lot of things, color, size, and monospace. This example shows how ot change these propperties.
133
+
Not all text should look the same. You are able to change a lot of things, color, size, and monospace. This example shows how to change these propperties.
134
134
135
135
## Svg
136
136
```
@@ -142,13 +142,13 @@ This shows you how to display an SVG as a widget.
142
142
```
143
143
cargo run --example switches
144
144
```
145
-
Switches are usefullin many ways, this example shows how to use the druid built-in ones. This includes on/off and up/down for incrementing numeric values.
145
+
Switches are useful in many ways, this example shows how to use the druid built-in ones. This includes on/off and up/down for incrementing numeric values.
146
146
147
147
## Tabs
148
148
```
149
149
cargo run --example tabs
150
150
```
151
-
Tabs allow you to seperate diferent portions of the UI. This example shows you how to use them in druid. Similair to [view switcher](##View Switcher) but with with a diferent purpose.
151
+
Tabs allow you to seperate different portions of the UI. This example shows you how to use them in druid. similar to [view switcher](##View Switcher) but with with a different purpose.
152
152
153
153
## Timers
154
154
```
@@ -160,7 +160,7 @@ Timers allow you to send events to your widgets at a certain points inthe future
160
160
```
161
161
cargo run --example view_switcher
162
162
```
163
-
Very smilair to [tabs](##Tabs) but this allows you to have more controll over it. This allows you to switch out widgets on the fly.
163
+
Very similar to [tabs](##Tabs) but this allows you to have more control over it. This allows you to switch out widgets on the fly.
164
164
165
165
## Showcases
166
166
@@ -169,7 +169,7 @@ Very smilair to [tabs](##Tabs) but this allows you to have more controll over it
169
169
cargo run --example calc
170
170
```
171
171
172
-
This is a showcase of a simple calculator. There are better ways to implement the calculator logic, but it provides all the standard operations like adition devision multiplication C and CE.
172
+
This is a showcase of a simple calculator. There are better ways to implement the calculator logic, but it provides all the standard operations like addition division multiplication C and CE.
173
173
174
174
### Event Viewer
175
175
```
@@ -190,16 +190,16 @@ Flex shows off all the things you can do with flex elements. You can play with a
190
190
cargo run --example game_of_life
191
191
```
192
192
193
-
A simple implementation of conway's game of life. You can change the evolution speed, and pauze so you can take your time making your own creations!
193
+
A simple implementation of Conway's game of life. You can change the evolution speed, and pauze so you can take your time making your own creations!
194
194
195
195
### Image
196
196
```
197
197
cargo run --example image
198
198
```
199
199
200
-
Image shows off all the knobs you can turn on images. You can play with them with real time results, which you to fogure out what settings are best for you.
200
+
Image shows off all the knobs you can turn on images. You can play with them with real time results, which you to figure out what settings are best for you.
201
201
202
-
Please note that the image is exported with some kind of interpolation. So even when you turn interpolation off/NearestNeighbor in druid, you will still see this because thats how the image actually looks.
202
+
Please note that the image is exported with some kind of interpolation. So even when you turn interpolation off/NearestNeighbor in druid, you will still see this because that's how the image actually looks.
0 commit comments