egui/crates/egui_glium
Jan Procházka 67a3fcae38
Final polish for new image loading (#3328)
* add egui logo to widget gallery

* improve "no image loaders" error message

* rework static URIs to accept `Cow<'static>`

* remove `RetainedImage` from `http_app` in `egui_demo_app`

* hide `RetainedImage` from docs

* use `ui.image`/`Image` over `RawImage`

* remove last remanant of `RawImage`

* remove unused doc link

* add style option to disable image spinners

* use `Into<Image>` instead of `Into<ImageSource>` to allow configuring the underlying image

* propagate `image_options` through `ImageButton`

* calculate image size properly in `Button`

* properly calculate size in `ImageButton`

* Update crates/egui/src/widgets/image.rs

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>

* improve no image loaders error message

* add `size()` helper to `TexturePoll`

* try get size from poll in `Button`

* add `paint_at` to `Spinner`

* use `Spinner::paint_at` and hover on image button response

* `show_spinner` -> `show_loading_spinner`

* avoid `allocate_ui` in `Image` when painting spinner

* make icon smaller + remove old texture

* add `load_and_calculate_size` + expose `paint_image_at`

* update `egui_plot` to paint image in the right place

* Add helpers for painting an ImageSource directly

* Use max_size=INF as default

* Use new API in WidgetGallery

* Make egui_demo_app work by default

* Remove Option from scale

* Refactor ImageSize

* Fix docstring

* Small refactor

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2023-09-13 16:27:08 +02:00
..
examples Final polish for new image loading (#3328) 2023-09-13 16:27:08 +02:00
src Add #![forbid(unsafe_code)] where unsafe isn't needed (#2773) 2023-03-29 14:39:51 +02:00
CHANGELOG.md Changelogs: document that they are updated upon release (not by users) 2023-08-09 17:12:47 +02:00
Cargo.toml Update MSRV to Rust 1.70.0 (#3310) 2023-09-06 07:59:24 +02:00
README.md We no longer use tts, so remove speech-related dependencies (#2698) 2023-02-08 18:45:44 +01:00

README.md

egui_glium

Latest version Documentation unsafe forbidden MIT Apache

This crates provides bindings between egui and glium which allows you to write GUI code using egui and compile it and run it natively, cross platform.

To use on Linux, first run:

sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev

This crate depends on egui-winit.

DEPRECATED - Looking for new maintainer

This crate is no longer being updated. If you are interested in keeping egui_glium updated, then fork it to its own repository, make a PR to the egui repo removing it, and then I will give you access to it on crates.io so you can publish new egui_glium crates.