New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Windows, Add HitTest
event (rebased)
#3207
base: master
Are you sure you want to change the base?
On Windows, Add HitTest
event (rebased)
#3207
Conversation
I'm generally in favor of such an API, I have been using sth similar in my own testbed as well for implementing custom decorations (https://github.com/msiglreith/nari/blob/main/nari-studio/src/main.rs#L415-L423). On Windows, IIRC, some areas (caption mouse tracking, buttons commands) require extra work in the backend to work correctly tho - did it work for you out of the box? As you mentioned in the other PR that you are drawing custom decorations already |
I've made sure the attached example works again, we haven't updated to 0.29 yet (it's a work in progress) so haven't been able to test in our app directly. We're using egui to draw the UI, so I'd much rather see methods on the |
@msiglreith is there a chance of getting this merged or should I close the PR again (since it's just a rebase of another PR to help along the merge process). |
/// Sent to a window in order to determine what part of the window corresponds to a particular screen coordinate. | ||
/// This can happen, for example, when the cursor moves, when a mouse button is pressed or released. | ||
/// | ||
/// - `x` and `y` are relatvie to the window top-left corner. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// - `x` and `y` are relatvie to the window top-left corner. | |
/// - `x` and `y` are relative to the window top-left corner. |
CHANGELOG.md
if knowledge of this change could be valuable to usersThis is just a convenience PR for #2538 that I've rebased. Should fix #2413