Skip to content

Remove new_with_ prefix from the TextLayout constuctor functions#24049

Merged
alice-i-cecile merged 2 commits into
bevyengine:mainfrom
ickshonpe:Remove-new-with-from-text-layout
May 1, 2026
Merged

Remove new_with_ prefix from the TextLayout constuctor functions#24049
alice-i-cecile merged 2 commits into
bevyengine:mainfrom
ickshonpe:Remove-new-with-from-text-layout

Conversation

@ickshonpe
Copy link
Copy Markdown
Contributor

@ickshonpe ickshonpe commented Apr 30, 2026

Objective

Remove the new_with_ prefixes from the TextLayout constuctor functions. Generally, the "new" part is redundant and "with" is used by fluent APIs.

Solution

Just delete the prefixes, shorten the names (all on TextLayout).

  • new_with_justify -> justify
  • new_with_linebreak -> linebreak
  • new_with_no_wrap -> no_wrap

@alice-i-cecile alice-i-cecile added D-Trivial Nice and easy! A great choice to get started with Bevy C-Code-Quality A section of code that is hard to understand or change C-Usability A targeted quality-of-life change that makes Bevy easier to use S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it A-Text Rendering and layout for characters labels May 1, 2026
@alice-i-cecile alice-i-cecile added this to the 0.19 milestone May 1, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue May 1, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 1, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue May 1, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 1, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue May 1, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 1, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue May 1, 2026
Merged via the queue into bevyengine:main with commit b00ff93 May 1, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Text Rendering and layout for characters C-Code-Quality A section of code that is hard to understand or change C-Usability A targeted quality-of-life change that makes Bevy easier to use D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants