X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e3515377ca94ccc018f7a5ba8f185914081e601..ece97e28829228d84d6af87ec58b8ea71e9e9637:/include/wx/utils.h diff --git a/include/wx/utils.h b/include/wx/utils.h index 2fd8ed4284..7e9a195160 100644 --- a/include/wx/utils.h +++ b/include/wx/utils.h @@ -224,6 +224,7 @@ public: wxCoord GetX() const { return m_x; } wxCoord GetY() const { return m_y; } + wxPoint GetPosition() const { return wxPoint(m_x, m_y); } bool LeftDown() const { return m_leftDown; } bool MiddleDown() const { return m_middleDown; } @@ -571,12 +572,16 @@ WXDLLIMPEXP_BASE void wxQsort(void *const pbase, size_t total_elems, // flags for wxLaunchDefaultBrowser enum { - wxBROWSER_NEW_WINDOW = 1 + wxBROWSER_NEW_WINDOW = 0x01, + wxBROWSER_NOBUSYCURSOR = 0x02 }; // Launch url in the user's default internet browser WXDLLIMPEXP_CORE bool wxLaunchDefaultBrowser(const wxString& url, int flags = 0); +// Launch document in the user's default application +WXDLLIMPEXP_CORE bool wxLaunchDefaultApplication(const wxString& path, int flags = 0); + // ---------------------------------------------------------------------------- // Menu accelerators related things // ----------------------------------------------------------------------------