X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6849a4b714a623f56b01b4d787466d3efcc7c385..58cc15871d1a5ec5a6cc17f50be3e2006f57571f:/interface/wx/webview.h diff --git a/interface/wx/webview.h b/interface/wx/webview.h index 92b7fd70fc..c17bfe785e 100644 --- a/interface/wx/webview.h +++ b/interface/wx/webview.h @@ -92,8 +92,9 @@ enum wxWebViewBackend A simple class that contains the URL and title of an element of the history of a wxWebView. - @library{wxweb} - @category{web} + @since 2.9.3 + @library{wxwebview} + @category{webview} @see wxWebView */ @@ -122,8 +123,9 @@ public: The base class for handling custom schemes in wxWebView, for example to allow virtual file system support. - @library{wxweb} - @category{web} + @since 2.9.3 + @library{wxwebview} + @category{webview} @see wxWebView */ @@ -144,7 +146,7 @@ public: /** @return The name of the scheme, as passed to the constructor. */ - virtual wxString GetName() const = 0; + virtual wxString GetName() const; }; /** @@ -241,8 +243,9 @@ public: the page title changes. Use GetString to get the title. @endEventTable - @library{wxweb} - @category{ctrl,web} + @since 2.9.3 + @library{wxwebview} + @category{ctrl,webview} @see wxWebViewHandler, wxWebViewEvent */ class wxWebView : public wxControl @@ -254,11 +257,11 @@ public: */ virtual bool Create(wxWindow* parent, wxWindowID id, - const wxString& url, - const wxPoint& pos, - const wxSize& size, - long style, - const wxString& name) = 0; + const wxString& url = wxWebViewDefaultURLStr, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = 0, + const wxString& name = wxWebViewNameStr) = 0; /** Factory function to create a new wxWebView for two-step creation @@ -620,9 +623,10 @@ public: Process a @c wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED event, generated when the page title changes. Use GetString to get the title. @endEventTable - - @library{wxweb} - @category{events,web} + + @since 2.9.3 + @library{wxwebview} + @category{events,webview} @see wxWebView */ @@ -644,4 +648,12 @@ public: Get the URL being visited */ const wxString& GetURL() const; -}; \ No newline at end of file +}; + + +wxEventType wxEVT_COMMAND_WEB_VIEW_NAVIGATING; +wxEventType wxEVT_COMMAND_WEB_VIEW_NAVIGATED; +wxEventType wxEVT_COMMAND_WEB_VIEW_LOADED; +wxEventType wxEVT_COMMAND_WEB_VIEW_ERROR; +wxEventType wxEVT_COMMAND_WEB_VIEW_NEWWINDOW; +wxEventType wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED;