1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Replace (ret, response) tuples with new struct InnerResponse

This commit is contained in:
Emil Ernerfeldt
2021-02-07 14:09:44 +01:00
parent df4c0257c0
commit e82fb81f07
16 changed files with 109 additions and 68 deletions

View File

@@ -86,7 +86,7 @@ pub fn demo(ui: &mut egui::Ui, on: &mut bool) {
toggle(ui, on).on_hover_text("Click to toggle");
ui.add(crate::__egui_github_link_file!());
})
.1
.response
.on_hover_text(
"It's easy to create your own widgets!\n\
This toggle switch is just one function and 20 lines of code.",