wxSysCol...ngedEvent(3erl)

πŸ’… wxSysCol...ngedEvent (3erl)

ok so bestie, we're in the Erlang module definitions corner of the docs, and today's main character is wxSysColourChangedEvent ✨ (yes the header truncates it, don't come for me, that's just how it's printed, iykyk)


🌈 NAME

wxSysColourChangedEvent β€” literally just the functions for the wxSysColourChangedEvent class πŸŽ€


πŸ’– DESCRIPTION

okay so this class is for system colour change events, which get generated when the user goes and changes their colour settings using the control panel 🎨✨. and ngl? this is only appropriate under Windows πŸ‘‘. fr fr.

Remark: the default event handler for this event propagates the event to child windows, because Windows only sends these events to top-level windows πŸͺŸπŸ’€. so if you're intercepting this event for a top-level window, please remember to call the base class handler, or to pass the event on to the window's children explicitly πŸ™. like, do not skip this step bestie, the vibes will be off and your kids won't get the memo 🫢.

See: Overview events πŸ‘€

This class is derived (and can use functions) from: wxEvent 🧬 (it's giving nepo baby but make it inheritance)

wxWidgets docs: wxSysColourChangedEvent πŸ“š


⭐ EVENTS

use wxEvtHandler:connect/3 with wxSysColourChangedEventType to subscribe to events of this type πŸ””πŸ’œ. that's the whole thing, she's simple, she's iconic.


πŸ¦‹ DATA TYPES

wxSysColourChangedEvent() β€” this one's just the object type:

wxSysColourChangedEvent() = wx:wx_object()

wxSysColourChanged() β€” look at this record structure, she's gorgeous 🌸:

wxSysColourChanged() =
    #wxSysColourChanged{type =
                            wxSysColourChangedEvent:wxSysColourChangedEventType()}

wxSysColourChangedEventType() β€” exactly one (1) value and it ate πŸ’…:

wxSysColourChangedEventType() = sys_colour_changed

πŸŽ€ sign-off

kisses from the wxWidgets team 🫢 β€” this was wx 2.2.2.1, and the page footer says wxSysCol...ngedEvent(3erl) in case you needed the reminder that we ✨truncate✨ around here. mwah, go forth and handle those colour-change events, bestie πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from