WXMOUSECAPTURECHANGEDEVENT(3erl)

🌸 NAME 🌸

Hey bestie! πŸ’– Welcome to the Erlang Module Definition for wxMouseCaptureChangedEvent β€” you're on the wxMouseCa...ngedEvent(3erl) page, and we're about to make this class make sense, no cap. ✨

wxMouseCaptureChangedEvent β€” functions for the wxMouseCaptureChangedEvent class. That's the name vibe, periodt. πŸŽ€

πŸ’… DESCRIPTION πŸ’…

Okay so picture this: a mouse capture changed event gets sent to a window when that window loses its mouse capture. It's giving β€œcapture walked out the door,” and it's literally still called even if wxWindow:releaseMouse/1 was called by the application code. Handling this event lets an app cater for unexpected capture releases that might otherwise confuse mouse handling code. πŸ­πŸ’¨

Only for: wxmsw β€” that's the tag, bestie.

See: iykyk, but here's the list:

  • wxMouseCaptureLostEvent
  • Overview events
  • wxWindow:captureMouse/1
  • wxWindow:releaseMouse/1
  • wxWindow:getCapture/0

This class is derived (and can use functions) from: wxEvent β€” so it's getting the wxEvent inheritance energy. πŸ’œ

wxWidgets docs: wxMouseCaptureChangedEvent β€” that's the docs pointer. πŸ“š

✨ EVENTS ✨

Use wxEvtHandler:connect/3 with wxMouseCaptureChangedEventType to subscribe to events of this type. That's the subscription slay. πŸŽ€

πŸŽ€ DATA TYPES πŸŽ€

wxMouseCaptureChangedEvent() = wx:wx_object()

wxMouseCaptureChanged() =
    #wxMouseCaptureChanged{type =
                               wxMouseCaptureChangedEvent:wxMouseCaptureChangedEventType()}

wxMouseCaptureChangedEventType() = mouse_capture_changed

🫢 EXPORTS 🫢

getCapturedWindow(This) -> wxWindow:wxWindow()

Types:

  • This = wxMouseCaptureChangedEvent()

Returns the window that gained the capture, or NULL if it was a non-wxWidgets window. That's the whole return vibe β€” capture window or NULL, no extras, bestie. πŸ’…


Bye bestie! πŸ’– Source: the wxWidgets team. Version: wx 2.2.2.1. Date: the footer doesn’t show one, so I’m not making one up. Manual name: wxMouseCa...ngedEvent(3erl). Mwah! πŸŽ€βœ¨

πŸ“¦ where this page comes from