Ivgeni "Iv" Segal
26885c20d0
Add ability to customize the display of hover plot labels ( #934 )
...
* Add ability to customize the display of hover plot labels
* Ergonomic enhancement to plot hover label function
* Use Option instead of empty string for custom hover label name arg
* Revert "Use Option instead of empty string for custom hover label name arg"
This reverts commit 296caebb74b7ee993fbff97187791180d16708af.
Co-authored-by: Ivgeni Segal <ivgeni.segal@tovutiteam.com>
2021-12-25 16:29:29 +01:00
Victor Sergienko
d05379902c
#972 : ScrollArea::stick_to_bottom() has no effect if ScrollArea is not initialized. ( #973 )
2021-12-25 16:29:11 +01:00
Aevyrie
c69fe941af
Reverse horizontal scrolling on windows ( #966 )
...
* Reverse horizontal scrolling on windows
* Add link to winit issue
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2021-12-20 23:00:38 +01:00
Jay Oster
dd99f68e82
Update winit to 0.26 ( #930 )
...
Also update glium, glutin and rfd
2021-12-20 22:44:53 +01:00
kud1ing
214d2b5d4f
Changlog: mention menu::menu(ui, ...)
=> ui.menu_button(...)
( #956 )
2021-12-19 21:17:02 +01:00
René Rössler
a1ba1ec079
add grid demo
2021-12-17 18:39:15 +01:00
René Rössler
fc79988737
rename table demo
2021-12-17 18:39:11 +01:00
René Rössler
31d8cbb2c0
add virtual scroll demo
2021-12-17 18:18:25 +01:00
René Rössler
e00c726bff
only allow one rows call
2021-12-17 18:18:13 +01:00
René Rössler
84a3c1813f
heading and fix growing window
2021-12-17 17:47:58 +01:00
René Rössler
23bcb81eed
do not overflow
2021-12-17 17:47:44 +01:00
René Rössler
6fce5a4c5d
add basic table demo
2021-12-17 16:11:34 +01:00
René Rössler
c097b38558
do not import unused items
2021-12-17 15:54:30 +01:00
René Rössler
5f4525e001
add todo
2021-12-17 15:50:35 +01:00
René Rössler
eb8e1c4303
documentation
2021-12-17 15:48:53 +01:00
René Rössler
5c87d987cf
split code, documentation
2021-12-17 15:48:45 +01:00
René Rössler
4e16d48dd6
integrate into egui
2021-12-17 15:33:29 +01:00
Jan Haller
5ec14867c8
OrderedFloat refactor ( #918 )
...
* Move egui/util/float_ord.rs -> epaint/util/ordered_float.rs
* Implement Hash on OrderedFloat
* Generic OrderedFloat<T>; impl Hash; documentation
2021-12-11 13:52:23 +01:00
Emil Ernerfeldt
c85eca6eaa
Update changelog
2021-11-29 18:43:52 +01:00
Jan Haller
1088d950e9
Add bar charts and box plots ( #863 )
...
Changes:
* New `BarChart` and `BoxPlot` diagrams
* New `FloatOrd` trait for total ordering of float types
* Refactoring of existing plot items
Co-authored-by: niladic <git@nil.choron.cc>
2021-11-29 18:39:58 +01:00
Alexander Chaplin Braz
224d4d6d26
eframe: don't prettify presisted ron strings ( #902 )
...
What ultimately ends up stored into a file is the
HashMap<String, String>, which when prettified only nets three
(depending on the settings) lines of "string": "long prettified
string that's really hard to read because of the extra indentation and
literal \n characters that are all just on one single line".
Not prettifying the values in the first place makes it somewhat easier
to read and also saves a bit of space.
2021-11-28 16:37:40 +01:00
Sven Niederberger
9d56bce592
Improved plot interaction methods ( #892 )
...
ctx plot_bounds plot_hovered screen_from_plot plot_from_screen etc
2021-11-27 23:59:32 +01:00
Henrique Penteado Kujawski Périgo
6b5c4b9aec
Disable glow scissor test after painting ( #905 )
2021-11-27 11:44:23 +01:00
Emil Ernerfeldt
5fee6b7bc5
Anti-alias path ends ( #893 )
...
Closes https://github.com/emilk/egui/issues/876
2021-11-14 17:23:51 +01:00
Emil Ernerfeldt
a0b635dc21
Add Button::image_and_text
to changelog
...
following https://github.com/emilk/egui/pull/832
2021-11-13 13:19:13 +01:00
d10sfan
90757ca221
Add Button::image_and_text ( #832 )
...
* Support image button with text
* Add example (`cargo run --example native_texture`)
2021-11-13 13:17:02 +01:00
Emil Ernerfeldt
8896243146
Fix egui_web integration link in demo app
2021-11-13 13:14:39 +01:00
Emil Ernerfeldt
89700dfbbb
Improve egui_glow debug prints
2021-11-13 13:14:10 +01:00
Emil Ernerfeldt
105cb57050
Clean up glsl code
2021-11-13 13:09:08 +01:00
Emil Ernerfeldt
b5cb2b2c0d
Some code cleanup following https://github.com/emilk/egui/pull/888
2021-11-13 12:55:48 +01:00
triangle drawer
008a971e73
Fix wrong gamma in WebkitGTK ( #888 )
...
Closes https://github.com/emilk/egui/issues/794
Also refactor and improve VAO support detection
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2021-11-13 12:32:01 +01:00
Emil Ernerfeldt
4d4c75c6f1
Fix vertical slider up/down keys and add a line in the changelog
...
Follow-up to https://github.com/emilk/egui/pull/875
2021-11-13 12:30:13 +01:00
Bruce Reif (Buswolley)
491739b580
implement vertical slider orientation ( #875 )
2021-11-13 12:03:10 +01:00
Sven Niederberger
0bad1d0c99
Plot interaction methods ( #766 )
...
* move to a basic plot builder with callback
* add some interaction methods
* move interaction demo to its own panel
2021-11-13 11:56:22 +01:00
Emil Ernerfeldt
6018c0e194
Area: automatically request a repaint when showing up for the first time ( #866 )
2021-11-07 21:14:13 +01:00
Emil Ernerfeldt
951ee4e142
Improve color picker cache ( #886 )
...
* colorpicker: try to maintain hue even when saturation goes to zero
* More consistent arguments to color types
* implement `Hash` for `Rgba`.
2021-11-07 21:11:42 +01:00
Emil Ernerfeldt
ddd5f6f4f6
winit: don't explicitly handle Cmd-Q and Alt-F4 ( #881 )
...
Closes https://github.com/emilk/egui/issues/877
Still a problem: https://github.com/rust-windowing/winit/issues/1998
2021-11-07 20:58:02 +01:00
Emil Ernerfeldt
19d24bbebe
Don't clip popups to the parent cliprect ( #885 )
...
Closes https://github.com/emilk/egui/issues/825
2021-11-07 19:48:38 +01:00
Emil Ernerfeldt
878eddd546
When using a custom font you can now specify a font index ( #873 )
...
When using a custom font you can now specify a font index
Closes https://github.com/emilk/egui/issues/853
2021-11-07 19:47:52 +01:00
sumibi-yakitori
10c8ffa543
Fix to limit X position of text agent to client width ( #870 )
2021-11-06 10:33:43 +01:00
Emil Ernerfeldt
83e490fb6a
Remove egui::math & egui::paint, replace with egui::emath & egui::epaint
2021-11-06 09:47:23 +01:00
Emil Ernerfeldt
0ab93576da
Remove references to the old begin_frame
2021-11-03 23:00:00 +01:00
Emil Ernerfeldt
6d33beabb1
Replace scroll_delta
and zoom_delta
in RawInput
with events
...
Part of https://github.com/emilk/egui/issues/843
2021-11-03 22:57:13 +01:00
Emil Ernerfeldt
49e43885ff
Replace Context::begin_frame/end_frame
with fn run
taking a closure ( #872 )
...
* Replace Context begin_frame/end_frame with `fn run` taking a closure
* Create `egui::__run_test_ui` to replace `Ui::__test`
* Add helper `egui::__run_test_ctx` for doctests
2021-11-03 20:11:25 +01:00
Emil Ernerfeldt
e54106e950
Extend contributor list
2021-11-03 19:37:38 +01:00
Emil Ernerfeldt
c71090473b
glow-vs-web cleanup following https://github.com/emilk/egui/pull/868
2021-11-03 19:35:20 +01:00
triangle drawer
804722a1ba
Make egui_glow painter to work on web ( #868 )
...
Add WebGL1 and WebGL2 support to glow painter.
Add "glow" feature to egui_web to use the glow painter there.
Make winit an optional part of egui_glow
2021-11-03 19:17:07 +01:00
Emil Ernerfeldt
1dbe608e73
Refactor integrations ( #871 )
...
* Unify code in egui_glium and egui_glow into egui_winit::EpiIntegration
* Simplify `EguiGlium` interface
* Simplify `EguiGlow` interface
* egui_web refactor: merge `WebBackend` into `AppRunner`
2021-11-03 13:45:51 +01:00
sumibi-yakitori
b1716be745
egui_web: constrain the IME text agent to the canvas ( #830 )
...
limit the position of the text agent to the height of the client area
2021-11-02 19:46:42 +01:00
Emil Ernerfeldt
eda1d91654
Add culling of the painting for most widgets
...
This is a good early-out for widgets in `ScrollAreas`, but
also prepares for speeding up the first pass of a possible two-pass
version of egui: https://github.com/emilk/egui/issues/843
2021-11-01 22:08:23 +01:00