-
Notifications
You must be signed in to change notification settings - Fork 12
Adding primitive types to improve drawing #133
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
Adding primitive types to improve drawing #133
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to bring couple of unit tests with the additions?
Also thanks for the comments for the commented code, that's perfect!
And thanks for the addition! There are few bindings using those Point, Size, Rectangle. So some migration to expect as well.
Sure, I'll add some unit tests today. Any feedback/comments on my other review comments? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the addition and the work here. It looks good all up. Kudos points for the tests, for the clarity of the comments.
Yes, few more things:
|
@Ellerbach I updated the minor version in the version.json Still getting my head around the native side of things. I assume you are asking for changes in https://github.com/nanoframework/nf-interpreter Couple questions:
|
Because by changing the API, you are changing the signature. So you need to update this on the native side. The stub are generated for you, then it's a matter of adding those back in their place. So here:
And as all changes, you have to bump as well the versions! And on the managed side (this PR), you also have to bump this file: https://github.com/nanoframework/nanoFramework.Graphics/blob/main/version.json with something like 1.2 Let me know if you have any question! |
Ok that makes sense. It wasn't clear why entirely managed changes would require updates to the native side but now I see that the method lookup array has In any case here's the PR for nf-interpreter. I think it's good but I'm not setup to validate yet. nanoframework/nf-interpreter#2802 |
@CoryCharlton no way to change those NULLs on the declaration. That's part of the mechanism there and it has to happen. |
Understood. I threw out a naive though regarding an alternative in #interpreter |
Not sure why |
They need permission to run when originating from external developer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just minor stuff.
Suggest that this added to mscorlib friends so that after the next release of mscorlib the Mathematics class can be removed.
Kudos, SonarCloud Quality Gate passed!
|
I just replaced Mathematics with MathInternal so I think that covers all feedback in this PR. |
Merging as it is. The refs to mscorlib will be updated by automation after the release. |
Description
Motivation and Context
This improves the experience of drawing to a Bitmap
How Has This Been Tested?
Screenshots
Types of changes
Checklist: