-
Notifications
You must be signed in to change notification settings - Fork 16
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
style_push_* API seem to be unusable #28
Comments
Thanks for the ticket. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's an example of using this API in C: https://github.com/Immediate-Mode-UI/Nuklear/blob/d74ffc7157890fe1e16c09e3cb3e5103f5067720/demo/overview.c#L957-L958
This doesn't seem like it would work in Rust, since it requires mutable references to
ctx
andctx->style.window.spacing
at the same time (mutable aliasing).I am able to push a value into a cloned struct, then copy it to the context with a setter, but this is more code (and more copying):
Seems there should be a better way?
The text was updated successfully, but these errors were encountered: