wxColourPickerEvent(3erl)

πŸ’… wxColourPickerEvent (Erlang Module Definition)

okay so bestie, this is the Erlang Module Definition manual page for wxColourPickerEvent, and honestly? it's a little cutie. it's all about the event class that carries the gossip whenever a colour picker does its thing. 🎨✨


🌈 NAME

wxColourPickerEvent β€” Functions for wxColourPickerEvent class


✨ DESCRIPTION

This event class is literally the one used for the events generated by wxColourPickerCtrl. like, that's its whole job. iconic behaviour, no notes. 🫢

See: wxColourPickerCtrl

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

wxWidgets docs: wxColourPickerEvent β€” go off, documentation. πŸ“š


πŸŽ€ EVENTS

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


πŸ¦‹ DATA TYPES

  • wxColourPickerEvent() = wx:wx_object()
  • wxColourPicker() =
#wxColourPicker{type =
                    wxColourPickerEvent:wxColourPickerEventType(),
                colour = wx:wx_colour()}
  • wxColourPickerEventType() = command_colourpicker_changed

look at that record. the type field and the colour field, sitting there being all structured and adorable. πŸ“


πŸ‘‘ EXPORTS

getColour(This) -> wx:wx_colour4()

Types:

  • This = wxColourPickerEvent()

Retrieve the colour the user has just selected. that's it, that's the function β€” it hands you the colour, freshly picked, still warm. πŸ§šπŸ’–


lowkey the whole module is just one function and one event type, and honestly? she's efficient. she's minimal. she's main character energy in the smallest possible package. πŸ”₯

and that's the page, bestie! handwritten with love by the wxWidgets team, from wx 2.2.2.1, tagged wxColourPickerEvent(3erl) β€” mwah, go pick some gorgeous colours πŸ’œπŸŒΈ

πŸ“¦ where this page comes from