wxMouseCaptureLostEvent(3)

๐Ÿ“ฆ
version 29.0.6 ยท 3 versions
, in ubuntu stonking

โœจ 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 to CaptureMouse or ReleaseMouse. 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/1
  • wxWindow:releaseMouse/1
  • wxWindow: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 for CaptureMouse/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