wxMouseCap...angedEvent(3)
π NAME π
wxMouseCaptureChangedEvent β it's the event that gets sent to a window when that window loses its mouse capture. like, the mouse said "we're done here" and bounced. π
β¨ DESCRIPTION β¨
okay so bestie, listen. this event fires even if your own application code called wxWindow:releaseMouse/1. yes, even when you did it on purpose. π«Ά
and why do we care? because handling this event lets your app deal with unexpected capture releases β the ones that would otherwise make your mouse handling code go absolutely feral and confused. she's a safety net. she's iconic. π
Only for: wxmsw β so if you're not on Windows, this is not your moment, bestie.
See also:
wxMouseCaptureLostEvent- Overview events
wxWindow:captureMouse/1wxWindow:releaseMouse/1wxWindow:getCapture/0
This class is derived, and can use functions, from:
wxEvent
wxWidgets docs: wxMouseCaptureChangedEvent
π Events π
use wxEvtHandler:connect/3 with wxMouseCaptureChangedEventType to subscribe to events of this type. that's the whole vibe check right there, no cap.
π DATA TYPES π
wxMouseCaptureChanged()::#wxMouseCaptureChanged{}.wxMouseCaptureChangedEvent()::wx:wx_object().wxMouseCaptureChangedEventType()::mouse_capture_changed.
β FUNCTIONS β
getCapturedWindow(This) -> wxWindow:wxWindow()whenThis :: wxMouseCaptureChangedEvent().
returns the window that gained the capture... or NULL if it was a non-wxWidgets window. yep, sometimes it's just NULL, and that's a whole thing. π
getCapturedWindow(This) -> wxWindow:wxWindow()
when This :: wxMouseCaptureChangedEvent().
kisses, bestie π this page came from Ericsson AB and it's rockin' wx 2.6 β now go forth and subscribe to those events, main character π¦β¨
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms