Emil Ernerfeldt
dd8c298cb5
refactor space allocation code
2020-09-18 23:48:08 +02:00
Emil Ernerfeldt
283b4ab63d
[layout] remove ui.horizontal_centered and make centering the default
2020-09-18 23:41:49 +02:00
Emil Ernerfeldt
4df8def9e2
[layout] change clickable_diameter: f32
to interact_size: Vec2
2020-09-18 23:41:34 +02:00
Emil Ernerfeldt
85a67ab15e
[refactor] introduce NumExt with at_least and at_most
...
`x.min(maxumim)` can be confusing but `x.at_most(maximum)` is very clear
2020-09-18 17:49:39 +02:00
Emil Ernerfeldt
5856cded95
refactor RunMode: move it from backend to the demo App ( #23 )
...
This simplifies the egui_glium and egui_web backends substantially,
reduces the scope of RunMode to a single file, and
removes duplicated code.
Basically: this is how I should have written it from the beginning.
2020-09-16 08:03:40 +02:00
Jay Oster
0ea80ae10a
Fix continuous RunMode in glium backend on Windows ( #21 )
2020-09-14 20:55:35 +02:00
Emil Ernerfeldt
c25d4ff70a
[egui_web] publish new web demo
2020-09-13 22:08:50 +02:00
Emil Ernerfeldt
e30a9c1196
[window/resize] add Resize::max_width and fix bug with fixed_size
2020-09-13 22:07:55 +02:00
Emil Ernerfeldt
f8bc4d38e8
[refactor] break up demo code into smaller files
2020-09-13 21:54:31 +02:00
Emil Ernerfeldt
8b4f96ffb2
[refactor] move math.rs to math/mod.rs, and same for all other egui mods
2020-09-13 21:23:35 +02:00
Emil Ernerfeldt
adc6a225e3
[frame] bug fix: move cursor after a Frame
2020-09-13 19:02:25 +02:00
Emil Ernerfeldt
6904938594
Compilation fix
2020-09-13 15:41:16 +02:00
Emil Ernerfeldt
814121903a
remove Label::auto_shrink and replace with ui.shrink_width_to_current()
2020-09-13 09:30:52 +02:00
Emil Ernerfeldt
1069ad8496
add color test window to troubleshoot your Egui painter backend
...
egui_glium passes the test, but the egui_web WebGL painter fails it.
2020-09-13 09:28:54 +02:00
Emil Ernerfeldt
d49aec4079
Add user texture support to egui_glium and egui_web backends
2020-09-11 18:54:57 +02:00
Emil Ernerfeldt
02ef0cd9d5
[user textures] Add custom texture/image support
...
* Each Traingles mesh comes with a TextureId
* ui.image(...) to show an image/texture
* Up to backend what to do with user textures
2020-09-11 18:54:57 +02:00
Emil Ernerfeldt
5ba420988f
[docs] improve toggle_switch.rs demo with better comments
2020-09-11 17:17:43 +02:00
Emil Ernerfeldt
c6f7534a8b
README.md: add a "Why Egui?" section
...
Includes a comparison with imgui-rs
2020-09-11 11:38:45 +02:00
Emil Ernerfeldt
10574c34d6
make it easy to combine Response:s with | and |= overloads
2020-09-11 10:19:04 +02:00
Emil Ernerfeldt
13060d495b
[user texture] change uv to normalized texture coords in 0-1 range
2020-09-09 17:14:42 +02:00
Emil Ernerfeldt
db2afadc76
[lint] TODO.md markdownlint
2020-09-09 17:13:02 +02:00
Emil Ernerfeldt
0ea3a53d97
[font] texture atlas: add one pixel of padding for old GPUs
2020-09-09 15:24:44 +02:00
Emil Ernerfeldt
8984302122
[user textures] switch WHITE_UV to (0,0) and require clamped sampling
2020-09-09 15:24:09 +02:00
Emil Ernerfeldt
7093de0ff2
[docs] clean up README.md
2020-09-09 15:19:30 +02:00
Emil Ernerfeldt
bb367752cf
[text] support non-latin characters by dynamically adding them to atlas
2020-09-09 14:33:30 +02:00
Emil Ernerfeldt
0e870dae3e
[refactor] rename Texture::id to version
2020-09-09 13:32:40 +02:00
Emil Ernerfeldt
d959f71d12
[text] add benchmark for text layout
2020-09-09 12:41:59 +02:00
Emil Ernerfeldt
672ffb6cd6
[test] add e2e egui test
2020-09-09 12:14:53 +02:00
Emil Ernerfeldt
23d99b07c8
[bug fix] assume pixels_per_point=1 if nothing is ever set
2020-09-09 12:14:21 +02:00
Emil Ernerfeldt
bc0d6baefb
[color-picker] edit your own (s)RGBA arrays
...
Both with and without premultiplied alpha
2020-09-09 11:24:37 +02:00
Emil Ernerfeldt
b9a3240ca3
Bump Egui version to 0.1.4
2020-09-08 09:47:42 +02:00
Emil Ernerfeldt
6907e747c6
[web] publish new web demo build
2020-09-08 09:45:31 +02:00
Emil Ernerfeldt
278268768d
fix web/wasm build
2020-09-08 09:44:40 +02:00
Emil Ernerfeldt
ef5eb4a465
cargo update
2020-09-08 09:27:20 +02:00
Emil Ernerfeldt
97ca69e90e
Update TODO.md
2020-09-08 09:19:40 +02:00
Emil Ernerfeldt
9578773613
[style] tweak style, and refactor struct Style
2020-09-08 09:17:08 +02:00
Emil Ernerfeldt
a76d57480d
fix: menu bar should have a background
2020-09-07 20:54:29 +02:00
Emil Ernerfeldt
d8e0b3bff6
[color] add HSV-based color picker for struct Srgba
2020-09-06 21:30:52 +02:00
Emil Ernerfeldt
fc3582fbe1
[color] add HSVA conversion
2020-09-06 21:21:53 +02:00
Emil Ernerfeldt
847f18248f
clippy fix
2020-09-06 07:49:49 +02:00
Emil Ernerfeldt
a9fd7537c2
[DragValue] add optional range
2020-09-06 07:07:02 +02:00
Emil Ernerfeldt
938c847c6e
[math] bug fix: allow inverted range in remap_clamp
2020-09-06 07:04:47 +02:00
Emil Ernerfeldt
c26b3069e0
Fix a clippy nit
2020-09-06 06:58:40 +02:00
Markus Webel
6b30e21f4e
Kinetic scrolling ( #20 )
...
* Fixed typo in function description
* Added vertical kinetic scrolling
* Checked off kinetic scrolling from TODO
Co-authored-by: Markus Webel <m@rkus.online>
2020-09-06 06:57:29 +02:00
Emil Ernerfeldt
6ca11aff8c
[refactor] use "fg_" prefix in WidgetStyle
2020-09-05 13:30:04 +02:00
Emil Ernerfeldt
8b93135fe4
[style] you can override the default body text style
2020-09-04 10:15:35 +02:00
Emil Ernerfeldt
2c96cbfa9c
[dependencies] turn off optional ahash features to reduce dependencies
2020-09-03 23:04:19 +02:00
Emil Ernerfeldt
dc40a5d31d
[refactor] represent colors with arrays
2020-09-02 22:04:10 +02:00
Emil Ernerfeldt
9823e4d63c
[refactor] Add Triangles::colored_vertex helper
2020-09-02 21:52:43 +02:00
Emil Ernerfeldt
e8713bbb71
[widgets] DragValue can now be used with some integers
2020-09-02 06:05:48 +02:00