emilk/egui

Improve documentation and examples

Open

#186 geöffnet am 20. Feb. 2021

Auf GitHub ansehen
 (3 Kommentare) (18 Reaktionen) (0 zugewiesene Personen)Rust (2.037 Forks)batch import
docs and examplesgood first issuehelp wanted

Repository-Metriken

Stars
 (29.051 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11T 20h) (47 gemergte PRs in 30 T)

Beschreibung

Tracking issue for improving the egui docs. Other suggestions for improvements welcome!

All doc-examples need to be part of the doctests (i.e. they should never be marked ignore, though no_run can maybe sometimes be motivated).

egui

The crate-level docs for egui (at https://docs.rs/egui generated from egui/src/lib.rs) should be improved with a tutorial. In addition, all major parts of egui should have a quick example in the crate-level docs

  • Crate-level:
  • Crate-level AND item-level examples for:
    • Label
    • Hyperlink
    • TextEdit
    • Button
    • CheckBox
    • RadioButton
    • SelectableLabel
    • Image
    • ComboBox
    • Slider
    • DragValue
    • Separator
    • CollapsingHeader
    • horizontal and vertcial layouts
    • centered vertical layouts
    • Grid
    • tooltips (on_hover_text)
  • Add a few gifs to the docs (not too many though, as they are difficult to maintain)
  • Links from the web demo to the docs
    • Link from the widget gallery to the docs
    • Link from the slider demo to the docs for the slider
  • Links from the docs to the web demo
    • Link from the crate-level docs to the web demo
    • Link from the Slider-docs to the slider demo window
  • Links from the web demo to its own source code

other

Contributor Guide