Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1f9eb832ba1e4b88d9a5c2b384813bb4 > files > 2423

kdelibs3-apidocs-3.5.10-31.fc15.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">

<head>
  <title>kdecore: kwin.cpp Source File (kdecore)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>

  <div id="nav_header_title" align="left">KDE API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_right" style="text-align: left;">
/ <a href="../..">API Reference</a>
 / <a href=".">kdecore</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <a name="content"></a>


<!-- Generated by Doxygen 1.7.4 -->
<div class="header">
  <div class="headertitle">
<div class="title">kwin.cpp</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* This file is part of the KDE libraries</span>
<a name="l00002"></a>00002 <span class="comment">    Copyright (C) 1999 Matthias Ettrich (ettrich@kde.org)</span>
<a name="l00003"></a>00003 <span class="comment"></span>
<a name="l00004"></a>00004 <span class="comment">    $Id: kwin.cpp 715236 2007-09-21 15:08:48Z mueller $</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment">    This library is free software; you can redistribute it and/or</span>
<a name="l00007"></a>00007 <span class="comment">    modify it under the terms of the GNU Library General Public</span>
<a name="l00008"></a>00008 <span class="comment">    License as published by the Free Software Foundation; either</span>
<a name="l00009"></a>00009 <span class="comment">    version 2 of the License, or (at your option) any later version.</span>
<a name="l00010"></a>00010 <span class="comment"></span>
<a name="l00011"></a>00011 <span class="comment">    This library is distributed in the hope that it will be useful,</span>
<a name="l00012"></a>00012 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00013"></a>00013 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00014"></a>00014 <span class="comment">    Library General Public License for more details.</span>
<a name="l00015"></a>00015 <span class="comment"></span>
<a name="l00016"></a>00016 <span class="comment">    You should have received a copy of the GNU Library General Public License</span>
<a name="l00017"></a>00017 <span class="comment">    along with this library; see the file COPYING.LIB.  If not, write to</span>
<a name="l00018"></a>00018 <span class="comment">    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
<a name="l00019"></a>00019 <span class="comment">    Boston, MA 02110-1301, USA.</span>
<a name="l00020"></a>00020 <span class="comment">*/</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &lt;unistd.h&gt;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#ifdef HAVE_SYSENT_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#include &lt;sysent.h&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#endif</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;kuniqueapplication.h&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;qbitmap.h&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;qimage.h&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;qwhatsthis.h&gt;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;qcstring.h&gt;</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;qdialog.h&gt;</span>
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="preprocessor">#include &quot;config.h&quot;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include &quot;kwin.h&quot;</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include &quot;kapplication.h&quot;</span>
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 <span class="preprocessor">#include &lt;kglobal.h&gt;</span>
<a name="l00041"></a>00041 <span class="preprocessor">#include &lt;kiconloader.h&gt;</span>
<a name="l00042"></a>00042 <span class="preprocessor">#include &lt;kdebug.h&gt;</span>
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="preprocessor">#include &lt;kdatastream.h&gt;</span>
<a name="l00045"></a>00045 <span class="preprocessor">#include &lt;<a class="code" href="klocale_8h.html">klocale.h</a>&gt;</span>
<a name="l00046"></a>00046 <span class="preprocessor">#include &lt;dcopclient.h&gt;</span>
<a name="l00047"></a>00047 <span class="preprocessor">#include &lt;dcopref.h&gt;</span>
<a name="l00048"></a>00048 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">#include &lt;kstartupinfo.h&gt;</span>
<a name="l00050"></a>00050 <span class="preprocessor">#include &lt;kxerrorhandler.h&gt;</span>
<a name="l00051"></a>00051 
<a name="l00052"></a>00052 <span class="preprocessor">#include &lt;X11/Xlib.h&gt;</span>
<a name="l00053"></a>00053 <span class="preprocessor">#include &lt;X11/Xatom.h&gt;</span>
<a name="l00054"></a>00054 <span class="preprocessor">#include &lt;X11/Xutil.h&gt;</span>
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 <span class="preprocessor">#include &quot;netwm.h&quot;</span>
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="keyword">static</span> <span class="keywordtype">bool</span> atoms_created = <span class="keyword">false</span>;
<a name="l00059"></a>00059 <span class="keyword">extern</span> Atom qt_wm_protocols;
<a name="l00060"></a>00060 <span class="keyword">extern</span> Time qt_x_time;
<a name="l00061"></a>00061 <span class="keyword">extern</span> Time qt_x_user_time;
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 <span class="keyword">static</span> Atom net_wm_context_help;
<a name="l00064"></a>00064 <span class="keyword">static</span> Atom kde_wm_change_state;
<a name="l00065"></a>00065 <span class="keyword">static</span> Atom kde_wm_window_opacity;
<a name="l00066"></a>00066 <span class="keyword">static</span> Atom kde_wm_window_shadow;
<a name="l00067"></a>00067 <span class="keyword">static</span> Atom kwin_UTF8_STRING;
<a name="l00068"></a>00068 <span class="keyword">static</span> Atom net_wm_cm;
<a name="l00069"></a>00069 
<a name="l00070"></a>00070 <span class="keyword">static</span> <span class="keywordtype">void</span> kwin_net_create_atoms() {
<a name="l00071"></a>00071     <span class="keywordflow">if</span> (!atoms_created){
<a name="l00072"></a>00072     <span class="keyword">const</span> <span class="keywordtype">int</span> max = 20;
<a name="l00073"></a>00073     Atom* atoms[max];
<a name="l00074"></a>00074     <span class="keyword">const</span> <span class="keywordtype">char</span>* names[max];
<a name="l00075"></a>00075     Atom atoms_return[max];
<a name="l00076"></a>00076     <span class="keywordtype">int</span> n = 0;
<a name="l00077"></a>00077 
<a name="l00078"></a>00078     atoms[n] = &amp;net_wm_context_help;
<a name="l00079"></a>00079     names[n++] = <span class="stringliteral">&quot;_NET_WM_CONTEXT_HELP&quot;</span>;
<a name="l00080"></a>00080 
<a name="l00081"></a>00081     atoms[n] = &amp;kde_wm_change_state;
<a name="l00082"></a>00082     names[n++] = <span class="stringliteral">&quot;_KDE_WM_CHANGE_STATE&quot;</span>;
<a name="l00083"></a>00083         
<a name="l00084"></a>00084         atoms[n] = &amp;kde_wm_window_opacity;
<a name="l00085"></a>00085         names[n++] = (<span class="keywordtype">char</span>*) <span class="stringliteral">&quot;_KDE_WM_WINDOW_OPACITY&quot;</span>;
<a name="l00086"></a>00086 
<a name="l00087"></a>00087         atoms[n] = &amp;kde_wm_window_shadow;
<a name="l00088"></a>00088         names[n++] = (<span class="keywordtype">char</span>*) <span class="stringliteral">&quot;_KDE_WM_WINDOW_SHADOW&quot;</span>;
<a name="l00089"></a>00089 
<a name="l00090"></a>00090         <span class="keywordtype">char</span> net_wm_cm_name[ 100 ];
<a name="l00091"></a>00091         sprintf( net_wm_cm_name, <span class="stringliteral">&quot;_NET_WM_CM_S%d&quot;</span>, DefaultScreen( qt_xdisplay()));
<a name="l00092"></a>00092         atoms[n] = &amp;net_wm_cm;
<a name="l00093"></a>00093         names[n++] = net_wm_cm_name;
<a name="l00094"></a>00094 
<a name="l00095"></a>00095     <span class="comment">// we need a const_cast for the shitty X API</span>
<a name="l00096"></a>00096     XInternAtoms( qt_xdisplay(), const_cast&lt;char**&gt;(names), n, <span class="keyword">false</span>, atoms_return );
<a name="l00097"></a>00097     <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; n; i++ )
<a name="l00098"></a>00098         *atoms[i] = atoms_return[i];
<a name="l00099"></a>00099 
<a name="l00100"></a>00100     atoms_created = True;
<a name="l00101"></a>00101     }
<a name="l00102"></a>00102 }
<a name="l00103"></a>00103 <span class="preprocessor">#endif</span>
<a name="l00104"></a>00104 <span class="preprocessor"></span>
<a name="l00105"></a>00105 <span class="comment">/*</span>
<a name="l00106"></a>00106 <span class="comment">  Sends a client message to the ROOT window.</span>
<a name="l00107"></a>00107 <span class="comment"> */</span>
<a name="l00108"></a>00108 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00109"></a>00109 <span class="preprocessor"></span><span class="keyword">static</span> <span class="keywordtype">void</span> sendClientMessageToRoot(Window w, Atom a, <span class="keywordtype">long</span> x, <span class="keywordtype">long</span> y = 0, <span class="keywordtype">long</span> z = 0 ){
<a name="l00110"></a>00110   XEvent ev;
<a name="l00111"></a>00111   <span class="keywordtype">long</span> mask;
<a name="l00112"></a>00112 
<a name="l00113"></a>00113   memset(&amp;ev, 0, <span class="keyword">sizeof</span>(ev));
<a name="l00114"></a>00114   ev.xclient.type = ClientMessage;
<a name="l00115"></a>00115   ev.xclient.window = w;
<a name="l00116"></a>00116   ev.xclient.message_type = a;
<a name="l00117"></a>00117   ev.xclient.format = 32;
<a name="l00118"></a>00118   ev.xclient.data.l[0] = x;
<a name="l00119"></a>00119   ev.xclient.data.l[1] = y;
<a name="l00120"></a>00120   ev.xclient.data.l[2] = z;
<a name="l00121"></a>00121   mask = SubstructureRedirectMask;
<a name="l00122"></a>00122   XSendEvent(qt_xdisplay(), qt_xrootwin(), False, mask, &amp;ev);
<a name="l00123"></a>00123 }
<a name="l00124"></a>00124 <span class="preprocessor">#endif</span>
<a name="l00125"></a>00125 <span class="preprocessor"></span>
<a name="l00126"></a>00126 <span class="comment">/*</span>
<a name="l00127"></a>00127 <span class="comment">  Send a client message to window w</span>
<a name="l00128"></a>00128 <span class="comment"> */</span>
<a name="l00129"></a>00129 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00130"></a>00130 <span class="preprocessor"></span><span class="keyword">static</span> <span class="keywordtype">void</span> sendClientMessage(Window w, Atom a, <span class="keywordtype">long</span> x){
<a name="l00131"></a>00131   XEvent ev;
<a name="l00132"></a>00132   <span class="keywordtype">long</span> mask;
<a name="l00133"></a>00133 
<a name="l00134"></a>00134   memset(&amp;ev, 0, <span class="keyword">sizeof</span>(ev));
<a name="l00135"></a>00135   ev.xclient.type = ClientMessage;
<a name="l00136"></a>00136   ev.xclient.window = w;
<a name="l00137"></a>00137   ev.xclient.message_type = a;
<a name="l00138"></a>00138   ev.xclient.format = 32;
<a name="l00139"></a>00139   ev.xclient.data.l[0] = x;
<a name="l00140"></a>00140   ev.xclient.data.l[1] = CurrentTime;
<a name="l00141"></a>00141   mask = 0L;
<a name="l00142"></a>00142   <span class="keywordflow">if</span> (w == qt_xrootwin())
<a name="l00143"></a>00143     mask = SubstructureRedirectMask;        <span class="comment">/* magic! */</span>
<a name="l00144"></a>00144   XSendEvent(qt_xdisplay(), w, False, mask, &amp;ev);
<a name="l00145"></a>00145 }
<a name="l00146"></a>00146 <span class="preprocessor">#endif</span>
<a name="l00147"></a>00147 <span class="preprocessor"></span>
<a name="l00148"></a><a class="code" href="classKWin.html#a038b2213f29e57abb1184a19a9149590">00148</a> <span class="keywordtype">bool</span> <a class="code" href="classKWin.html#a038b2213f29e57abb1184a19a9149590" title="Returns true if a compositing manager is running (i.e.">KWin::compositingActive</a>()
<a name="l00149"></a>00149 {
<a name="l00150"></a>00150 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00151"></a>00151 <span class="preprocessor"></span>    kwin_net_create_atoms();
<a name="l00152"></a>00152     <span class="keywordflow">return</span> XGetSelectionOwner( qt_xdisplay(), net_wm_cm ) != None;
<a name="l00153"></a>00153 <span class="preprocessor">#else</span>
<a name="l00154"></a>00154 <span class="preprocessor"></span>    <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00155"></a>00155 <span class="preprocessor">#endif</span>
<a name="l00156"></a>00156 <span class="preprocessor"></span>}
<a name="l00157"></a>00157 
<a name="l00158"></a>00158 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00159"></a>00159 <span class="preprocessor"></span><span class="keyword">namespace</span>
<a name="l00160"></a>00160 {
<a name="l00161"></a>00161 <span class="keyword">class </span>ContextWidget : <span class="keyword">public</span> <a class="codeRef" href="qwidget.html">QWidget</a>
<a name="l00162"></a>00162 {
<a name="l00163"></a>00163 <span class="keyword">public</span>:
<a name="l00164"></a>00164     ContextWidget();
<a name="l00165"></a>00165     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="codeRef" href="qwidget.html#x11Event">x11Event</a>( XEvent * ev);
<a name="l00166"></a>00166 };
<a name="l00167"></a>00167 
<a name="l00168"></a>00168 ContextWidget::ContextWidget()
<a name="l00169"></a>00169     : <a class="codeRef" href="qwidget.html">QWidget</a>(0,0)
<a name="l00170"></a>00170     {
<a name="l00171"></a>00171     kwin_net_create_atoms();
<a name="l00172"></a>00172     kapp-&gt;installX11EventFilter( <span class="keyword">this</span> );
<a name="l00173"></a>00173     <a class="codeRef" href="qwhatsthis.html#enterWhatsThisMode">QWhatsThis::enterWhatsThisMode</a>();
<a name="l00174"></a>00174     <a class="codeRef" href="qcursor.html">QCursor</a> c = *<a class="codeRef" href="qapplication.html#overrideCursor">QApplication::overrideCursor</a>();
<a name="l00175"></a>00175     <a class="codeRef" href="qwhatsthis.html#leaveWhatsThisMode">QWhatsThis::leaveWhatsThisMode</a>();
<a name="l00176"></a>00176     XGrabPointer( qt_xdisplay(), qt_xrootwin(), <span class="keyword">true</span>,
<a name="l00177"></a>00177               (uint)( ButtonPressMask | ButtonReleaseMask |
<a name="l00178"></a>00178                   PointerMotionMask | EnterWindowMask |
<a name="l00179"></a>00179                   LeaveWindowMask ),
<a name="l00180"></a>00180               GrabModeAsync, GrabModeAsync,
<a name="l00181"></a>00181               None, c.<a class="codeRef" href="qcursor.html#handle">handle</a>(), CurrentTime );
<a name="l00182"></a>00182     qApp-&gt;enter_loop();
<a name="l00183"></a>00183     }
<a name="l00184"></a>00184 
<a name="l00185"></a>00185 
<a name="l00186"></a>00186 <span class="keywordtype">bool</span> <a class="codeRef" href="qwidget.html#x11Event">ContextWidget::x11Event</a>( XEvent * ev)
<a name="l00187"></a>00187     {
<a name="l00188"></a>00188     <span class="keywordflow">if</span> ( ev-&gt;type == ButtonPress &amp;&amp; ev-&gt;xbutton.button == Button1 ) {
<a name="l00189"></a>00189         XUngrabPointer( qt_xdisplay(), ev-&gt;xbutton.time );
<a name="l00190"></a>00190         Window root;
<a name="l00191"></a>00191         Window child = qt_xrootwin();
<a name="l00192"></a>00192         <span class="keywordtype">int</span> root_x, root_y, lx, ly;
<a name="l00193"></a>00193         uint state;
<a name="l00194"></a>00194         Window w;
<a name="l00195"></a>00195         <span class="keywordflow">do</span> {
<a name="l00196"></a>00196         w = child;
<a name="l00197"></a>00197         XQueryPointer( qt_xdisplay(), w, &amp;root, &amp;child,
<a name="l00198"></a>00198                    &amp;root_x, &amp;root_y, &amp;lx, &amp;ly, &amp;state );
<a name="l00199"></a>00199         } <span class="keywordflow">while</span>  ( child != None &amp;&amp; child != w );
<a name="l00200"></a>00200 
<a name="l00201"></a>00201         ::sendClientMessage(w, qt_wm_protocols, net_wm_context_help);
<a name="l00202"></a>00202         XEvent e = *ev;
<a name="l00203"></a>00203         e.xbutton.window = w;
<a name="l00204"></a>00204         e.xbutton.subwindow = w;
<a name="l00205"></a>00205         e.xbutton.x = lx;
<a name="l00206"></a>00206         e.xbutton.y = ly;
<a name="l00207"></a>00207         XSendEvent( qt_xdisplay(), w, <span class="keyword">true</span>, ButtonPressMask, &amp;e );
<a name="l00208"></a>00208         qApp-&gt;exit_loop();
<a name="l00209"></a>00209         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00210"></a>00210     }
<a name="l00211"></a>00211     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00212"></a>00212     }
<a name="l00213"></a>00213 } <span class="comment">// namespace</span>
<a name="l00214"></a>00214 <span class="preprocessor">#endif</span>
<a name="l00215"></a>00215 <span class="preprocessor"></span>
<a name="l00216"></a><a class="code" href="classKWin.html#ae779107f221340402c5233be4d161e68">00216</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#ae779107f221340402c5233be4d161e68" title="Invokes interactive context help.">KWin::invokeContextHelp</a>()
<a name="l00217"></a>00217 {
<a name="l00218"></a>00218 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00219"></a>00219 <span class="preprocessor"></span>    ContextWidget w;
<a name="l00220"></a>00220 <span class="preprocessor">#endif</span>
<a name="l00221"></a>00221 <span class="preprocessor"></span>}
<a name="l00222"></a>00222 
<a name="l00223"></a><a class="code" href="classKWin.html#ae6a0726af9a542c1e0e077c3d3451e08">00223</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#ae6a0726af9a542c1e0e077c3d3451e08" title="Makes trayWin a system tray window for forWin.">KWin::setSystemTrayWindowFor</a>( WId trayWin, WId forWin )
<a name="l00224"></a>00224 {
<a name="l00225"></a>00225 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00226"></a>00226 <span class="preprocessor"></span>    NETWinInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), trayWin, qt_xrootwin(), 0 );
<a name="l00227"></a>00227     <span class="keywordflow">if</span> ( !forWin )
<a name="l00228"></a>00228     forWin = qt_xrootwin();
<a name="l00229"></a>00229     info.setKDESystemTrayWinFor( forWin );
<a name="l00230"></a>00230     NETRootInfo rootinfo( qt_xdisplay(), NET::Supported );
<a name="l00231"></a>00231     <span class="keywordflow">if</span>( !rootinfo.isSupported( NET::WMKDESystemTrayWinFor )) {
<a name="l00232"></a>00232         <a class="codeRef" doxygen="dcop.tag:../../dcop/html/" href="../../dcop/html/classDCOPRef.html">DCOPRef</a> ref( <span class="stringliteral">&quot;kded&quot;</span>, <span class="stringliteral">&quot;kded&quot;</span> );
<a name="l00233"></a>00233         <span class="keywordflow">if</span>( !ref.<a class="codeRef" doxygen="dcop.tag:../../dcop/html/" href="../../dcop/html/classDCOPRef.html#ae21346258da9773c8434c5c757c070b7">send</a>( <span class="stringliteral">&quot;loadModule&quot;</span>, <a class="codeRef" href="qcstring.html">QCString</a>( <span class="stringliteral">&quot;kdetrayproxy&quot;</span> )))
<a name="l00234"></a>00234             kdWarning( 176 ) &lt;&lt; <span class="stringliteral">&quot;Loading of kdetrayproxy failed.&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l00235"></a>00235     }
<a name="l00236"></a>00236 <span class="preprocessor">#endif</span>
<a name="l00237"></a>00237 <span class="preprocessor"></span>}
<a name="l00238"></a>00238 
<a name="l00239"></a><a class="code" href="classKWin.html#a12977f54649ac2ddbd48848e585ca7db">00239</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#a12977f54649ac2ddbd48848e585ca7db" title="Requests that window win is activated.">KWin::activateWindow</a>( WId win, <span class="keywordtype">long</span> time )
<a name="l00240"></a>00240 {
<a name="l00241"></a>00241 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00242"></a>00242 <span class="preprocessor"></span>    NETRootInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), 0 );
<a name="l00243"></a>00243     <span class="keywordflow">if</span>( time == 0 )
<a name="l00244"></a>00244         time = qt_x_user_time;
<a name="l00245"></a>00245     info.setActiveWindow( win, NET::FromApplication, time,
<a name="l00246"></a>00246         kapp-&gt;activeWindow() ? kapp-&gt;activeWindow()-&gt;winId() : 0 );
<a name="l00247"></a>00247 <span class="preprocessor">#endif // Q_WS_X11 ...</span>
<a name="l00248"></a>00248 <span class="preprocessor"></span>    KUniqueApplication::setHandleAutoStarted();
<a name="l00249"></a>00249 }
<a name="l00250"></a>00250 
<a name="l00251"></a><a class="code" href="classKWin.html#a82d49bbca53c8badc430f94eee96d76c">00251</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#a82d49bbca53c8badc430f94eee96d76c" title="Sets window win to be the active window.">KWin::forceActiveWindow</a>( WId win, <span class="keywordtype">long</span> time )
<a name="l00252"></a>00252 {
<a name="l00253"></a>00253 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00254"></a>00254 <span class="preprocessor"></span>    NETRootInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), 0 );
<a name="l00255"></a>00255     <span class="keywordflow">if</span>( time == 0 )
<a name="l00256"></a>00256         time = qt_x_time;
<a name="l00257"></a>00257     info.setActiveWindow( win, NET::FromTool, time, 0 );
<a name="l00258"></a>00258 <span class="preprocessor">#endif // Q_WS_X11</span>
<a name="l00259"></a>00259 <span class="preprocessor"></span>    KUniqueApplication::setHandleAutoStarted();
<a name="l00260"></a>00260 }
<a name="l00261"></a>00261 
<a name="l00262"></a><a class="code" href="classKWin.html#aad40e08dd0aa37428a8c2c757d6493c1">00262</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#aad40e08dd0aa37428a8c2c757d6493c1">KWin::setActiveWindow</a>( WId win )
<a name="l00263"></a>00263 {
<a name="l00264"></a>00264 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00265"></a>00265 <span class="preprocessor"></span>    NETRootInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), 0 );
<a name="l00266"></a>00266     info.setActiveWindow( win, NET::FromUnknown, 0, 0 );
<a name="l00267"></a>00267 <span class="preprocessor">#endif</span>
<a name="l00268"></a>00268 <span class="preprocessor"></span>    KUniqueApplication::setHandleAutoStarted();
<a name="l00269"></a>00269 }
<a name="l00270"></a>00270 
<a name="l00271"></a><a class="code" href="classKWin.html#a64207e8097b76fd64b14930b37a7ac6d">00271</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#a64207e8097b76fd64b14930b37a7ac6d" title="When application finishes some operation and wants to notify the user about it, it can call demandAtt...">KWin::demandAttention</a>( WId win, <span class="keywordtype">bool</span> <span class="keyword">set</span> )
<a name="l00272"></a>00272 {
<a name="l00273"></a>00273 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00274"></a>00274 <span class="preprocessor"></span>    NETWinInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), win, qt_xrootwin(), 0 );
<a name="l00275"></a>00275     info.setState( <span class="keyword">set</span> ? <a class="code" href="classNET.html#a08dce7f5ea8a2a6d1d38aea3498f00eea3bb48830079a11c504153794ebbd4213">NET::DemandsAttention</a> : 0, <a class="code" href="classNET.html#a08dce7f5ea8a2a6d1d38aea3498f00eea3bb48830079a11c504153794ebbd4213">NET::DemandsAttention</a> );
<a name="l00276"></a>00276 <span class="preprocessor">#endif</span>
<a name="l00277"></a>00277 <span class="preprocessor"></span>}
<a name="l00278"></a>00278 
<a name="l00279"></a><a class="code" href="classKWin.html#a798e516eadef02003393f6fc03eff879">00279</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#a798e516eadef02003393f6fc03eff879" title="Sets user timestamp time on window win.">KWin::setUserTime</a>( WId win, <span class="keywordtype">long</span> time )
<a name="l00280"></a>00280 {
<a name="l00281"></a>00281 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00282"></a>00282 <span class="preprocessor"></span>    NETWinInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), win, qt_xrootwin(), 0 );
<a name="l00283"></a>00283     info.setUserTime( time );
<a name="l00284"></a>00284 <span class="preprocessor">#endif</span>
<a name="l00285"></a>00285 <span class="preprocessor"></span>}
<a name="l00286"></a>00286 
<a name="l00287"></a><a class="code" href="classKWin.html#a8ce591daa3996c2bfb98b8de6c82b79a">00287</a> <a class="code" href="classKWin_1_1WindowInfo.html" title="Information about a window.">KWin::WindowInfo</a> <a class="code" href="classKWin.html#a8ce591daa3996c2bfb98b8de6c82b79a" title="Returns information about window win.">KWin::windowInfo</a>( WId win, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> properties, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> properties2 )
<a name="l00288"></a>00288 {
<a name="l00289"></a>00289     <span class="keywordflow">return</span> <a class="code" href="classKWin_1_1WindowInfo.html" title="Information about a window.">WindowInfo</a>( win, properties, properties2 );
<a name="l00290"></a>00290 }
<a name="l00291"></a>00291 
<a name="l00292"></a>00292 
<a name="l00293"></a><a class="code" href="classKWin.html#a4b857cb8b13c5db33b0455b50664a7f0">00293</a> WId <a class="code" href="classKWin.html#a4b857cb8b13c5db33b0455b50664a7f0" title="Returns the WM_TRANSIENT_FOR property for the given window, i.e.">KWin::transientFor</a>( WId win )
<a name="l00294"></a>00294 {
<a name="l00295"></a>00295 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00296"></a>00296 <span class="preprocessor"></span>    <a class="code" href="classKXErrorHandler.html" title="This class simplifies handling of X errors.">KXErrorHandler</a> handler; <span class="comment">// ignore badwindow</span>
<a name="l00297"></a>00297     Window transient_for = None;
<a name="l00298"></a>00298     <span class="keywordflow">if</span>( XGetTransientForHint( qt_xdisplay(), win, &amp;transient_for ))
<a name="l00299"></a>00299         <span class="keywordflow">return</span> transient_for;
<a name="l00300"></a>00300     <span class="comment">// XGetTransientForHint() did sync</span>
<a name="l00301"></a>00301     <span class="keywordflow">return</span> None;
<a name="l00302"></a>00302 <span class="preprocessor">#else</span>
<a name="l00303"></a>00303 <span class="preprocessor"></span>    <span class="keywordflow">return</span> 0L;
<a name="l00304"></a>00304 <span class="preprocessor">#endif</span>
<a name="l00305"></a>00305 <span class="preprocessor"></span>}
<a name="l00306"></a>00306 
<a name="l00307"></a><a class="code" href="classKWin.html#a75250edcad63ef978bb7bfbb6a092087">00307</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#a75250edcad63ef978bb7bfbb6a092087" title="Sets the parent window of subwindow to be mainwindow.">KWin::setMainWindow</a>( <a class="codeRef" href="qwidget.html">QWidget</a>* subwindow, WId mainwindow )
<a name="l00308"></a>00308 {
<a name="l00309"></a>00309 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00310"></a>00310 <span class="preprocessor"></span>    <span class="keywordflow">if</span>( mainwindow != 0 )
<a name="l00311"></a>00311     {
<a name="l00312"></a>00312         <span class="comment">/*</span>
<a name="l00313"></a>00313 <span class="comment">         Grmbl. See QDialog::show(). That should get fixed in Qt somehow.</span>
<a name="l00314"></a>00314 <span class="comment">        */</span>
<a name="l00315"></a>00315         <span class="keywordflow">if</span>( qt_cast&lt; QDialog* &gt;( subwindow ) != NULL
<a name="l00316"></a>00316             &amp;&amp; subwindow-&gt;<a class="codeRef" href="qwidget.html#parentWidget">parentWidget</a>() == NULL
<a name="l00317"></a>00317             &amp;&amp; kapp-&gt;mainWidget() != NULL )
<a name="l00318"></a>00318         {
<a name="l00319"></a>00319             kdWarning() &lt;&lt; <span class="stringliteral">&quot;KWin::setMainWindow(): There either mustn&#39;t be kapp-&gt;mainWidget(),&quot;</span>
<a name="l00320"></a>00320                 <span class="stringliteral">&quot; or the dialog must have a non-NULL parent, otherwise Qt will reset the change. Bummer.&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l00321"></a>00321         }
<a name="l00322"></a>00322         XSetTransientForHint( qt_xdisplay(), subwindow-&gt;<a class="codeRef" href="qwidget.html#winId">winId</a>(), mainwindow );
<a name="l00323"></a>00323     }
<a name="l00324"></a>00324     <span class="keywordflow">else</span>
<a name="l00325"></a>00325         XDeleteProperty( qt_xdisplay(), subwindow-&gt;<a class="codeRef" href="qwidget.html#winId">winId</a>(), XA_WM_TRANSIENT_FOR );
<a name="l00326"></a>00326 <span class="preprocessor">#endif</span>
<a name="l00327"></a>00327 <span class="preprocessor"></span>}
<a name="l00328"></a>00328 
<a name="l00329"></a><a class="code" href="classKWin.html#a034884cf756324e2f0a5a8c7f6a3f766">00329</a> WId <a class="code" href="classKWin.html#a034884cf756324e2f0a5a8c7f6a3f766" title="Returns the leader window for the group the given window is in, if any.">KWin::groupLeader</a>( WId win )
<a name="l00330"></a>00330 {
<a name="l00331"></a>00331 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00332"></a>00332 <span class="preprocessor"></span>    <a class="code" href="classKXErrorHandler.html" title="This class simplifies handling of X errors.">KXErrorHandler</a> handler; <span class="comment">// ignore badwindow</span>
<a name="l00333"></a>00333     XWMHints *hints = XGetWMHints( qt_xdisplay(), win );
<a name="l00334"></a>00334     Window window_group = None;
<a name="l00335"></a>00335     <span class="keywordflow">if</span> ( hints )
<a name="l00336"></a>00336     {
<a name="l00337"></a>00337         <span class="keywordflow">if</span>( hints-&gt;flags &amp; WindowGroupHint )
<a name="l00338"></a>00338             window_group = hints-&gt;window_group;
<a name="l00339"></a>00339         XFree( reinterpret_cast&lt; char* &gt;( hints ));
<a name="l00340"></a>00340     }
<a name="l00341"></a>00341     <span class="comment">// XGetWMHints() did sync</span>
<a name="l00342"></a>00342     <span class="keywordflow">return</span> window_group;
<a name="l00343"></a>00343 <span class="preprocessor">#else</span>
<a name="l00344"></a>00344 <span class="preprocessor"></span>    <span class="keywordflow">return</span> 0L;
<a name="l00345"></a>00345 <span class="preprocessor">#endif</span>
<a name="l00346"></a>00346 <span class="preprocessor"></span>}
<a name="l00347"></a>00347 
<a name="l00348"></a>00348 <span class="comment">// this one is deprecated, KWin::WindowInfo should be used instead</span>
<a name="l00349"></a><a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">00349</a> <a class="code" href="structKWin_1_1Info.html">KWin::Info</a> <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">KWin::info</a>( WId win )
<a name="l00350"></a>00350 {
<a name="l00351"></a>00351     <a class="code" href="structKWin_1_1Info.html">Info</a> w;
<a name="l00352"></a>00352 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00353"></a>00353 <span class="preprocessor"></span>    NETWinInfo inf( qt_xdisplay(), win, qt_xrootwin(),
<a name="l00354"></a>00354             NET::WMState |
<a name="l00355"></a>00355             NET::WMStrut |
<a name="l00356"></a>00356             NET::WMWindowType |
<a name="l00357"></a>00357             NET::WMName |
<a name="l00358"></a>00358             NET::WMVisibleName |
<a name="l00359"></a>00359             NET::WMDesktop |
<a name="l00360"></a>00360             NET::WMPid |
<a name="l00361"></a>00361             NET::WMKDEFrameStrut |
<a name="l00362"></a>00362             NET::XAWMState
<a name="l00363"></a>00363             );
<a name="l00364"></a>00364 
<a name="l00365"></a>00365     w.<a class="code" href="structKWin_1_1Info.html#a0d66277644c0aca7841c8bebb6acd2dc" title="The window&#39;s id.">win</a> = win;
<a name="l00366"></a>00366     w.<a class="code" href="structKWin_1_1Info.html#a44279fe244e146e89e7f59e7e01f0b52" title="The window&#39;s state.">state</a> = inf.state();
<a name="l00367"></a>00367     w.mappingState = inf.mappingState();
<a name="l00368"></a>00368     w.<a class="code" href="structKWin_1_1Info.html#ad3da33e8eb85884783bf5a288ffec915" title="The strut.">strut</a> = inf.strut();
<a name="l00369"></a>00369     w.<a class="code" href="structKWin_1_1Info.html#a758098c56b01949afc40d27f5b843f63" title="The window type.">windowType</a> = inf.windowType( -1U );
<a name="l00370"></a>00370     <span class="keywordflow">if</span> ( inf.name() ) {
<a name="l00371"></a>00371     w.<a class="code" href="structKWin_1_1Info.html#ab6bac6b32df9af9eef0d9fdb731c9b57" title="The name of the window.">name</a> = <a class="codeRef" href="qstring.html#fromUtf8">QString::fromUtf8</a>( inf.name() );
<a name="l00372"></a>00372     } <span class="keywordflow">else</span> {
<a name="l00373"></a>00373     <span class="keywordtype">char</span>* c = 0;
<a name="l00374"></a>00374     <span class="keywordflow">if</span> ( XFetchName( qt_xdisplay(), win, &amp;c ) != 0 ) {
<a name="l00375"></a>00375         w.<a class="code" href="structKWin_1_1Info.html#ab6bac6b32df9af9eef0d9fdb731c9b57" title="The name of the window.">name</a> = <a class="codeRef" href="qstring.html#fromLocal8Bit">QString::fromLocal8Bit</a>( c );
<a name="l00376"></a>00376         XFree( c );
<a name="l00377"></a>00377     }
<a name="l00378"></a>00378     }
<a name="l00379"></a>00379     <span class="keywordflow">if</span> ( inf.visibleName() )
<a name="l00380"></a>00380     w.<a class="code" href="structKWin_1_1Info.html#a2484b162c2bf24ac848320e636e30460" title="The visible name of the window.">visibleName</a> = <a class="codeRef" href="qstring.html#fromUtf8">QString::fromUtf8</a>( inf.visibleName() );
<a name="l00381"></a>00381     <span class="keywordflow">else</span>
<a name="l00382"></a>00382     w.<a class="code" href="structKWin_1_1Info.html#a2484b162c2bf24ac848320e636e30460" title="The visible name of the window.">visibleName</a> = w.<a class="code" href="structKWin_1_1Info.html#ab6bac6b32df9af9eef0d9fdb731c9b57" title="The name of the window.">name</a>;
<a name="l00383"></a>00383 
<a name="l00384"></a>00384     w.<a class="code" href="structKWin_1_1Info.html#a673d9f31d74259dd9c764e8f2df99746" title="The number of the window&#39;s desktop.">desktop</a> = inf.desktop();
<a name="l00385"></a>00385     w.<a class="code" href="structKWin_1_1Info.html#abf2ad7cde001dcd931834eae260106ac" title="true if the window is on all desktops.">onAllDesktops</a> = inf.desktop() == NETWinInfo::OnAllDesktops;
<a name="l00386"></a>00386     w.<a class="code" href="structKWin_1_1Info.html#a0bba43a8da73b77f4418a416cb197622" title="The process id of the window&#39;s owner.">pid</a> = inf.pid();
<a name="l00387"></a>00387     <a class="code" href="structNETRect.html" title="Simple rectangle class for NET classes.">NETRect</a> frame, geom;
<a name="l00388"></a>00388     inf.kdeGeometry( frame, geom );
<a name="l00389"></a>00389     w.<a class="code" href="structKWin_1_1Info.html#ab26edcacb0bddc3fdde9fb05d377fc2d" title="Position and size of the window contents.">geometry</a>.<a class="codeRef" href="qrect.html#setRect">setRect</a>( geom.<a class="code" href="structNETRect.html#a2604a60ef01bb245df79ada826b1718d" title="Position of the rectangle.">pos</a>.<a class="code" href="structNETPoint.html#a662b6d948b949dabcaf2e955a078e63f" title="x coordinate.">x</a>, geom.<a class="code" href="structNETRect.html#a2604a60ef01bb245df79ada826b1718d" title="Position of the rectangle.">pos</a>.<a class="code" href="structNETPoint.html#ac64b3831f6fd7f1874f7e344beb117bd" title="y coordinate">y</a>, geom.<a class="code" href="structNETRect.html#a97102c18e356965d829855c570bb45ca" title="Size of the rectangle.">size</a>.<a class="code" href="structNETSize.html#af2e6a5fcac88037fa745273e85c5e219" title="Width.">width</a>, geom.<a class="code" href="structNETRect.html#a97102c18e356965d829855c570bb45ca" title="Size of the rectangle.">size</a>.<a class="code" href="structNETSize.html#a0a6def5683983f7f3478192248ef2f8e" title="Height.">height</a> );
<a name="l00390"></a>00390     w.<a class="code" href="structKWin_1_1Info.html#ae9b00f7954d34ec8451f2089c9ce4e20" title="Position and size of the window&#39;s frame.">frameGeometry</a>.<a class="codeRef" href="qrect.html#setRect">setRect</a>( frame.<a class="code" href="structNETRect.html#a2604a60ef01bb245df79ada826b1718d" title="Position of the rectangle.">pos</a>.<a class="code" href="structNETPoint.html#a662b6d948b949dabcaf2e955a078e63f" title="x coordinate.">x</a>, frame.<a class="code" href="structNETRect.html#a2604a60ef01bb245df79ada826b1718d" title="Position of the rectangle.">pos</a>.<a class="code" href="structNETPoint.html#ac64b3831f6fd7f1874f7e344beb117bd" title="y coordinate">y</a>, frame.<a class="code" href="structNETRect.html#a97102c18e356965d829855c570bb45ca" title="Size of the rectangle.">size</a>.<a class="code" href="structNETSize.html#af2e6a5fcac88037fa745273e85c5e219" title="Width.">width</a>, frame.<a class="code" href="structNETRect.html#a97102c18e356965d829855c570bb45ca" title="Size of the rectangle.">size</a>.<a class="code" href="structNETSize.html#a0a6def5683983f7f3478192248ef2f8e" title="Height.">height</a> );
<a name="l00391"></a>00391 <span class="preprocessor">#endif</span>
<a name="l00392"></a>00392 <span class="preprocessor"></span>    <span class="keywordflow">return</span> w;
<a name="l00393"></a>00393 }
<a name="l00394"></a>00394 
<a name="l00395"></a><a class="code" href="classKWin.html#a0be90353d62d58f6f38509144d135e5d">00395</a> <a class="codeRef" href="qpixmap.html">QPixmap</a> <a class="code" href="classKWin.html#a0be90353d62d58f6f38509144d135e5d" title="Returns an icon for window win.">KWin::icon</a>( WId win, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height, <span class="keywordtype">bool</span> scale )
<a name="l00396"></a>00396 {
<a name="l00397"></a>00397     <span class="keywordflow">return</span> <a class="code" href="classKWin.html#a0be90353d62d58f6f38509144d135e5d" title="Returns an icon for window win.">icon</a>( win, width, height, scale, <a class="code" href="classKWin.html#a8218c02095938d4694910631542fe43ca21b4dcf15e54f535b30754460374a9bb" title="read from property from the window manager specification">NETWM</a> | <a class="code" href="classKWin.html#a8218c02095938d4694910631542fe43ca067ab0ec277f1b846fd739ceafdf396f" title="read from WMHints property">WMHints</a> | <a class="code" href="classKWin.html#a8218c02095938d4694910631542fe43ca70a5a08531ef38b97ed3b1e44cab2d15" title="load icon after getting name from the classhint">ClassHint</a> | <a class="code" href="classKWin.html#a8218c02095938d4694910631542fe43caaf30baf40e5b2b195d4be33673acbbaa" title="load the standard X icon (last fallback)">XApp</a> );
<a name="l00398"></a>00398 }
<a name="l00399"></a>00399 
<a name="l00400"></a>00400 
<a name="l00401"></a><a class="code" href="classKWin.html#a19da98e580e975bfa5ea99001d01ef42">00401</a> <a class="codeRef" href="qpixmap.html">QPixmap</a> <a class="code" href="classKWin.html#a0be90353d62d58f6f38509144d135e5d" title="Returns an icon for window win.">KWin::icon</a>( WId win, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height, <span class="keywordtype">bool</span> scale, <span class="keywordtype">int</span> flags )
<a name="l00402"></a>00402 {
<a name="l00403"></a>00403 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00404"></a>00404 <span class="preprocessor"></span>    <a class="code" href="classKXErrorHandler.html" title="This class simplifies handling of X errors.">KXErrorHandler</a> handler; <span class="comment">// ignore badwindow</span>
<a name="l00405"></a>00405 <span class="preprocessor">#endif</span>
<a name="l00406"></a>00406 <span class="preprocessor"></span>    <a class="codeRef" href="qpixmap.html">QPixmap</a> result;
<a name="l00407"></a>00407 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00408"></a>00408 <span class="preprocessor"></span>    <span class="keywordflow">if</span>( flags &amp; <a class="code" href="classKWin.html#a8218c02095938d4694910631542fe43ca21b4dcf15e54f535b30754460374a9bb" title="read from property from the window manager specification">NETWM</a> ) {
<a name="l00409"></a>00409         NETWinInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), win, qt_xrootwin(), NET::WMIcon );
<a name="l00410"></a>00410         <a class="code" href="structNETIcon.html" title="Simple icon class for NET classes.">NETIcon</a> ni = info.icon( width, height );
<a name="l00411"></a>00411         <span class="keywordflow">if</span> ( ni.<a class="code" href="structNETIcon.html#aaa6c9f9828e7d2f9a29f408529a68822" title="Image data for the icon.">data</a> &amp;&amp; ni.<a class="code" href="structNETIcon.html#a6506944fe7143f0a37bbe58cc0d8df94" title="Size of the icon.">size</a>.<a class="code" href="structNETSize.html#af2e6a5fcac88037fa745273e85c5e219" title="Width.">width</a> &gt; 0 &amp;&amp; ni.<a class="code" href="structNETIcon.html#a6506944fe7143f0a37bbe58cc0d8df94" title="Size of the icon.">size</a>.<a class="code" href="structNETSize.html#a0a6def5683983f7f3478192248ef2f8e" title="Height.">height</a> &gt; 0 ) {
<a name="l00412"></a>00412             <a class="codeRef" href="qimage.html">QImage</a> img( (uchar*) ni.<a class="code" href="structNETIcon.html#aaa6c9f9828e7d2f9a29f408529a68822" title="Image data for the icon.">data</a>, (<span class="keywordtype">int</span>) ni.<a class="code" href="structNETIcon.html#a6506944fe7143f0a37bbe58cc0d8df94" title="Size of the icon.">size</a>.<a class="code" href="structNETSize.html#af2e6a5fcac88037fa745273e85c5e219" title="Width.">width</a>, (<span class="keywordtype">int</span>) ni.<a class="code" href="structNETIcon.html#a6506944fe7143f0a37bbe58cc0d8df94" title="Size of the icon.">size</a>.<a class="code" href="structNETSize.html#a0a6def5683983f7f3478192248ef2f8e" title="Height.">height</a>, 32, 0, 0, QImage::IgnoreEndian );
<a name="l00413"></a>00413         img.<a class="codeRef" href="qimage.html#setAlphaBuffer">setAlphaBuffer</a>( <span class="keyword">true</span> );
<a name="l00414"></a>00414         <span class="keywordflow">if</span> ( scale &amp;&amp; width &gt; 0 &amp;&amp; height &gt; 0 &amp;&amp;img.<a class="codeRef" href="qimage.html#size">size</a>() != <a class="codeRef" href="qsize.html">QSize</a>( width, height ) &amp;&amp; !img.<a class="codeRef" href="qimage.html#isNull">isNull</a>() )
<a name="l00415"></a>00415             img = img.<a class="codeRef" href="qimage.html#smoothScale">smoothScale</a>( width, height );
<a name="l00416"></a>00416         <span class="keywordflow">if</span> ( !img.<a class="codeRef" href="qimage.html#isNull">isNull</a>() )
<a name="l00417"></a>00417             result.<a class="codeRef" href="qpixmap.html#convertFromImage">convertFromImage</a>( img );
<a name="l00418"></a>00418         <span class="keywordflow">return</span> result;
<a name="l00419"></a>00419         }
<a name="l00420"></a>00420     }
<a name="l00421"></a>00421 
<a name="l00422"></a>00422     <span class="keywordflow">if</span>( flags &amp; <a class="code" href="classKWin.html#a8218c02095938d4694910631542fe43ca067ab0ec277f1b846fd739ceafdf396f" title="read from WMHints property">WMHints</a> ) {
<a name="l00423"></a>00423         Pixmap p = None;
<a name="l00424"></a>00424         Pixmap p_mask = None;
<a name="l00425"></a>00425 
<a name="l00426"></a>00426         XWMHints *hints = XGetWMHints(qt_xdisplay(), win );
<a name="l00427"></a>00427         <span class="keywordflow">if</span> (hints &amp;&amp; (hints-&gt;flags &amp; IconPixmapHint)){
<a name="l00428"></a>00428             p = hints-&gt;icon_pixmap;
<a name="l00429"></a>00429         }
<a name="l00430"></a>00430         <span class="keywordflow">if</span> (hints &amp;&amp; (hints-&gt;flags &amp; IconMaskHint)){
<a name="l00431"></a>00431         p_mask = hints-&gt;icon_mask;
<a name="l00432"></a>00432         }
<a name="l00433"></a>00433         <span class="keywordflow">if</span> (hints)
<a name="l00434"></a>00434         XFree((<span class="keywordtype">char</span>*)hints);
<a name="l00435"></a>00435 
<a name="l00436"></a>00436         <span class="keywordflow">if</span> (p != None){
<a name="l00437"></a>00437         Window root;
<a name="l00438"></a>00438         <span class="keywordtype">int</span> x, y;
<a name="l00439"></a>00439         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> w = 0;
<a name="l00440"></a>00440         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> h = 0;
<a name="l00441"></a>00441             <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> border_w, depth;
<a name="l00442"></a>00442         XGetGeometry(qt_xdisplay(), p, &amp;root,
<a name="l00443"></a>00443                  &amp;x, &amp;y, &amp;w, &amp;h, &amp;border_w, &amp;depth);
<a name="l00444"></a>00444         <span class="keywordflow">if</span> (w &gt; 0 &amp;&amp; h &gt; 0){
<a name="l00445"></a>00445             <a class="codeRef" href="qpixmap.html">QPixmap</a> pm(w, h, depth);
<a name="l00446"></a>00446             <span class="comment">// Always detach before doing something behind QPixmap&#39;s back.</span>
<a name="l00447"></a>00447             pm.<a class="codeRef" href="qpixmap.html#detach">detach</a>();
<a name="l00448"></a>00448             XCopyArea(qt_xdisplay(), p, pm.handle(),
<a name="l00449"></a>00449                   qt_xget_temp_gc(qt_xscreen(), depth==1),
<a name="l00450"></a>00450                   0, 0, w, h, 0, 0);
<a name="l00451"></a>00451             <span class="keywordflow">if</span> (p_mask != None){
<a name="l00452"></a>00452                 <a class="codeRef" href="qbitmap.html">QBitmap</a> bm(w, h);
<a name="l00453"></a>00453             XCopyArea(qt_xdisplay(), p_mask, bm.handle(),
<a name="l00454"></a>00454                   qt_xget_temp_gc(qt_xscreen(), <span class="keyword">true</span>),
<a name="l00455"></a>00455                   0, 0, w, h, 0, 0);
<a name="l00456"></a>00456             pm.<a class="codeRef" href="qpixmap.html#setMask">setMask</a>(bm);
<a name="l00457"></a>00457             }
<a name="l00458"></a>00458             <span class="keywordflow">if</span> ( scale &amp;&amp; width &gt; 0 &amp;&amp; height &gt; 0 &amp;&amp; !pm.<a class="codeRef" href="qpixmap.html#isNull">isNull</a>() &amp;&amp;
<a name="l00459"></a>00459              ( (int) w != width || (<span class="keywordtype">int</span>) h != height) ){
<a name="l00460"></a>00460             result.<a class="codeRef" href="qpixmap.html#convertFromImage">convertFromImage</a>( pm.<a class="codeRef" href="qpixmap.html#convertToImage">convertToImage</a>().smoothScale( width, height ) );
<a name="l00461"></a>00461             } <span class="keywordflow">else</span> {
<a name="l00462"></a>00462             result = pm;
<a name="l00463"></a>00463             }
<a name="l00464"></a>00464         }
<a name="l00465"></a>00465         }
<a name="l00466"></a>00466     }
<a name="l00467"></a>00467 
<a name="l00468"></a>00468     <span class="comment">// Since width can be any arbitrary size, but the icons cannot,</span>
<a name="l00469"></a>00469     <span class="comment">// take the nearest value for best results (ignoring 22 pixel</span>
<a name="l00470"></a>00470     <span class="comment">// icons as they don&#39;t exist for apps):</span>
<a name="l00471"></a>00471     <span class="keywordtype">int</span> iconWidth;
<a name="l00472"></a>00472     <span class="keywordflow">if</span>( width &lt; 24 )
<a name="l00473"></a>00473         iconWidth = 16;
<a name="l00474"></a>00474     <span class="keywordflow">else</span> <span class="keywordflow">if</span>( width &lt; 40 )
<a name="l00475"></a>00475         iconWidth = 32;
<a name="l00476"></a>00476     <span class="keywordflow">else</span>
<a name="l00477"></a>00477         iconWidth = 48;
<a name="l00478"></a>00478 
<a name="l00479"></a>00479     <span class="keywordflow">if</span>( flags &amp; <a class="code" href="classKWin.html#a8218c02095938d4694910631542fe43ca70a5a08531ef38b97ed3b1e44cab2d15" title="load icon after getting name from the classhint">ClassHint</a> ) {
<a name="l00480"></a>00480         <span class="comment">// Try to load the icon from the classhint if the app didn&#39;t specify</span>
<a name="l00481"></a>00481         <span class="comment">// its own:</span>
<a name="l00482"></a>00482         <span class="keywordflow">if</span>( result.<a class="codeRef" href="qpixmap.html#isNull">isNull</a>() ) {
<a name="l00483"></a>00483 
<a name="l00484"></a>00484         XClassHint  hint;
<a name="l00485"></a>00485         <span class="keywordflow">if</span>( XGetClassHint( qt_xdisplay(), win, &amp;hint ) ) {
<a name="l00486"></a>00486             <a class="codeRef" href="qstring.html">QString</a> className = hint.res_class;
<a name="l00487"></a>00487 
<a name="l00488"></a>00488             <a class="codeRef" href="qpixmap.html">QPixmap</a> pm = <a class="code" href="classKGlobal.html#a7005487680376266c61372ea7ff3c080" title="Returns the global instance.">KGlobal::instance</a>()-&gt;<a class="code" href="classKInstance.html#a2770b5cce2fdb923bf6d2f3a78dbc6a8" title="Returns an iconloader object.">iconLoader</a>()-&gt;<a class="code" href="classKIconLoader.html#a55553b3f66ebdfe15ace5bef0699df00" title="Loads an icon.">loadIcon</a>( className.<a class="codeRef" href="qstring.html#lower">lower</a>(), <a class="code" href="classKIcon.html#a20145b9c0aecf124fadc35cd30c18f82a2dddf01e0cfa645258c58da4244adb55" title="Small icons.">KIcon::Small</a>, iconWidth,
<a name="l00489"></a>00489                                           <a class="code" href="classKIcon.html#a19ccee347f9701d5daac1db3896021faad53000a72ded013ba27e3115ae10daaa" title="The default state.">KIcon::DefaultState</a>, 0, true );
<a name="l00490"></a>00490             <span class="keywordflow">if</span>( scale &amp;&amp; !pm.<a class="codeRef" href="qpixmap.html#isNull">isNull</a>() )
<a name="l00491"></a>00491             result.<a class="codeRef" href="qpixmap.html#convertFromImage">convertFromImage</a>( pm.<a class="codeRef" href="qpixmap.html#convertToImage">convertToImage</a>().smoothScale( width, height ) );
<a name="l00492"></a>00492             <span class="keywordflow">else</span>
<a name="l00493"></a>00493             result = pm;
<a name="l00494"></a>00494 
<a name="l00495"></a>00495             XFree( hint.res_name );
<a name="l00496"></a>00496             XFree( hint.res_class );
<a name="l00497"></a>00497         }
<a name="l00498"></a>00498         }
<a name="l00499"></a>00499     }
<a name="l00500"></a>00500 
<a name="l00501"></a>00501     <span class="keywordflow">if</span>( flags &amp; <a class="code" href="classKWin.html#a8218c02095938d4694910631542fe43caaf30baf40e5b2b195d4be33673acbbaa" title="load the standard X icon (last fallback)">XApp</a> ) {
<a name="l00502"></a>00502     <span class="comment">// If the icon is still a null pixmap, load the &#39;xapp&#39; icon</span>
<a name="l00503"></a>00503     <span class="comment">// as a last resort:</span>
<a name="l00504"></a>00504     <span class="keywordflow">if</span> ( result.<a class="codeRef" href="qpixmap.html#isNull">isNull</a>() ) {
<a name="l00505"></a>00505         <a class="codeRef" href="qpixmap.html">QPixmap</a> pm = <a class="code" href="classKGlobal.html#a7005487680376266c61372ea7ff3c080" title="Returns the global instance.">KGlobal::instance</a>()-&gt;<a class="code" href="classKInstance.html#a2770b5cce2fdb923bf6d2f3a78dbc6a8" title="Returns an iconloader object.">iconLoader</a>()-&gt;<a class="code" href="classKIconLoader.html#a55553b3f66ebdfe15ace5bef0699df00" title="Loads an icon.">loadIcon</a>(  <span class="stringliteral">&quot;xapp&quot;</span>, <a class="code" href="classKIcon.html#a20145b9c0aecf124fadc35cd30c18f82a2dddf01e0cfa645258c58da4244adb55" title="Small icons.">KIcon::Small</a>, iconWidth,
<a name="l00506"></a>00506                                        <a class="code" href="classKIcon.html#a19ccee347f9701d5daac1db3896021faad53000a72ded013ba27e3115ae10daaa" title="The default state.">KIcon::DefaultState</a>, 0, <span class="keyword">true</span> );
<a name="l00507"></a>00507         <span class="keywordflow">if</span>( scale &amp;&amp; !pm.<a class="codeRef" href="qpixmap.html#isNull">isNull</a>() )
<a name="l00508"></a>00508         result.<a class="codeRef" href="qpixmap.html#convertFromImage">convertFromImage</a>( pm.<a class="codeRef" href="qpixmap.html#convertToImage">convertToImage</a>().smoothScale( width, height ) );
<a name="l00509"></a>00509         <span class="keywordflow">else</span>
<a name="l00510"></a>00510         result = pm;
<a name="l00511"></a>00511     }
<a name="l00512"></a>00512     }
<a name="l00513"></a>00513 <span class="preprocessor">#endif</span>
<a name="l00514"></a>00514 <span class="preprocessor"></span>    <span class="keywordflow">return</span> result;
<a name="l00515"></a>00515 }
<a name="l00516"></a>00516 
<a name="l00517"></a><a class="code" href="classKWin.html#ab7195d59c570bf8100259ca8fbe36b6b">00517</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#ab7195d59c570bf8100259ca8fbe36b6b" title="Sets an icon and a miniIcon on window win.">KWin::setIcons</a>( WId win, <span class="keyword">const</span> <a class="codeRef" href="qpixmap.html">QPixmap</a>&amp; icon, <span class="keyword">const</span> <a class="codeRef" href="qpixmap.html">QPixmap</a>&amp; miniIcon )
<a name="l00518"></a>00518 {
<a name="l00519"></a>00519 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00520"></a>00520 <span class="preprocessor"></span>    <span class="keywordflow">if</span> ( icon.<a class="codeRef" href="qpixmap.html#isNull">isNull</a>() )
<a name="l00521"></a>00521     <span class="keywordflow">return</span>;
<a name="l00522"></a>00522     NETWinInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), win, qt_xrootwin(), 0 );
<a name="l00523"></a>00523     <a class="codeRef" href="qimage.html">QImage</a> img = icon.<a class="codeRef" href="qpixmap.html#convertToImage">convertToImage</a>().convertDepth( 32 );
<a name="l00524"></a>00524     <a class="code" href="structNETIcon.html" title="Simple icon class for NET classes.">NETIcon</a> ni;
<a name="l00525"></a>00525     ni.<a class="code" href="structNETIcon.html#a6506944fe7143f0a37bbe58cc0d8df94" title="Size of the icon.">size</a>.<a class="code" href="structNETSize.html#af2e6a5fcac88037fa745273e85c5e219" title="Width.">width</a> = img.<a class="codeRef" href="qimage.html#size">size</a>().width();
<a name="l00526"></a>00526     ni.<a class="code" href="structNETIcon.html#a6506944fe7143f0a37bbe58cc0d8df94" title="Size of the icon.">size</a>.<a class="code" href="structNETSize.html#a0a6def5683983f7f3478192248ef2f8e" title="Height.">height</a> = img.<a class="codeRef" href="qimage.html#size">size</a>().height();
<a name="l00527"></a>00527     ni.<a class="code" href="structNETIcon.html#aaa6c9f9828e7d2f9a29f408529a68822" title="Image data for the icon.">data</a> = (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *) img.<a class="codeRef" href="qimage.html#bits">bits</a>();
<a name="l00528"></a>00528     info.setIcon( ni, <span class="keyword">true</span> );
<a name="l00529"></a>00529     <span class="keywordflow">if</span> ( miniIcon.<a class="codeRef" href="qpixmap.html#isNull">isNull</a>() )
<a name="l00530"></a>00530     <span class="keywordflow">return</span>;
<a name="l00531"></a>00531     img = miniIcon.<a class="codeRef" href="qpixmap.html#convertToImage">convertToImage</a>().convertDepth( 32 );
<a name="l00532"></a>00532     ni.<a class="code" href="structNETIcon.html#a6506944fe7143f0a37bbe58cc0d8df94" title="Size of the icon.">size</a>.<a class="code" href="structNETSize.html#af2e6a5fcac88037fa745273e85c5e219" title="Width.">width</a> = img.<a class="codeRef" href="qimage.html#size">size</a>().width();
<a name="l00533"></a>00533     ni.<a class="code" href="structNETIcon.html#a6506944fe7143f0a37bbe58cc0d8df94" title="Size of the icon.">size</a>.<a class="code" href="structNETSize.html#a0a6def5683983f7f3478192248ef2f8e" title="Height.">height</a> = img.<a class="codeRef" href="qimage.html#size">size</a>().height();
<a name="l00534"></a>00534     ni.<a class="code" href="structNETIcon.html#aaa6c9f9828e7d2f9a29f408529a68822" title="Image data for the icon.">data</a> = (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *) img.<a class="codeRef" href="qimage.html#bits">bits</a>();
<a name="l00535"></a>00535     info.setIcon( ni, <span class="keyword">false</span> );
<a name="l00536"></a>00536 <span class="preprocessor">#endif</span>
<a name="l00537"></a>00537 <span class="preprocessor"></span>}
<a name="l00538"></a>00538 
<a name="l00539"></a><a class="code" href="classKWin.html#ab15084117ff775d5fea7ce99ad1b24be">00539</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#ab15084117ff775d5fea7ce99ad1b24be" title="Sets the type of window win to windowType.">KWin::setType</a>( WId win, <a class="code" href="classNET.html#a4b3115c0f40e7bc8e38119cc44dd60e0" title="Window type.">NET::WindowType</a> windowType )
<a name="l00540"></a>00540 {
<a name="l00541"></a>00541 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00542"></a>00542 <span class="preprocessor"></span>    NETWinInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), win, qt_xrootwin(), 0 );
<a name="l00543"></a>00543     info.setWindowType( windowType );
<a name="l00544"></a>00544 <span class="preprocessor">#endif</span>
<a name="l00545"></a>00545 <span class="preprocessor"></span>}
<a name="l00546"></a>00546 
<a name="l00547"></a><a class="code" href="classKWin.html#afaed2268f55721c72f9349c1d8f19430">00547</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#afaed2268f55721c72f9349c1d8f19430" title="Sets the state of window win to state.">KWin::setState</a>( WId win, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> state )
<a name="l00548"></a>00548 {
<a name="l00549"></a>00549 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00550"></a>00550 <span class="preprocessor"></span>    NETWinInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), win, qt_xrootwin(), NET::WMState );
<a name="l00551"></a>00551     info.setState( state, state );
<a name="l00552"></a>00552 <span class="preprocessor">#endif</span>
<a name="l00553"></a>00553 <span class="preprocessor"></span>}
<a name="l00554"></a>00554 
<a name="l00555"></a><a class="code" href="classKWin.html#a9aa460a2bcfe8f54dabdbf9d8a407cf5">00555</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#a9aa460a2bcfe8f54dabdbf9d8a407cf5" title="Clears the state of window win from state.">KWin::clearState</a>( WId win, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> state )
<a name="l00556"></a>00556 {
<a name="l00557"></a>00557 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00558"></a>00558 <span class="preprocessor"></span>    NETWinInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), win, qt_xrootwin(), NET::WMState );
<a name="l00559"></a>00559     info.setState( 0, state );
<a name="l00560"></a>00560 <span class="preprocessor">#endif</span>
<a name="l00561"></a>00561 <span class="preprocessor"></span>}
<a name="l00562"></a>00562 
<a name="l00563"></a><a class="code" href="classKWin.html#aa827ea32dd0e1f167f79f82f1d85c2dd">00563</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#aa827ea32dd0e1f167f79f82f1d85c2dd" title="Sets the opacity of window win to percetage percent.">KWin::setOpacity</a>( WId win, uint percent )
<a name="l00564"></a>00564 {
<a name="l00565"></a>00565 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00566"></a>00566 <span class="preprocessor"></span>    kwin_net_create_atoms();
<a name="l00567"></a>00567     <span class="keywordflow">if</span> (percent &gt; 99)
<a name="l00568"></a>00568         XDeleteProperty (qt_xdisplay(), win, kde_wm_window_opacity);
<a name="l00569"></a>00569     <span class="keywordflow">else</span>
<a name="l00570"></a>00570     {
<a name="l00571"></a>00571         <span class="keywordtype">long</span> opacity = long(0xFFFFFFFF/100.0*percent);
<a name="l00572"></a>00572         XChangeProperty(qt_xdisplay(), win, kde_wm_window_opacity, XA_CARDINAL, 32, PropModeReplace, (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *) &amp;opacity, 1L);
<a name="l00573"></a>00573     }
<a name="l00574"></a>00574 <span class="preprocessor">#endif</span>
<a name="l00575"></a>00575 <span class="preprocessor"></span>}
<a name="l00576"></a>00576 
<a name="l00577"></a><a class="code" href="classKWin.html#a9c13dc6659bacde5ed486457c6be3fe3">00577</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#a9c13dc6659bacde5ed486457c6be3fe3" title="Sets the shadowsize of window win to percetage percent.">KWin::setShadowSize</a>( WId win, uint percent )
<a name="l00578"></a>00578 {
<a name="l00579"></a>00579 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00580"></a>00580 <span class="preprocessor"></span>    kwin_net_create_atoms();
<a name="l00581"></a>00581     <span class="keywordtype">long</span> shadowSize = long(0xFFFFFFFF/100.0*percent);
<a name="l00582"></a>00582     XChangeProperty(qt_xdisplay(), win, kde_wm_window_shadow, XA_CARDINAL, 32, PropModeReplace, (<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *) &amp;shadowSize, 1L);
<a name="l00583"></a>00583 <span class="preprocessor">#endif</span>
<a name="l00584"></a>00584 <span class="preprocessor"></span>}
<a name="l00585"></a>00585 
<a name="l00586"></a><a class="code" href="classKWin.html#a86ef44e7c51a42f99bc47855266b0435">00586</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#a86ef44e7c51a42f99bc47855266b0435" title="Sets window win to be present on all virtual desktops if is true.">KWin::setOnAllDesktops</a>( WId win, <span class="keywordtype">bool</span> b )
<a name="l00587"></a>00587 {
<a name="l00588"></a>00588 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00589"></a>00589 <span class="preprocessor"></span>    NETWinInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), win, qt_xrootwin(), NET::WMDesktop );
<a name="l00590"></a>00590     <span class="keywordflow">if</span> ( b )
<a name="l00591"></a>00591     info.setDesktop( NETWinInfo::OnAllDesktops );
<a name="l00592"></a>00592     <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( info.desktop()  == NETWinInfo::OnAllDesktops ) {
<a name="l00593"></a>00593     NETRootInfo rinfo( qt_xdisplay(), NET::CurrentDesktop );
<a name="l00594"></a>00594     info.setDesktop( rinfo.currentDesktop() );
<a name="l00595"></a>00595     }
<a name="l00596"></a>00596 <span class="preprocessor">#endif</span>
<a name="l00597"></a>00597 <span class="preprocessor"></span>}
<a name="l00598"></a>00598 
<a name="l00599"></a><a class="code" href="classKWin.html#a9e242425ef0ab3b8820d6e4f8dbf10e3">00599</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#a9e242425ef0ab3b8820d6e4f8dbf10e3" title="Moves window win to desktop desktop.">KWin::setOnDesktop</a>( WId win, <span class="keywordtype">int</span> desktop )
<a name="l00600"></a>00600 {
<a name="l00601"></a>00601 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00602"></a>00602 <span class="preprocessor"></span>    NETWinInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), win, qt_xrootwin(), NET::WMDesktop );
<a name="l00603"></a>00603     info.setDesktop( desktop );
<a name="l00604"></a>00604 <span class="preprocessor">#endif</span>
<a name="l00605"></a>00605 <span class="preprocessor"></span>}
<a name="l00606"></a>00606 
<a name="l00607"></a><a class="code" href="classKWin.html#a478834c76ae29cc17827820eb25d9384">00607</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#a478834c76ae29cc17827820eb25d9384" title="Sets the strut of window win to to left width ranging from left_start to left_end on the left edge...">KWin::setExtendedStrut</a>( WId win, <span class="keywordtype">int</span> left_width, <span class="keywordtype">int</span> left_start, <span class="keywordtype">int</span> left_end,
<a name="l00608"></a>00608     <span class="keywordtype">int</span> right_width, <span class="keywordtype">int</span> right_start, <span class="keywordtype">int</span> right_end, <span class="keywordtype">int</span> top_width, <span class="keywordtype">int</span> top_start, <span class="keywordtype">int</span> top_end,
<a name="l00609"></a>00609     <span class="keywordtype">int</span> bottom_width, <span class="keywordtype">int</span> bottom_start, <span class="keywordtype">int</span> bottom_end )
<a name="l00610"></a>00610 {
<a name="l00611"></a>00611 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00612"></a>00612 <span class="preprocessor"></span>    NETWinInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), win, qt_xrootwin(), 0 );
<a name="l00613"></a>00613     <a class="code" href="structNETExtendedStrut.html" title="Partial strut class for NET classes.">NETExtendedStrut</a> strut;
<a name="l00614"></a>00614     strut.<a class="code" href="structNETExtendedStrut.html#a79fc79c632ccc599b393693d99f24164" title="Left border of the strut, width and range.">left_width</a> = left_width;
<a name="l00615"></a>00615     strut.<a class="code" href="structNETExtendedStrut.html#a7c1f4d0bf33fe20f5dba649e8a2a505b" title="Right border of the strut, width and range.">right_width</a> = right_width;
<a name="l00616"></a>00616     strut.<a class="code" href="structNETExtendedStrut.html#acb07800b67a53e134faaf09c571a1f0e" title="Top border of the strut, width and range.">top_width</a> = top_width;
<a name="l00617"></a>00617     strut.<a class="code" href="structNETExtendedStrut.html#a12ee0a2d04e980001139a7677a821148" title="Bottom border of the strut, width and range.">bottom_width</a> = bottom_width;
<a name="l00618"></a>00618     strut.left_start = left_start;
<a name="l00619"></a>00619     strut.left_end = left_end;
<a name="l00620"></a>00620     strut.right_start = right_start;
<a name="l00621"></a>00621     strut.right_end = right_end;
<a name="l00622"></a>00622     strut.top_start = top_start;
<a name="l00623"></a>00623     strut.top_end = top_end;
<a name="l00624"></a>00624     strut.bottom_start = bottom_start;
<a name="l00625"></a>00625     strut.bottom_end = bottom_end;
<a name="l00626"></a>00626     info.setExtendedStrut( strut );
<a name="l00627"></a>00627 <span class="preprocessor">#endif</span>
<a name="l00628"></a>00628 <span class="preprocessor"></span>}
<a name="l00629"></a>00629 
<a name="l00630"></a><a class="code" href="classKWin.html#ab617f88988db36f3d6dc0292180a929e">00630</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#ab617f88988db36f3d6dc0292180a929e">KWin::setStrut</a>( WId win, <span class="keywordtype">int</span> left, <span class="keywordtype">int</span> right, <span class="keywordtype">int</span> top, <span class="keywordtype">int</span> bottom )
<a name="l00631"></a>00631 {
<a name="l00632"></a>00632 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00633"></a>00633 <span class="preprocessor"></span>    NETWinInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), win, qt_xrootwin(), 0 );
<a name="l00634"></a>00634     <a class="code" href="structNETStrut.html">NETStrut</a> strut;
<a name="l00635"></a>00635     strut.<a class="code" href="structNETStrut.html#a3ffe1d55e64632f4cdc1225ae8a301df" title="Left border of the strut.">left</a> = left;
<a name="l00636"></a>00636     strut.<a class="code" href="structNETStrut.html#a46c92f5dc806d6def2390f258d00b80e" title="Right border of the strut.">right</a> = right;
<a name="l00637"></a>00637     strut.<a class="code" href="structNETStrut.html#ac359ac56290a66002010f64dc4842aa2" title="Top border of the strut.">top</a> = top;
<a name="l00638"></a>00638     strut.<a class="code" href="structNETStrut.html#a031e023bb8f0c8cf3d00b748c7dd7ca7" title="Bottom border of the strut.">bottom</a> = bottom;
<a name="l00639"></a>00639     info.setStrut( strut );
<a name="l00640"></a>00640 <span class="preprocessor">#endif</span>
<a name="l00641"></a>00641 <span class="preprocessor"></span>}
<a name="l00642"></a>00642 
<a name="l00643"></a><a class="code" href="classKWin.html#acda20df0707242b1e175e2391ccc2c59">00643</a> <span class="keywordtype">int</span> <a class="code" href="classKWin.html#acda20df0707242b1e175e2391ccc2c59" title="Convenience function to access the current desktop.">KWin::currentDesktop</a>()
<a name="l00644"></a>00644 {
<a name="l00645"></a>00645 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00646"></a>00646 <span class="preprocessor"></span>    <span class="keywordflow">if</span> (!qt_xdisplay())
<a name="l00647"></a>00647 <span class="preprocessor">#endif</span>
<a name="l00648"></a>00648 <span class="preprocessor"></span>      <span class="keywordflow">return</span> 1;
<a name="l00649"></a>00649 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00650"></a>00650 <span class="preprocessor"></span>    NETRootInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), NET::CurrentDesktop );
<a name="l00651"></a>00651     <span class="keywordflow">return</span> info.currentDesktop();
<a name="l00652"></a>00652 <span class="preprocessor">#endif</span>
<a name="l00653"></a>00653 <span class="preprocessor"></span>}
<a name="l00654"></a>00654 
<a name="l00655"></a><a class="code" href="classKWin.html#aa5a528224416aa742d39958282107304">00655</a> <span class="keywordtype">int</span> <a class="code" href="classKWin.html#aa5a528224416aa742d39958282107304" title="Convenience function to access the number of desktops.">KWin::numberOfDesktops</a>()
<a name="l00656"></a>00656 {
<a name="l00657"></a>00657 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00658"></a>00658 <span class="preprocessor"></span>    <span class="keywordflow">if</span> (!qt_xdisplay())
<a name="l00659"></a>00659 <span class="preprocessor">#endif</span>
<a name="l00660"></a>00660 <span class="preprocessor"></span>      <span class="keywordflow">return</span> 0;
<a name="l00661"></a>00661 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00662"></a>00662 <span class="preprocessor"></span>    NETRootInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), NET::NumberOfDesktops );
<a name="l00663"></a>00663     <span class="keywordflow">return</span> info.numberOfDesktops();
<a name="l00664"></a>00664 <span class="preprocessor">#endif</span>
<a name="l00665"></a>00665 <span class="preprocessor"></span>}
<a name="l00666"></a>00666 
<a name="l00667"></a><a class="code" href="classKWin.html#a0f59f28547babc61fee11aab5d5fe48c">00667</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#a0f59f28547babc61fee11aab5d5fe48c" title="Convenience function to set the current desktop to desktop.">KWin::setCurrentDesktop</a>( <span class="keywordtype">int</span> desktop )
<a name="l00668"></a>00668 {
<a name="l00669"></a>00669 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00670"></a>00670 <span class="preprocessor"></span>    NETRootInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), NET::CurrentDesktop );
<a name="l00671"></a>00671     info.setCurrentDesktop( desktop );
<a name="l00672"></a>00672 <span class="preprocessor">#endif</span>
<a name="l00673"></a>00673 <span class="preprocessor"></span>}
<a name="l00674"></a>00674 
<a name="l00675"></a><a class="code" href="classKWin.html#a6597f06b28cf512f91a03110d78c90cb">00675</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#a6597f06b28cf512f91a03110d78c90cb" title="Convenience function to set the current viewport to viewport.">KWin::setCurrentDesktopViewport</a>( <span class="keywordtype">int</span> desktop, <a class="codeRef" href="qpoint.html">QPoint</a> viewport )
<a name="l00676"></a>00676 {
<a name="l00677"></a>00677 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00678"></a>00678 <span class="preprocessor"></span>    NETRootInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), NET::CurrentDesktop );
<a name="l00679"></a>00679     <a class="code" href="structNETPoint.html" title="Simple point class for NET classes.">NETPoint</a> netview;
<a name="l00680"></a>00680     netview.<a class="code" href="structNETPoint.html#a662b6d948b949dabcaf2e955a078e63f" title="x coordinate.">x</a> = viewport.<a class="codeRef" href="qpoint.html#x">x</a>();
<a name="l00681"></a>00681     netview.<a class="code" href="structNETPoint.html#ac64b3831f6fd7f1874f7e344beb117bd" title="y coordinate">y</a> = viewport.<a class="codeRef" href="qpoint.html#y">y</a>();
<a name="l00682"></a>00682     info.setDesktopViewport( desktop, netview );
<a name="l00683"></a>00683 <span class="preprocessor">#endif</span>
<a name="l00684"></a>00684 <span class="preprocessor"></span>}
<a name="l00685"></a>00685 
<a name="l00686"></a><a class="code" href="classKWin.html#a3979dcd7f95b8e102c3a1c5aa6c8514a">00686</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#a3979dcd7f95b8e102c3a1c5aa6c8514a" title="Iconifies a window.">KWin::iconifyWindow</a>( WId win, <span class="keywordtype">bool</span> animation)
<a name="l00687"></a>00687 {
<a name="l00688"></a>00688 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00689"></a>00689 <span class="preprocessor"></span>    <span class="keywordflow">if</span> ( !animation )
<a name="l00690"></a>00690     {
<a name="l00691"></a>00691         kwin_net_create_atoms();
<a name="l00692"></a>00692     sendClientMessageToRoot( win, kde_wm_change_state, IconicState, 1 );
<a name="l00693"></a>00693     }
<a name="l00694"></a>00694     XIconifyWindow( qt_xdisplay(), win, qt_xscreen() );
<a name="l00695"></a>00695 <span class="preprocessor">#endif</span>
<a name="l00696"></a>00696 <span class="preprocessor"></span>}
<a name="l00697"></a>00697 
<a name="l00698"></a>00698 
<a name="l00699"></a><a class="code" href="classKWin.html#a7c7d66a1bd6078f8d95e8ba4f3ada195">00699</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#a7c7d66a1bd6078f8d95e8ba4f3ada195" title="DeIconifies a window.">KWin::deIconifyWindow</a>( WId win, <span class="keywordtype">bool</span> animation )
<a name="l00700"></a>00700 {
<a name="l00701"></a>00701 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00702"></a>00702 <span class="preprocessor"></span>    <span class="keywordflow">if</span> ( !animation )
<a name="l00703"></a>00703     {
<a name="l00704"></a>00704         kwin_net_create_atoms();
<a name="l00705"></a>00705     sendClientMessageToRoot( win, kde_wm_change_state, NormalState, 1 );
<a name="l00706"></a>00706     }
<a name="l00707"></a>00707     XMapWindow( qt_xdisplay(), win );
<a name="l00708"></a>00708 <span class="preprocessor">#endif</span>
<a name="l00709"></a>00709 <span class="preprocessor"></span>}
<a name="l00710"></a>00710 
<a name="l00711"></a><a class="code" href="classKWin.html#af14f9be16700857998e7393a8efc3ab5">00711</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#af14f9be16700857998e7393a8efc3ab5" title="Raises the given window.">KWin::raiseWindow</a>( WId win )
<a name="l00712"></a>00712 {
<a name="l00713"></a>00713 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00714"></a>00714 <span class="preprocessor"></span>    NETRootInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), NET::Supported );
<a name="l00715"></a>00715     <span class="keywordflow">if</span>( info.isSupported( NET::WM2RestackWindow ))
<a name="l00716"></a>00716         info.restackRequest( win, None, Above );
<a name="l00717"></a>00717     <span class="keywordflow">else</span>
<a name="l00718"></a>00718         XRaiseWindow( qt_xdisplay(), win );
<a name="l00719"></a>00719 <span class="preprocessor">#endif</span>
<a name="l00720"></a>00720 <span class="preprocessor"></span>}
<a name="l00721"></a>00721 
<a name="l00722"></a><a class="code" href="classKWin.html#a9028534d7a629beeb246b1164202d999">00722</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#a9028534d7a629beeb246b1164202d999" title="Lowers the given window.">KWin::lowerWindow</a>( WId win )
<a name="l00723"></a>00723 {
<a name="l00724"></a>00724 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00725"></a>00725 <span class="preprocessor"></span>    NETRootInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), NET::Supported );
<a name="l00726"></a>00726     <span class="keywordflow">if</span>( info.isSupported( NET::WM2RestackWindow ))
<a name="l00727"></a>00727         info.restackRequest( win, None, Below );
<a name="l00728"></a>00728     <span class="keywordflow">else</span>
<a name="l00729"></a>00729         XLowerWindow( qt_xdisplay(), win );
<a name="l00730"></a>00730 <span class="preprocessor">#endif</span>
<a name="l00731"></a>00731 <span class="preprocessor"></span>}
<a name="l00732"></a>00732 
<a name="l00733"></a><a class="code" href="classKWin.html#a05b66b13ed3c1bcef8df402e91bc8b4b">00733</a> <span class="keywordtype">void</span> <a class="code" href="classKWin.html#a05b66b13ed3c1bcef8df402e91bc8b4b">KWin::appStarted</a>()
<a name="l00734"></a>00734 {
<a name="l00735"></a>00735 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00736"></a>00736 <span class="preprocessor"></span>    <a class="code" href="classKWin.html#a05b66b13ed3c1bcef8df402e91bc8b4b">KStartupInfo::appStarted</a>();
<a name="l00737"></a>00737 <span class="preprocessor">#endif</span>
<a name="l00738"></a>00738 <span class="preprocessor"></span>}
<a name="l00739"></a>00739 
<a name="l00740"></a>00740 <span class="keyword">class </span>KWin::WindowInfoPrivate
<a name="l00741"></a>00741 {
<a name="l00742"></a>00742     <span class="keyword">public</span>:
<a name="l00743"></a>00743     WindowInfoPrivate()
<a name="l00744"></a>00744 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00745"></a>00745 <span class="preprocessor"></span>    : <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( NULL )
<a name="l00746"></a>00746 <span class="preprocessor">#endif</span>
<a name="l00747"></a>00747 <span class="preprocessor"></span>    {}
<a name="l00748"></a>00748 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00749"></a>00749 <span class="preprocessor"></span>    ~WindowInfoPrivate() { <span class="keyword">delete</span> <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>; }
<a name="l00750"></a>00750     NETWinInfo* <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>;
<a name="l00751"></a>00751 <span class="preprocessor">#endif</span>
<a name="l00752"></a>00752 <span class="preprocessor"></span>    WId win_;
<a name="l00753"></a>00753     <a class="codeRef" href="qstring.html">QString</a> name_;
<a name="l00754"></a>00754         <a class="codeRef" href="qstring.html">QString</a> iconic_name_;
<a name="l00755"></a>00755     <a class="codeRef" href="qrect.html">QRect</a> geometry_;
<a name="l00756"></a>00756         <a class="codeRef" href="qrect.html">QRect</a> frame_geometry_;
<a name="l00757"></a>00757     <span class="keywordtype">int</span> ref;
<a name="l00758"></a>00758         <span class="keywordtype">bool</span> valid;
<a name="l00759"></a>00759     <span class="keyword">private</span>:
<a name="l00760"></a>00760     WindowInfoPrivate( <span class="keyword">const</span> WindowInfoPrivate&amp; );
<a name="l00761"></a>00761     <span class="keywordtype">void</span> operator=( <span class="keyword">const</span> WindowInfoPrivate&amp; );
<a name="l00762"></a>00762 };
<a name="l00763"></a>00763 
<a name="l00764"></a>00764 <span class="comment">// KWin::info() should be updated too if something has to be changed here</span>
<a name="l00765"></a><a class="code" href="classKWin_1_1WindowInfo.html#a5b81fd56b8e01b16136a42a6b709bd50">00765</a> <a class="code" href="classKWin_1_1WindowInfo.html#a5b81fd56b8e01b16136a42a6b709bd50" title="Reads all the info about the given window.">KWin::WindowInfo::WindowInfo</a>( WId win, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> properties, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> properties2 )
<a name="l00766"></a>00766 {
<a name="l00767"></a>00767 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00768"></a>00768 <span class="preprocessor"></span>    <a class="code" href="classKXErrorHandler.html" title="This class simplifies handling of X errors.">KXErrorHandler</a> handler;
<a name="l00769"></a>00769     d = <span class="keyword">new</span> WindowInfoPrivate;
<a name="l00770"></a>00770     d-&gt;ref = 1;
<a name="l00771"></a>00771     <span class="keywordflow">if</span>( properties == 0 )
<a name="l00772"></a>00772     properties = NET::WMState |
<a name="l00773"></a>00773              NET::WMStrut |
<a name="l00774"></a>00774              NET::WMWindowType |
<a name="l00775"></a>00775              NET::WMName |
<a name="l00776"></a>00776              NET::WMVisibleName |
<a name="l00777"></a>00777                      NET::WMIconName |
<a name="l00778"></a>00778                      NET::WMVisibleIconName |
<a name="l00779"></a>00779              NET::WMDesktop |
<a name="l00780"></a>00780              NET::WMPid |
<a name="l00781"></a>00781              NET::WMKDEFrameStrut |
<a name="l00782"></a>00782              NET::XAWMState |
<a name="l00783"></a>00783                      NET::WMGeometry;
<a name="l00784"></a>00784     <span class="keywordflow">if</span>( properties &amp; NET::WMVisibleIconName )
<a name="l00785"></a>00785     properties |= NET::WMIconName | NET::WMVisibleName; <span class="comment">// force, in case it will be used as a fallback</span>
<a name="l00786"></a>00786     <span class="keywordflow">if</span>( properties &amp; NET::WMVisibleName )
<a name="l00787"></a>00787     properties |= NET::WMName; <span class="comment">// force, in case it will be used as a fallback</span>
<a name="l00788"></a>00788     <span class="keywordflow">if</span>( properties2 &amp; NET::WM2ExtendedStrut )
<a name="l00789"></a>00789         properties |= NET::WMStrut; <span class="comment">// will be used as fallback</span>
<a name="l00790"></a>00790     properties |= NET::XAWMState; <span class="comment">// force to get error detection for valid()</span>
<a name="l00791"></a>00791     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> props[ 2 ] = { properties, properties2 };
<a name="l00792"></a>00792     d-&gt;info = <span class="keyword">new</span> NETWinInfo( qt_xdisplay(), win, qt_xrootwin(), props, 2 );
<a name="l00793"></a>00793     d-&gt;win_ = <a class="code" href="classKWin_1_1WindowInfo.html#a5e404b97b42cc816c4b6914ffb871e5d" title="Returns the window identifier.">win</a>;
<a name="l00794"></a>00794     <span class="keywordflow">if</span>( properties &amp; NET::WMName ) {
<a name="l00795"></a>00795         <span class="keywordflow">if</span>( d-&gt;info-&gt;name() &amp;&amp; d-&gt;info-&gt;name()[ 0 ] != <span class="charliteral">&#39;\0&#39;</span> )
<a name="l00796"></a>00796         d-&gt;name_ = <a class="codeRef" href="qstring.html#fromUtf8">QString::fromUtf8</a>( d-&gt;info-&gt;name() );
<a name="l00797"></a>00797         <span class="keywordflow">else</span>
<a name="l00798"></a>00798             d-&gt;name_ = <a class="code" href="classKWin.html#a121362368f1da8365bff97e16a1a4428" title="Function that reads and returns the contents of the given text property (WM_NAME, WM_ICON_NAME...">readNameProperty</a>( win, XA_WM_NAME );
<a name="l00799"></a>00799     }
<a name="l00800"></a>00800     <span class="keywordflow">if</span>( properties &amp; NET::WMIconName ) {
<a name="l00801"></a>00801         <span class="keywordflow">if</span>( d-&gt;info-&gt;iconName() &amp;&amp; d-&gt;info-&gt;iconName()[ 0 ] != <span class="charliteral">&#39;\0&#39;</span> )
<a name="l00802"></a>00802             d-&gt;iconic_name_ = <a class="codeRef" href="qstring.html#fromUtf8">QString::fromUtf8</a>( d-&gt;info-&gt;iconName());
<a name="l00803"></a>00803         <span class="keywordflow">else</span>
<a name="l00804"></a>00804             d-&gt;iconic_name_ = <a class="code" href="classKWin.html#a121362368f1da8365bff97e16a1a4428" title="Function that reads and returns the contents of the given text property (WM_NAME, WM_ICON_NAME...">readNameProperty</a>( win, XA_WM_ICON_NAME );
<a name="l00805"></a>00805     }
<a name="l00806"></a>00806     <span class="keywordflow">if</span>( properties &amp; ( NET::WMGeometry | NET::WMKDEFrameStrut )) {
<a name="l00807"></a>00807         <a class="code" href="structNETRect.html" title="Simple rectangle class for NET classes.">NETRect</a> frame, geom;
<a name="l00808"></a>00808         d-&gt;info-&gt;kdeGeometry( frame, geom );
<a name="l00809"></a>00809         d-&gt;geometry_.setRect( geom.<a class="code" href="structNETRect.html#a2604a60ef01bb245df79ada826b1718d" title="Position of the rectangle.">pos</a>.<a class="code" href="structNETPoint.html#a662b6d948b949dabcaf2e955a078e63f" title="x coordinate.">x</a>, geom.<a class="code" href="structNETRect.html#a2604a60ef01bb245df79ada826b1718d" title="Position of the rectangle.">pos</a>.<a class="code" href="structNETPoint.html#ac64b3831f6fd7f1874f7e344beb117bd" title="y coordinate">y</a>, geom.<a class="code" href="structNETRect.html#a97102c18e356965d829855c570bb45ca" title="Size of the rectangle.">size</a>.<a class="code" href="structNETSize.html#af2e6a5fcac88037fa745273e85c5e219" title="Width.">width</a>, geom.<a class="code" href="structNETRect.html#a97102c18e356965d829855c570bb45ca" title="Size of the rectangle.">size</a>.<a class="code" href="structNETSize.html#a0a6def5683983f7f3478192248ef2f8e" title="Height.">height</a> );
<a name="l00810"></a>00810         d-&gt;frame_geometry_.setRect( frame.<a class="code" href="structNETRect.html#a2604a60ef01bb245df79ada826b1718d" title="Position of the rectangle.">pos</a>.<a class="code" href="structNETPoint.html#a662b6d948b949dabcaf2e955a078e63f" title="x coordinate.">x</a>, frame.<a class="code" href="structNETRect.html#a2604a60ef01bb245df79ada826b1718d" title="Position of the rectangle.">pos</a>.<a class="code" href="structNETPoint.html#ac64b3831f6fd7f1874f7e344beb117bd" title="y coordinate">y</a>, frame.<a class="code" href="structNETRect.html#a97102c18e356965d829855c570bb45ca" title="Size of the rectangle.">size</a>.<a class="code" href="structNETSize.html#af2e6a5fcac88037fa745273e85c5e219" title="Width.">width</a>, frame.<a class="code" href="structNETRect.html#a97102c18e356965d829855c570bb45ca" title="Size of the rectangle.">size</a>.<a class="code" href="structNETSize.html#a0a6def5683983f7f3478192248ef2f8e" title="Height.">height</a> );
<a name="l00811"></a>00811     }
<a name="l00812"></a>00812     d-&gt;valid = !handler.<a class="code" href="classKXErrorHandler.html#ad1cf4533926949710158d6fb582ba7ec" title="This function returns true if the error flag is set (i.e.">error</a>( <span class="keyword">false</span> ); <span class="comment">// no sync - NETWinInfo did roundtrips</span>
<a name="l00813"></a>00813 <span class="preprocessor">#endif</span>
<a name="l00814"></a>00814 <span class="preprocessor"></span>}
<a name="l00815"></a>00815 
<a name="l00816"></a>00816 <span class="comment">// this one is only to make QValueList&lt;&gt; or similar happy</span>
<a name="l00817"></a>00817 KWin::WindowInfo::WindowInfo()
<a name="l00818"></a>00818     : d( NULL )
<a name="l00819"></a>00819 {
<a name="l00820"></a>00820 }
<a name="l00821"></a>00821 
<a name="l00822"></a>00822 KWin::WindowInfo::~WindowInfo()
<a name="l00823"></a>00823 {
<a name="l00824"></a>00824     <span class="keywordflow">if</span>( d != NULL ) {
<a name="l00825"></a>00825     <span class="keywordflow">if</span>( --d-&gt;ref == 0 ) {
<a name="l00826"></a>00826         <span class="keyword">delete</span> d;
<a name="l00827"></a>00827     }
<a name="l00828"></a>00828     }
<a name="l00829"></a>00829 }
<a name="l00830"></a>00830 
<a name="l00831"></a>00831 <a class="code" href="classKWin_1_1WindowInfo.html#a5b81fd56b8e01b16136a42a6b709bd50" title="Reads all the info about the given window.">KWin::WindowInfo::WindowInfo</a>( <span class="keyword">const</span> WindowInfo&amp; wininfo )
<a name="l00832"></a>00832     : d( wininfo.d )
<a name="l00833"></a>00833 {
<a name="l00834"></a>00834     <span class="keywordflow">if</span>( d != NULL )
<a name="l00835"></a>00835     ++d-&gt;ref;
<a name="l00836"></a>00836 }
<a name="l00837"></a>00837 
<a name="l00838"></a>00838 <a class="code" href="classKWin_1_1WindowInfo.html" title="Information about a window.">KWin::WindowInfo</a>&amp; KWin::WindowInfo::operator=( <span class="keyword">const</span> WindowInfo&amp; wininfo )
<a name="l00839"></a>00839 {
<a name="l00840"></a>00840     <span class="keywordflow">if</span>( d != wininfo.d ) {
<a name="l00841"></a>00841     <span class="keywordflow">if</span>( d != NULL )
<a name="l00842"></a>00842         <span class="keywordflow">if</span>( --d-&gt;ref == 0 )
<a name="l00843"></a>00843         <span class="keyword">delete</span> d;
<a name="l00844"></a>00844     d = wininfo.d;
<a name="l00845"></a>00845     <span class="keywordflow">if</span>( d != NULL )
<a name="l00846"></a>00846         ++d-&gt;ref;
<a name="l00847"></a>00847     }
<a name="l00848"></a>00848     <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00849"></a>00849 }
<a name="l00850"></a>00850 
<a name="l00851"></a><a class="code" href="classKWin_1_1WindowInfo.html#af6ccc8d561570185152a664bba34bfc5">00851</a> <span class="keywordtype">bool</span> <a class="code" href="classKWin_1_1WindowInfo.html#af6ccc8d561570185152a664bba34bfc5" title="Returns false if this window info is not valid (most probably the given window doesn&#39;t exist)...">KWin::WindowInfo::valid</a>( <span class="keywordtype">bool</span> withdrawn_is_valid )<span class="keyword"> const</span>
<a name="l00852"></a>00852 <span class="keyword"></span>{
<a name="l00853"></a>00853     <span class="keywordflow">if</span>( !d-&gt;valid )
<a name="l00854"></a>00854         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00855"></a>00855     <span class="keywordflow">if</span>( !withdrawn_is_valid &amp;&amp; mappingState() == NET::Withdrawn )
<a name="l00856"></a>00856         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00857"></a>00857     <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00858"></a>00858 }
<a name="l00859"></a>00859 
<a name="l00860"></a><a class="code" href="classKWin_1_1WindowInfo.html#a5e404b97b42cc816c4b6914ffb871e5d">00860</a> WId <a class="code" href="classKWin_1_1WindowInfo.html#a5e404b97b42cc816c4b6914ffb871e5d" title="Returns the window identifier.">KWin::WindowInfo::win</a>()<span class="keyword"> const</span>
<a name="l00861"></a>00861 <span class="keyword"></span>{
<a name="l00862"></a>00862     <span class="keywordflow">return</span> d-&gt;win_;
<a name="l00863"></a>00863 }
<a name="l00864"></a>00864 
<a name="l00865"></a><a class="code" href="classKWin_1_1WindowInfo.html#a3ebe58003fc27ff3b6f5c38335044a13">00865</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classKWin_1_1WindowInfo.html#a3ebe58003fc27ff3b6f5c38335044a13" title="Returns the window&#39;s state flags (see the NET::State enum for details).">KWin::WindowInfo::state</a>()<span class="keyword"> const</span>
<a name="l00866"></a>00866 <span class="keyword"></span>{
<a name="l00867"></a>00867 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00868"></a>00868 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS ] &amp; NET::WMState ) == 0, 176 )
<a name="l00869"></a>00869         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WMState to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l00870"></a>00870     <span class="keywordflow">return</span> d-&gt;info-&gt;state();
<a name="l00871"></a>00871 <span class="preprocessor">#else</span>
<a name="l00872"></a>00872 <span class="preprocessor"></span>    <span class="keywordflow">return</span> 0;
<a name="l00873"></a>00873 <span class="preprocessor">#endif</span>
<a name="l00874"></a>00874 <span class="preprocessor"></span>}
<a name="l00875"></a>00875 
<a name="l00876"></a><a class="code" href="classKWin_1_1WindowInfo.html#a61ee75f0c7351354781af1ebe0a7a49b">00876</a> <a class="code" href="classNET.html#afb6eef2d78c27ea693652a30d2a07c05" title="Client window mapping state.">NET::MappingState</a> <a class="code" href="classKWin_1_1WindowInfo.html#a61ee75f0c7351354781af1ebe0a7a49b" title="Returns the mapping state of the window (see NET::MappingState).">KWin::WindowInfo::mappingState</a>()<span class="keyword"> const</span>
<a name="l00877"></a>00877 <span class="keyword"></span>{
<a name="l00878"></a>00878 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00879"></a>00879 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS ] &amp; NET::XAWMState ) == 0, 176 )
<a name="l00880"></a>00880         &lt;&lt; <span class="stringliteral">&quot;Pass NET::XAWMState to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l00881"></a>00881     <span class="keywordflow">return</span> d-&gt;info-&gt;mappingState();
<a name="l00882"></a>00882 <span class="preprocessor">#else</span>
<a name="l00883"></a>00883 <span class="preprocessor"></span>    <span class="keywordflow">return</span> NET::Visible;
<a name="l00884"></a>00884 <span class="preprocessor">#endif</span>
<a name="l00885"></a>00885 <span class="preprocessor"></span>}
<a name="l00886"></a>00886 
<a name="l00887"></a><a class="code" href="classKWin_1_1WindowInfo.html#afd33882dadeaebaf60d53db0ed150ecb">00887</a> <a class="code" href="structNETExtendedStrut.html" title="Partial strut class for NET classes.">NETExtendedStrut</a> <a class="code" href="classKWin_1_1WindowInfo.html#afd33882dadeaebaf60d53db0ed150ecb" title="Returns the window extended (partial) strut.">KWin::WindowInfo::extendedStrut</a>()<span class="keyword"> const</span>
<a name="l00888"></a>00888 <span class="keyword"></span>{
<a name="l00889"></a>00889 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00890"></a>00890 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS2 ] &amp; NET::WM2ExtendedStrut ) == 0, 176 )
<a name="l00891"></a>00891         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WM2ExtendedStrut to second argument of KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l00892"></a>00892     <a class="code" href="structNETExtendedStrut.html" title="Partial strut class for NET classes.">NETExtendedStrut</a> ext = d-&gt;info-&gt;extendedStrut();
<a name="l00893"></a>00893     <a class="code" href="structNETStrut.html">NETStrut</a> str = d-&gt;info-&gt;strut();
<a name="l00894"></a>00894     <span class="keywordflow">if</span>( ext.<a class="code" href="structNETExtendedStrut.html#a79fc79c632ccc599b393693d99f24164" title="Left border of the strut, width and range.">left_width</a> == 0 &amp;&amp; ext.<a class="code" href="structNETExtendedStrut.html#a7c1f4d0bf33fe20f5dba649e8a2a505b" title="Right border of the strut, width and range.">right_width</a> == 0 &amp;&amp; ext.<a class="code" href="structNETExtendedStrut.html#acb07800b67a53e134faaf09c571a1f0e" title="Top border of the strut, width and range.">top_width</a> == 0 &amp;&amp; ext.<a class="code" href="structNETExtendedStrut.html#a12ee0a2d04e980001139a7677a821148" title="Bottom border of the strut, width and range.">bottom_width</a> == 0
<a name="l00895"></a>00895         &amp;&amp; ( str.<a class="code" href="structNETStrut.html#a3ffe1d55e64632f4cdc1225ae8a301df" title="Left border of the strut.">left</a> != 0 || str.<a class="code" href="structNETStrut.html#a46c92f5dc806d6def2390f258d00b80e" title="Right border of the strut.">right</a> != 0 || str.<a class="code" href="structNETStrut.html#ac359ac56290a66002010f64dc4842aa2" title="Top border of the strut.">top</a> != 0 || str.<a class="code" href="structNETStrut.html#a031e023bb8f0c8cf3d00b748c7dd7ca7" title="Bottom border of the strut.">bottom</a> != 0 )) {
<a name="l00896"></a>00896         <span class="comment">// build extended from simple</span>
<a name="l00897"></a>00897         <span class="keywordflow">if</span>( str.<a class="code" href="structNETStrut.html#a3ffe1d55e64632f4cdc1225ae8a301df" title="Left border of the strut.">left</a> != 0 ) {
<a name="l00898"></a>00898             ext.<a class="code" href="structNETExtendedStrut.html#a79fc79c632ccc599b393693d99f24164" title="Left border of the strut, width and range.">left_width</a> = str.<a class="code" href="structNETStrut.html#a3ffe1d55e64632f4cdc1225ae8a301df" title="Left border of the strut.">left</a>;
<a name="l00899"></a>00899             ext.left_start = 0;
<a name="l00900"></a>00900             ext.left_end = XDisplayHeight( qt_xdisplay(), DefaultScreen( qt_xdisplay()));
<a name="l00901"></a>00901         }
<a name="l00902"></a>00902         <span class="keywordflow">if</span>( str.<a class="code" href="structNETStrut.html#a46c92f5dc806d6def2390f258d00b80e" title="Right border of the strut.">right</a> != 0 ) {
<a name="l00903"></a>00903             ext.<a class="code" href="structNETExtendedStrut.html#a7c1f4d0bf33fe20f5dba649e8a2a505b" title="Right border of the strut, width and range.">right_width</a> = str.<a class="code" href="structNETStrut.html#a46c92f5dc806d6def2390f258d00b80e" title="Right border of the strut.">right</a>;
<a name="l00904"></a>00904             ext.right_start = 0;
<a name="l00905"></a>00905             ext.right_end = XDisplayHeight( qt_xdisplay(), DefaultScreen( qt_xdisplay()));
<a name="l00906"></a>00906         }
<a name="l00907"></a>00907         <span class="keywordflow">if</span>( str.<a class="code" href="structNETStrut.html#ac359ac56290a66002010f64dc4842aa2" title="Top border of the strut.">top</a> != 0 ) {
<a name="l00908"></a>00908             ext.<a class="code" href="structNETExtendedStrut.html#acb07800b67a53e134faaf09c571a1f0e" title="Top border of the strut, width and range.">top_width</a> = str.<a class="code" href="structNETStrut.html#ac359ac56290a66002010f64dc4842aa2" title="Top border of the strut.">top</a>;
<a name="l00909"></a>00909             ext.top_start = 0;
<a name="l00910"></a>00910             ext.top_end = XDisplayWidth( qt_xdisplay(), DefaultScreen( qt_xdisplay()));
<a name="l00911"></a>00911         }
<a name="l00912"></a>00912         <span class="keywordflow">if</span>( str.<a class="code" href="structNETStrut.html#a031e023bb8f0c8cf3d00b748c7dd7ca7" title="Bottom border of the strut.">bottom</a> != 0 ) {
<a name="l00913"></a>00913             ext.<a class="code" href="structNETExtendedStrut.html#a12ee0a2d04e980001139a7677a821148" title="Bottom border of the strut, width and range.">bottom_width</a> = str.<a class="code" href="structNETStrut.html#a031e023bb8f0c8cf3d00b748c7dd7ca7" title="Bottom border of the strut.">bottom</a>;
<a name="l00914"></a>00914             ext.bottom_start = 0;
<a name="l00915"></a>00915             ext.bottom_end = XDisplayWidth( qt_xdisplay(), DefaultScreen( qt_xdisplay()));
<a name="l00916"></a>00916         }
<a name="l00917"></a>00917     }
<a name="l00918"></a>00918     <span class="keywordflow">return</span> ext;
<a name="l00919"></a>00919 <span class="preprocessor">#else</span>
<a name="l00920"></a>00920 <span class="preprocessor"></span>    <a class="code" href="structNETExtendedStrut.html" title="Partial strut class for NET classes.">NETExtendedStrut</a> n;
<a name="l00921"></a>00921     <span class="keywordflow">return</span> n;
<a name="l00922"></a>00922 <span class="preprocessor">#endif</span>
<a name="l00923"></a>00923 <span class="preprocessor"></span>}
<a name="l00924"></a>00924 
<a name="l00925"></a><a class="code" href="classKWin_1_1WindowInfo.html#aac4086e6d17739217b0a13a9d4e55ee0">00925</a> <a class="code" href="structNETStrut.html">NETStrut</a> <a class="code" href="classKWin_1_1WindowInfo.html#aac4086e6d17739217b0a13a9d4e55ee0">KWin::WindowInfo::strut</a>()<span class="keyword"> const</span>
<a name="l00926"></a>00926 <span class="keyword"></span>{
<a name="l00927"></a>00927 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00928"></a>00928 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS ] &amp; NET::WMStrut ) == 0, 176 )
<a name="l00929"></a>00929         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WMStrut to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l00930"></a>00930     <span class="keywordflow">return</span> d-&gt;info-&gt;strut();
<a name="l00931"></a>00931 <span class="preprocessor">#else</span>
<a name="l00932"></a>00932 <span class="preprocessor"></span>    <a class="code" href="structNETStrut.html">NETStrut</a> n;
<a name="l00933"></a>00933     <span class="keywordflow">return</span> n;
<a name="l00934"></a>00934 <span class="preprocessor">#endif</span>
<a name="l00935"></a>00935 <span class="preprocessor"></span>}
<a name="l00936"></a>00936 
<a name="l00937"></a><a class="code" href="classKWin_1_1WindowInfo.html#a05039494d4f352d1e6e9e8eeb505ba9f">00937</a> <a class="code" href="classNET.html#a4b3115c0f40e7bc8e38119cc44dd60e0" title="Window type.">NET::WindowType</a> <a class="code" href="classKWin_1_1WindowInfo.html#a05039494d4f352d1e6e9e8eeb505ba9f" title="Returns the window type of this window (see NET::WindowType).">KWin::WindowInfo::windowType</a>( <span class="keywordtype">int</span> supported_types )<span class="keyword"> const</span>
<a name="l00938"></a>00938 <span class="keyword"></span>{
<a name="l00939"></a>00939 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00940"></a>00940 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS ] &amp; NET::WMWindowType ) == 0, 176 )
<a name="l00941"></a>00941         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WMWindowType to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l00942"></a>00942     <span class="keywordflow">return</span> d-&gt;info-&gt;windowType( supported_types );
<a name="l00943"></a>00943 <span class="preprocessor">#else</span>
<a name="l00944"></a>00944 <span class="preprocessor"></span>    <span class="keywordflow">return</span> 0;
<a name="l00945"></a>00945 <span class="preprocessor">#endif</span>
<a name="l00946"></a>00946 <span class="preprocessor"></span>}
<a name="l00947"></a>00947 
<a name="l00948"></a><a class="code" href="classKWin_1_1WindowInfo.html#a960a58ba8d5fcc7db1fc2706509272af">00948</a> <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKWin_1_1WindowInfo.html#a960a58ba8d5fcc7db1fc2706509272af" title="Returns a visible name with state.">KWin::WindowInfo::visibleNameWithState</a>()<span class="keyword"> const</span>
<a name="l00949"></a>00949 <span class="keyword"></span>{
<a name="l00950"></a>00950     <a class="codeRef" href="qstring.html">QString</a> s = visibleName();
<a name="l00951"></a>00951     <span class="keywordflow">if</span> ( isMinimized() ) {
<a name="l00952"></a>00952     s.<a class="codeRef" href="qstring.html#prepend">prepend</a>(<span class="charliteral">&#39;(&#39;</span>);
<a name="l00953"></a>00953     s.<a class="codeRef" href="qstring.html#append">append</a>(<span class="charliteral">&#39;)&#39;</span>);
<a name="l00954"></a>00954     }
<a name="l00955"></a>00955     <span class="keywordflow">return</span> s;
<a name="l00956"></a>00956 }
<a name="l00957"></a>00957 
<a name="l00958"></a>00958 <a class="codeRef" href="qstring.html">QString</a> KWin::Info::visibleNameWithState()<span class="keyword"> const</span>
<a name="l00959"></a>00959 <span class="keyword"></span>{
<a name="l00960"></a>00960     <a class="codeRef" href="qstring.html">QString</a> s = visibleName;
<a name="l00961"></a>00961     <span class="keywordflow">if</span> ( isMinimized() ) {
<a name="l00962"></a>00962     s.<a class="codeRef" href="qstring.html#prepend">prepend</a>(<span class="charliteral">&#39;(&#39;</span>);
<a name="l00963"></a>00963     s.<a class="codeRef" href="qstring.html#append">append</a>(<span class="charliteral">&#39;)&#39;</span>);
<a name="l00964"></a>00964     }
<a name="l00965"></a>00965     <span class="keywordflow">return</span> s;
<a name="l00966"></a>00966 }
<a name="l00967"></a>00967 
<a name="l00968"></a><a class="code" href="classKWin_1_1WindowInfo.html#a33294fe92e3da79cfdc03ced0e1032e1">00968</a> <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKWin_1_1WindowInfo.html#a33294fe92e3da79cfdc03ced0e1032e1" title="Returns the visible name of the window (i.e.">KWin::WindowInfo::visibleName</a>()<span class="keyword"> const</span>
<a name="l00969"></a>00969 <span class="keyword"></span>{
<a name="l00970"></a>00970 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00971"></a>00971 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS ] &amp; NET::WMVisibleName ) == 0, 176 )
<a name="l00972"></a>00972         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WMVisibleName to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l00973"></a>00973     <span class="keywordflow">return</span> d-&gt;info-&gt;visibleName() &amp;&amp; d-&gt;info-&gt;visibleName()[ 0 ] != <span class="charliteral">&#39;\0&#39;</span>
<a name="l00974"></a>00974         ? <a class="codeRef" href="qstring.html#fromUtf8">QString::fromUtf8</a>(d-&gt;info-&gt;visibleName()) : name();
<a name="l00975"></a>00975 <span class="preprocessor">#else</span>
<a name="l00976"></a>00976 <span class="preprocessor"></span>    <span class="keywordflow">return</span> <a class="codeRef" href="qstring.html">QString</a>(<span class="stringliteral">&quot;name&quot;</span>);
<a name="l00977"></a>00977 <span class="preprocessor">#endif</span>
<a name="l00978"></a>00978 <span class="preprocessor"></span>}
<a name="l00979"></a>00979 
<a name="l00980"></a><a class="code" href="classKWin_1_1WindowInfo.html#a46f59ca21597b200b78edaecd01f5dea">00980</a> <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKWin_1_1WindowInfo.html#a46f59ca21597b200b78edaecd01f5dea" title="Returns the name of the window, as specified by the application, without any modifications.">KWin::WindowInfo::name</a>()<span class="keyword"> const</span>
<a name="l00981"></a>00981 <span class="keyword"></span>{
<a name="l00982"></a>00982 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l00983"></a>00983 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS ] &amp; NET::WMName ) == 0, 176 )
<a name="l00984"></a>00984         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WMName to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l00985"></a>00985     <span class="keywordflow">return</span> d-&gt;name_;
<a name="l00986"></a>00986 <span class="preprocessor">#else</span>
<a name="l00987"></a>00987 <span class="preprocessor"></span>    <span class="keywordflow">return</span> <a class="codeRef" href="qstring.html">QString</a>();
<a name="l00988"></a>00988 <span class="preprocessor">#endif</span>
<a name="l00989"></a>00989 <span class="preprocessor"></span>}
<a name="l00990"></a>00990 
<a name="l00991"></a><a class="code" href="classKWin_1_1WindowInfo.html#ae852ce930f9e243f8b2837c17faa9ba7">00991</a> <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKWin_1_1WindowInfo.html#ae852ce930f9e243f8b2837c17faa9ba7" title="Returns a visible name with state.">KWin::WindowInfo::visibleIconNameWithState</a>()<span class="keyword"> const</span>
<a name="l00992"></a>00992 <span class="keyword"></span>{
<a name="l00993"></a>00993     <a class="codeRef" href="qstring.html">QString</a> s = visibleIconName();
<a name="l00994"></a>00994     <span class="keywordflow">if</span> ( isMinimized() ) {
<a name="l00995"></a>00995     s.<a class="codeRef" href="qstring.html#prepend">prepend</a>(<span class="charliteral">&#39;(&#39;</span>);
<a name="l00996"></a>00996     s.<a class="codeRef" href="qstring.html#append">append</a>(<span class="charliteral">&#39;)&#39;</span>);
<a name="l00997"></a>00997     }
<a name="l00998"></a>00998     <span class="keywordflow">return</span> s;
<a name="l00999"></a>00999 }
<a name="l01000"></a>01000 
<a name="l01001"></a><a class="code" href="classKWin_1_1WindowInfo.html#ae7971f64c63fe6d6fa006c2cbe98f0c5">01001</a> <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKWin_1_1WindowInfo.html#ae7971f64c63fe6d6fa006c2cbe98f0c5" title="Returns the visible name of the window that should be shown in taskbar and all other &quot;iconic&quot; represe...">KWin::WindowInfo::visibleIconName</a>()<span class="keyword"> const</span>
<a name="l01002"></a>01002 <span class="keyword"></span>{
<a name="l01003"></a>01003 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01004"></a>01004 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS ] &amp; NET::WMVisibleIconName ) == 0, 176 )
<a name="l01005"></a>01005         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WMVisibleIconName to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l01006"></a>01006     <span class="keywordflow">if</span>( d-&gt;info-&gt;visibleIconName() &amp;&amp; d-&gt;info-&gt;visibleIconName()[ 0 ] != <span class="charliteral">&#39;\0&#39;</span> )
<a name="l01007"></a>01007         <span class="keywordflow">return</span> <a class="codeRef" href="qstring.html#fromUtf8">QString::fromUtf8</a>( d-&gt;info-&gt;visibleIconName());
<a name="l01008"></a>01008     <span class="keywordflow">if</span>( d-&gt;info-&gt;iconName() &amp;&amp; d-&gt;info-&gt;iconName()[ 0 ] != <span class="charliteral">&#39;\0&#39;</span> )
<a name="l01009"></a>01009         <span class="keywordflow">return</span> <a class="codeRef" href="qstring.html#fromUtf8">QString::fromUtf8</a>( d-&gt;info-&gt;iconName());
<a name="l01010"></a>01010     <span class="keywordflow">if</span>( !d-&gt;iconic_name_.isEmpty())
<a name="l01011"></a>01011         <span class="keywordflow">return</span> d-&gt;iconic_name_;
<a name="l01012"></a>01012 #endif
<a name="l01013"></a>01013     <span class="keywordflow">return</span> visibleName();
<a name="l01014"></a>01014 }
<a name="l01015"></a>01015 
<a name="l01016"></a><a class="code" href="classKWin_1_1WindowInfo.html#a1896ce22c149ae6cf8ead6d06289fc4b">01016</a> <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKWin_1_1WindowInfo.html#a1896ce22c149ae6cf8ead6d06289fc4b" title="Returns the name of the window that should be shown in taskbar and all other &quot;iconic&quot; representations...">KWin::WindowInfo::iconName</a>()<span class="keyword"> const</span>
<a name="l01017"></a>01017 <span class="keyword"></span>{
<a name="l01018"></a>01018 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01019"></a>01019 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS ] &amp; NET::WMIconName ) == 0, 176 )
<a name="l01020"></a>01020         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WMIconName to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l01021"></a>01021     <span class="keywordflow">if</span>( d-&gt;info-&gt;iconName() &amp;&amp; d-&gt;info-&gt;iconName()[ 0 ] != <span class="charliteral">&#39;\0&#39;</span> )
<a name="l01022"></a>01022         <span class="keywordflow">return</span> <a class="codeRef" href="qstring.html#fromUtf8">QString::fromUtf8</a>( d-&gt;info-&gt;iconName());
<a name="l01023"></a>01023     <span class="keywordflow">if</span>( !d-&gt;iconic_name_.isEmpty())
<a name="l01024"></a>01024         <span class="keywordflow">return</span> d-&gt;iconic_name_;
<a name="l01025"></a>01025 #endif
<a name="l01026"></a>01026     <span class="keywordflow">return</span> name();
<a name="l01027"></a>01027 }
<a name="l01028"></a>01028 
<a name="l01029"></a><a class="code" href="classKWin_1_1WindowInfo.html#a3108cf1f5fd60cf348dcc70791aa35f0">01029</a> <span class="keywordtype">bool</span> <a class="code" href="classKWin_1_1WindowInfo.html#a3108cf1f5fd60cf348dcc70791aa35f0" title="Returns true if the window is on the currently active virtual desktop.">KWin::WindowInfo::isOnCurrentDesktop</a>()<span class="keyword"> const</span>
<a name="l01030"></a>01030 <span class="keyword"></span>{
<a name="l01031"></a>01031 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01032"></a>01032 <span class="preprocessor"></span>    <span class="keywordflow">return</span> isOnDesktop( <a class="code" href="classKWin.html#acda20df0707242b1e175e2391ccc2c59" title="Convenience function to access the current desktop.">KWin::currentDesktop</a>());
<a name="l01033"></a>01033 <span class="preprocessor">#else</span>
<a name="l01034"></a>01034 <span class="preprocessor"></span>    <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l01035"></a>01035 <span class="preprocessor">#endif</span>
<a name="l01036"></a>01036 <span class="preprocessor"></span>}
<a name="l01037"></a>01037 
<a name="l01038"></a><a class="code" href="classKWin_1_1WindowInfo.html#a211d9f33e2731487ab25bafc8cec982c">01038</a> <span class="keywordtype">bool</span> <a class="code" href="classKWin_1_1WindowInfo.html#a211d9f33e2731487ab25bafc8cec982c" title="Returns true if the window is on the given virtual desktop.">KWin::WindowInfo::isOnDesktop</a>( <span class="keywordtype">int</span> desktop )<span class="keyword"> const</span>
<a name="l01039"></a>01039 <span class="keyword"></span>{
<a name="l01040"></a>01040 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01041"></a>01041 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS ] &amp; NET::WMDesktop ) == 0, 176 )
<a name="l01042"></a>01042         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WMDesktop to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l01043"></a>01043     <span class="keywordflow">return</span> d-&gt;info-&gt;desktop() == desktop || d-&gt;info-&gt;desktop() == NET::OnAllDesktops;
<a name="l01044"></a>01044 <span class="preprocessor">#else</span>
<a name="l01045"></a>01045 <span class="preprocessor"></span>    <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l01046"></a>01046 <span class="preprocessor">#endif</span>
<a name="l01047"></a>01047 <span class="preprocessor"></span>}
<a name="l01048"></a>01048 
<a name="l01049"></a><a class="code" href="classKWin_1_1WindowInfo.html#a69f8eca9753f3b1e1c054527f93e2fd9">01049</a> <span class="keywordtype">bool</span> <a class="code" href="classKWin_1_1WindowInfo.html#a69f8eca9753f3b1e1c054527f93e2fd9" title="Returns true if the window is on all desktops (equal to desktop()==NET::OnAllDesktops).">KWin::WindowInfo::onAllDesktops</a>()<span class="keyword"> const</span>
<a name="l01050"></a>01050 <span class="keyword"></span>{
<a name="l01051"></a>01051 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01052"></a>01052 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS ] &amp; NET::WMDesktop ) == 0, 176 )
<a name="l01053"></a>01053         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WMDesktop to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l01054"></a>01054     <span class="keywordflow">return</span> d-&gt;info-&gt;desktop() == NET::OnAllDesktops;
<a name="l01055"></a>01055 <span class="preprocessor">#else</span>
<a name="l01056"></a>01056 <span class="preprocessor"></span>    <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l01057"></a>01057 <span class="preprocessor">#endif</span>
<a name="l01058"></a>01058 <span class="preprocessor"></span>}
<a name="l01059"></a>01059 
<a name="l01060"></a><a class="code" href="classKWin_1_1WindowInfo.html#a8941184b6c216bea1a6fb1f36e189aef">01060</a> <span class="keywordtype">int</span> <a class="code" href="classKWin_1_1WindowInfo.html#a8941184b6c216bea1a6fb1f36e189aef" title="Returns the virtual desktop this window is on (NET::OnAllDesktops if the window is on all desktops)...">KWin::WindowInfo::desktop</a>()<span class="keyword"> const</span>
<a name="l01061"></a>01061 <span class="keyword"></span>{
<a name="l01062"></a>01062 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01063"></a>01063 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS ] &amp; NET::WMDesktop ) == 0, 176 )
<a name="l01064"></a>01064         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WMDesktop to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l01065"></a>01065     <span class="keywordflow">return</span> d-&gt;info-&gt;desktop();
<a name="l01066"></a>01066 <span class="preprocessor">#else</span>
<a name="l01067"></a>01067 <span class="preprocessor"></span>    <span class="keywordflow">return</span> 1;
<a name="l01068"></a>01068 <span class="preprocessor">#endif</span>
<a name="l01069"></a>01069 <span class="preprocessor"></span>}
<a name="l01070"></a>01070 
<a name="l01071"></a><a class="code" href="classKWin_1_1WindowInfo.html#ae226722f0eff11325f2d3bda2f773be4">01071</a> <a class="codeRef" href="qrect.html">QRect</a> <a class="code" href="classKWin_1_1WindowInfo.html#ae226722f0eff11325f2d3bda2f773be4" title="Returns the position and size of the window contents.">KWin::WindowInfo::geometry</a>()<span class="keyword"> const</span>
<a name="l01072"></a>01072 <span class="keyword"></span>{
<a name="l01073"></a>01073 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01074"></a>01074 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS ] &amp; NET::WMGeometry ) == 0, 176 )
<a name="l01075"></a>01075         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WMGeometry to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l01076"></a>01076     <span class="keywordflow">return</span> d-&gt;geometry_;
<a name="l01077"></a>01077 <span class="preprocessor">#else</span>
<a name="l01078"></a>01078 <span class="preprocessor"></span>    <span class="keywordflow">return</span> <a class="codeRef" href="qrect.html">QRect</a>( 100, 100, 200, 200 );
<a name="l01079"></a>01079 <span class="preprocessor">#endif</span>
<a name="l01080"></a>01080 <span class="preprocessor"></span>}
<a name="l01081"></a>01081 
<a name="l01082"></a><a class="code" href="classKWin_1_1WindowInfo.html#afedfd098aedf7eff5af4f9c477dfa9f2">01082</a> <a class="codeRef" href="qrect.html">QRect</a> <a class="code" href="classKWin_1_1WindowInfo.html#afedfd098aedf7eff5af4f9c477dfa9f2" title="Returns the frame geometry of the window, i.e.">KWin::WindowInfo::frameGeometry</a>()<span class="keyword"> const</span>
<a name="l01083"></a>01083 <span class="keyword"></span>{
<a name="l01084"></a>01084 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01085"></a>01085 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS ] &amp; NET::WMKDEFrameStrut ) == 0, 176 )
<a name="l01086"></a>01086         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WMKDEFrameStrut to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l01087"></a>01087     <span class="keywordflow">return</span> d-&gt;frame_geometry_;
<a name="l01088"></a>01088 <span class="preprocessor">#else</span>
<a name="l01089"></a>01089 <span class="preprocessor"></span>    <span class="keywordflow">return</span> <a class="codeRef" href="qrect.html">QRect</a>();
<a name="l01090"></a>01090 <span class="preprocessor">#endif</span>
<a name="l01091"></a>01091 <span class="preprocessor"></span>}
<a name="l01092"></a>01092 
<a name="l01093"></a><a class="code" href="classKWin_1_1WindowInfo.html#ac1c6a2a5c3be0c099e5ee9bb56fb4a58">01093</a> WId <a class="code" href="classKWin.html#a4b857cb8b13c5db33b0455b50664a7f0" title="Returns the WM_TRANSIENT_FOR property for the given window, i.e.">KWin::WindowInfo::transientFor</a>()<span class="keyword"> const</span>
<a name="l01094"></a>01094 <span class="keyword"></span>{
<a name="l01095"></a>01095 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01096"></a>01096 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS2 ] &amp; NET::WM2TransientFor ) == 0, 176 )
<a name="l01097"></a>01097         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WM2TransientFor to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l01098"></a>01098     <span class="keywordflow">return</span> d-&gt;info-&gt;transientFor();
<a name="l01099"></a>01099 <span class="preprocessor">#else</span>
<a name="l01100"></a>01100 <span class="preprocessor"></span>    <span class="keywordflow">return</span> 0;
<a name="l01101"></a>01101 <span class="preprocessor">#endif</span>
<a name="l01102"></a>01102 <span class="preprocessor"></span>}
<a name="l01103"></a>01103 
<a name="l01104"></a><a class="code" href="classKWin_1_1WindowInfo.html#a953644b570ad49123131cad301a2fdf0">01104</a> WId <a class="code" href="classKWin.html#a034884cf756324e2f0a5a8c7f6a3f766" title="Returns the leader window for the group the given window is in, if any.">KWin::WindowInfo::groupLeader</a>()<span class="keyword"> const</span>
<a name="l01105"></a>01105 <span class="keyword"></span>{
<a name="l01106"></a>01106 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01107"></a>01107 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS2 ] &amp; NET::WM2GroupLeader ) == 0, 176 )
<a name="l01108"></a>01108         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WM2GroupLeader to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l01109"></a>01109     <span class="keywordflow">return</span> d-&gt;info-&gt;groupLeader();
<a name="l01110"></a>01110 <span class="preprocessor">#else</span>
<a name="l01111"></a>01111 <span class="preprocessor"></span>    <span class="keywordflow">return</span> 0;
<a name="l01112"></a>01112 <span class="preprocessor">#endif</span>
<a name="l01113"></a>01113 <span class="preprocessor"></span>}
<a name="l01114"></a>01114 
<a name="l01115"></a><a class="code" href="classKWin_1_1WindowInfo.html#a52bda639810ed235f575b4055ac53f22">01115</a> <a class="codeRef" href="qcstring.html">QCString</a> <a class="code" href="classKWin_1_1WindowInfo.html#a52bda639810ed235f575b4055ac53f22" title="Returns the class component of the window class for the window (i.e.">KWin::WindowInfo::windowClassClass</a>()<span class="keyword"> const</span>
<a name="l01116"></a>01116 <span class="keyword"></span>{
<a name="l01117"></a>01117 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01118"></a>01118 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS2 ] &amp; <a class="code" href="classNET.html#a851d15d9aa748b5f76e44b1e2d7c79b0a63ed6db95094cf0dd4346f259d5b4eb5">NET::WM2WindowClass</a> ) == 0, 176 )
<a name="l01119"></a>01119         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WM2WindowClass to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l01120"></a>01120     <span class="keywordflow">return</span> d-&gt;info-&gt;windowClassClass();
<a name="l01121"></a>01121 <span class="preprocessor">#else</span>
<a name="l01122"></a>01122 <span class="preprocessor"></span>    <span class="keywordflow">return</span> 0;
<a name="l01123"></a>01123 <span class="preprocessor">#endif</span>
<a name="l01124"></a>01124 <span class="preprocessor"></span>}
<a name="l01125"></a>01125 
<a name="l01126"></a><a class="code" href="classKWin_1_1WindowInfo.html#a223d924d1dde3d13f013dc1c2e88f9ed">01126</a> <a class="codeRef" href="qcstring.html">QCString</a> <a class="code" href="classKWin_1_1WindowInfo.html#a223d924d1dde3d13f013dc1c2e88f9ed" title="Returns the name component of the window class for the window (i.e.">KWin::WindowInfo::windowClassName</a>()<span class="keyword"> const</span>
<a name="l01127"></a>01127 <span class="keyword"></span>{
<a name="l01128"></a>01128 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01129"></a>01129 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS2 ] &amp; <a class="code" href="classNET.html#a851d15d9aa748b5f76e44b1e2d7c79b0a63ed6db95094cf0dd4346f259d5b4eb5">NET::WM2WindowClass</a> ) == 0, 176 )
<a name="l01130"></a>01130         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WM2WindowClass to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l01131"></a>01131     <span class="keywordflow">return</span> d-&gt;info-&gt;windowClassName();
<a name="l01132"></a>01132 <span class="preprocessor">#else</span>
<a name="l01133"></a>01133 <span class="preprocessor"></span>    <span class="keywordflow">return</span> 0;
<a name="l01134"></a>01134 <span class="preprocessor">#endif</span>
<a name="l01135"></a>01135 <span class="preprocessor"></span>}
<a name="l01136"></a>01136 
<a name="l01137"></a><a class="code" href="classKWin_1_1WindowInfo.html#a8cf71c2cd68d3f8e74341e19dbf617e1">01137</a> <a class="codeRef" href="qcstring.html">QCString</a> <a class="code" href="classKWin_1_1WindowInfo.html#a8cf71c2cd68d3f8e74341e19dbf617e1" title="Returns the window role for the window (i.e.">KWin::WindowInfo::windowRole</a>()<span class="keyword"> const</span>
<a name="l01138"></a>01138 <span class="keyword"></span>{
<a name="l01139"></a>01139 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01140"></a>01140 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS2 ] &amp; <a class="code" href="classNET.html#a851d15d9aa748b5f76e44b1e2d7c79b0a8bd2013dd264365c2af43ac2dd6c5531">NET::WM2WindowRole</a> ) == 0, 176 )
<a name="l01141"></a>01141         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WM2WindowRole to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l01142"></a>01142     <span class="keywordflow">return</span> d-&gt;info-&gt;windowRole();
<a name="l01143"></a>01143 <span class="preprocessor">#else</span>
<a name="l01144"></a>01144 <span class="preprocessor"></span>    <span class="keywordflow">return</span> 0;
<a name="l01145"></a>01145 <span class="preprocessor">#endif</span>
<a name="l01146"></a>01146 <span class="preprocessor"></span>}
<a name="l01147"></a>01147 
<a name="l01148"></a><a class="code" href="classKWin_1_1WindowInfo.html#abc23bf19ef2d73717ba52b6a91186ec6">01148</a> <a class="codeRef" href="qcstring.html">QCString</a> <a class="code" href="classKWin_1_1WindowInfo.html#abc23bf19ef2d73717ba52b6a91186ec6" title="Returns the client machine for the window (i.e.">KWin::WindowInfo::clientMachine</a>()<span class="keyword"> const</span>
<a name="l01149"></a>01149 <span class="keyword"></span>{
<a name="l01150"></a>01150 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01151"></a>01151 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS2 ] &amp; <a class="code" href="classNET.html#a851d15d9aa748b5f76e44b1e2d7c79b0ae15760c1ebce0f8d92ec041a2cc67d50">NET::WM2ClientMachine</a> ) == 0, 176 )
<a name="l01152"></a>01152         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WM2ClientMachine to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l01153"></a>01153     <span class="keywordflow">return</span> d-&gt;info-&gt;clientMachine();
<a name="l01154"></a>01154 <span class="preprocessor">#else</span>
<a name="l01155"></a>01155 <span class="preprocessor"></span>    <span class="keywordflow">return</span> 0;
<a name="l01156"></a>01156 <span class="preprocessor">#endif</span>
<a name="l01157"></a>01157 <span class="preprocessor"></span>}
<a name="l01158"></a>01158 
<a name="l01159"></a><a class="code" href="classKWin_1_1WindowInfo.html#ad8f8123547b8a0c2b414d111e905a8b7">01159</a> <span class="keywordtype">bool</span> <a class="code" href="classKWin_1_1WindowInfo.html#ad8f8123547b8a0c2b414d111e905a8b7" title="Returns true if the given action is currently supported for the window by the window manager...">KWin::WindowInfo::actionSupported</a>( <a class="code" href="classNET.html#afa9281c19ea7e280327b01b2c6236928" title="Actions that can be done with a window (_NET_WM_ALLOWED_ACTIONS).">NET::Action</a> action )<span class="keyword"> const</span>
<a name="l01160"></a>01160 <span class="keyword"></span>{
<a name="l01161"></a>01161 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01162"></a>01162 <span class="preprocessor"></span>    kdWarning(( d-&gt;info-&gt;passedProperties()[ NETWinInfo::PROTOCOLS2 ] &amp; NET::WM2AllowedActions ) == 0, 176 )
<a name="l01163"></a>01163         &lt;&lt; <span class="stringliteral">&quot;Pass NET::WM2AllowedActions to KWin::windowInfo()&quot;</span> &lt;&lt; <a class="code" href="group__kdebug.html#ga313d520ed8f8f6b46eeef22cfb3b082a" title="Does nothing.">endl</a>;
<a name="l01164"></a>01164     <span class="keywordflow">if</span>( <a class="code" href="classKWin.html#ae45b9b0100ed0dd1c88e323ab92d5d2e" title="Returns true if the WM announces which actions it allows for windows.">allowedActionsSupported</a>())
<a name="l01165"></a>01165         <span class="keywordflow">return</span> d-&gt;info-&gt;allowedActions() &amp; action;
<a name="l01166"></a>01166     <span class="keywordflow">else</span>
<a name="l01167"></a>01167 <span class="preprocessor">#endif</span>
<a name="l01168"></a>01168 <span class="preprocessor"></span>        <span class="keywordflow">return</span> <span class="keyword">true</span>; <span class="comment">// no idea if it&#39;s supported or not -&gt; pretend it is</span>
<a name="l01169"></a>01169 }
<a name="l01170"></a>01170 
<a name="l01171"></a>01171 <span class="comment">// see NETWM spec section 7.6</span>
<a name="l01172"></a><a class="code" href="classKWin_1_1WindowInfo.html#ac24d3a2470212948dd81af899642156a">01172</a> <span class="keywordtype">bool</span> <a class="code" href="classKWin_1_1WindowInfo.html#ac24d3a2470212948dd81af899642156a" title="Returns true if the window is minimized.">KWin::WindowInfo::isMinimized</a>()<span class="keyword"> const</span>
<a name="l01173"></a>01173 <span class="keyword"></span>{
<a name="l01174"></a>01174 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01175"></a>01175 <span class="preprocessor"></span>    <span class="keywordflow">if</span>( mappingState() != NET::Iconic )
<a name="l01176"></a>01176         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l01177"></a>01177     <span class="comment">// NETWM 1.2 compliant WM - uses NET::Hidden for minimized windows</span>
<a name="l01178"></a>01178     <span class="keywordflow">if</span>(( state() &amp; <a class="code" href="classNET.html#a08dce7f5ea8a2a6d1d38aea3498f00eea9da0cfee6ad77ce1cb2d266543244eb6">NET::Hidden</a> ) != 0
<a name="l01179"></a>01179     &amp;&amp; ( state() &amp; NET::Shaded ) == 0 ) <span class="comment">// shaded may have NET::Hidden too</span>
<a name="l01180"></a>01180         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l01181"></a>01181     <span class="comment">// older WMs use WithdrawnState for other virtual desktops</span>
<a name="l01182"></a>01182     <span class="comment">// and IconicState only for minimized</span>
<a name="l01183"></a>01183     <span class="keywordflow">return</span> icccmCompliantMappingState() ? <span class="keyword">false</span> : <span class="keyword">true</span>;
<a name="l01184"></a>01184 <span class="preprocessor">#else</span>
<a name="l01185"></a>01185 <span class="preprocessor"></span>    <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l01186"></a>01186 <span class="preprocessor">#endif</span>
<a name="l01187"></a>01187 <span class="preprocessor"></span>}
<a name="l01188"></a>01188 
<a name="l01189"></a><a class="code" href="structKWin_1_1Info.html#ab577c437444b9dca11f0cb391f0964c9">01189</a> <span class="keywordtype">bool</span> <a class="code" href="structKWin_1_1Info.html#ab577c437444b9dca11f0cb391f0964c9" title="The mapping state.">KWin::Info::isMinimized</a>()<span class="keyword"> const</span>
<a name="l01190"></a>01190 <span class="keyword"></span>{
<a name="l01191"></a>01191 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01192"></a>01192 <span class="preprocessor"></span>    <span class="keywordflow">if</span>( mappingState != NET::Iconic )
<a name="l01193"></a>01193         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l01194"></a>01194     <span class="comment">// NETWM 1.2 compliant WM - uses NET::Hidden for minimized windows</span>
<a name="l01195"></a>01195     <span class="keywordflow">if</span>(( state &amp; <a class="code" href="classNET.html#a08dce7f5ea8a2a6d1d38aea3498f00eea9da0cfee6ad77ce1cb2d266543244eb6">NET::Hidden</a> ) != 0
<a name="l01196"></a>01196     &amp;&amp; ( state &amp; NET::Shaded ) == 0 ) <span class="comment">// shaded may have NET::Hidden too</span>
<a name="l01197"></a>01197         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l01198"></a>01198     <span class="comment">// older WMs use WithdrawnState for other virtual desktops</span>
<a name="l01199"></a>01199     <span class="comment">// and IconicState only for minimized</span>
<a name="l01200"></a>01200     <span class="keywordflow">return</span> icccmCompliantMappingState() ? <span class="keyword">false</span> : <span class="keyword">true</span>;
<a name="l01201"></a>01201 <span class="preprocessor">#else</span>
<a name="l01202"></a>01202 <span class="preprocessor"></span>    <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l01203"></a>01203 <span class="preprocessor">#endif</span>
<a name="l01204"></a>01204 <span class="preprocessor"></span>}
<a name="l01205"></a>01205 
<a name="l01206"></a>01206 <span class="keywordtype">bool</span> KWin::Info::isIconified()<span class="keyword"> const</span>
<a name="l01207"></a>01207 <span class="keyword"></span>{
<a name="l01208"></a>01208     <span class="keywordflow">return</span> isMinimized();
<a name="l01209"></a>01209 }
<a name="l01210"></a>01210 
<a name="l01211"></a>01211 <span class="keywordtype">bool</span> KWin::icccmCompliantMappingState()
<a name="l01212"></a>01212 {
<a name="l01213"></a>01213 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01214"></a>01214 <span class="preprocessor"></span>    <span class="keyword">static</span> <span class="keyword">enum</span> { noidea, yes, no } wm_is_1_2_compliant = noidea;
<a name="l01215"></a>01215     <span class="keywordflow">if</span>( wm_is_1_2_compliant == noidea ) {
<a name="l01216"></a>01216         NETRootInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), NET::Supported );
<a name="l01217"></a>01217         wm_is_1_2_compliant = <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>.isSupported( <a class="code" href="classNET.html#a08dce7f5ea8a2a6d1d38aea3498f00eea9da0cfee6ad77ce1cb2d266543244eb6">NET::Hidden</a> ) ? yes : no;
<a name="l01218"></a>01218     }
<a name="l01219"></a>01219     <span class="keywordflow">return</span> wm_is_1_2_compliant == yes;
<a name="l01220"></a>01220 <span class="preprocessor">#else</span>
<a name="l01221"></a>01221 <span class="preprocessor"></span>    <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l01222"></a>01222 <span class="preprocessor">#endif</span>
<a name="l01223"></a>01223 <span class="preprocessor"></span>}
<a name="l01224"></a>01224 
<a name="l01225"></a><a class="code" href="classKWin.html#ae45b9b0100ed0dd1c88e323ab92d5d2e">01225</a> <span class="keywordtype">bool</span> <a class="code" href="classKWin.html#ae45b9b0100ed0dd1c88e323ab92d5d2e" title="Returns true if the WM announces which actions it allows for windows.">KWin::allowedActionsSupported</a>()
<a name="l01226"></a>01226 {
<a name="l01227"></a>01227 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01228"></a>01228 <span class="preprocessor"></span>    <span class="keyword">static</span> <span class="keyword">enum</span> { noidea, yes, no } wm_supports_allowed_actions = noidea;
<a name="l01229"></a>01229     <span class="keywordflow">if</span>( wm_supports_allowed_actions == noidea ) {
<a name="l01230"></a>01230         NETRootInfo <a class="code" href="classKWin.html#aeea98b91da169d182cb2941a5caaee83">info</a>( qt_xdisplay(), NET::Supported );
<a name="l01231"></a>01231         wm_supports_allowed_actions = info.isSupported( NET::WM2AllowedActions ) ? yes : no;
<a name="l01232"></a>01232     }
<a name="l01233"></a>01233     <span class="keywordflow">return</span> wm_supports_allowed_actions == yes;
<a name="l01234"></a>01234 <span class="preprocessor">#else</span>
<a name="l01235"></a>01235 <span class="preprocessor"></span>    <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l01236"></a>01236 <span class="preprocessor">#endif</span>
<a name="l01237"></a>01237 <span class="preprocessor"></span>}
<a name="l01238"></a>01238 
<a name="l01239"></a><a class="code" href="classKWin.html#a121362368f1da8365bff97e16a1a4428">01239</a> <a class="codeRef" href="qstring.html">QString</a> <a class="code" href="classKWin.html#a121362368f1da8365bff97e16a1a4428" title="Function that reads and returns the contents of the given text property (WM_NAME, WM_ICON_NAME...">KWin::readNameProperty</a>( WId win, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> atom )
<a name="l01240"></a>01240 {
<a name="l01241"></a>01241 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01242"></a>01242 <span class="preprocessor"></span>    XTextProperty tp;
<a name="l01243"></a>01243     <span class="keywordtype">char</span> **text = NULL;
<a name="l01244"></a>01244     <span class="keywordtype">int</span> count;
<a name="l01245"></a>01245 <span class="preprocessor">#endif</span>
<a name="l01246"></a>01246 <span class="preprocessor"></span>    <a class="codeRef" href="qstring.html">QString</a> result;
<a name="l01247"></a>01247 <span class="preprocessor">#ifdef Q_WS_X11</span>
<a name="l01248"></a>01248 <span class="preprocessor"></span>    <span class="keywordflow">if</span> ( XGetTextProperty( qt_xdisplay(), win, &amp;tp, atom ) != 0 &amp;&amp; tp.value != NULL ) 
<a name="l01249"></a>01249     {
<a name="l01250"></a>01250         <span class="keywordflow">if</span> (!kwin_UTF8_STRING)
<a name="l01251"></a>01251           kwin_UTF8_STRING = XInternAtom( qt_xdisplay(), <span class="stringliteral">&quot;UTF8_STRING&quot;</span>, False);
<a name="l01252"></a>01252 
<a name="l01253"></a>01253         <span class="keywordflow">if</span> ( tp.encoding == kwin_UTF8_STRING ) {
<a name="l01254"></a>01254             result = <a class="codeRef" href="qstring.html#fromUtf8">QString::fromUtf8</a> ( (<span class="keyword">const</span> <span class="keywordtype">char</span>*) tp.value );
<a name="l01255"></a>01255         }
<a name="l01256"></a>01256         <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( XmbTextPropertyToTextList( qt_xdisplay(), &amp;tp, &amp;text, &amp;count) == Success &amp;&amp;
<a name="l01257"></a>01257                   text != NULL &amp;&amp; count &gt; 0 ) {
<a name="l01258"></a>01258             result = <a class="codeRef" href="qstring.html#fromLocal8Bit">QString::fromLocal8Bit</a>( text[0] );
<a name="l01259"></a>01259         } <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( tp.encoding == XA_STRING )
<a name="l01260"></a>01260             result = <a class="codeRef" href="qstring.html#fromLocal8Bit">QString::fromLocal8Bit</a>( (<span class="keyword">const</span> <span class="keywordtype">char</span>*) tp.value );
<a name="l01261"></a>01261         <span class="keywordflow">if</span>( text != NULL )
<a name="l01262"></a>01262             XFreeStringList( text );
<a name="l01263"></a>01263         XFree( tp.value );
<a name="l01264"></a>01264     }
<a name="l01265"></a>01265 <span class="preprocessor">#endif</span>
<a name="l01266"></a>01266 <span class="preprocessor"></span>    <span class="keywordflow">return</span> result;
<a name="l01267"></a>01267 }
<a name="l01268"></a>01268 
<a name="l01269"></a>01269 <span class="comment">//#endif</span>
</pre></div></div>
</div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>kdecore</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="modules.html">Modules</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classKAboutData.html">kaboutdata</option>,  <option value="classKAboutPerson.html">kaboutperson</option>,  <option value="classKAboutTranslator.html">kabouttranslator</option>,  <option value="classKAccel.html">kaccel</option>,  <option value="classKAcceleratorManager.html">kacceleratormanager</option>,  <option value="classKAccelManagerAlgorithm.html">kaccelmanageralgorithm</option>,  <option value="classKAccelShortcutList.html">kaccelshortcutlist</option>,  <option value="classKAccelString.html">kaccelstring</option>,  <option value="classKAddressInfo.html">kaddressinfo</option>,  <option value="classKAppDCOPInterface.html">kappdcopinterface</option>,  <option value="classKApplication.html">kapplication</option>,  <option value="classKAsyncIO.html">kasyncio</option>,  <option value="classKAudioPlayer.html">kaudioplayer</option>,  <option value="classKBufferedIO.html">kbufferedio</option>,  <option value="classKCalendarSystem.html">kcalendarsystem</option>,  <option value="classKCalendarSystemFactory.html">kcalendarsystemfactory</option>,  <option value="classKCalendarSystemJalali.html">kcalendarsystemjalali</option>,  <option value="classKCatalogue.html">kcatalogue</option>,  <option value="classKCharMacroExpander.html">kcharmacroexpander</option>,  <option value="classKCharsets.html">kcharsets</option>,  <option value="classKClipboardSynchronizer.html">kclipboardsynchronizer</option>,  <option value="classKCmdLineArgs.html">kcmdlineargs</option>,  <option value="classKCodecs.html">kcodecs</option>,  <option value="classKCompletion.html">kcompletion</option>,  <option value="classKCompletionBase.html">kcompletionbase</option>,  <option value="classKCompletionMatches.html">kcompletionmatches</option>,  <option value="classKCompTreeNode.html">kcomptreenode</option>,  <option value="classKConfig.html">kconfig</option>,  <option value="classKConfigBackEnd.html">kconfigbackend</option>,  <option value="classKConfigBase.html">kconfigbase</option>,  <option value="classKConfigDialogManager.html">kconfigdialogmanager</option>,  <option value="classKConfigGroup.html">kconfiggroup</option>,  <option value="classKConfigGroupSaver.html">kconfiggroupsaver</option>,  <option value="classKConfigINIBackEnd.html">kconfiginibackend</option>,  <option value="classKConfigSkeleton.html">kconfigskeleton</option>,  <option value="classKConfigSkeleton_1_1ItemBool.html">kconfigskeleton::itembool</option>,  <option value="classKConfigSkeleton_1_1ItemColor.html">kconfigskeleton::itemcolor</option>,  <option value="classKConfigSkeleton_1_1ItemDateTime.html">kconfigskeleton::itemdatetime</option>,  <option value="classKConfigSkeleton_1_1ItemDouble.html">kconfigskeleton::itemdouble</option>,  <option value="classKConfigSkeleton_1_1ItemEnum.html">kconfigskeleton::itemenum</option>,  <option value="classKConfigSkeleton_1_1ItemFont.html">kconfigskeleton::itemfont</option>,  <option value="classKConfigSkeleton_1_1ItemInt.html">kconfigskeleton::itemint</option>,  <option value="classKConfigSkeleton_1_1ItemInt64.html">kconfigskeleton::itemint64</option>,  <option value="classKConfigSkeleton_1_1ItemIntList.html">kconfigskeleton::itemintlist</option>,  <option value="classKConfigSkeleton_1_1ItemLong.html">kconfigskeleton::itemlong</option>,  <option value="classKConfigSkeleton_1_1ItemPassword.html">kconfigskeleton::itempassword</option>,  <option value="classKConfigSkeleton_1_1ItemPath.html">kconfigskeleton::itempath</option>,  <option value="classKConfigSkeleton_1_1ItemPathList.html">kconfigskeleton::itempathlist</option>,  <option value="classKConfigSkeleton_1_1ItemPoint.html">kconfigskeleton::itempoint</option>,  <option value="classKConfigSkeleton_1_1ItemProperty.html">kconfigskeleton::itemproperty</option>,  <option value="classKConfigSkeleton_1_1ItemRect.html">kconfigskeleton::itemrect</option>,  <option value="classKConfigSkeleton_1_1ItemSize.html">kconfigskeleton::itemsize</option>,  <option value="classKConfigSkeleton_1_1ItemString.html">kconfigskeleton::itemstring</option>,  <option value="classKConfigSkeleton_1_1ItemStringList.html">kconfigskeleton::itemstringlist</option>,  <option value="classKConfigSkeleton_1_1ItemUInt.html">kconfigskeleton::itemuint</option>,  <option value="classKConfigSkeleton_1_1ItemUInt64.html">kconfigskeleton::itemuint64</option>,  <option value="classKConfigSkeleton_1_1ItemULong.html">kconfigskeleton::itemulong</option>,  <option value="classKConfigSkeletonItem.html">kconfigskeletonitem</option>,  <option value="classKCrash.html">kcrash</option>,  <option value="classKDCOPPropertyProxy.html">kdcoppropertyproxy</option>,  <option value="classKDebugDCOPIface.html">kdebugdcopiface</option>,  <option value="classKDesktopFile.html">kdesktopfile</option>,  <option value="classKExtendedSocket.html">kextendedsocket</option>,  <option value="classKGenericFactory.html">kgenericfactory</option>,  <option value="classKGenericFactory_3_01KTypeList_3_01Product_00_01ProductListTail_01_4_00_01KTypeList_3_01Pare1ed8d1e5a9847c99711cad3b12c7e96c.html">kgenericfactory< ktypelist< product, productlisttail >, ktypelist< pare1ed8d1e5a9847c99711cad3b12c7e96c</option>,  <option value="classKGenericFactory_3_01KTypeList_3_01Product_00_01ProductListTail_01_4_00_01KTypeList_3_01Paref6a00f76851e0daa2cb662bb8a41fc7f.html">kgenericfactory< ktypelist< product, productlisttail >, ktypelist< paref6a00f76851e0daa2cb662bb8a41fc7f</option>,  <option value="classKGenericFactory_3_01KTypeList_3_01Product_00_01ProductListTail_01_4_00_01QObject_01_4.html">kgenericfactory< ktypelist< product, productlisttail >, qobject ></option>,  <option value="classKGlobal.html">kglobal</option>,  <option value="classKGlobalAccel.html">kglobalaccel</option>,  <option value="classKGlobalSettings.html">kglobalsettings</option>,  <option value="classKIcon.html">kicon</option>,  <option value="classKIconEffect.html">kiconeffect</option>,  <option value="classKIconLoader.html">kiconloader</option>,  <option value="classKIconTheme.html">kicontheme</option>,  <option value="classKInetSocketAddress.html">kinetsocketaddress</option>,  <option value="classKInstance.html">kinstance</option>,  <option value="classKIOBufferBase.html">kiobufferbase</option>,  <option value="classKIPC.html">kipc</option>,  <option value="classKKey.html">kkey</option>,  <option value="classKKeyNative.html">kkeynative</option>,  <option value="classKKeySequence.html">kkeysequence</option>,  <option value="classKLibFactory.html">klibfactory</option>,  <option value="classKLibLoader.html">klibloader</option>,  <option value="classKLibrary.html">klibrary</option>,  <option value="classKLocale.html">klocale</option>,  <option value="classKLockFile.html">klockfile</option>,  <option value="classKMacroExpanderBase.html">kmacroexpanderbase</option>,  <option value="classKMD4.html">kmd4</option>,  <option value="classKMD5.html">kmd5</option>,  <option value="classKMimeSourceFactory.html">kmimesourcefactory</option>,  <option value="classKMountPoint.html">kmountpoint</option>,  <option value="classKMultipleDrag.html">kmultipledrag</option>,  <option value="classKNetwork_1_1KActiveSocketBase.html">knetwork::kactivesocketbase</option>,  <option value="classKNetwork_1_1KBufferedSocket.html">knetwork::kbufferedsocket</option>,  <option value="classKNetwork_1_1KClientSocketBase.html">knetwork::kclientsocketbase</option>,  <option value="classKNetwork_1_1KDatagramPacket.html">knetwork::kdatagrampacket</option>,  <option value="classKNetwork_1_1KDatagramSocket.html">knetwork::kdatagramsocket</option>,  <option value="classKNetwork_1_1KHttpProxySocketDevice.html">knetwork::khttpproxysocketdevice</option>,  <option value="classKNetwork_1_1KInetSocketAddress.html">knetwork::kinetsocketaddress</option>,  <option value="classKNetwork_1_1KIpAddress.html">knetwork::kipaddress</option>,  <option value="classKNetwork_1_1KMulticastSocket.html">knetwork::kmulticastsocket</option>,  <option value="classKNetwork_1_1KMulticastSocketImpl.html">knetwork::kmulticastsocketimpl</option>,  <option value="classKNetwork_1_1KNetworkInterface.html">knetwork::knetworkinterface</option>,  <option value="classKNetwork_1_1KPassiveSocketBase.html">knetwork::kpassivesocketbase</option>,  <option value="classKNetwork_1_1KResolver.html">knetwork::kresolver</option>,  <option value="classKNetwork_1_1KResolverEntry.html">knetwork::kresolverentry</option>,  <option value="classKNetwork_1_1KResolverResults.html">knetwork::kresolverresults</option>,  <option value="classKNetwork_1_1KResolverWorkerBase_1_1ResolverLocker.html">knetwork::kresolverworkerbase::resolverlocker</option>,  <option value="classKNetwork_1_1KReverseResolver.html">knetwork::kreverseresolver</option>,  <option value="classKNetwork_1_1KServerSocket.html">knetwork::kserversocket</option>,  <option value="classKNetwork_1_1KSocketAddress.html">knetwork::ksocketaddress</option>,  <option value="classKNetwork_1_1KSocketBase.html">knetwork::ksocketbase</option>,  <option value="classKNetwork_1_1KSocketDevice.html">knetwork::ksocketdevice</option>,  <option value="classKNetwork_1_1KSocketDeviceFactory.html">knetwork::ksocketdevicefactory</option>,  <option value="classKNetwork_1_1KSocksSocketDevice.html">knetwork::ksockssocketdevice</option>,  <option value="classKNetwork_1_1KStreamSocket.html">knetwork::kstreamsocket</option>,  <option value="classKNetwork_1_1KUnixSocketAddress.html">knetwork::kunixsocketaddress</option>,  <option value="classKNotifyClient_1_1Instance.html">knotifyclient::instance</option>,  <option value="classKPalette.html">kpalette</option>,  <option value="classKPixmapProvider.html">kpixmapprovider</option>,  <option value="classKPopupAccelManager.html">kpopupaccelmanager</option>,  <option value="classKProcess.html">kprocess</option>,  <option value="classKProcessController.html">kprocesscontroller</option>,  <option value="classKProcIO.html">kprocio</option>,  <option value="classKProtocolInfoFactory.html">kprotocolinfofactory</option>,  <option value="classKPty.html">kpty</option>,  <option value="classKRandomSequence.html">krandomsequence</option>,  <option value="classKRegExp.html">kregexp</option>,  <option value="classKRegExpPrivate.html">kregexpprivate</option>,  <option value="classKRFCDate.html">krfcdate</option>,  <option value="classKRootProp.html">krootprop</option>,  <option value="classKSaveFile.html">ksavefile</option>,  <option value="classKServerSocket.html">kserversocket</option>,  <option value="classKSessionManaged.html">ksessionmanaged</option>,  <option value="classKShared.html">kshared</option>,  <option value="classKSharedConfig.html">ksharedconfig</option>,  <option value="classKSharedPtr.html">ksharedptr</option>,  <option value="classKShellProcess.html">kshellprocess</option>,  <option value="classKShortcut.html">kshortcut</option>,  <option value="classKShortcutList.html">kshortcutlist</option>,  <option value="classKSimpleConfig.html">ksimpleconfig</option>,  <option value="classKSocket.html">ksocket</option>,  <option value="classKSocketAddress.html">ksocketaddress</option>,  <option value="classKSocks.html">ksocks</option>,  <option value="classKSortableItem.html">ksortableitem</option>,  <option value="classKSortableValueList.html">ksortablevaluelist</option>,  <option value="classKStandardDirs.html">kstandarddirs</option>,  <option value="classKStaticDeleter.html">kstaticdeleter</option>,  <option value="classKStaticDeleterBase.html">kstaticdeleterbase</option>,  <option value="classKStdAccel_1_1ShortcutList.html">kstdaccel::shortcutlist</option>,  <option value="classKStringHandler.html">kstringhandler</option>,  <option value="classKSycocaEntry.html">ksycocaentry</option>,  <option value="classKSycocaFactoryList.html">ksycocafactorylist</option>,  <option value="classKTempDir.html">ktempdir</option>,  <option value="classKTempFile.html">ktempfile</option>,  <option value="classKTimezone.html">ktimezone</option>,  <option value="classKTimezoneDetails.html">ktimezonedetails</option>,  <option value="classKTimezones.html">ktimezones</option>,  <option value="classKTimezoneSource.html">ktimezonesource</option>,  <option value="classKUniqueApplication.html">kuniqueapplication</option>,  <option value="classKUnixSocketAddress.html">kunixsocketaddress</option>,  <option value="classKURL.html">kurl</option>,  <option value="classKURL_1_1List.html">kurl::list</option>,  <option value="classKURLDrag.html">kurldrag</option>,  <option value="classKUser.html">kuser</option>,  <option value="classKUserGroup.html">kusergroup</option>,  <option value="classKVMAllocator.html">kvmallocator</option>,  <option value="classKWin.html">kwin</option>,  <option value="classKWin_1_1WindowInfo.html">kwin::windowinfo</option>,  <option value="classKWinModule.html">kwinmodule</option>,  <option value="classKWordMacroExpander.html">kwordmacroexpander</option>,  <option value="classKXErrorHandler.html">kxerrorhandler</option>,  <option value="classKZoneAllocator.html">kzoneallocator</option>,  <option value="classNET.html">net</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li>&nbsp;&nbsp;<a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li>&nbsp;&nbsp;<a href="../../kio/kfile/html/index.html">kfile</a></li><li>&nbsp;&nbsp;<a href="../../kio/kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/kioexec/html/index.html">kioexec</a></li><li>&nbsp;&nbsp;<a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li>&nbsp;&nbsp;<a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li>&nbsp;&nbsp;<a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>