Emil Ernerfeldt
6de93cb0ec
Remove the label! macro
4 years ago
Emil Ernerfeldt
68598db7e3
fix build_glium.sh
4 years ago
Emil Ernerfeldt
5fcc64dc85
Always start off painting two frames to allow things to settle
4 years ago
Emil Ernerfeldt
428e2373e5
Change default font to Ubuntu-Light
4 years ago
Emil Ernerfeldt
4ecb7d14ca
New widget: `SelectableLabel`: a text-button that can be selected
Also available via `ui.selectable_label` and `ui.selectable_value`
4 years ago
Emil Ernerfeldt
99fa650fa7
[egui_web] Document required RUSTFLAGS=--cfg=web_sys_unstable_apis
4 years ago
Emil Ernerfeldt
903e62cd1c
[egui_web] Update demo and example wasm
4 years ago
Emil Ernerfeldt
a7e7826d2c
Release 0.4.0 of egui, egui_web and egui_glium
4 years ago
Emil Ernerfeldt
861573c497
Text editing: improve double-click to select word
4 years ago
Emil Ernerfeldt
ab61f98a13
Bug fix: make sure child Ui:s have own Id
4 years ago
Emil Ernerfeldt
8163f912d3
Bug fix: stop using AHasher for Id:s
AHasher does not produce same hashes efter e.g. restarting an app
4 years ago
Emil Ernerfeldt
ac03242ec3
cargo update
4 years ago
Emil Ernerfeldt
8e6c8ce50e
Update ahash to 0.6
4 years ago
Emil Ernerfeldt
aec97c74b9
[egui] Enable a bunch of clippy warnings
4 years ago
Emil Ernerfeldt
8de74e4250
[egui_web] respect the native zoom/scale of the browser
Remove all complexity with own scale slider.
Closes https://github.com/emilk/egui/issues/53
4 years ago
Emil Ernerfeldt
b1b34de4ee
[style] Tweak clip_rect_margin to allow frames around ScrollArea:s
4 years ago
Emil Ernerfeldt
201586d512
REVERT: clip frame contents to frame border
can't do that quite as simply as I tried to :'(
4 years ago
Emil Ernerfeldt
d8aeaa4b49
Clip frame contents to frame border
4 years ago
Emil Ernerfeldt
8c6ccd1f7c
Merge pull request #51 from cxong/patch-1
Fix demo anchor
4 years ago
Emil Ernerfeldt
8bb4368f97
Merge pull request #52 from phoglund/fix_desired_rows
Fix the accessor for desired rows.
4 years ago
Patrik Höglund
c7e199c8ac
Fix the accessor for desired rows.
4 years ago
Cong
a2d0f88069
Fix demo anchor
4 years ago
Emil Ernerfeldt
aab1b351ab
Fixed incorrect text wrapping width on radio buttons
4 years ago
Emil Ernerfeldt
56715a1dcd
Improve ability to inspect why a widget is as wide as it is
4 years ago
Emil Ernerfeldt
633b19ee99
[egui_web] Repaint on finished fetch in example app
4 years ago
Emil Ernerfeldt
99a2a52510
Code cleanup
4 years ago
Emil Ernerfeldt
ebf204a9ae
Tidy up TODO.md
4 years ago
Emil Ernerfeldt
0c9bdb8ae8
cargo update
4 years ago
Emil Ernerfeldt
15b0214dff
clippy fixes
4 years ago
Emil Ernerfeldt
9a51041ae2
Merge pull request #49 from emilk/web-example-image
[example_web] show loading of an image
4 years ago
Emil Ernerfeldt
c6ce0b9e8c
[example_web] show loading of an image
Required some redesign of `TextureAllocator` as well as
some improvements to the fetch API.
4 years ago
Emil Ernerfeldt
90cecace0c
[egui_web] Fix for pressing tab and backspace in a text field
Fixes https://github.com/emilk/egui/issues/48
4 years ago
Emil Ernerfeldt
552104429d
Remove accidentally commited test code
4 years ago
Emil Ernerfeldt
9c8a3a994f
[example_web] Fix link to own source code
4 years ago
Emil Ernerfeldt
7249fc45d0
Merge pull request #47 from emilk/web-app-example
Demonstrate fetch
4 years ago
Emil Ernerfeldt
bafbe04fb3
Update example web app
4 years ago
Emil Ernerfeldt
86cfd0dcd3
egui_web: Repaint at least every seconds
Just in case the app needs it, e.g. because it has finished a download.
4 years ago
Emil Ernerfeldt
fad0029119
egui_web: Add simple fetch API and demostrate it in example_web
4 years ago
Emil Ernerfeldt
0cb3bb791b
Add `example_web` app
4 years ago
Emil Ernerfeldt
7e9b5de250
Fix: id clash for TextEdit
4 years ago
Emil Ernerfeldt
0832ebbf1f
Merge pull request #46 from emilk/egui_web-copy-paste
egui_web: Implement copy, cut and paste
4 years ago
Emil Ernerfeldt
7651e2f15b
egui_web: Implement copy, cut and paste
4 years ago
Emil Ernerfeldt
c57fba41ab
Text selection ( #43 )
* Refactor, clarify and improve text layout
* Introduce meticulous cursors for text galleys
* Rename "row" to "line"
We now have "paragraphs" separated by \n,
which are word-wrapped onto one or more rows.
* Fix some edge cases for the cursor movement
* Add modifier keys and implement moving cursors one word at a time
* Remove unused cursor_blink_hz
* Galley: Return Rect when asking for cursor position
* Implement text selection
* fix: text selection when mouse goes out of the TextEdit area
* Support Cmd+A ^W ^U ^K and shift-click
* Create `mod util`
* Implement undo for TextEdit
* Move focus between text fields with tab and shift-tab
* Update CHANGELOG.md
4 years ago
Emil Ernerfeldt
e2c3bd429f
Update CHANGELOG.md
4 years ago
Emil Ernerfeldt
e7fd11f1aa
Move focus between text fields with tab and shift-tab
4 years ago
Emil Ernerfeldt
b17e6b3260
Implement undo for TextEdit
4 years ago
Emil Ernerfeldt
83444af862
Create `mod util`
4 years ago
Emil Ernerfeldt
fe0d159324
Support Cmd+A ^W ^U ^K and shift-click
4 years ago
Emil Ernerfeldt
b920822b6b
fix: text selection when mouse goes out of the TextEdit area
4 years ago
Emil Ernerfeldt
13666755e1
Implement text selection
4 years ago