René Rössler
1cd2a3c984
Merge remote-tracking branch 'egui/master' into dynamic-grid
2022-02-27 13:30:29 +01:00
Emil Ernerfeldt
83225f46ad
Make Bézier demo more compact
2022-02-22 19:12:21 +01:00
Emil Ernerfeldt
8f887e2ebd
Add Shape::visual_bounding_rect()
2022-02-21 21:46:30 +01:00
Emil Ernerfeldt
fd3fb726c1
Fix bugs in consume_key
and improve Modifiers API
...
Improvements and fixes following https://github.com/emilk/egui/pull/1212
2022-02-21 16:53:41 +01:00
Emil Ernerfeldt
10634fc344
Improve the Bézier demo: drag control points and simplify code
...
Follow-up to https://github.com/emilk/egui/pull/1178
2022-02-19 20:46:44 +01:00
Urho Laukkarinen
6abdde0334
Add more source code links to demos ( #1260 )
2022-02-17 17:08:13 +01:00
Sven Niederberger
8f8eb5d4a9
Customize Plot label and cursor texts ( #1235 )
...
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2022-02-15 17:12:29 +01:00
Juan Campa
635c65773d
Allow scroll into view without specifying an alignment ( #1247 )
...
* Allow scroll into view without specifying an alignment
* Handle case of UI being too big to fit in the scroll view
2022-02-15 16:52:29 +01:00
Alexander
62504fface
Slider: Add step parameter ( #1225 )
...
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2022-02-13 21:55:51 +01:00
René Rössler
63a70ab00d
remove padding, use egui item spacing
2022-02-09 16:00:25 +01:00
René Rössler
afe583034a
change format("{}", VAR) to VAR.to_string()
2022-02-09 12:49:32 +01:00
René Rössler
27c72efdc7
iso 8601 date format
2022-02-09 12:37:02 +01:00
René Rössler
0cd74376a7
use rfc3339/iso 8601
2022-02-09 12:20:56 +01:00
René Rössler
9d19a07a55
remove unused use
2022-02-09 12:11:59 +01:00
René Rössler
0396eed9bf
use ui.heading
2022-02-09 12:10:53 +01:00
René Rössler
ae71f91f8c
add sourcecode links, document slow growing
2022-02-09 12:02:19 +01:00
René Rössler
10c51364c5
add labels on grid demo
2022-02-09 11:47:34 +01:00
René Rössler
0f385f6beb
Merge remote-tracking branch 'egui/master' into dynamic-grid
2022-02-07 10:03:48 +01:00
Manuel Innerhofer
7d41551913
Fixed typos: wether -> whether ( #1210 )
...
Co-authored-by: mir <mir@wisdomtag.com>
2022-02-05 18:14:16 +01:00
Emil Ernerfeldt
9ed96155e9
Rename corner_radius to rounding
...
Also update changelogs and clean up other aspects of
https://github.com/emilk/egui/pull/1206
2022-02-05 18:13:46 +01:00
nongiach
869d556335
Plot boxed zoom with secondary mouse button ( #1188 )
2022-02-02 16:32:46 +01:00
Xu Desheng
1f03f53dc0
Add Bezier Shapes #1120 ( #1178 )
2022-01-31 20:26:31 +01:00
Sven Niederberger
4e99d8f409
Plot: Linked axis support ( #1184 )
2022-01-31 20:18:10 +01:00
Emil Ernerfeldt
b618636425
Add ui.data(), ctx.data(), ctx.options() and ctx.tessellation_options() ( #1175 )
...
Helpful access deeper into Memory
2022-01-29 17:53:41 +01:00
Emil Ernerfeldt
3333d63b91
Return more info from ScrollArea::show ( #1166 )
2022-01-26 22:19:32 +01:00
Jan Haller
366f544655
Formatter for plot axis labels ( #1130 )
...
* Fix Orientation not exposed, although there are public fields with its type
* Implement formatters for X/Y axis labels
* Use array instead of separate X/Y formatters
* Swap axis formatters if charts are horizontal
* Review suggestions
2022-01-24 22:34:00 +01:00
Emil Ernerfeldt
fa43d16c41
Choose your own font and size ( #1154 )
...
* Refactor text layout: don't need &Fonts in all functions
* Replace indexing in Fonts with member function
* Wrap Fonts in a Mutex
* Remove mutex for Font::glyph_info_cache
* Remove RwLock around Font::characters
* Put FontsImpl and GalleyCache behind the same Mutex
* Round font sizes to whole pixels before deduplicating them
* Make TextStyle !Copy
* Implement user-named TextStyle:s
* round font size earlier
* Cache fonts based on family and size
* Move TextStyle into egui and Style
* Remove body_text_style
* Query graphics about max texture size and use that as font atlas size
* Recreate texture atlas when it is getting full
2022-01-24 14:32:36 +01:00
Emil Ernerfeldt
462f181db3
Partial font texture update ( #1149 )
2022-01-22 11:23:12 +01:00
Emil Ernerfeldt
76ac41f9b5
WidgetGallery: hide spinner widget to save CPU in reactive mode
2022-01-17 19:57:32 +01:00
Emil Ernerfeldt
39dd6d7644
clippy fixes
2022-01-17 19:57:32 +01:00
Emil Ernerfeldt
66d80e2519
Texture loading in egui ( #1110 )
...
* Move texture allocation into epaint/egui proper
* Add TextureHandle
* egui_glow: cast using bytemuck instead of unsafe code
* Optimize glium painter
* Optimize WebGL
* Add example of loading an image from file
2022-01-15 13:59:52 +01:00
Emil Ernerfeldt
d5673412dd
Put everything in Context behind the same Mutex ( #1050 )
...
* Move all interior mutability from Context to CtxRef and make it a handle
* Rename `CtxRef` to `Context`
* The old `Context` is now `ContextImpl` and is non-pub
* Add benchmark Painter::rect
Co-authored-by: Daniel Keller <dklr433@gmail.com>
2022-01-10 23:13:10 +01:00
René Rössler
bb5da25a9b
merge both crates into egui_extras
2022-01-09 21:56:58 +01:00
René Rössler
7dec7054fb
combine vertical/horizontal variant to remove duplicate code
2022-01-09 21:16:14 +01:00
René Rössler
e373961e21
Merge remote-tracking branch 'egui/master' into dynamic-grid
2022-01-07 13:23:06 +01:00
Emil Ernerfeldt
7863f44111
Add demo of advanced TextEdit usage
2022-01-06 11:53:23 +01:00
René Rössler
767357c468
Merge remote-tracking branch 'egui/master' into dynamic-grid
2022-01-04 12:28:13 +01:00
LordMZTE
8da592c6ab
Add Spinner widget ( #1013 )
...
* add spinner widget
* implement requested changes to spinner
- removed enabled field
- cleaned up math
- improved docs
* improve spinner docs & make spinner in demo always active
2021-12-31 14:32:48 +01:00
Emil Ernerfeldt
84399cde83
Small tweaks to documentation and demo
2021-12-29 10:49:22 +01:00
Emil Ernerfeldt
190c85a40f
Rename Texture
to FontImage
2021-12-28 21:19:24 +01:00
Emil Ernerfeldt
b7441eeee7
Make epi::Frame cloneable so you can allocate textures in other threads ( #999 )
...
Closes https://github.com/emilk/egui/issues/673
Also adds `epi::Image`
2021-12-26 21:21:28 +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
84a3c1813f
heading and fix growing window
2021-12-17 17:47:58 +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
4e16d48dd6
integrate into egui
2021-12-17 15:33:29 +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
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