Commit graph

1995 commits

Author SHA1 Message Date
Emil Ernerfeldt
e3b77e320a Fix broken doclink 2022-04-27 09:59:05 +02:00
Emil Ernerfeldt
2fd20308e5 Add Ui::toggle_value 2022-04-26 21:36:22 +02:00
Emil Ernerfeldt
4d2eb5b71e Don't export macros that should only be pub(crate) 2022-04-25 22:01:32 +02:00
Emil Ernerfeldt
95c0174331 Change canvas frame margin two points 2022-04-25 16:58:24 +02:00
Emil Ernerfeldt
0862712595 Add Vec2::dot 2022-04-25 11:26:54 +02:00
trevyn
888cd9c3eb
Don't paint insertion point if text is immutable (#1523) 2022-04-21 09:19:40 +02:00
Emil Ernerfeldt
c70c72ef61 eframe: make sure we wait for FileStorage to complete the save
Closes https://github.com/emilk/egui/pull/1520
2022-04-20 21:54:31 +02:00
Emil Ernerfeldt
f789159a4a Don't persist Grid sizes
A) there are potentially a lot of Grids, using up a lot of space
(and therefore serialization time).

B) if the code changes, the grid should also change,
and not remember old sizes
2022-04-19 21:28:45 +02:00
Emil Ernerfeldt
558891c146 eframe native: persist app state in background thread
Gives smoother frame rate
2022-04-19 21:26:35 +02:00
Emil Ernerfeldt
1dee439ab1 Added CursorIcons for resizing columns, rows and 8 cardinal directions 2022-04-19 16:56:27 +02:00
trevyn
2932c36238
Add triple-click support (#1512) 2022-04-19 15:14:55 +02:00
Emil Ernerfeldt
4231a5303b Clean up custom plot axis demo 2022-04-19 11:43:22 +02:00
Emil Ernerfeldt
e82ea0c4b4 Plot: estimate bounds for generator functions 2022-04-19 11:43:04 +02:00
Emil Ernerfeldt
cde5f95fc9 code cleanup: replace some for_each with normal for-loops 2022-04-19 11:42:05 +02:00
Jan Haller
e22f6d9a7e
Customize grid spacing in plots (#1180) 2022-04-19 11:35:05 +02:00
Emil Ernerfeldt
676ff047e9 Add Ui::scroll_with_delta, and improve scroll docs 2022-04-19 10:46:24 +02:00
Emil Ernerfeldt
5414e8a7fb Rename Painter::sub_region to Painter::with_clip_rect 2022-04-19 10:00:34 +02:00
Emil Ernerfeldt
2d2022fb72
Add Link widget (#1506)
This looks like a Hyperlink, but doesn't do anything when clicked.
Or rather: it lets the user decide what happens on click.

Closes https://github.com/emilk/egui/issues/1152
2022-04-16 22:55:15 +02:00
Boby
96335d5f45
added epi::Frame::set_window_pos (#1505)
this allows setting the position of window at runtime
2022-04-16 22:27:22 +02:00
Emil Ernerfeldt
2b861f86e8 egui_web: Ignore input of "GroupNext"
Closes https://github.com/emilk/egui/issues/510
2022-04-16 10:38:25 +02:00
bigfarts
2ca72e0bae
Add line breaking rules for Japanese text. Fixes #1497. (#1498)
This allows line breaks after any kana, unless they are immediately followed by a gyōtō kinsoku character, in which case the line may not break at that point.

Also pedantically renamed is_chinese to is_cjk_ideograph as is_chinese will also cause line breaks on Japanese kanji.
2022-04-16 10:36:16 +02:00
Zachary Kohnen
abf340c62a
egui_web: Fix misplaced resize and other event handlers (#1503)
Fix copy-paste error introduced in #1306
2022-04-16 10:08:46 +02:00
Emil Ernerfeldt
2355828d41 Remove epaint::mutex::Arc type alias 2022-04-15 15:18:21 +02:00
Emil Ernerfeldt
5a78213421
Enable depth buffer in WebGL backend (#1499)
This is useful when embedding 3D into eframe using egui::PaintCallback
2022-04-15 12:41:42 +02:00
Emil Ernerfeldt
f3e31391e0 Pass clip rectangle to PaintCallback 2022-04-15 10:31:33 +02:00
Stanisław Jelnicki
2745699bd6
Add Ui::spinner shortcut method (#1494) 2022-04-15 07:39:08 +02:00
tami5
b738418243
New example 'custom_font_style' + improve docs (#1476) 2022-04-14 07:54:01 +02:00
Emil Ernerfeldt
a7b6334784 Misc doc improvements 2022-04-13 22:14:34 +02:00
Emil Ernerfeldt
2ae93c40ab
Move examples out of eframe/examples into examples/ (#1486)
* Move examples out of eframe/examples into examples/

Give each example a `Cargo.toml` and `src/main.rs`.
This makes it easier for people to use as templates.

* Update README.md with more deps needed on vanilla Ubuntu
* Install libgtk-3-dev on CI, hoping that will fix something
2022-04-13 16:13:24 +02:00
Emil Ernerfeldt
170b21b63e
Add opt-in support for the 'puffin' profiler in eframe (#1483) 2022-04-13 11:06:13 +02:00
Emil Ernerfeldt
973c3f22d1
Revert "Update tts to 0.21.1" (#1482)
This reverts commit de038b9546.
2022-04-12 21:40:57 +02:00
Emil Ernerfeldt
08b208586a egui-winit: if clipboard fails to start, fall back to local clipboard 2022-04-12 11:39:35 +02:00
Emil Ernerfeldt
d364dfac66 Add Rect::distance_to_pos 2022-04-12 11:33:48 +02:00
Emil Ernerfeldt
038b3cf2e2 Add Painter::hline and Painter::vline 2022-04-12 10:54:38 +02:00
Emil Ernerfeldt
701ae3cb46 egui_extras::Table: fix bugs in the virtual scrolling 2022-04-11 17:54:57 +02:00
Emil Ernerfeldt
56b127f209 Simplify table demo 2022-04-11 17:25:44 +02:00
Emil Ernerfeldt
de038b9546 Update tts to 0.21.1 2022-04-11 16:36:25 +02:00
Emil Ernerfeldt
efc0b992e0 egui_extras: fix bug when restoring persisted table widths 2022-04-11 14:27:32 +02:00
Emil Ernerfeldt
e97241861e egui_extras Table/Strip: less aggressive cell clipping 2022-04-11 10:55:52 +02:00
Emil Ernerfeldt
917f9e1768 Refactor and simplify feature flags 2022-04-11 10:53:16 +02:00
Emil Ernerfeldt
426b933d2f egui_extras: add cell_layout option to set the layout of all cells 2022-04-11 10:29:34 +02:00
Emil Ernerfeldt
0e0eedfdda Add ui.horizontal_centered 2022-04-11 10:28:45 +02:00
Emil Ernerfeldt
772ef84242 egui_extras Table/Strip: fix some spacing bugs 2022-04-11 10:19:07 +02:00
Emil Ernerfeldt
c88e1f8b29 egui_extras: improve Table/Strip docs, and only panic in debug builds 2022-04-11 10:17:36 +02:00
Emil Ernerfeldt
65d16695ae
Replace copypasta with arboard (#1475)
* Replace copypasta with arboard

Closes https://github.com/emilk/egui/issues/1474

* Clean up deny.toml
2022-04-10 16:41:07 +02:00
Alexis Sellier
b036257729
Make FontId functions constant (#1463) 2022-04-10 16:40:42 +02:00
Emil Ernerfeldt
9b37c82d46 Update three-d to 0.11 2022-04-10 10:00:57 +02:00
Emil Ernerfeldt
29d214912f Improve explanation of immediate mode
Closes https://github.com/emilk/egui/issues/1465
2022-04-10 09:43:23 +02:00
Emil Ernerfeldt
c2ab0404b7
Fix crash in text layout (#1468)
Fix text layout bug added in https://github.com/emilk/egui/pull/1291
2022-04-09 22:43:40 +02:00
Emil Ernerfeldt
cf0338d48f
Rust 1.60.0 + refactor cargo features (#1467)
* Update to rust 1.60.0
* Rename the feature `convert_bytemuck` to `bytemuck`
* Rename the feature `serialize` to `serde`.
* Make use of the "weak dependency" cargo feature
* Set rust-version = "1.60" for all crates
* egui_glow: clipboard, links, persistence & winit are now opt-in features
2022-04-09 13:54:47 +02:00