wxCalendarEvent(3)
π wxCalendarEvent π
okay bestie, welcome to wxCalendarEvent(3), an Erlang module definition straight out of the wx fam, and it's literally the class that gets to hang out with wxCalendarCtrl πΈ yes, that calendar. the cute little grid where you click days. she's the event object, she's the moment, she's the main character of every date you pick π
β¨ DESCRIPTION β¨
so, see: wxCalendarCtrl π¦
this class is derived, and can use functions, from:
wxDateEventwxCommandEventwxEvent
that's her ancestry bestie, three whole generations of inheritance, iconic lineage honestly π
wxWidgets docs: wxCalendarEvent
π DATA TYPES π
wxCalendar() :: #wxCalendar{}.wxCalendarEvent() :: wx:wx_object().wxCalendarEventType() :: calendar_sel_changed | calendar_day_changed | calendar_month_changed | calendar_year_changed | calendar_doubleclicked | calendar_weekday_clicked.
look at all those event types, she's giving range fr fr π every single one of them is listed, no skips, no cap.
π₯ FUNCTIONS π₯
getDate(This) -> wx:wx_datetime()whenThis :: wxCalendarEvent().
Returns the date. periodt π that's it, that's the function, she gives you the date.
getWeekDay(This) -> wx:wx_enum()whenThis :: wxCalendarEvent().
Returns the week day on which the user clicked in the EVT\_CALENDAR\_WEEKDAY\_CLICKED handler πΈ
lowkey important bestie: it doesn't make sense to call this function in other handlers. like, genuinely, don't. she will not have the info you want π it's a EVT\_CALENDAR\_WEEKDAY\_CLICKED-handler-only kind of relationship, iykyk.
that's the whole page, and honestly? short and slay π«Ά go build a calendar, you're gonna eat. signing off with love from Ericsson AB, this is wx 2.6, date night edition πβ bye bestie! π
π¦ 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