wxHtmlLinkEvent(3)
π 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:
wxCommandEventwxEvent
(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
- 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