wxColourPickerEvent(3)
π wxColourPickerEvent π
okay bestie, so we're in the Erlang Module Definition for wxColourPickerEvent, and she's giving very much "the event class that handles everything wxColourPickerCtrl throws at you" β¨
π NAME π
wxColourPickerEvent β this event class is used for the events generated by wxColourPickerCtrl. that's it. that's the whole job. and she does it flawlessly π
π DESCRIPTION π
See: wxColourPickerCtrl β literally go look at her, she's the main character here and this is her plus-one π«Ά
so, this class is derived, and can use functions, from:
wxCommandEventwxEvent
it's giving inheritance chain, it's giving family tree, it's giving "I got it from my mamas" πβ¨
wxWidgets docs: wxColourPickerEvent β iykyk, the original lore is right there π
π¦ Events π¦
no cap, to subscribe to events of this type you use wxEvtHandler:connect/3 with wxColourPickerEventType. that's the handshake. that's the vibe check. do it and the events come straight to you π
πΈ DATA TYPES πΈ
wxColourPicker() :: #wxColourPicker{}.wxColourPickerEvent() :: wx:wx_object().wxColourPickerEventType() :: command_colourpicker_changed.
look at that last one π it's literally one option and it's command_colourpicker_changed. queen of being specific. periodt π
β¨ FUNCTIONS β¨
getColour(This) -> wx:wx_colour4()βwhen This :: wxColourPickerEvent().
this one is the icon, the moment, the whole point honestly. she retrieves the colour the user has just selected π₯ like you picked a colour, she hands it to you in wx:wx_colour4(). obsessed. truly. π
reminder bestie: everything here is exactly as the original says it β the types, the one event type, the connect/3 subscription, the return value, all of it. don't come for me if you hardcode vibes instead of facts π
Ericsson AB made this happen, and we're on wx 2.6, repping wxColourPickerEvent(3) π stay colourful, bestie, and always read the docs π§β¨
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms