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?

貢獻者指南