X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef1717a963dfb76bac26b9f4277ae590b3c0a2e6..5713b34914d8216e1af3dce0373d10566a6d7ea3:/src/common/dpycmn.cpp?ds=sidebyside diff --git a/src/common/dpycmn.cpp b/src/common/dpycmn.cpp index b30084f099..13b4685281 100644 --- a/src/common/dpycmn.cpp +++ b/src/common/dpycmn.cpp @@ -27,12 +27,11 @@ #ifndef WX_PRECOMP #include "wx/gdicmn.h" #include "wx/window.h" + #include "wx/module.h" #endif //WX_PRECOMP #include "wx/display.h" #include "wx/display_impl.h" -#include "wx/module.h" -#include "wx/gdicmn.h" // for wxDisplaySize() #if wxUSE_DISPLAY @@ -68,6 +67,8 @@ public: return r; } + virtual wxRect GetClientArea() const { return wxGetClientDisplayRect(); } + virtual wxString GetName() const { return wxString(); } #if wxUSE_DISPLAY @@ -162,6 +163,13 @@ wxRect wxDisplay::GetGeometry() const return m_impl->GetGeometry(); } +wxRect wxDisplay::GetClientArea() const +{ + wxCHECK_MSG( IsOk(), wxRect(), _T("invalid wxDisplay object") ); + + return m_impl->GetClientArea(); +} + wxString wxDisplay::GetName() const { wxCHECK_MSG( IsOk(), wxString(), _T("invalid wxDisplay object") ); @@ -259,4 +267,3 @@ int wxDisplayFactorySingle::GetFromPoint(const wxPoint& pt) // the point is outside of the screen return wxNOT_FOUND; } -