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
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms