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

ImNodes::EditorContextGetPanning missing #152

Merged
merged 3 commits into from
Dec 26, 2022

Conversation

virusbear
Copy link
Contributor

Description

This PR adds a missing binding for ImVec2 ImNodes::EditorContextGetPanning().

Type of change

  • Minor changes or tweaks (quality of life stuff)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

@SpaiR SpaiR added the enhancement New feature or request label Dec 25, 2022
@SpaiR
Copy link
Owner

SpaiR commented Dec 25, 2022

@virusbear Thanks for the contribution.

Y've did a small mistake about the way of how to get ImVec2 value. It's not possible to return it directly like you did. Please, do the same as in other parts of the code - provide destination ImVec2 and copy value inside of it.

https://github.com/SpaiR/imgui-java/pull/152/files#diff-2fda0565d60f78d6937827acc7d089798d7745dba830169c57138c2c0cb7db65R426-R429

@virusbear
Copy link
Contributor Author

@SpaiR should be adjusted like this is done in other functions. Thank you for pointing this out.

@SpaiR SpaiR merged commit c71ed6f into SpaiR:main Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants