Slight tweaks for the wxWebKitCtrl doc.

Remove inline function bodies.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-12-29 03:22:52 +00:00
parent 69cfa7ca5c
commit da4efa3fe3

View File

@@ -12,21 +12,24 @@
#define _WX_WEBKIT_H #define _WX_WEBKIT_H
/** /**
@class wxWebKitCtrl @class wxWebKitCtrl
This control is a native wrapper around the Safari web browsing engine. This wrapper This control is a native wrapper around the Safari web browsing
differs from the one in wxWebView in that this version supports functionality specific to engine. This wrapper differs from the one in wxWebView in that this
WebKit, such as having RunScript return a value, which is a very critical feature in many version supports functionality specific to WebKit, such as having
web embedding scenarios. RunScript return a value, which is a very critical feature in many web
**/ embedding scenarios.
This class is only available on OSX.
**/
class wxWebKitCtrl : public wxControl class wxWebKitCtrl : public wxControl
{ {
public: public:
wxWebKitCtrl() {} wxWebKitCtrl();
wxWebKitCtrl(wxWindow *parent, wxWebKitCtrl(wxWindow *parent,
wxWindowID winID, wxWindowID winid,
const wxString& strURL, const wxString& strURL,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
@@ -34,7 +37,7 @@ public:
const wxString& name = wxWebKitCtrlNameStr); const wxString& name = wxWebKitCtrlNameStr);
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID winID, wxWindowID winid,
const wxString& strURL, const wxString& strURL,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
@@ -89,7 +92,7 @@ enum {
wxWEBKIT_STATE_REDIRECTING = 4, wxWEBKIT_STATE_REDIRECTING = 4,
wxWEBKIT_STATE_TRANSFERRING = 8, wxWEBKIT_STATE_TRANSFERRING = 8,
wxWEBKIT_STATE_STOP = 16, wxWEBKIT_STATE_STOP = 16,
wxWEBKIT_STATE_FAILED = 32 wxWEBKIT_STATE_FAILED = 32
}; };
enum { enum {
@@ -107,12 +110,12 @@ enum {
class wxWebKitBeforeLoadEvent : public wxCommandEvent class wxWebKitBeforeLoadEvent : public wxCommandEvent
{ {
public: public:
bool IsCancelled() { return m_cancelled; } bool IsCancelled();
void Cancel(bool cancel = true) { m_cancelled = cancel; } void Cancel(bool cancel = true);
wxString GetURL() { return m_url; } wxString GetURL();
void SetURL(const wxString& url) { m_url = url; } void SetURL(const wxString& url);
void SetNavigationType(int navType) { m_navType = navType; } void SetNavigationType(int navType);
int GetNavigationType() { return m_navType; } int GetNavigationType();
wxWebKitBeforeLoadEvent( wxWindow* win = 0 ); wxWebKitBeforeLoadEvent( wxWindow* win = 0 );
}; };
@@ -120,10 +123,10 @@ public:
class wxWebKitStateChangedEvent : public wxCommandEvent class wxWebKitStateChangedEvent : public wxCommandEvent
{ {
public: public:
int GetState() { return m_state; } int GetState();
void SetState(const int state) { m_state = state; } void SetState(const int state);
wxString GetURL() { return m_url; } wxString GetURL();
void SetURL(const wxString& url) { m_url = url; } void SetURL(const wxString& url);
wxWebKitStateChangedEvent( wxWindow* win = 0 ); wxWebKitStateChangedEvent( wxWindow* win = 0 );
}; };
@@ -132,10 +135,10 @@ public:
class wxWebKitNewWindowEvent : public wxCommandEvent class wxWebKitNewWindowEvent : public wxCommandEvent
{ {
public: public:
wxString GetURL() const { return m_url; } wxString GetURL() const;
void SetURL(const wxString& url) { m_url = url; } void SetURL(const wxString& url);
wxString GetTargetName() const { return m_targetName; } wxString GetTargetName() const;
void SetTargetName(const wxString& name) { m_targetName = name; } void SetTargetName(const wxString& name);
wxWebKitNewWindowEvent( wxWindow* win = 0 ); wxWebKitNewWindowEvent( wxWindow* win = 0 );
}; };