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

Share drag information between contexts? #1598

Closed
volcoma opened this issue Feb 6, 2018 · 3 comments
Closed

Share drag information between contexts? #1598

volcoma opened this issue Feb 6, 2018 · 3 comments
Labels

Comments

@volcoma
Copy link

volcoma commented Feb 6, 2018

Hi, I've been playing with the drag an drop stuff and I am pretty happy with the design you came out with. Good job! I am just trying to figure out how to share the drag and drop state between contexts. For example I have 2 windows (platform ones) with a separate context each to handle rendering and stuff. I am trying to achieve drag and drop between the two windows. Do you have any idea how to achieve this in the current state? I see a lot of members regarding drag and drop in the context struct. Is this issue tackled in the experimental docking (virtual viewports) stuff that you are working on? Thanks a lot.

@ocornut
Copy link
Owner

ocornut commented Feb 6, 2018

Hello,

I don't have the workaround / answer to your exact problem, it's possible to route the payload manually but probably a bit tedious work in term of windowing.

However this won't be necessary as the target is that a single imgui will be able to handle multiple windows. So yes, that is part of the virtual viewport feature. (#1542) I expect virtual viewport to be become available before docking/tabs, but have no ETA for it at the moment.

@volcoma
Copy link
Author

volcoma commented Feb 6, 2018

Thanks for the info!

@ocornut
Copy link
Owner

ocornut commented Feb 6, 2018

I'll close that as I don't expect a fix before virtual viewport makes it to the repo.
You may solve it yourself with the multiple context (the solution will be in the back-end side) but probably not worth it unless you absolutely need that sharing soon.

@ocornut ocornut closed this as completed Feb 6, 2018
@ocornut ocornut added the drag drop drag and drop label Apr 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants