Emil Ernerfeldt
13666755e1
Implement text selection
2020-11-15 04:44:55 +01:00
Emil Ernerfeldt
96befb0736
Galley: Return Rect when asking for cursor position
2020-11-14 23:07:16 +01:00
Emil Ernerfeldt
220f48a159
Remove unused cursor_blink_hz
2020-11-14 22:38:55 +01:00
Emil Ernerfeldt
c4ed507d63
Add modifier keys and implement moving cursors one word at a time
2020-11-14 21:01:21 +01:00
Emil Ernerfeldt
7494026139
Fix some edge cases for the cursor movement
2020-11-14 18:21:06 +01:00
Emil Ernerfeldt
c84431e473
Rename "row" to "line"
...
We now have "paragraphs" separated by \n,
which are word-wrapped onto one or more rows.
2020-11-14 18:21:06 +01:00
Emil Ernerfeldt
9ab00b8e50
Introduce meticulous cursors for text galleys
2020-11-14 18:21:06 +01:00
Emil Ernerfeldt
e1077c98b7
Refactor, clarify and improve text layout
2020-11-14 18:21:06 +01:00
Emil Ernerfeldt
03eb9151c4
Improve automatic Id generation to make Id clashes less likely
2020-11-14 18:20:56 +01:00
Emil Ernerfeldt
ee3f269d93
Fix numeric underflow when text editing
2020-11-13 12:51:52 +01:00
Emil Ernerfeldt
9057eaec7e
Fix: you can again click slider values to edit them
2020-11-13 12:50:05 +01:00
Emil Ernerfeldt
92b1257ec3
Add doctest to check.sh
2020-11-13 11:31:13 +01:00
Emil Ernerfeldt
b3fa533ac5
Fix doctest
2020-11-13 11:31:01 +01:00
Emil Ernerfeldt
0340e2e6de
TextEdit: You must explicitly choose singleline or multiline.
...
Multiline TextEdit now has a default height of 4 rows.
Added `ui.text_edit_singleline` and `ui.text_edit_multiline`.
2020-11-13 11:22:00 +01:00
Emil Ernerfeldt
8a0bc97e8c
[egui_glium] Fix paste
2020-11-13 11:04:45 +01:00
Alexandre Rousseau
08bdbd3cb7
Rename menues to menus ( #41 )
...
Co-authored-by: Alexandre Rousseau <alexandre.rousseau@quebecormedia.com>
2020-11-10 22:56:35 +01:00
Emil Ernerfeldt
d2b5730784
Check if TextEdit lost keyboard focus with response.lost_kb_focus
2020-11-09 18:42:54 +01:00
Emil Ernerfeldt
c999ed038a
Hexadecimal Debug format of Id
2020-11-09 18:41:19 +01:00
Emil Ernerfeldt
e55b59256e
Press enter in single line TextEdit
to surrender keyboard focus
2020-11-09 18:40:23 +01:00
Emil Ernerfeldt
796def4bcb
Fixed bug where a lost widget could still retain keyboard focus.
2020-11-09 13:19:22 +01:00
Emil Ernerfeldt
7cc5218630
[refactor] Move used_ids
from Context
to Memory
2020-11-09 13:04:05 +01:00
Emil Ernerfeldt
3af741e85a
Update CHANGELOG.md with new 0.3.0 release
2020-11-07 14:58:40 +01:00
Emil Ernerfeldt
d4e4033f10
Publish new web demo
2020-11-07 14:52:12 +01:00
Emil Ernerfeldt
b6dcae4651
Update versions to 0.3.0
2020-11-07 14:47:22 +01:00
Emil Ernerfeldt
f46aa92eba
Revert to aHash 0.4 again to allow Egui to be used inside of wasmtime
2020-11-07 14:35:42 +01:00
Emil Ernerfeldt
4b8a65268c
Turn off anti-aliasing in debug builds by default
2020-11-07 14:06:14 +01:00
Emil Ernerfeldt
af11d766fc
Split out tesselation from Context::end_frame()
2020-11-07 11:44:32 +01:00
Emil Ernerfeldt
901a6920be
cargo update
2020-11-06 09:34:57 +01:00
Emil Ernerfeldt
80fedbd3fc
Check wasm32 target in check.sh
2020-11-06 09:34:33 +01:00
Emil Ernerfeldt
8393d1df47
Upgrade ahash from 0.4 to 0.5
2020-11-06 09:33:36 +01:00
Emil Ernerfeldt
e00901e723
Add link to egui_sdl2_gl integration crate to README.md
2020-11-05 20:12:58 +01:00
Emil Ernerfeldt
94db5bb3a1
build fix
2020-11-03 22:14:21 +01:00
Emil Ernerfeldt
7abb9a2814
Improve Id generation, with more aggressive name clash warnings
2020-11-03 22:00:56 +01:00
Emil Ernerfeldt
8d365200ad
Bug fix: accidental reuse of Id:s for columns
...
Fixes https://github.com/emilk/egui/issues/37
2020-11-02 22:50:47 +01:00
Emil Ernerfeldt
d4d59d94b9
[demos] Add drag-and-drop demo (+ dancing strings demo)
2020-11-02 17:53:28 +01:00
Emil Ernerfeldt
4c25465e57
[window] Fix: no hover effect when already dragging something
2020-11-02 17:45:46 +01:00
Emil Ernerfeldt
9833ca57a6
[drag-and-drop] Add ability to translate layers and PaintCmd:s
2020-11-02 17:41:52 +01:00
Emil Ernerfeldt
ed8a69ab2f
[drag-and-drop] Add Grab and Grabbing CursorIcon:s
2020-11-02 17:40:05 +01:00
Emil Ernerfeldt
c9c12f2d79
[drag-and-drop] Disable interactions with Tooltip layer
2020-11-02 17:39:01 +01:00
Emil Ernerfeldt
63c0379082
[refactor] Add helpful constructors to PaintCmd
2020-11-02 17:35:16 +01:00
Emil Ernerfeldt
ca96172552
You can override the default Egui fonts
...
Closes https://github.com/emilk/egui/issues/32
2020-10-31 18:03:13 +01:00
Emil Ernerfeldt
82d55cb67e
[demo] Add helper macros for linking to the source code on GitHub
2020-10-31 09:17:15 +01:00
Emil Ernerfeldt
496fdb52b4
[demo] add [DEBUG BUILD] warning text
2020-10-31 09:15:20 +01:00
Emil Ernerfeldt
8b2bcb29a0
Add Small
TextStyle
2020-10-31 09:09:40 +01:00
Sam Samai
dbae893977
Check wasm target is working by running 'cargo check' on the demo_web package ( #36 )
2020-10-30 12:51:16 +01:00
Sam Samai
a79aaa76a4
Downgrade ahash for wasm build ( #35 )
...
Seems like getrandom doesn't see wasm32-unknown-unknown as a valid target.
Dropping ahash, which has the getrandom dependency, to version 0.4.6 fixes this for now.
2020-10-29 11:48:39 +01:00
Hizoul
fe585e48e9
Make from_get_set
public ( #34 )
...
This allows the slider value to be obtained from anywhere that can be accessed from a closure and not just a `&'a mut` reference. An example would be a state that is shared via an Arc<Rw<T>> or Atomic value with a background thread
2020-10-28 16:56:33 +01:00
Emil Ernerfeldt
07a32793d6
Forbid creating a panel from within another panel
2020-10-27 15:37:30 +01:00
Emil Ernerfeldt
16a984b71f
Add badge for Build Status
2020-10-27 14:50:44 +01:00
Emil Ernerfeldt
e9f0fba9f0
Add badge for dependency status
2020-10-27 14:50:32 +01:00