Skip to content

Making GetTextWidth part of the public API #480

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

guifes
Copy link

@guifes guifes commented Mar 15, 2025

GetTextWidth is useuful to be called publicly.
E.g: when you want to get the final horizontal size of a Slider that has textBefore and textAfter.

The changes are:

  • Renaming GetTextWidth to GuiGetTextWidth
  • Adjusting all internal calls to GetTextWidth
  • Removing static keyword from the function definition
  • Moving is declaration to the API section
  • Moving the function body to the correct section

GetTextWidth is useuful to be called publicly. E.g: when you want to get the final horizontal size of a Slider that has textBefore and textAfter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant