wxWebViewEvent(3)
β¨ NAME β¨
wxWebViewEvent β the navigation event bestie that carries all the tea about what's happening inside your wxWebView objects π¦
π DESCRIPTION π
okay so, real talk: this class is derived, which means it can use functions from its whole little ancestry line, no cap. It inherits from:
wxNotifyEventwxCommandEventwxEvent
wxWidgets docs: wxWebViewEvent π
π Events π
wanna get notified when stuff goes down? hook it up by calling wxEvtHandler:connect/3 together with wxWebViewEventType, and boom β you're subscribed to events of this type. slay β¨
πΈ DATA TYPES πΈ
wxWebView()::#wxWebView{}. β the record itself, iconic πwxWebViewEvent()::wx:wx_object(). β the event object, it's giving main character energy πwxWebViewEventType()::webview_navigating | webview_navigated | webview_loaded | webview_error | webview_newwindow | webview_title_changed. β the full vibe check menu of event types π
π₯ FUNCTIONS π₯
π getInt
getInt(This) -> integer() when This :: wxWebViewEvent().
Returns the integer identifier that goes with a listbox, choice or radiobox selection β but only if the event was an actual selection, not a deselection, okay? π«Ά Or it hands you back a boolean representing the value of a checkbox.
And for a menu item specifically: this method returns -1 if the item is not checkable, or a boolean value (true or false) for checkable items, telling you the new state of the item. periodt π
π getString
getString(This) -> unicode:charlist()
when This :: wxWebViewEvent().
Returns the item string for a listbox or choice selection event. cute! π
Now pay attention bestie: if one or several items have been deselected, it returns the index of the first deselected item. And if some items have been selected and others deselected at the same time? It returns the index of the first selected item. got it? got it. β¨
π§ getTarget
getTarget(This) -> unicode:charlist()
when This :: wxWebViewEvent().
Get the name of the target frame that the url of this event has been loaded into, or will be loaded into πΈ
heads up: this may return an empty string if the frame is not available. no frame, no name, that's just how it is π
π getURL
getURL(This) -> unicode:charlist() when This :: wxWebViewEvent().
Get the URL being visited. that's it, that's the function, lowkey perfect π
and that's the whole page bestie, you ate it π β¨π¦
sending you off with love from Ericsson AB, straight outta wx 2.6 π β this page is wxWebViewEvent(3), stay iconic π
π¦ 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