iced-rs/iced

Superfluous alignment functions

开放

#286 创建于 2020年4月11日

 (7 条评论) (5 个反应) (0 位负责人)Rust (1,572 个派生)batch import
good first issuehelp wantedlayoutquestion

仓库指标

星标
 (30,491 个星标)
PR 合并指标
 (平均合并 24天 11小时) (30 天内合并 11 个 PR)

描述

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?

贡献者指南