WXDISPLAYCHANGEDEVENT(3erl)

πŸ’… WXDISPLAYCHANGEDEVENT(3erl) β€” the display-changed glow-up πŸ–₯️✨

okay so bestie, welcome to wxDisplayChangedEvent πŸ’– this is the Erlang module definition page for it, and honestly? it's a little one, but she's important.


🌸 NAME 🌸

wxDisplayChangedEvent β€” the functions for the wxDisplayChangedEvent class, periodt.


πŸ¦‹ DESCRIPTION πŸ¦‹

So like, a display changed event gets sent to top-level windows when the display resolution has changed. iconic behavior, honestly ✨

This event is currently emitted under Windows only ngl, so don't come for her if you're on something else πŸ’€

Only for: wxmsw πŸŽ€

See: wxDisplay πŸ‘‘

This class is derived (and can use functions) from: wxEvent 🫢

wxWidgets docs: wxDisplayChangedEvent


🌈 EVENTS 🌈

Use wxEvtHandler:connect/3 with wxDisplayChangedEventType to subscribe to events of this type. that's the whole vibe check, bestie πŸ’…


⭐ DATA TYPES ⭐

  • wxDisplayChangedEvent() = wx:wx_object() β€” literally just a wx object, no cap 🧚
  • wxDisplayChanged() =
#wxDisplayChanged{type =
                      wxDisplayChangedEvent:wxDisplayChangedEventType()}

a record moment πŸŽ€

  • wxDisplayChangedEventType() = display_changed β€” that's the type, and yes she ate πŸ’…

lowkey a tiny module but highkey essential if you're listening for resolution shenanigans on Windows πŸ‘€

made with love by the wxWidgets team 🫢 this one's wx 2.2.2.1, dated wxDisplayChangedEvent(3erl) β€” mwah, bye bestie! πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from