mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
Deprecated ImageButton and removed WidgetType::ImageButton (#7483)
<!-- Please read the "Making a PR" section of [`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/main/CONTRIBUTING.md) before opening a Pull Request! * Keep your PR:s small and focused. * The PR title is what ends up in the changelog, so make it descriptive! * If applicable, add a screenshot or gif. * If it is a non-trivial addition, consider adding a demo for it to `egui_demo_lib`, or a new example. * Do NOT open PR:s from your `master` branch, as that makes it hard for maintainers to test and add commits to your PR. * Remember to run `cargo fmt` and `cargo clippy`. * Open the PR as a draft until you have self-reviewed it and run `./scripts/check.sh`. * When you have addressed a PR comment, mark it as resolved. Please be patient! I will review your PR, but my time is limited! --> * Closes <https://github.com/emilk/egui/issues/7466> * [x] I have followed the instructions in the PR template * I have ran `./scripts/check.sh` and it has no fails * I have run `cargo fmt` and `cargo clippy` Added the deprecated tag to ImageButton struct Removed the `WidgetType::ImageButton` variant. ImageButton will use `WidgetType::Button` for its WidgetInfo *This is my first PR ever, please let me know if I did something wrong so I can change it* --------- Co-authored-by: Nicolas <bircni@icloud.com> Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com> Co-authored-by: Lucas Meurer <hi@lucasmerlin.me>
This commit is contained in:
@@ -24,6 +24,7 @@ pub mod text_edit;
|
||||
|
||||
#[expect(deprecated)]
|
||||
pub use self::selected_label::SelectableLabel;
|
||||
#[expect(deprecated, reason = "Deprecated in egui 0.33.0")]
|
||||
pub use self::{
|
||||
button::Button,
|
||||
checkbox::Checkbox,
|
||||
|
||||
Reference in New Issue
Block a user