#include </home/zeitlin/src/wx/github/interface/wx/webview.h>
A navigation event holds information about events associated with wxWebView objects.
The following event handler macros redirect the events to member function handlers 'func' with prototypes like:
Event macros for events emitted by this class:
wxEVT_COMMAND_WEB_VIEW_NAVIGATING
event, generated before trying to get a resource. This event may be vetoed to prevent navigating to this resource. Note that if the displayed HTML document has several frames, one such event will be generated per frame. wxEVT_COMMAND_WEB_VIEW_NAVIGATED
event generated after it was confirmed that a resource would be requested. This event may not be vetoed. Note that if the displayed HTML document has several frames, one such event will be generated per frame. wxEVT_COMMAND_WEB_VIEW_LOADED
event generated when the document is fully loaded and displayed. Note that if the displayed HTML document has several frames, one such event will be generated per frame. wxEVT_COMMAND_WEB_VIEW_ERROR
event generated when a navigation error occurs. The integer associated with this event will be a wxWebNavigationError item. The string associated with this event may contain a backend-specific more precise error message/code. wxEVT_COMMAND_WEB_VIEW_NEWWINDOW
event, generated when a new window is created. You must handle this event if you want anything to happen, for example to load the page in a new window or tab. wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED
event, generated when the page title changes. Use GetString to get the title. Public Member Functions | |
wxWebViewEvent () | |
wxWebViewEvent (wxEventType type, int id, const wxString href, const wxString target) | |
const wxString & | GetTarget () const |
Get the name of the target frame which the url of this event has been or will be loaded into. | |
const wxString & | GetURL () const |
Get the URL being visited. |
wxWebViewEvent::wxWebViewEvent | ( | ) |
wxWebViewEvent::wxWebViewEvent | ( | wxEventType | type, |
int | id, | ||
const wxString | href, | ||
const wxString | target | ||
) |
const wxString& wxWebViewEvent::GetTarget | ( | ) | const |
Get the name of the target frame which the url of this event has been or will be loaded into.
This may return an emptry string if the frame is not available.
const wxString& wxWebViewEvent::GetURL | ( | ) | const |
Get the URL being visited.