iced-rs/iced

Superfluous alignment functions

Offen

#286 geöffnet am 11.04.2020

 (7 Kommentare) (5 Reaktionen) (0 zugewiesene Personen)Rust (1.572 Forks)batch import
good first issuehelp wantedlayoutquestion

Repository-Metriken

Stars
 (30.491 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 24T 11h) (11 gemergte PRs in 30 T)

Beschreibung

The current api exposes multiple ways for alignment to be expressed:

  • Container::center_x is equivalent to Container::align_x(Center)
  • HorizonalAlignment, VerticalAlignement, and Align all express the same concept.

These introduce more names and relationships for users to learn about in the api, and I think reducing them would be positive. could we remove them?

Contributor Guide