Commit graph

434 commits

Author SHA1 Message Date
Emil Ernerfeldt
3d7b5ea6fe [egui_web] sRGBA: blend vertex colors in linear space 2020-08-29 12:04:33 +02:00
Emil Ernerfeldt
d5a1385870 [demo] disable name clash demo, since it is not working anyway 2020-08-28 16:43:24 +02:00
Emil Ernerfeldt
a2160a5e12 fix some corner cases for repaint requests 2020-08-28 16:41:37 +02:00
Emil Ernerfeldt
0755a95c76 Update README.md 2020-08-28 16:24:20 +02:00
Emil Ernerfeldt
b8938e01c4 [demo] add menu option to auto-reorganize windows 2020-08-28 16:24:20 +02:00
Emil Ernerfeldt
559b026b87 [demo] add windows that demonstrates auto-size, resize and scrolling 2020-08-28 16:24:20 +02:00
Emil Ernerfeldt
b02530b6fb [refactor] small cleanup and typo fixes 2020-08-28 16:24:20 +02:00
Emil Ernerfeldt
0bbf7edaee [window] increase default width of windows and resize areas 2020-08-28 16:24:20 +02:00
Emil Ernerfeldt
03bc4ea2e2 [window] make scroll bars in windows opt-in 2020-08-28 16:24:20 +02:00
Emil Ernerfeldt
5ed949bb32 deny warnings in egui lib (again. oops) 2020-08-28 16:24:20 +02:00
Emil Ernerfeldt
8c03f6a90f [window] prevent trying to shrink window smaller than title bar width 2020-08-28 16:24:20 +02:00
Emil Ernerfeldt
5f919e22a9 [ui] add ui.heading(text) helper function 2020-08-28 16:24:20 +02:00
Emil Ernerfeldt
056c0ad794 [window] round position to nearest physical pixel, not nearest point 2020-08-28 16:24:20 +02:00
Emil Ernerfeldt
373b1c2911 Allow multithreaded use of egui
...but currently only in release build,
because in debug builds I want to be able to debug dead-locks from
locking the same resource from the same thread.
2020-08-28 16:24:20 +02:00
Emil Ernerfeldt
98bced7e62 [ui] bug fix: default size of horizontal/vertical regions 2020-08-28 15:43:00 +02:00
Emil Ernerfeldt
48e42ff6a5 [drag-value] click on a DragValue to edit it 2020-08-28 14:35:39 +02:00
Emil Ernerfeldt
f3bbb210c0 [slider] click value to edit it with keyboard 2020-08-28 10:37:44 +02:00
Emil Ernerfeldt
1874f238eb [slider] show value with monospace font 2020-08-28 00:24:51 +02:00
Emil Ernerfeldt
ec1e8b9966 [drag-value] show full precision if needed 2020-08-28 00:22:58 +02:00
Emil Ernerfeldt
ecb703a696 [slider] show full precision of value if value is very precise 2020-08-28 00:14:57 +02:00
Emil Ernerfeldt
fd95f8a146 [slider] automatic slider precision display 2020-08-27 22:06:28 +02:00
Emil Ernerfeldt
f0287fb86d [slider] refactor to break up complex ui code 2020-08-27 21:38:07 +02:00
Emil Ernerfeldt
f2b23f1a0d [slider] smart aim for picking nice and round slider values 2020-08-27 20:58:41 +02:00
Emil Ernerfeldt
d0bfb0238d [refactor] break up math.rs into a mod of several files 2020-08-27 18:07:33 +02:00
Emil Ernerfeldt
98c9e9bb41 spelling fixes 2020-08-27 18:06:32 +02:00
Emil Ernerfeldt
d41b7a6234 [resize] remove Resize::handle_offset 2020-08-26 22:14:28 +02:00
Emil Ernerfeldt
a764b0d23f [window] visually indicate which windows can be resized 2020-08-26 20:55:23 +02:00
vkkoskie
9ed6a5f5ab
Allow mutable borrow of ui.style (#18) 2020-08-22 10:27:09 +02:00
Emil Ernerfeldt
73cea29f7d [docs] Improve README.md and documentation 2020-08-21 18:53:43 +02:00
Emil Ernerfeldt
ad9783a33d Update links to point to https://github.com/emilk/egui
because I renamed the github repository from "emigui" to "egui"
2020-08-10 19:38:46 +02:00
Emil Ernerfeldt
1483455630 Fix some links 2020-08-09 17:46:00 +02:00
Emil Ernerfeldt
d35be05731 add descriptions for egui_glium and egui_web crates 2020-08-09 17:39:05 +02:00
Emil Ernerfeldt
b06c9e94fb [egui] rename "with_serde" feature flag to just "serde" 2020-08-09 17:34:26 +02:00
Emil Ernerfeldt
b58142ba15 Update versions to 0.1.3 2020-08-09 17:30:12 +02:00
Emil Ernerfeldt
3facd5c587 [doc] improve docstrings in Egui 2020-08-09 17:24:32 +02:00
Tomas Sedovic
e26150e46f
Add collapsible to Window (#15)
This lets the user decide whether the Window can be collapsed or not.
The default is `true` (window is collapsible), but calling
`window.collapsible(false)` will hide the collapsing triangle icon and
prevent the window from being collapsed by clicking on the title.
2020-08-09 14:46:39 +02:00
Tomas Sedovic
40af177157
Add fixed_pos to Window (#16)
* Add fixed_pos to Window

This allows changing the position of a window by opening the window
with a different value.

* Add docstrings for `fixed_pos`
2020-08-09 14:31:46 +02:00
Emil Ernerfeldt
d4cb2fa62e [egui] Clean up Painter interface 2020-08-05 19:45:39 +02:00
Emil Ernerfeldt
efedb09b9f [text] show solid text cursor (less repainting) 2020-08-05 14:03:12 +02:00
Emil Ernerfeldt
81d642b1f1 [text] highlight the text edit widget being edited 2020-08-05 13:59:33 +02:00
Emil Ernerfeldt
2f161dd3d4 [text] surrender keyboard focus by clicking outside text edit area 2020-08-05 13:54:17 +02:00
Emil Ernerfeldt
2861bc956a [menu] click outside a menu to close it 2020-08-05 13:41:09 +02:00
Emil Ernerfeldt
3962fae76e
Merge pull request #13 from FGRibreau/patch-1
fix 404 link
2020-08-05 10:27:11 +02:00
Emil Ernerfeldt
56352c26a4 Expose egui::menu module 2020-08-05 10:21:15 +02:00
Francois-Guillaume Ribreau
37057d8334
fix 404 link 2020-08-04 09:37:06 +02:00
Emil Ernerfeldt
11df21e39e [refactor] extract paint code from Ui/Context to new struct Painter 2020-07-30 14:35:18 +02:00
Emil Ernerfeldt
5c14a15f8c [github-actions] fix typo 2020-07-30 12:44:12 +02:00
Emil Ernerfeldt
42c94f9db9 [egui] fix build without "with_serde" feature 2020-07-30 12:40:05 +02:00
Emil Ernerfeldt
fae81ca386 [github-actions] only test egui project
Work-around for weird build issue in
https://github.com/emilk/emigui/runs/927167824?check_suite_focus=true
2020-07-30 12:39:35 +02:00
Emil Ernerfeldt
df2cba41ff [clippy] fix all clippy issues 2020-07-30 12:30:20 +02:00