Immediate-Mode-UI / Immediate-Mode-UI/Nuklear
Request: Function to retrieve bounds of window contents, pre-clipping.
- Dominant language
- C
- Stars
- 11.4k
- Forks
- 686
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 3
Description
nk_window_get_content_region almost does what I need, but it unfortunately doesn't count any overspill if the content is larger than the window, meaning it caps out at the window size.
I need a version of this function that would allow me to get the real bounds of the content. It doesn't appear that Nuklear currently has a function that does this, and I'm unable to accurately calculate the width/height I need to perfectly resize the window to fit the inner contents without need of a scrollbar.
I'm trying to do this, essentially (this is buggy/broken code, just used to make an approximate mockup of what I'd use it for): https://shadowmavericks.com/files/ShareX/tfury_2024-09-20_16-25-29.mp4
Contributor guide
Research direction
Start by reading the existing nk_window_get_content_region function and trace how it clips content to the window bounds. Determine how a corresponding query could expose the un clipped content bounds, then verify that the returned width and height support resizing without a scrollbar.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100