wxActivateEvent(3erl)

✨ NAME ✨

wxActivateEvent β€” functions for the wxActivateEvent class, bestie. This is the wxActivateEvent(3erl) page from the Erlang Module Definition manual, and it’s literally here to explain activation-event vibes πŸ’….

🌸 DESCRIPTION 🌸

Okay so an activate event is sent when a window or application is being activated or deactivated. That’s the main character energy of this whole page ✨.

Vibe-check note, bestie: Until wxWidgets 3.1.0, activation events could be sent by wxMSW when the window was minimized. This reflected the native MSW behaviour but was often surprising and unexpected, so starting from 3.1.0 such events are not sent any more when the window is in the minimized state. Not me warning you about minimized-window surprises 😭.
  • See: Overview events, wxApp::IsActive (not implemented in wx)
  • This class is derived (and can use functions) from: wxEvent
  • wxWidgets docs: wxActivateEvent

πŸ¦‹ EVENTS πŸ¦‹

Use wxEvtHandler:connect/3 with wxActivateEventType to subscribe to events of this type. That’s the subscription slay, periodt πŸ’–.

πŸŽ€ DATA TYPES πŸŽ€

The data types are giving structured cuteness, ngl:

wxActivateEvent() = wx:wx_object()

wxActivate() =
    #wxActivate{type = wxActivateEvent:wxActivateEventType(),
                active = boolean()}

wxActivateEventType() = activate | activate_app | hibernate

πŸ‘‘ EXPORTS πŸ‘‘

getActive(This) -> boolean()

Types:

This = wxActivateEvent()

Returns true if the application or window is being activated, false otherwise. Iconic, fr fr πŸ’œ.


Made with πŸ’– by the wxWidgets team Β· wx 2.2.2.1 Β· wxActivateEvent(3erl) β€” periodt, bestie 🫢

πŸ“¦ where this page comes from