-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
support fundamental types #1294
support fundamental types #1294
Conversation
Seeing the title, is this something I could leverage for #1134? |
Not really, the ones this PR attempts to fix are fundamental types in "glib terms", so they do provide a ref/unref/get_type functions |
That's unfortunate, I thought this added a way to specify fundamental types (somehow) in |
Can you create a WIP PR for gtk4-rs? |
Will do once it's +/- compiling locally |
It should be ready for a review :) It can properly generate things like |
Looks good to me otherwise. Less code than I feared :) |
Good to merge then? |
Looks good to me yes |
This merge request allows generating a portion of the code needed for fundamental types. It still needs manual code to create a common trait & implement it for the various sub-types along with the casting functions.
The PR as is, allows to drop a huge portion of the manual code in gtk4-rs.
The next step before merging this is to automatically use
AsRef<T>
instead ofIsA<T>
where needed.Fixes #1069