Immediate-Mode-UI / Immediate-Mode-UI/Nuklear
determine if a user has clicked in a window header/title bar?
- Dominant language
- C
- Stars
- 11.4k
- Forks
- 686
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 3
Description
is there a clean way to determine if a user has clicked in a window header/title bar?
for background, I'm laying out all of windows using nk_layout_space_xxx with values fed by a cassowary constraint solver.
I see where we're calculating header bounds in nk_panel_begin, and I can shadow that logic or cache it off internal to the window, but I'd prefer a utility method that indicated the title was clicked or way to get the exact bounds of the header?
any preferred suggestion?
thanks.
Contributor guide
Research direction
Start by reading nk_panel_begin and the existing nk_layout_space_xxx usage described in the issue, then trace how header bounds and click input are handled. Compare exposing the header bounds with reporting title-bar clicks, and define which API behavior would satisfy the request; no test or specific implementation location is named.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100