]> git.saurik.com Git - wxWidgets.git/commitdiff
renamed wxWindow::IsVisible() to IsShownOnScreen() to fix name conflicts with other...
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 14 Sep 2006 12:22:46 +0000 (12:22 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 14 Sep 2006 12:22:46 +0000 (12:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/window.tex
include/wx/window.h
src/common/wincmn.cpp
src/dfb/dcclient.cpp

index b4103f2261fe2308cdeab0f408f60d74562fb146..92eba142973ee79c93999067be9d9591368b130e 100644 (file)
@@ -1560,21 +1560,12 @@ Returns {\tt true} if the window is shown, {\tt false} if it has been hidden.
 
 \wxheading{See also}
 
-\helpref{wxWindow::IsVisible}{wxwindowisvisible}
+\helpref{wxWindow::IsShownOnScreen}{wxwindowisshownonscreen}
 
 
-\membersection{wxWindow::IsTopLevel}\label{wxwindowistoplevel}
-
-\constfunc{bool}{IsTopLevel}{\void}
-
-Returns {\tt true} if the given window is a top-level one. Currently all frames and
-dialogs are considered to be top-level windows (even if they have a parent
-window).
-
-
-\membersection{wxWindow::IsVisible}\label{wxwindowisvisible}
+\membersection{wxWindow::IsShownOnScreen}\label{wxwindowisshownonscreen}
 
-\constfunc{virtual bool}{IsVisible}{\void}
+\constfunc{virtual bool}{IsShownOnScreen}{\void}
 
 Returns {\tt true} if the window is physically visible on the screen, i.e. it
 is shown and all its parents up to the toplevel window are shown as well.
@@ -1584,6 +1575,15 @@ is shown and all its parents up to the toplevel window are shown as well.
 \helpref{wxWindow::IsShown}{wxwindowisshown}
 
 
+\membersection{wxWindow::IsTopLevel}\label{wxwindowistoplevel}
+
+\constfunc{bool}{IsTopLevel}{\void}
+
+Returns {\tt true} if the given window is a top-level one. Currently all frames and
+dialogs are considered to be top-level windows (even if they have a parent
+window).
+
+
 \membersection{wxWindow::Layout}\label{wxwindowlayout}
 
 \func{void}{Layout}{\void}
index b752e7452f6ff51c6b0a088b787cd5cdadb98f4e..9716f0e9f15ae812ab65fc26e616df9c5f1b05a0 100644 (file)
@@ -485,7 +485,7 @@ public:
 
     // returns true if the window is visible, i.e. IsShown() returns true
     // if called on it and all its parents up to the first TLW
-    virtual bool IsVisible() const;
+    virtual bool IsShownOnScreen() const;
 
         // get/set window style (setting style won't update the window and so
         // is only useful for internal usage)
index 47983f7274cec95d8cf6d87d1cc94bc9834673d9..7d16c18b26dda0d56cbf6e36a2770294019c2575 100644 (file)
@@ -747,9 +747,10 @@ bool wxWindowBase::Enable(bool enable)
     }
 }
 
-bool wxWindowBase::IsVisible() const
+bool wxWindowBase::IsShownOnScreen() const
 {
-    return IsShown() && (GetParent() == NULL || GetParent()->IsVisible());
+    return IsShown() &&
+           (GetParent() == NULL || GetParent()->IsShownOnScreen());
 }
 
 // ----------------------------------------------------------------------------
index 160f3e336d8e123e15507ee29015cae49f24f6c8..d44190e4e33bb7652d892f186d9e92f7aabd9971 100644 (file)
@@ -58,7 +58,7 @@ void wxWindowDC::InitForWin(wxWindow *win, const wxRect *rect)
     wxPoint origin;
     wxIDirectFBSurfacePtr surface;
 
-    if ( !win->IsVisible() )
+    if ( !win->IsShownOnScreen() )
     {
         // we're painting on invisible window: the changes won't have any
         // effect, as the window will be repainted anyhow when it is shown, but
@@ -117,7 +117,7 @@ wxWindowDC::~wxWindowDC()
 
     // painting on hidden window has no effect on TLW's surface, don't
     // waste time flipping the dummy surface:
-    if ( !m_win->IsVisible() )
+    if ( !m_win->IsShownOnScreen() )
         return;
 
     // if no painting was done on the DC, we don't have to flip the surface: