\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.
\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}
// 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)
}
}
-bool wxWindowBase::IsVisible() const
+bool wxWindowBase::IsShownOnScreen() const
{
- return IsShown() && (GetParent() == NULL || GetParent()->IsVisible());
+ return IsShown() &&
+ (GetParent() == NULL || GetParent()->IsShownOnScreen());
}
// ----------------------------------------------------------------------------
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
// 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: