Immediate-Mode-UI / Immediate-Mode-UI/Nuklear
How to snap nuklear windows to root (os) window?
- Dominant language
- C
- Stars
- 11.4k
- Forks
- 686
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 3
Description
This issue comes from the old repo, and is dated to Aug 2016. Since I have the same question, I am quoting it :
"
Losiara commented on Aug 3, 2016
Need to resize "inner" windows when resize outer. Is there such option?
vurtun commented on Aug 3, 2016
At the moment there is no notion of the OS window inside nuklear so there is no direct option to react on size or position changes. It is probably a good idea to provide a way in the future as for right now you could check for a resize event in your code and directly set window positon and size corresponding to the change. It would be a quick and dirty fix atleast for now.
vurtun closed this on Nov 18, 2016
"
Is there any clean way of doing this nowadays?
Also, in his answer, vurtun mentions a quick and dirty fix by checking " for a resize event in your code and directly set window positon and size corresponding to the change". However, the resize event would have to refer to the root (os) window. How would you do that?
Thanks
Contributor guide
Research direction
No source files, tests, or entry points are named. Start by reviewing Nuklear's platform integration and the handling of OS-window resize events, then determine whether current APIs support synchronizing inner windows with the root window. Done would require a documented, agreed approach or an implemented API with coverage for resize and position changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100