Button hover and hover lost events #749
Unanswered
thomas-btst
asked this question in
Q&A
Replies: 1 comment
-
|
agsv3 defaults to gtk4. In gtk4 such things are handled by event controllers, which can be added to any widget like this: <button>
<label label="Some Label" />
<Gtk.EventControllerMotion
onEnter={(_, x, y) => print("pointer entered", x, y)}
onLeave={() => print("pointer left")}
onMotion={(_, x, y) => print("pointer moved", x, y)}
/>
</button> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently migrating from ags v2, and I can’t find how to handle hover and hover-out events for a button like I did before. Could you please point me to the new way of implementing this?
Beta Was this translation helpful? Give feedback.
All reactions