Tomáš Vojtášek
f07f9bf5bd
Typo previus -> previous ( #214 )
2021-03-09 18:57:45 +01:00
Emil Ernerfeldt
4c45ca113e
Make sure to include license files in the next release
2021-03-09 18:35:13 +01:00
Emil Ernerfeldt
ea248d66b5
Improve widget info output for potential screen readers
...
Part of https://github.com/emilk/egui/issues/167
2021-03-08 18:36:32 +01:00
Emil Ernerfeldt
1c06622dbc
Hold down a modifier key when clicking a link to open it in a new tab
2021-03-08 17:48:23 +01:00
Emil Ernerfeldt
c212d4512e
Clarify behavior of window resizing
...
closes https://github.com/emilk/egui/issues/206
2021-03-07 20:15:42 +01:00
Emil Ernerfeldt
d6233de9dc
Small improvements to the demo (add source code links etc)
2021-03-07 19:51:07 +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
9c8439d053
Add some helper functions to Response
2021-03-06 10:48:39 +01:00
Emil Ernerfeldt
fb2db4940e
Release 0.10.0 - Plot and polish
2021-02-28 20:11:37 +01:00
Emil Ernerfeldt
f793ac7f3e
[demo] Remove dead code
2021-02-28 20:11:37 +01:00
Emil Ernerfeldt
1fb3b43dfc
[demo] Improve painting demo slightly
2021-02-28 19:50:47 +01:00
Emil Ernerfeldt
84cc227f11
eframe: always provide a texture allocator
2021-02-28 19:09:48 +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
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
4e041185f1
Add module special_emojis with apple, linux, windows & github logos
2021-02-20 16:09:00 +01:00
Emil Ernerfeldt
6354709fe1
[demo] Link to the egui docs from the widget gallery
2021-02-20 12:07:15 +01:00
Emil Ernerfeldt
040553da78
impl<F> Widget for F where F: FnOnce(&mut Ui) -> Response
...
This enables functions that return `impl Widget`, so that you can
create a widget by just returning a lambda from a function.
For instance: `ui.add(toggle(bool))` (instead of `toggle(ui, bool)`)
2021-02-20 12:02:38 +01:00
Emil Ernerfeldt
6fe70e685b
Simplify and unify colors of selectable widgets
2021-02-20 11:28:00 +01:00
Emil Ernerfeldt
21c99e1130
Add Ui::hyperlink_to
2021-02-20 09:26:58 +01:00
Emil Ernerfeldt
9e38674d13
[demo] Alwyas start with widget gallery
2021-02-20 09:19:40 +01:00
Emil Ernerfeldt
0f13fff24b
Assign default colors to plot lines if not explicitly set
2021-02-18 18:59:59 +01:00
Emil Ernerfeldt
a19140ec67
A simple 2D plot library
2021-02-17 22:54:10 +01:00
Emil Ernerfeldt
7dad76b913
Use explicit epaint
over paint
alias (re-export)
...
egui reexports the `epaint` crate both under its original name
and under the alias `paint` (for historical reasons)
2021-02-14 10:53:39 +01:00
Emil Ernerfeldt
6d255cd179
Use explicit emath
to math
alias
...
egui exports `emath` under its original name AND under the alias `math`
(for historical reasons).
2021-02-14 10:44:46 +01:00
Emil Ernerfeldt
c376d0bb7e
[emath] RectTransform: transforms Pos2 from one Rect to another
...
Very useful for transforming coordinate systems, e.g. for painting
2021-02-14 10:33:44 +01:00
Emil Ernerfeldt
dbc6a620cd
Control the maximum egui web canvas size with App::max_size_points
2021-02-12 17:58:02 +01:00
Emil Ernerfeldt
1c415bd8fe
Add benchmark for text layout and tesselation
2021-02-08 22:53:31 +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
6377a4231f
[demo] Refactor and minor cleanup
2021-02-07 17:04:03 +01:00
Emil Ernerfeldt
e82fb81f07
Replace (ret, response) tuples with new struct InnerResponse
2021-02-07 14:09:44 +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
xue-blood
ce14fa860b
Speed up fractal_clock painting ( #152 )
...
clip unwatchable line before drawing
2021-02-06 16:59:46 +01:00
Emil Ernerfeldt
26f966563a
Add Grid::max_col_width
2021-02-06 16:54:38 +01:00
Emil Ernerfeldt
2d9d06dbff
[emath] Use const values for Vec2::ZERO, Rect::EVERYTHING etc
2021-02-05 10:11:39 +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
Lucas Walter
4e7e128b2b
Spelling ui_resouce -> ui_resource ( #156 )
2021-02-03 20:04:57 +01:00
Emil Ernerfeldt
af3195f086
Add ctx.set_visuals()
2021-02-03 19:38:50 +01:00
Emil Ernerfeldt
a19fd7b780
Add light mode
2021-02-03 19:30:58 +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
Emil Ernerfeldt
e529bd3ea4
[demo] Make syntect an optional dependency
...
Adds a whopping 1.4 MB to the WASM
2021-01-31 16:52:26 +01:00
Emil Ernerfeldt
16d66bd22d
Replace markdown editor with new 'EasyMark' markup language
2021-01-31 16:42:32 +01:00
Emil Ernerfeldt
6029a438a2
Add a VERY experimental markdown viewer
2021-01-27 20:14:53 +01:00
Emil Ernerfeldt
b493bc6efc
Wrap tesselated output in struct ClippedMesh(Rect, Mesh)
2021-01-25 21:43:17 +01:00
Emil Ernerfeldt
75fa77e040
Rename Triangles to Mesh
2021-01-25 21:23:24 +01:00
Emil Ernerfeldt
63e4ff4382
[demo] Move layout demo to own window
2021-01-25 20:52:47 +01:00
Emil Ernerfeldt
749419c9fd
[demo] Improve scroll demo and move to own window
2021-01-25 20:52:31 +01:00