Commit Graph
76 Commits
Author SHA1 Message Date
Emil Ernerfeldt d2b5730784 Check if TextEdit lost keyboard focus with response.lost_kb_focus 2020-11-09 18:42:54 +01:00
Emil Ernerfeldt c999ed038a Hexadecimal Debug format of Id 2020-11-09 18:41:19 +01:00
Emil Ernerfeldt e55b59256e Press enter in single line TextEdit to surrender keyboard focus 2020-11-09 18:40:23 +01:00
Emil Ernerfeldt 796def4bcb Fixed bug where a lost widget could still retain keyboard focus. 2020-11-09 13:19:22 +01:00
Emil Ernerfeldt 7cc5218630 [refactor] Move used_ids from Context to Memory 2020-11-09 13:04:05 +01:00
Emil Ernerfeldt 901a6920be cargo update 2020-11-06 09:34:57 +01:00
Emil Ernerfeldt 80fedbd3fc Check wasm32 target in check.sh 2020-11-06 09:34:33 +01:00
Emil Ernerfeldt 8393d1df47 Upgrade ahash from 0.4 to 0.5 2020-11-06 09:33:36 +01:00
Emil Ernerfeldt 07a32793d6 Forbid creating a panel from within another panel 2020-10-27 15:37:30 +01:00
Emil Ernerfeldt 16a984b71f Add badge for Build Status 2020-10-27 14:50:44 +01:00
Emil Ernerfeldt e9f0fba9f0 Add badge for dependency status 2020-10-27 14:50:32 +01:00
Emil Ernerfeldt d0bc9096f7 Rename CI workflow 2020-10-27 14:44:05 +01:00
Emil Ernerfeldt a4ce2afcd8 Update dependencies 2020-10-27 14:40:48 +01:00
Emil Ernerfeldt cbdfc03378 Improve and expand documentation tests 2020-10-26 08:34:49 +01:00
Emil Ernerfeldt df056d2ce4 [egui_web] Disable face culling in WebGL renderer
Closes https://github.com/emilk/egui/issues/29
2020-10-21 23:14:12 +02:00
Emil Ernerfeldt 90700e950e Add /.vscode and /.*.json to .gitignore 2020-10-21 22:21:55 +02:00
Emil Ernerfeldt 46e39d3dd9 Add high-prio TODO to refactor layer system 2020-10-21 22:20:30 +02:00
Emil Ernerfeldt 35b949a2d8 Refactor panels into proper containers 2020-10-21 22:10:55 +02:00
Emil Ernerfeldt 8b51ae5dea Panels: Added Context::panel_left and panel_top
Context will keep track of the avilable space left after panels.
Windows will be constrained to that available space.
So add panels first, THEN add windows.
2020-10-21 18:26:28 +02:00
Emil Ernerfeldt 15c5e0b04d [menu] Fix minor size issue of menu bars 2020-10-21 17:46:57 +02:00
Emil Ernerfeldt 46ce9a4f3d [windows] Constrain windows to screen 2020-10-21 16:24:36 +02:00
Emil Ernerfeldt 39431afd03 [refactor] Rename Layer to LayerId for clarity 2020-10-21 14:39:31 +02:00
Emil Ernerfeldt 9b01c75e16 tesselator: produce fewer paint jobs with PaintCmd::Triangles 2020-10-21 11:09:42 +02:00
Emil Ernerfeldt 7fbb11481b Try to protect against invalid Triangles 2020-10-21 11:04:22 +02:00
Emil Ernerfeldt bc5dbd718e Fix: Context::wants_mouse_input() now returns false if a mouse drag started outside of Egui 2020-10-20 14:52:18 +02:00
Emil Ernerfeldt c2a0705c6f Add ability to override text color with visuals.override_text_color
This is kind of hacky; I may redesign this later
2020-10-14 16:32:29 +02:00
Emil Ernerfeldt 1bd45c35eb Collapsing header returns header and body responses 2020-10-14 15:26:31 +02:00
Emil Ernerfeldt 7561ccc189 ui.horizontal(...) etc returns Response
This is much more ergonomic than just returning a Rect (like previously).
The Response only contains `hover` checks.
2020-10-14 14:42:40 +02:00
Emil Ernerfeldt 7db71eb875 Use positional ids for sliders
This means two sliders now can use the same label
2020-10-14 12:39:46 +02:00
Emil Ernerfeldt a35fe7da12 Export egui::demos::app::DemoApp
Closes https://github.com/emilk/egui/issues/26
2020-10-12 12:35:55 +02:00
Emil Ernerfeldt ba98ea715f fix ui.expand_... functions to also expand max_rect 2020-10-08 17:58:28 +02:00
Emil Ernerfeldt a2a4eafd0e fix compilation of test and benchmark 2020-10-01 16:54:05 +02:00
Emil Ernerfeldt 5856cded95 refactor RunMode: move it from backend to the demo App (#23)
This simplifies the egui_glium and egui_web backends substantially,
reduces the scope of RunMode to a single file, and
removes duplicated code.

Basically: this is how I should have written it from the beginning.
2020-09-16 08:03:40 +02:00
Emil Ernerfeldt 5ba420988f [docs] improve toggle_switch.rs demo with better comments 2020-09-11 17:17:43 +02:00
Emil Ernerfeldt c6f7534a8b README.md: add a "Why Egui?" section
Includes a comparison with imgui-rs
2020-09-11 11:38:45 +02:00
Emil Ernerfeldt 10574c34d6 make it easy to combine Response:s with | and |= overloads 2020-09-11 10:19:04 +02:00
Emil Ernerfeldt a76d57480d fix: menu bar should have a background 2020-09-07 20:54:29 +02:00
Emil Ernerfeldt 8b93135fe4 [style] you can override the default body text style 2020-09-04 10:15:35 +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 b17f200b35 github action
From https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
2020-07-30 12:12:06 +02:00
Emil Ernerfeldt 67bafad8f9 [button] add ability to disable Button 2020-06-22 10:36:27 +02:00
Emil Ernerfeldt 53dbbd0d53 [id] smarter id selection for collapsing header 2020-06-12 15:03:36 +02:00
Emil Ernerfeldt 5c2a0a59ac [collapsing header] add id_source to builder 2020-06-12 13:49:35 +02:00
Emil Ernerfeldt 916e667aa2 [style] tigher buttons and monospaced DragValue text 2020-06-11 18:07:42 +02:00
Emil Ernerfeldt 097730461d [input] add queries for if egui is interested in mouse/kb 2020-06-11 18:07:21 +02:00
Emil Ernerfeldt 94545409c6 [id] improve default Id generation
Base on child count instead of on screen position.
This is more robust against changing sizes of nearby widgets.
2020-06-11 18:06:23 +02:00
Emil Ernerfeldt 2dea2ee668 update Cargo.lock to 0.1.2 2020-06-10 17:11:44 +02:00
Emil Ernerfeldt cc589c7bbc bump version to 0.1.2 2020-06-10 16:58:57 +02:00
Emil Ernerfeldt acdc2b004f [widgets] new widget: DragValue 2020-06-10 16:23:49 +02:00
Emil Ernerfeldt a90dda6162 [button] add sense so you can make drag buttons 2020-06-10 16:23:15 +02:00
Emil Ernerfeldt 2162ffff42 [slider] round so what you see is what you get 2020-06-10 16:22:31 +02:00
Emil Ernerfeldt 3c85c2d364 Merge pull request #3 from Jasper-Bekkers/master
Add badges
2020-06-10 12:04:30 +02:00
Emil Ernerfeldt 9f46d8f0be [ui] add convenience functions 2020-05-30 09:51:57 +02:00
Emil Ernerfeldt 3de20d033e [window] remove frame delay when moving/resizing 2020-05-27 08:38:21 +02:00
Emil Ernerfeldt bcc786fd95 [license] licence under MIT or Apache-2.0 2020-05-26 15:07:31 +02:00
Emil Ernerfeldt 550f3dcfa1 [examples] fix fractal clock size 2020-05-26 11:15:53 +02:00
Emil Ernerfeldt 6ad74ccaf5 Merge pull request #2 from not-fl3/patch-1
Mention miniquad backend in readme
2020-05-07 17:35:57 +02:00
Emil Ernerfeldt 87e3aacf35 enforce and fix a bunch of clippy issues 2020-05-07 10:47:03 +02:00
Emil Ernerfeldt 0be9722af5 Handle more than 2^16 vertices in WebGL renderer 2019-03-12 14:43:50 +01:00
Emil Ernerfeldt 0ba687f521 Run on requestAnimationFrame by default 2019-03-12 10:01:25 +01:00
Emil Ernerfeldt 9cdd038285 Expose mesher module 2019-03-12 10:01:25 +01:00
Emil Ernerfeldt 192b59ebb0 Refactor: remove GuiCmd 2019-03-11 15:59:49 +01:00
Emil Ernerfeldt 87288634e9 Refactor: Merge LayoutOptions and Style 2019-03-11 15:39:54 +01:00
Emil Ernerfeldt 7cbf8e45bc Nicer looking colors and sliders 2019-03-11 15:30:32 +01:00
Emil Ernerfeldt ef4f0908f2 make label into a macro 2019-01-21 01:48:32 -06:00
Emil Ernerfeldt c2c94ddda5 Pixel-perfect fonts 2019-01-19 10:10:28 -06:00
Emil Ernerfeldt cd8ca47e76 Small tweaks 2019-01-19 10:09:00 -06:00
Emil Ernerfeldt 391abda3d5 Mobile fixes 2019-01-17 17:34:01 -06:00
Emil Ernerfeldt 46293f6fd4 Allow zooming font atlas 2019-01-17 17:33:20 -06:00
Emil Ernerfeldt 88fdd127ea Allow resizing fonts at runtime 2019-01-17 11:03:39 -06:00
Emil Ernerfeldt fe3542a28d Allow floating point font sizes 2019-01-17 07:07:02 -06:00
Emil Ernerfeldt 616245c323 Refactor: create Texture struct 2019-01-16 17:09:12 -06:00
Emil Ernerfeldt 7f83876005 Enable colored text (and other misc fixes) 2019-01-16 09:28:43 -06:00
Emil Ernerfeldt 4dab7a1504 Fix font test 2019-01-15 04:50:30 -06:00
Emil Ernerfeldt 2c0ca77e09 Add support for alignment (min, center, max) in horizontal and vertical layouts 2019-01-15 04:50:30 -06:00
Emil Ernerfeldt 3f84836c20 Add rect field to InteractInfo struct 2019-01-15 04:48:05 -06:00