Skip to content

Rename Control::_size_changed to Control::_rect_changed #106675

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

L2750558108
Copy link
Contributor

The current Control::_size_changed method may not be properly named, as it is called not only when size is changed, but also when position is changed. It also updates the size and position caches. Renaming it to _rect_changed might better reflect what it does.
This method is not bound in the _bind_method and the accessibility is private, so renaming it won't break compatibility

@AThousandShips
Copy link
Member

This is a strictly internal method, so I'm not sure the noise in the git history by renaming this is reasonable

@KoBeWi
Copy link
Member

KoBeWi commented Jun 1, 2025

Names of internal methods help contributors using them correctly, so it's not like it's completely pointless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants