iced-rs/iced

Superfluous alignment functions

Open

#286 创建于 2020年4月11日

在 GitHub 查看
 (7 评论) (5 反应) (0 负责人)Rust (30,491 star) (1,572 fork)batch import
good first issuehelp wantedlayoutquestion

描述

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?

贡献者指南

Superfluous alignment functions · iced-rs/iced#286 | Good First Issue