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

Two-way Embedding External Native Windows #431

Open
Starz0r opened this issue Oct 11, 2018 · 2 comments
Open

Two-way Embedding External Native Windows #431

Starz0r opened this issue Oct 11, 2018 · 2 comments
Milestone

Comments

@Starz0r
Copy link

Starz0r commented Oct 11, 2018

Being able to embed libui into projects by being able to convert managed window into a uiWindow (or any widget into a ui* widget) would be great. You are able to do this in other cross-platform UI toolkits such as Qt, GTK+, and wxWidgets, so I feel as it might be feasible to ask for it in this toolkit.

Also being able to get the HWND (Win32)/FD (Unix) of any widget or element and pass that to usually a shared library so it can use it would be nice. Not sure if you can do this already, but there isn't any documentation and messing around with libui shows there is no way to go lower than a ui* component, correct me if I'm wrong though.

@mischnic
Copy link
Contributor

Also being able to get the HWND (Win32)/FD (Unix) of any widget

Came up in libui-node as well: parro-it/libui-node#119

@andlabs
Copy link
Owner

andlabs commented Oct 11, 2018

For the latter request, there is already uiControlHandle() that does this, but it requires the same handle through the lifetime of the object and only supports one handle. These are things I plan on fixing in the current Alpha, as it'll make other future features possible.

Will address the rest later.

@andlabs andlabs added this to the Post-Alpha 5 milestone Dec 31, 2018
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

No branches or pull requests

3 participants