wxHtmlLinkEvent(3)

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

πŸ’– wxHtmlLinkEvent πŸ’–

okay bestie, so this is the Erlang module definition for wxHtmlLinkEvent, and it's literally the main character of every click you make inside a wxHtmlWindow. no cap.


✨ NAME ✨

wxHtmlLinkEvent β€” this event class is used for the events generated by wxHtmlWindow.

like, every time a link gets clicked or a cell gets hovered or whatever, this lil guy shows up. it's giving event icon behavior. πŸ‘‘


🌸 DESCRIPTION 🌸

so this class is derived, and can use functions, from:

  • wxCommandEvent
  • wxEvent

(it's got ancestors, it's got lineage, it's got generational wealth in the class hierarchy πŸ’…)

wxWidgets docs: wxHtmlLinkEvent

πŸ¦‹ Events

use wxEvtHandler:connect/3 with wxHtmlLinkEventType to subscribe to events of this type.

that's the whole move, fr fr. connect, pass the type, and you're in the group chat. 🫢


πŸŽ€ DATA TYPES πŸŽ€

  • wxHtmlLink() :: #wxHtmlLink{}.
  • wxHtmlLinkEvent() :: wx:wx_object().
  • wxHtmlLinkEventType() :: command_html_link_clicked | html_cell_clicked | html_cell_hover.

three vibes, three icons, one type. the way that html_cell_hover just exists as an option… obsessed. ✨


πŸ”₯ FUNCTIONS πŸ”₯

πŸ’œ getLinkInfo (This) -> wx:wx_wxHtmlLinkInfo()

...when This :: wxHtmlLinkEvent().

getLinkInfo(This) -> wx:wx_wxHtmlLinkInfo()
                     when This :: wxHtmlLinkEvent().

okay so this one returns the wx_wx_wxHtmlLinkInfo() which contains info about the cell clicked and the hyperlink it contains.

like it's literally handing you the receipts on which cell got clicked and what link is hiding inside it. the detective of the function world. πŸ•΅οΈβ€β™€οΈ ate, no crumbs.


πŸ’€ reminder bestie: it's wx_wx_wxHtmlLinkInfo() in the return type spot β€” that's not a typo on my end, that's what the manpage says, and we do not "fix" the manpage in this house. πŸ’–

and that's the whole page, periodt. 🌈

this little beauty comes to you from Ericsson AB, version wx 2.6 β€” go forth and catch those link events, bestie. πŸŽ€πŸ’–βœ¨
πŸ“¦ where this page comes from