\section{NETRoot\-Info2 Class Reference}
\label{classNETRootInfo2}\index{NETRootInfo2@{NETRootInfo2}}
This class is an extension of the {\bf NETRoot\-Info}{\rm (p.\,\pageref{classNETRootInfo})} class, and exists solely for binary compatibility reasons (adds new virtual methods).  


{\tt \#include $<$netwm.h$>$}

Inheritance diagram for NETRoot\-Info2:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=57pt]{classNETRootInfo2__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for NETRoot\-Info2:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=57pt]{classNETRootInfo2__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf NETRoot\-Info2} (Display $\ast$display, Window support\-Window, const char $\ast$wm\-Name, unsigned long properties[$\,$], int properties\_\-size, int screen=-1, bool do\-Activate=true)\label{classNETRootInfo2_a0}

\item 
void {\bf send\-Ping} (Window window, Time timestamp)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf got\-Ping} (Window window, Time timestamp)
\item 
virtual void {\bf change\-Active\-Window} (Window window, {\bf NET::Request\-Source} src, Time timestamp, Window active\_\-window)
\item 
virtual void {\bf restack\-Window} (Window window, Window above, int detail)
\item 
virtual void {\bf move\-Resize\-Window} (Window window, int flags, int x, int y, int width, int height)
\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf NETRoot\-Info}\label{classNETRootInfo2_n0}

\end{CompactItemize}


\subsection{Detailed Description}
This class is an extension of the {\bf NETRoot\-Info}{\rm (p.\,\pageref{classNETRootInfo})} class, and exists solely for binary compatibility reasons (adds new virtual methods). 

Simply use it instead of {\bf NETRoot\-Info}{\rm (p.\,\pageref{classNETRootInfo})} and override also the added virtual methods. \begin{Desc}
\item[Since:]3.2 \end{Desc}




Definition at line 743 of file netwm.h.

\subsection{Member Function Documentation}
\index{NETRootInfo2@{NETRoot\-Info2}!sendPing@{sendPing}}
\index{sendPing@{sendPing}!NETRootInfo2@{NETRoot\-Info2}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void NETRoot\-Info2::send\-Ping (Window {\em window}, Time {\em timestamp})}\label{classNETRootInfo2_a1}


Sends a ping with the given timestamp to the window, using the \_\-NET\_\-WM\_\-PING protocol. 



Definition at line 1672 of file netwm.cpp.\index{NETRootInfo2@{NETRoot\-Info2}!gotPing@{gotPing}}
\index{gotPing@{gotPing}!NETRootInfo2@{NETRoot\-Info2}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void NETRoot\-Info2::got\-Ping (Window {\em window}, Time {\em timestamp})\hspace{0.3cm}{\tt  [inline, protected, virtual]}}\label{classNETRootInfo2_b0}


A Window Manager should subclass NETRoot\-Info2 and reimplement this function when it wants to receive replies to the \_\-NET\_\-WM\_\-PING protocol. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em window}]the window from which the reply came \item[{\em timestamp}]timestamp of the ping \end{description}
\end{Desc}


Definition at line 763 of file netwm.h.

Referenced by NETRoot\-Info::event().\index{NETRootInfo2@{NETRoot\-Info2}!changeActiveWindow@{changeActiveWindow}}
\index{changeActiveWindow@{changeActiveWindow}!NETRootInfo2@{NETRoot\-Info2}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void NETRoot\-Info2::change\-Active\-Window (Window {\em window}, {\bf NET::Request\-Source} {\em src}, Time {\em timestamp}, Window {\em active\_\-window})\hspace{0.3cm}{\tt  [inline, protected, virtual]}}\label{classNETRootInfo2_b1}


A Window Manager should subclass NETRoot\-Info2 and reimplement this function when it wants to know when a Client made a request to change the active (focused) window. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em window}]the id of the window to activate \item[{\em src}]the source from which the request came \item[{\em timestamp}]the timestamp of the user action causing this request \item[{\em active\_\-window}]active window of the requesting application, if any \end{description}
\end{Desc}


Definition at line 774 of file netwm.h.

Referenced by NETRoot\-Info::event().\index{NETRootInfo2@{NETRoot\-Info2}!restackWindow@{restackWindow}}
\index{restackWindow@{restackWindow}!NETRootInfo2@{NETRoot\-Info2}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void NETRoot\-Info2::restack\-Window (Window {\em window}, Window {\em above}, int {\em detail})\hspace{0.3cm}{\tt  [inline, protected, virtual]}}\label{classNETRootInfo2_b2}


A Window Manager should subclass NETRoot\-Info2 and reimplement this function when it wants to know when a Client made a request to restack a window. 

See \_\-NET\_\-RESTACK\_\-WINDOW for details.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em window}]the id of the window to restack \item[{\em above}]other window in the restack request \item[{\em detail}]restack detail \end{description}
\end{Desc}


Definition at line 785 of file netwm.h.

Referenced by NETRoot\-Info::event().\index{NETRootInfo2@{NETRoot\-Info2}!moveResizeWindow@{moveResizeWindow}}
\index{moveResizeWindow@{moveResizeWindow}!NETRootInfo2@{NETRoot\-Info2}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void NETRoot\-Info2::move\-Resize\-Window (Window {\em window}, int {\em flags}, int {\em x}, int {\em y}, int {\em width}, int {\em height})\hspace{0.3cm}{\tt  [inline, protected, virtual]}}\label{classNETRootInfo2_b3}


A Window Manager should subclass NETRoot\-Info2 and reimplement this function when it wants to know when a pager made a request to move/resize a window. 

See \_\-NET\_\-MOVERESIZE\_\-WINDOW for details.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em window}]the id of the window to more/resize \item[{\em flags}]Flags specifying the operation (see \_\-NET\_\-MOVERESIZE\_\-WINDOW description) \item[{\em x}]Requested X position for the window \item[{\em y}]Requested Y position for the window \item[{\em width}]Requested width for the window \item[{\em height}]Requested height for the window \end{description}
\end{Desc}


Definition at line 799 of file netwm.h.

Referenced by NETRoot\-Info::event().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
netwm.h\item 
netwm.cpp\end{CompactItemize}
