1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479
|
<?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" xml:lang="en">
<head>
<title>NET</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" type="text/css" href="../common/doxygen.css" />
<link rel="stylesheet" media="screen" type="text/css" title="KDE Colors" href="../common/kde.css" />
</head>
<body>
<div id="container">
<div id="header">
<div id="header_top">
<div>
<div>
<img alt ="" src="../common/top-kde.jpg"/>
KDE 4.9 PyKDE API Reference
</div>
</div>
</div>
<div id="header_bottom">
<div id="location">
<ul>
<li>KDE's Python API</li>
</ul>
</div>
<div id="menu">
<ul>
<li><a href="../modules.html">Overview</a></li>
<li><a href="http://techbase.kde.org/Development/Languages/Python">PyKDE Home</a></li>
<li><a href="http://kde.org/family/">Sitemap</a></li>
<li><a href="http://kde.org/contact/">Contact Us</a></li>
</ul>
</div>
</div>
</div>
<div id="body_wrapper">
<div id="body">
<div id="right">
<div class="content">
<div id="main">
<div class="clearer"> </div>
<h1>NET Class Reference</h1>
<code>from PyKDE4.kdeui import *</code>
<p>
Subclasses: <a href="../kdeui/KWindowSystem.html">KWindowSystem</a>, <a href="../kdeui/NETRootInfo.html">NETRootInfo</a>, <a href="../kdeui/NETWinInfo.html">NETWinInfo</a><br />
<h2>Detailed Description</h2>
<p>Base namespace class.
</p>
<p>
The NET API is an implementation of the NET Window Manager Specification.
</p>
<p>
This class is the base class for the NETRootInfo and NETWinInfo classes, which
are used to retrieve and modify the properties of windows. To keep
the namespace relatively clean, all enums are defined here.
</p>
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd> http://www.freedesktop.org/standards/wm-spec/
</dd></dl>
</p>
<table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#obj401725132"><anonymous></a> </td><td class="memItemRight" valign="bottom">{ OnAllDesktops }</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#Action">Action</a> </td><td class="memItemRight" valign="bottom">{ ActionMove, ActionResize, ActionMinimize, ActionShade, ActionStick, ActionMaxVert, ActionMaxHoriz, ActionMax, ActionFullScreen, ActionChangeDesktop, ActionClose }</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#DesktopLayoutCorner">DesktopLayoutCorner</a> </td><td class="memItemRight" valign="bottom">{ DesktopLayoutCornerTopLeft, DesktopLayoutCornerTopRight, DesktopLayoutCornerBottomLeft, DesktopLayoutCornerBottomRight }</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#Direction">Direction</a> </td><td class="memItemRight" valign="bottom">{ TopLeft, Top, TopRight, Right, BottomRight, Bottom, BottomLeft, Left, Move, KeyboardSize, KeyboardMove, MoveResizeCancel }</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#MappingState">MappingState</a> </td><td class="memItemRight" valign="bottom">{ Visible, Withdrawn, Iconic }</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#Orientation">Orientation</a> </td><td class="memItemRight" valign="bottom">{ OrientationHorizontal, OrientationVertical }</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#Property">Property</a> </td><td class="memItemRight" valign="bottom">{ Supported, ClientList, ClientListStacking, NumberOfDesktops, DesktopGeometry, DesktopViewport, CurrentDesktop, DesktopNames, ActiveWindow, WorkArea, SupportingWMCheck, VirtualRoots, CloseWindow, WMMoveResize, WMName, WMVisibleName, WMDesktop, WMWindowType, WMState, WMStrut, WMIconGeometry, WMIcon, WMPid, WMHandledIcons, WMPing, XAWMState, WMFrameExtents, WMIconName, WMVisibleIconName, WMGeometry }</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#Property2">Property2</a> </td><td class="memItemRight" valign="bottom">{ WM2UserTime, WM2StartupId, WM2TransientFor, WM2GroupLeader, WM2AllowedActions, WM2RestackWindow, WM2MoveResizeWindow, WM2ExtendedStrut, WM2TakeActivity, WM2KDETemporaryRules, WM2WindowClass, WM2WindowRole, WM2ClientMachine, WM2ShowingDesktop, WM2Opacity, WM2DesktopLayout, WM2FullPlacement, WM2FullscreenMonitors, WM2FrameOverlap, WM2Activities, WM2BlockCompositing, WM2KDEShadow }</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#RequestSource">RequestSource</a> </td><td class="memItemRight" valign="bottom">{ FromUnknown, FromApplication, FromTool }</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#Role">Role</a> </td><td class="memItemRight" valign="bottom">{ Client, WindowManager }</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#State">State</a> </td><td class="memItemRight" valign="bottom">{ Modal, Sticky, MaxVert, MaxHoriz, Max, Shaded, SkipTaskbar, KeepAbove, StaysOnTop, SkipPager, Hidden, FullScreen, KeepBelow, DemandsAttention }</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#WindowType">WindowType</a> </td><td class="memItemRight" valign="bottom">{ Unknown, Normal, Desktop, Dock, Toolbar, Menu, Dialog, Override, TopMenu, Utility, Splash, DropdownMenu, PopupMenu, Tooltip, Notification, ComboBox, DNDIcon }</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#WindowTypeMask">WindowTypeMask</a> </td><td class="memItemRight" valign="bottom">{ NormalMask, DesktopMask, DockMask, ToolbarMask, MenuMask, DialogMask, OverrideMask, TopMenuMask, UtilityMask, SplashMask, DropdownMenuMask, PopupMenuMask, TooltipMask, NotificationMask, ComboBoxMask, DNDIconMask, AllTypesMask }</td></tr>
<tr><td colspan="2"><br><h2>Static Methods</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#timestampCompare">timestampCompare</a> (long time1, long time2)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="#timestampDiff">timestampDiff</a> (long time1, long time2)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="#typeMatchesMask">typeMatchesMask</a> (<a href="../kdeui/NET.html#WindowType">NET.WindowType</a> type, long mask)</td></tr>
</table>
<hr><h2>Static Method Documentation</h2><a class="anchor" name="timestampCompare"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname">int timestampCompare</td>
<td>(</td>
<td class="paramtype">long </td>
<td class="paramname"><em>time1</em>, </td>
</tr>
<tr>
<td class="memname"></td>
<td></td>
<td class="paramtype">long </td>
<td class="paramname"><em>time2</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td>
<td></td>
<td width="100%"> </td>
</tr></table>
</div>
<div class="memdoc"><p>Compares two X timestamps, taking into account wrapping and 64bit architectures.
Return value is like with strcmp(), 0 for equal, -1 for time1 < time2, 1 for time1 > time2.
<dl class="deprecated" compact><dt><b>Deprecated:</b></dt><dd> Moved to KXUtils namespace.
</dd></dl>
</p></div></div><a class="anchor" name="timestampDiff"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname">int timestampDiff</td>
<td>(</td>
<td class="paramtype">long </td>
<td class="paramname"><em>time1</em>, </td>
</tr>
<tr>
<td class="memname"></td>
<td></td>
<td class="paramtype">long </td>
<td class="paramname"><em>time2</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td>
<td></td>
<td width="100%"> </td>
</tr></table>
</div>
<div class="memdoc"><p>Returns a difference of two X timestamps, time2 - time1, where time2 must be later than time1,
as returned by timestampCompare().
<dl class="deprecated" compact><dt><b>Deprecated:</b></dt><dd> Moved to KXUtils namespace.
</dd></dl>
</p></div></div><a class="anchor" name="typeMatchesMask"></a>
<div class="memitem">
<div class="memproto">
<table class="memname"><tr>
<td class="memname">bool typeMatchesMask</td>
<td>(</td>
<td class="paramtype"><a href="../kdeui/NET.html#WindowType">NET.WindowType</a> </td>
<td class="paramname"><em>type</em>, </td>
</tr>
<tr>
<td class="memname"></td>
<td></td>
<td class="paramtype">long </td>
<td class="paramname"><em>mask</em></td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td>
<td></td>
<td width="100%"> </td>
</tr></table>
</div>
<div class="memdoc"><p>Returns true if the given window type matches the mask given
using WindowTypeMask flags.
</p></div></div><hr><h2>Enumeration Documentation</h2><a class="anchor" name="obj401725132"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr><td class="memname">anonymous</td>
</tr>
</table>
</div>
<div class="memdoc"><p>Sentinel value to indicate that the client wishes to be visible on
all desktops.
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>OnAllDesktops</em> </td><td></table>
</dl>
</div></div><p><a class="anchor" name="Action"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr><td class="memname">Action</td>
</tr>
</table>
</div>
<div class="memdoc"><p>Actions that can be done with a window (_NET_WM_ALLOWED_ACTIONS).
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>ActionMove</em> = 1<<0</td><td><tr><td valign="top"><em>ActionResize</em> = 1<<1</td><td><tr><td valign="top"><em>ActionMinimize</em> = 1<<2</td><td><tr><td valign="top"><em>ActionShade</em> = 1<<3</td><td><tr><td valign="top"><em>ActionStick</em> = 1<<4</td><td><tr><td valign="top"><em>ActionMaxVert</em> = 1<<5</td><td><tr><td valign="top"><em>ActionMaxHoriz</em> = 1<<6</td><td><tr><td valign="top"><em>ActionMax</em> = ActionMaxVert|ActionMaxHoriz</td><td><tr><td valign="top"><em>ActionFullScreen</em> = 1<<7</td><td><tr><td valign="top"><em>ActionChangeDesktop</em> = 1<<8</td><td><tr><td valign="top"><em>ActionClose</em> = 1<<9</td><td></table>
</dl>
</div></div><p><a class="anchor" name="DesktopLayoutCorner"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr><td class="memname">DesktopLayoutCorner</td>
</tr>
</table>
</div>
<div class="memdoc"><p>Starting corner for desktop layout.
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>DesktopLayoutCornerTopLeft</em> = 0</td><td><tr><td valign="top"><em>DesktopLayoutCornerTopRight</em> = 1</td><td><tr><td valign="top"><em>DesktopLayoutCornerBottomLeft</em> = 2</td><td><tr><td valign="top"><em>DesktopLayoutCornerBottomRight</em> = 3</td><td></table>
</dl>
</div></div><p><a class="anchor" name="Direction"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr><td class="memname">Direction</td>
</tr>
</table>
</div>
<div class="memdoc"><p>Direction for WMMoveResize.
</p>
<p>
When a client wants the Window Manager to start a WMMoveResize, it should
specify one of:
</p>
<p>
<li> TopLeft </li>
<li> Top </li>
<li> TopRight </li>
<li> Right </li>
<li> BottomRight </li>
<li> Bottom </li>
<li> BottomLeft </li>
<li> Left </li>
<li> Move (for movement only) </li>
<li> KeyboardSize (resizing via keyboard) </li>
<li> KeyboardMove (movement via keyboard) </li>
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>TopLeft</em> = 0</td><td><tr><td valign="top"><em>Top</em> = 1</td><td><tr><td valign="top"><em>TopRight</em> = 2</td><td><tr><td valign="top"><em>Right</em> = 3</td><td><tr><td valign="top"><em>BottomRight</em> = 4</td><td><tr><td valign="top"><em>Bottom</em> = 5</td><td><tr><td valign="top"><em>BottomLeft</em> = 6</td><td><tr><td valign="top"><em>Left</em> = 7</td><td><tr><td valign="top"><em>Move</em> = 8</td><td><tr><td valign="top"><em>KeyboardSize</em> = 9</td><td><tr><td valign="top"><em>KeyboardMove</em> = 10</td><td><tr><td valign="top"><em>MoveResizeCancel</em> = 11</td><td></table>
</dl>
</div></div><p><a class="anchor" name="MappingState"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr><td class="memname">MappingState</td>
</tr>
</table>
</div>
<div class="memdoc"><p>Client window mapping state. The class automatically watches the mapping
state of the client windows, and uses the mapping state to determine how
to set/change different properties. Note that this is very lowlevel
and you most probably don't want to use this state.
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>Visible</em> = 1</td><td><tr><td valign="top"><em>Withdrawn</em> = 0</td><td><tr><td valign="top"><em>Iconic</em> = 3</td><td></table>
</dl>
</div></div><p><a class="anchor" name="Orientation"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr><td class="memname">Orientation</td>
</tr>
</table>
</div>
<div class="memdoc"><p>Orientation.
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>OrientationHorizontal</em> = 0</td><td><tr><td valign="top"><em>OrientationVertical</em> = 1</td><td></table>
</dl>
</div></div><p><a class="anchor" name="Property"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr><td class="memname">Property</td>
</tr>
</table>
</div>
<div class="memdoc"><p>Supported properties. Clients and Window Managers must define which
properties/protocols it wants to support.
</p>
<p>
Root/Desktop window properties and protocols:
</p>
<p>
<li> Supported </li>
<li> ClientList </li>
<li> ClientListStacking </li>
<li> NumberOfDesktops </li>
<li> DesktopGeometry </li>
<li> DesktopViewport </li>
<li> CurrentDesktop </li>
<li> DesktopNames </li>
<li> ActiveWindow </li>
<li> WorkArea </li>
<li> SupportingWMCheck </li>
<li> VirtualRoots </li>
<li> CloseWindow </li>
<li> WMMoveResize </li>
</p>
<p>
Client window properties and protocols:
</p>
<p>
<li> WMName </li>
<li> WMVisibleName </li>
<li> WMDesktop </li>
<li> WMWindowType </li>
<li> WMState </li>
<li> WMStrut (obsoleted by WM2ExtendedStrut) </li>
<li> WMGeometry </li>
<li> WMFrameExtents </li>
<li> WMIconGeometry </li>
<li> WMIcon </li>
<li> WMIconName </li>
<li> WMVisibleIconName </li>
<li> WMHandledIcons </li>
<li> WMPid </li>
<li> WMPing </li>
</p>
<p>
ICCCM properties (provided for convenience):
</p>
<p>
<li> XAWMState </li>
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>Supported</em> = 1<<0</td><td><tr><td valign="top"><em>ClientList</em> = 1<<1</td><td><tr><td valign="top"><em>ClientListStacking</em> = 1<<2</td><td><tr><td valign="top"><em>NumberOfDesktops</em> = 1<<3</td><td><tr><td valign="top"><em>DesktopGeometry</em> = 1<<4</td><td><tr><td valign="top"><em>DesktopViewport</em> = 1<<5</td><td><tr><td valign="top"><em>CurrentDesktop</em> = 1<<6</td><td><tr><td valign="top"><em>DesktopNames</em> = 1<<7</td><td><tr><td valign="top"><em>ActiveWindow</em> = 1<<8</td><td><tr><td valign="top"><em>WorkArea</em> = 1<<9</td><td><tr><td valign="top"><em>SupportingWMCheck</em> = 1<<10</td><td><tr><td valign="top"><em>VirtualRoots</em> = 1<<11</td><td><tr><td valign="top"><em>CloseWindow</em> = 1<<13</td><td><tr><td valign="top"><em>WMMoveResize</em> = 1<<14</td><td><tr><td valign="top"><em>WMName</em> = 1<<15</td><td><tr><td valign="top"><em>WMVisibleName</em> = 1<<16</td><td><tr><td valign="top"><em>WMDesktop</em> = 1<<17</td><td><tr><td valign="top"><em>WMWindowType</em> = 1<<18</td><td><tr><td valign="top"><em>WMState</em> = 1<<19</td><td><tr><td valign="top"><em>WMStrut</em> = 1<<20</td><td><tr><td valign="top"><em>WMIconGeometry</em> = 1<<21</td><td><tr><td valign="top"><em>WMIcon</em> = 1<<22</td><td><tr><td valign="top"><em>WMPid</em> = 1<<23</td><td><tr><td valign="top"><em>WMHandledIcons</em> = 1<<24</td><td><tr><td valign="top"><em>WMPing</em> = 1<<25</td><td><tr><td valign="top"><em>XAWMState</em> = 1<<27</td><td><tr><td valign="top"><em>WMFrameExtents</em> = 1<<28</td><td><tr><td valign="top"><em>WMIconName</em> = 1<<29</td><td><tr><td valign="top"><em>WMVisibleIconName</em> = 1<<30</td><td><tr><td valign="top"><em>WMGeometry</em> = 1<<31</td><td></table>
</dl>
</div></div><p><a class="anchor" name="Property2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr><td class="memname">Property2</td>
</tr>
</table>
</div>
<div class="memdoc"><p>Supported properties. This enum is an extension to NET.Property,
because them enum is limited only to 32 bits.
</p>
<p>
Client window properties and protocols:
</p>
<p>
<li> WM2UserTime </li>
<li> WM2StartupId </li>
<li> WM2TransientFor mainwindow for the window (WM_TRANSIENT_FOR) </li>
<li> WM2GroupLeader group leader (window_group in WM_HINTS) </li>
<li> WM2AllowedActions </li>
<li> WM2RestackWindow </li>
<li> WM2MoveResizeWindow </li>
<li> WM2ExtendedStrut </li>
<li> WM2TemporaryRules internal, for kstart </li>
<li> WM2WindowClass WM_CLASS </li>
<li> WM2WindowRole WM_WINDOW_ROLE </li>
<li> WM2ClientMachine WM_CLIENT_MACHINE </li>
<li> WM2ShowingDesktop </li>
<li> WM2Opacity _NET_WM_WINDOW_OPACITY </li>
<li> WM2DesktopLayout _NET_DESKTOP_LAYOUT </li>
<li> WM2FullPlacement _NET_WM_FULL_PLACEMENT </li>
<li> WM2FullscreenMonitors _NET_WM_FULLSCREEN_MONITORS </li>
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>WM2UserTime</em> = 1<<0</td><td><tr><td valign="top"><em>WM2StartupId</em> = 1<<1</td><td><tr><td valign="top"><em>WM2TransientFor</em> = 1<<2</td><td><tr><td valign="top"><em>WM2GroupLeader</em> = 1<<3</td><td><tr><td valign="top"><em>WM2AllowedActions</em> = 1<<4</td><td><tr><td valign="top"><em>WM2RestackWindow</em> = 1<<5</td><td><tr><td valign="top"><em>WM2MoveResizeWindow</em> = 1<<6</td><td><tr><td valign="top"><em>WM2ExtendedStrut</em> = 1<<7</td><td><tr><td valign="top"><em>WM2TakeActivity</em> = 1<<8</td><td><tr><td valign="top"><em>WM2KDETemporaryRules</em> = 1<<9</td><td><tr><td valign="top"><em>WM2WindowClass</em> = 1<<10</td><td><tr><td valign="top"><em>WM2WindowRole</em> = 1<<11</td><td><tr><td valign="top"><em>WM2ClientMachine</em> = 1<<12</td><td><tr><td valign="top"><em>WM2ShowingDesktop</em> = 1<<13</td><td><tr><td valign="top"><em>WM2Opacity</em> = 1<<14</td><td><tr><td valign="top"><em>WM2DesktopLayout</em> = 1<<15</td><td><tr><td valign="top"><em>WM2FullPlacement</em> = 1<<16</td><td><tr><td valign="top"><em>WM2FullscreenMonitors</em> = 1<<17</td><td><tr><td valign="top"><em>WM2FrameOverlap</em> = 1<<18</td><td><tr><td valign="top"><em>WM2Activities</em> = 1<<19</td><td><tr><td valign="top"><em>WM2BlockCompositing</em> = 1<<20</td><td><tr><td valign="top"><em>WM2KDEShadow</em> = 1<<21</td><td></table>
</dl>
</div></div><p><a class="anchor" name="RequestSource"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr><td class="memname">RequestSource</td>
</tr>
</table>
</div>
<div class="memdoc"><p>Source of the request.
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>FromUnknown</em> = 0</td><td><tr><td valign="top"><em>FromApplication</em> = 1</td><td><tr><td valign="top"><em>FromTool</em> = 2</td><td></table>
</dl>
</div></div><p><a class="anchor" name="Role"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr><td class="memname">Role</td>
</tr>
</table>
</div>
<div class="memdoc"><p>Application role. This is used internally to determine how several action
should be performed (if at all).
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>Client</em> </td><td><tr><td valign="top"><em>WindowManager</em> </td><td></table>
</dl>
</div></div><p><a class="anchor" name="State"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr><td class="memname">State</td>
</tr>
</table>
</div>
<div class="memdoc"><p>Window state.
</p>
<p>
To set the state of a window, you'll typically do something like:
<pre class="fragment">
KWindowSystem.setState( winId(), NET.SkipTaskbar | NET.SkipPager );
</pre>
</p>
<p>
for example to not show the window on the taskbar and desktop pager.
winId() is a function of QWidget()
</p>
<p>
Note that KeepAbove (StaysOnTop) and KeepBelow are meant as user preference and
applications should avoid setting these states themselves.
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>Modal</em> = 1<<0</td><td><tr><td valign="top"><em>Sticky</em> = 1<<1</td><td><tr><td valign="top"><em>MaxVert</em> = 1<<2</td><td><tr><td valign="top"><em>MaxHoriz</em> = 1<<3</td><td><tr><td valign="top"><em>Max</em> = MaxVert|MaxHoriz</td><td><tr><td valign="top"><em>Shaded</em> = 1<<4</td><td><tr><td valign="top"><em>SkipTaskbar</em> = 1<<5</td><td><tr><td valign="top"><em>KeepAbove</em> = 1<<6</td><td><tr><td valign="top"><em>StaysOnTop</em> = KeepAbove</td><td><tr><td valign="top"><em>SkipPager</em> = 1<<7</td><td><tr><td valign="top"><em>Hidden</em> = 1<<8</td><td><tr><td valign="top"><em>FullScreen</em> = 1<<9</td><td><tr><td valign="top"><em>KeepBelow</em> = 1<<10</td><td><tr><td valign="top"><em>DemandsAttention</em> = 1<<11</td><td></table>
</dl>
</div></div><p><a class="anchor" name="WindowType"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr><td class="memname">WindowType</td>
</tr>
</table>
</div>
<div class="memdoc"><p>Window type.
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>Unknown</em> = -1</td><td><tr><td valign="top"><em>Normal</em> = 0</td><td><tr><td valign="top"><em>Desktop</em> = 1</td><td><tr><td valign="top"><em>Dock</em> = 2</td><td><tr><td valign="top"><em>Toolbar</em> = 3</td><td><tr><td valign="top"><em>Menu</em> = 4</td><td><tr><td valign="top"><em>Dialog</em> = 5</td><td><tr><td valign="top"><em>Override</em> = 6</td><td><tr><td valign="top"><em>TopMenu</em> = 7</td><td><tr><td valign="top"><em>Utility</em> = 8</td><td><tr><td valign="top"><em>Splash</em> = 9</td><td><tr><td valign="top"><em>DropdownMenu</em> = 10</td><td><tr><td valign="top"><em>PopupMenu</em> = 11</td><td><tr><td valign="top"><em>Tooltip</em> = 12</td><td><tr><td valign="top"><em>Notification</em> = 13</td><td><tr><td valign="top"><em>ComboBox</em> = 14</td><td><tr><td valign="top"><em>DNDIcon</em> = 15</td><td></table>
</dl>
</div></div><p><a class="anchor" name="WindowTypeMask"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr><td class="memname">WindowTypeMask</td>
</tr>
</table>
</div>
<div class="memdoc"><p>Values for WindowType when they should be OR'ed together, e.g.
for the properties argument of the NETRootInfo constructor.
</p><dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0"><tr><td valign="top"><em>NormalMask</em> = 1<<0</td><td><tr><td valign="top"><em>DesktopMask</em> = 1<<1</td><td><tr><td valign="top"><em>DockMask</em> = 1<<2</td><td><tr><td valign="top"><em>ToolbarMask</em> = 1<<3</td><td><tr><td valign="top"><em>MenuMask</em> = 1<<4</td><td><tr><td valign="top"><em>DialogMask</em> = 1<<5</td><td><tr><td valign="top"><em>OverrideMask</em> = 1<<6</td><td><tr><td valign="top"><em>TopMenuMask</em> = 1<<7</td><td><tr><td valign="top"><em>UtilityMask</em> = 1<<8</td><td><tr><td valign="top"><em>SplashMask</em> = 1<<9</td><td><tr><td valign="top"><em>DropdownMenuMask</em> = 1<<10</td><td><tr><td valign="top"><em>PopupMenuMask</em> = 1<<11</td><td><tr><td valign="top"><em>TooltipMask</em> = 1<<12</td><td><tr><td valign="top"><em>NotificationMask</em> = 1<<13</td><td><tr><td valign="top"><em>ComboBoxMask</em> = 1<<14</td><td><tr><td valign="top"><em>DNDIconMask</em> = 1<<15</td><td><tr><td valign="top"><em>AllTypesMask</em> = 0LU-1</td><td></table>
</dl>
</div></div><p>
</div>
</div>
</div>
<div id="left">
<div class="menu_box">
<div class="nav_list">
<ul>
<li><a href="../allclasses.html">Full Index</a></li>
</ul>
</div>
<a name="cp-menu" /><div class="menutitle"><div>
<h2 id="cp-menu-project">Modules</h2>
</div></div>
<div class="nav_list">
<ul><li><a href="../akonadi/index.html">akonadi</a></li>
<li><a href="../dnssd/index.html">dnssd</a></li>
<li><a href="../kdecore/index.html">kdecore</a></li>
<li><a href="../kdeui/index.html">kdeui</a></li>
<li><a href="../khtml/index.html">khtml</a></li>
<li><a href="../kio/index.html">kio</a></li>
<li><a href="../knewstuff/index.html">knewstuff</a></li>
<li><a href="../kparts/index.html">kparts</a></li>
<li><a href="../kutils/index.html">kutils</a></li>
<li><a href="../nepomuk/index.html">nepomuk</a></li>
<li><a href="../phonon/index.html">phonon</a></li>
<li><a href="../plasma/index.html">plasma</a></li>
<li><a href="../polkitqt/index.html">polkitqt</a></li>
<li><a href="../solid/index.html">solid</a></li>
<li><a href="../soprano/index.html">soprano</a></li>
</ul></div></div>
</div>
</div>
<div class="clearer"/>
</div>
<div id="end_body"></div>
</div>
<div id="footer"><div id="footer_text">
This documentation is maintained by <a href="mailto:simon@simonzone.com">Simon Edwards</a>.<br />
KDE<sup>®</sup> and <a href="../images/kde_gear_black.png">the K Desktop Environment<sup>®</sup> logo</a> are registered trademarks of <a href="http://ev.kde.org/" 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>
</body>
</html>
|