Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
现在我有一个motion_notify_event跟踪event_box鼠标坐标的方法。只有当我单击时,我才能检测到运动,event_box是否有人知道我如何event_box在鼠标悬停时捕获事件,所以我不必单击它。谢谢。
motion_notify_event
event_box
我想你想听"motion-notify-event"信号。确保您还启用了该GDK_POINTER_MOTION_MASK标志。
"motion-notify-event"
GDK_POINTER_MOTION_MASK