iced-rs/iced

Superfluous alignment functions

Aperta

#286 aperta il 11 apr 2020

 (7 commenti) (5 reazioni) (0 assegnatari)Rust (1572 fork)batch import
good first issuehelp wantedlayoutquestion

Metriche repository

Star
 (30.491 stelle)
Metriche merge PR
 (Merge medio 24g 11h) (11 PR mergiate in 30 g)

Descrizione

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?

Guida contributor