wxMouseCaptureLostEvent(3)
โจ wxMouseCaptureLostEvent โจ
okay bestie, welcome to the Erlang module definition for wxMouseCaptureLostEvent ๐
no cap, this one's a lil niche but it's lowkey important so let's get into it ๐ซถ
๐ธ NAME ๐ธ
wxMouseCaptureLostEvent โ a mouse capture lost event is sent to a window that had obtained mouse capture, which was subsequently lost due to an "external" event. (likeโฆ for real for real, think of when a dialog box pops up ๐ or when another application just snatches the mouse entirely. rude.)
๐ฆ DESCRIPTION ๐ฆ
So here's the tea โ when that happens, this event gets sent to all the windows that are on the capture stack โ meaning every window that called CaptureMouse but hasn't called ReleaseMouse yet. iykyk ๐
but WAIT โ the event is not sent if the capture changes because of a call toCaptureMouseorReleaseMouse. those are the normal paths, this event is specifically for the external chaos ๐
also, major vibe check: this event is currently emitted under Windows only. periodt.
See also, bestie, go look at these:
wxMouseCaptureChangedEvent- Overview events
wxWindow:captureMouse/1wxWindow:releaseMouse/1wxWindow:getCapture/0
This class is derived, and can use functions, from:
wxEvent
wxWidgets docs: wxMouseCaptureLostEvent
๐ Events ๐
Use wxEvtHandler:connect/3 with wxMouseCaptureLostEventType to subscribe to events of this type. literal main character move โจ
๐ DATA TYPES ๐
here's the squad, all typed out and cute ๐ง
wxMouseCaptureLost()::#wxMouseCaptureLost{}.wxMouseCaptureLostEvent()::wx:wx_object().wxMouseCaptureLostEventType()::mouse_capture_lost.
๐ FUNCTIONS ๐
okay soโฆ this section is genuinely empty in the source. like, not a single function listed. it's giving minimalist, it's giving set-the-stage energy ๐ consider it a vibe, not a void. no cap.
๐ little recap before you go: event goes to every window on the capture stack, it doesn't fire forCaptureMouse/ReleaseMouse-triggered changes, and it's Windows-only right now. slay responsibly ๐
Ericsson AB ยท wx 2.6 ยท wxMouseCaptureLostEvent(3) โ mwah, tysm for reading bestie, you ate that whole page fr fr ๐โจ๐๐ฆ๐ธ๐ซถ
๐ฆ 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