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

Update manual Cairo bindings for string parameters #816

Merged
merged 1 commit into from
Feb 25, 2023

Conversation

cameronwhite
Copy link
Contributor

This is largely just a refactoring to make the manual bindings consistent with the generated bindings after #803, using the new string handle classes

For string return values this adds some more type safety over IntPtr, and fixes a couple nullable warnings from the usage of StringHelper.ToStringUtf8(). FontOptions.Variations should have actually been a nullable string, while ToyFontFace.Family is correct to be a non-nullable string.

  • I agree that my contribution may be licensed either under MIT or any version of LGPL license.

This is largely just a refactoring to make the manual bindings consistent with the generated bindings after #803, using the new string handle classes

For string return values this adds some more type safety over IntPtr, and fixes a couple nullable warnings. `FontOptions.Variations` should have actually been a nullable string, while `ToyFontFace.Family` is correct to be a non-nullable string.
@badcel badcel merged commit 448db63 into main Feb 25, 2023
@badcel badcel deleted the fix/cairo-string-bindings branch February 25, 2023 07:20
@badcel
Copy link
Member

badcel commented Feb 25, 2023

Thank you!

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.

2 participants