From 6b5d017e8fb3be050aa1c4e23267b189c2b41e98 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 24 Feb 2002 00:08:45 +0000 Subject: [PATCH] removed AdjustForParentClientOrigin from wxMotif and all its forks git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/motif/window.h | 4 ---- include/wx/x11/window.h | 4 ---- src/motif/window.cpp | 11 ----------- 3 files changed, 19 deletions(-) diff --git a/include/wx/motif/window.h b/include/wx/motif/window.h index 9284faf764..93f03ca231 100644 --- a/include/wx/motif/window.h +++ b/include/wx/motif/window.h @@ -175,10 +175,6 @@ protected: // event handlers (not virtual by design) void OnIdle(wxIdleEvent& event); - // Makes an adjustment to the window position (for example, a frame that has - // a toolbar that it manages itself). - virtual void AdjustForParentClientOrigin(int& x, int& y, int sizeFlags); - wxWindow *GetChild(int number) const { return GetChildren().Item(number)->GetData(); } diff --git a/include/wx/x11/window.h b/include/wx/x11/window.h index e7ef074f99..90863adfca 100644 --- a/include/wx/x11/window.h +++ b/include/wx/x11/window.h @@ -153,10 +153,6 @@ public: wxWindow *GetFocusWidget(); protected: - // Makes an adjustment to the window position (for example, a frame that has - // a toolbar that it manages itself). - virtual void AdjustForParentClientOrigin(int& x, int& y, int sizeFlags); - // Responds to colour changes: passes event on to children. void OnSysColourChanged(wxSysColourChangedEvent& event); diff --git a/src/motif/window.cpp b/src/motif/window.cpp index cbdac0a7ce..e51b353f98 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -1366,17 +1366,6 @@ wxPoint wxWindow::GetClientAreaOrigin() const return wxPoint(0, 0); } -// Makes an adjustment to the window position (for example, a frame that has -// a toolbar that it manages itself). -void wxWindow::AdjustForParentClientOrigin(int& x, int& y, int sizeFlags) -{ - if (((sizeFlags & wxSIZE_NO_ADJUSTMENTS) == 0) && GetParent()) - { - wxPoint pt(GetParent()->GetClientAreaOrigin()); - x += pt.x; y += pt.y; - } -} - void wxWindow::SetSizeHints(int minW, int minH, int maxW, int maxH, int incW, int incH) { m_minWidth = minW; -- 2.45.2