Can I use internal pointer logic(something like LayoutNode?) of Compose? Api code emits some marker modifier or node, and I need to check if which one contains clicked node.
I'm trying to make Compose extend to window frame in Windows, but I need to check if mouse is on caption, left, right, etc. (HTCAPTION, HTLEFT, HTRIGHT...)
I want api to be flexible as much as possible, so fixed option like fixed height of caption is not an option.
(If not possible, I have to go with custom rect intersection)
lhwdev
11/22/2022, 11:46 PM
Some pseudo api:
Copy code
MyWindow {
TitleBar(draggable = true) {
Button(...) // If this consumes click event, emits HTNOWHERE
// if click event is passed to TitleBar, emits HTCAPTION
}
// ...
}