wxColourPickerEvent(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

πŸ’– 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:

  • wxCommandEvent
  • wxEvent

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