Emil Ernerfeldt
7da9928548
Clean up new code editor code
2021-05-02 19:28:02 +02:00
Emil Ernerfeldt
6f01577d5f
Tab only selects labels if the screen_reader
option is turned on.
2021-04-25 18:20:10 +02:00
Emil Ernerfeldt
c2744a1437
Implement trackpad pinch-to-zoom for plots in egui_web ( #333 )
...
This adds a new `zoom_delta` to input.
This is hooked up to ctrl-scroll on egui_web and egui_glium.
Browsers convert trackpad pinch gestures to ctrl-scroll,
so this means you can not pinch-to-zoom plots (on trackpad).
In the future we can support multitouch pinch-to-zoom via the same
`InputState::zoom_factor()` function
2021-04-25 17:04:34 +02:00
Emil Ernerfeldt
6b24dbc997
Move easy_mark from egui deo egui_demo_lib
2021-04-24 01:18:08 +02:00
Emil Ernerfeldt
fb6f49024f
Add Response::on_disabled_hover_text to show tooltip for disabled widgets
...
Closes https://github.com/emilk/egui/issues/323
2021-04-22 19:48:05 +02:00
Emil Ernerfeldt
d2b669e1cd
Changelog: Add line about storing state in Memory
2021-04-21 22:03:05 +02:00
Emil Ernerfeldt
6e9abfc9c0
Changelog: Add plot improvements
2021-04-21 22:02:51 +02:00
Emil Ernerfeldt
0351662763
Fix bug with the layout of wide DragValue
:s
2021-04-18 23:10:12 +02:00
Emil Ernerfeldt
580d27e0d3
Add anchors to windows and areas ( #310 )
...
This is so that you can put a window in e.g. the top right corner
or the center of the screen.
2021-04-18 10:01:41 +02:00
Emil Ernerfeldt
231c075867
Add #[inline(always)] to a few things
2021-04-15 10:37:31 +02:00
Emil Ernerfeldt
b187d1c576
Make Memory::has_focus public (again)
2021-04-15 10:31:24 +02:00
Emil Ernerfeldt
96a2732735
Add Response::request_focus and surrender_focus
2021-04-15 09:45:12 +02:00
Emil Ernerfeldt
4ecf304335
Fix touch screen defocus bug
...
Fixes https://github.com/emilk/egui/issues/288
2021-04-12 21:41:07 +02:00
Emil Ernerfeldt
5d50fa1350
Add Label::sense so you can make clickable labels
...
relates to https://github.com/emilk/egui/issues/292
2021-04-12 21:26:13 +02:00
follower
3c0c729af8
Add links to the changelogs for other crates. ( #293 )
...
(Tested via the GH web interface.)
2021-04-12 20:57:49 +02:00
Emil Ernerfeldt
d544c3dd8b
Release 0.11.0 - Optimization, screen reader & new layout logic
2021-04-05 14:49:06 +02:00
Emil Ernerfeldt
4b9db0cc55
Rename ui.advance_cursor to ui.add_space
2021-04-02 10:13:06 +02:00
Emil Ernerfeldt
d848b2a664
Add TextEdit::password to hide input characters
2021-04-02 09:58:55 +02:00
Emil Ernerfeldt
1090de67fd
Refactor: move debug options out of Visuals
2021-03-31 22:00:04 +02:00
Emil Ernerfeldt
ccc501f302
Spelling: tesselate -> tessellate
2021-03-28 22:44:03 +02:00
Emil Ernerfeldt
def09c2455
Don't close colopicker and other popups when clicking inside of them
2021-03-27 16:50:35 +01:00
Emil Ernerfeldt
6fbb59de1f
Add new Slider/DragValue constructors to changelog
2021-03-27 16:10:51 +01:00
Emil Ernerfeldt
1bb100d766
Updated changelogs
2021-03-27 10:37:31 +01:00
Emil Ernerfeldt
017d602fe5
Rename "kb_focus" to just "focus" everywhere
2021-03-09 20:55:24 +01:00
aakamenov
c1ef81628b
Add optional drag bounds to Area and Window
...
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2021-03-07 20:42:16 +01:00
Emil Ernerfeldt
cd4c07e09a
Output events when widgets gain keyboard focus
...
Part of https://github.com/emilk/egui/issues/167
2021-03-07 19:45:20 +01:00
Emil Ernerfeldt
a370339db7
Give focus to any clickable widget with tab/shift-tab
...
Use space or enter to click the selected widget.
Use arrow keys to adjust sliders and `DragValue`s.
Closes https://github.com/emilk/egui/issues/31
2021-03-07 18:15:57 +01:00
Emil Ernerfeldt
007f9f3cb9
Fix secondary-click to open a menu
...
Fixes https://github.com/emilk/egui/issues/198
2021-03-06 11:11:07 +01:00
Emil Ernerfeldt
fb2db4940e
Release 0.10.0 - Plot and polish
2021-02-28 20:11:37 +01:00
Emil Ernerfeldt
24d68cc55e
Merge epi/CHANGELOG.md into eframe/CHANGELOG.md
2021-02-28 19:11:02 +01:00
Emil Ernerfeldt
d3fd51d6a4
Add Response::changed(): see if e.g. text was entered or slider dragged
2021-02-28 17:24:07 +01:00
Emil Ernerfeldt
814f8c0dd8
Add support for all integers in DragValue and Slider (except 128-bit)
2021-02-23 20:40:14 +01:00
Emil Ernerfeldt
5f6a468812
Add Context::set_pixels_per_point to control the scale of the UI
2021-02-21 11:23:33 +01:00
Emil Ernerfeldt
ebc2486d22
Slider: use a DragValue for the value, and implement suffix/prefix
2021-02-20 18:29:09 +01:00
Emil Ernerfeldt
9a546ff97a
SlidSlider will now show the value display by default.
...
Turn off with slider.show_value(false)
Closes https://github.com/emilk/egui/issues/183
2021-02-20 16:28:39 +01:00
Emil Ernerfeldt
741f0bfe8a
Only show tooltips if mouse is still.
2021-02-20 10:45:19 +01:00
Emil Ernerfeldt
4354f7582f
Improve the positioning of tooltips
2021-02-20 10:33:33 +01:00
Emil Ernerfeldt
21c99e1130
Add Ui::hyperlink_to
2021-02-20 09:26:58 +01:00
Emil Ernerfeldt
a19140ec67
A simple 2D plot library
2021-02-17 22:54:10 +01:00
Emil Ernerfeldt
b61db038f2
Release 0.9.0 - light mode, right clicks and more
2021-02-07 17:06:51 +01:00
Emil Ernerfeldt
df4c0257c0
Add Ui functions for doing manual layout ("put this widget here")
2021-02-07 13:48:55 +01:00
Emil Ernerfeldt
bca722ddf8
Add ui.set_enabled(false) to disable all widgets in a Ui
...
Closes https://github.com/emilk/egui/issues/50
2021-02-07 10:55:45 +01:00
Emil Ernerfeldt
26f966563a
Add Grid::max_col_width
2021-02-06 16:54:38 +01:00
Emil Ernerfeldt
91ce18d62f
Widgets will now always line break at \n
characters
2021-02-06 14:50:03 +01:00
Emil Ernerfeldt
0942a2aa3b
[epaint] Tessellator: handle sharp path corners better
...
Switch to bevel joints instead of miter joints for > 90° corners
2021-02-04 18:46:36 +01:00
Emil Ernerfeldt
0f37b009d6
Add TextEdit::hint_text for showing a weak hint text when empty
2021-02-03 21:06:50 +01:00
Emil Ernerfeldt
af3195f086
Add ctx.set_visuals()
2021-02-03 19:38:50 +01:00
Emil Ernerfeldt
829455b347
Add ui.group(|ui| { … })
to visually group some widgets within a frame
2021-02-03 00:25:07 +01:00
Emil Ernerfeldt
ca886ea998
Add ui.visuals() as short for ui.style().visuals
2021-02-03 00:20:39 +01:00
Emil Ernerfeldt
01fca2f31c
Add Ui::spacing() and Ui::spacing_mut() as shortcuts
2021-02-01 16:56:29 +01:00