wxCalendarEvent(3erl)

πŸ’– NAME πŸ’–

okay so this is wxCalendarEvent(3erl) β€” the Erlang module definition page for wxCalendarEvent: functions for the wxCalendarEvent class. that's the whole name, bestie, and it ate. periodt. πŸ’…


✨ DESCRIPTION ✨

The wxCalendarEvent class is used together with wxCalendarCtrl β€” they're giving main character + trusted sidekick energy. πŸ—“οΈπŸ’–

See: wxCalendarCtrl

This class is derived (and can use functions) from: wxDateEvent wxCommandEvent wxEvent. so yes, it's got the whole inheritance chain situation going on, and it can use their functions too. iykyk.

wxWidgets docs: wxCalendarEvent πŸ“šβœ¨


🧚 DATA TYPES 🧚

these are the literal type definitions, no cap, copied exactly:

wxCalendarEvent() = wx:wx_object()

wxCalendar() =
    #wxCalendar{type = wxCalendarEvent:wxCalendarEventType(),
                wday = wx:wx_enum(),
                date = wx:wx_datetime()}

wxCalendarEventType() =
    calendar_sel_changed | calendar_day_changed |
    calendar_month_changed | calendar_year_changed |
    calendar_doubleclicked | calendar_weekday_clicked

πŸ‘‘ EXPORTS πŸ‘‘

πŸ’– getWeekDay(This) -> wx:wx_enum() πŸ’–

Types:

  • This = wxCalendarEvent()

Returns the week day on which the user clicked in EVT_CALENDAR_WEEKDAY_CLICKED handler. πŸ—“οΈβœ¨

It doesn't make sense to call this function in other handlers. fr fr, don't do it, bestie β€” that's the actual warning vibe. 🫠

🌸 getDate(This) -> wx:wx_datetime() 🌸

Types:

  • This = wxCalendarEvent()

Returns the date. that's it, that's the tea. πŸ΅πŸ’œ


big kiss from the wxWidgets team, version wx 2.2.2.1, on the wxCalendarEvent(3erl) page 🫢✨

πŸ“¦ where this page comes from