iced-rs/iced

Superfluous alignment functions

Open

#286 opened on Apr 11, 2020

View on GitHub
 (7 comments) (5 reactions) (0 assignees)Rust (1,572 forks)batch import
good first issuehelp wantedlayoutquestion

Repository metrics

Stars
 (30,491 stars)
PR merge metrics
 (Avg merge 24d 11h) (11 merged PRs in 30d)

Description

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