Skip to content
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

Move get_rect helper to c_api #3303

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MightyJosip
Copy link
Contributor

This PR adds helper used to create the return value of Surface.get_(f)rect to public base api. So far that function was only used inside of Surface class, but since that same functionality is present in pygame._sdl2.Texture and pygame._sdl2.Image classes I moved it to public api to make it easier for implementation in the future (when we rewrite Texture/Image in C). That will also make it easier to implement extra stuff for those classes (like FRect support for both, or keyword support for Image.get_rect)

@MightyJosip MightyJosip requested a review from a team as a code owner January 23, 2025 11:25
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