1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

Improve misc docs

This commit is contained in:
Emil Ernerfeldt
2021-06-12 22:10:40 +02:00
parent 7f1123a54c
commit ef36cac422
7 changed files with 43 additions and 17 deletions

View File

@@ -6,6 +6,7 @@ enum Enum {
Third,
}
/// Shows off one example of each major type of widget.
#[cfg_attr(feature = "persistence", derive(serde::Deserialize, serde::Serialize))]
pub struct WidgetGallery {
enabled: bool,
@@ -141,7 +142,7 @@ impl WidgetGallery {
});
ui.end_row();
ui.add(doc_link_label("Combo box", "combo_box"));
ui.add(doc_link_label("Combo box", "ComboBox"));
egui::ComboBox::from_label("Take your pick")
.selected_text(format!("{:?}", radio))