Can I use internal pointer logic(something like La...
# compose
l
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)
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
  }
  // ...
}
j
noticed no one here was able to answer your question, so maybe you can try asking in #compose-desktop