File: NET.html

package info (click to toggle)
pykde4 4%3A4.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 30,864 kB
  • ctags: 18,431
  • sloc: python: 2,063; cpp: 327; makefile: 52; sh: 5
file content (479 lines) | stat: -rw-r--r-- 28,142 bytes parent folder | download | duplicates (2)
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">&nbsp;</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">&lt;anonymous&gt;</a>&nbsp;</td><td class="memItemRight" valign="bottom">{&nbsp;OnAllDesktops&nbsp;}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#Action">Action</a>&nbsp;</td><td class="memItemRight" valign="bottom">{&nbsp;ActionMove, ActionResize, ActionMinimize, ActionShade, ActionStick, ActionMaxVert, ActionMaxHoriz, ActionMax, ActionFullScreen, ActionChangeDesktop, ActionClose&nbsp;}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#DesktopLayoutCorner">DesktopLayoutCorner</a>&nbsp;</td><td class="memItemRight" valign="bottom">{&nbsp;DesktopLayoutCornerTopLeft, DesktopLayoutCornerTopRight, DesktopLayoutCornerBottomLeft, DesktopLayoutCornerBottomRight&nbsp;}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#Direction">Direction</a>&nbsp;</td><td class="memItemRight" valign="bottom">{&nbsp;TopLeft, Top, TopRight, Right, BottomRight, Bottom, BottomLeft, Left, Move, KeyboardSize, KeyboardMove, MoveResizeCancel&nbsp;}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#MappingState">MappingState</a>&nbsp;</td><td class="memItemRight" valign="bottom">{&nbsp;Visible, Withdrawn, Iconic&nbsp;}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#Orientation">Orientation</a>&nbsp;</td><td class="memItemRight" valign="bottom">{&nbsp;OrientationHorizontal, OrientationVertical&nbsp;}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#Property">Property</a>&nbsp;</td><td class="memItemRight" valign="bottom">{&nbsp;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&nbsp;}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#Property2">Property2</a>&nbsp;</td><td class="memItemRight" valign="bottom">{&nbsp;WM2UserTime, WM2StartupId, WM2TransientFor, WM2GroupLeader, WM2AllowedActions, WM2RestackWindow, WM2MoveResizeWindow, WM2ExtendedStrut, WM2TakeActivity, WM2KDETemporaryRules, WM2WindowClass, WM2WindowRole, WM2ClientMachine, WM2ShowingDesktop, WM2Opacity, WM2DesktopLayout, WM2FullPlacement, WM2FullscreenMonitors, WM2FrameOverlap, WM2Activities, WM2BlockCompositing, WM2KDEShadow&nbsp;}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#RequestSource">RequestSource</a>&nbsp;</td><td class="memItemRight" valign="bottom">{&nbsp;FromUnknown, FromApplication, FromTool&nbsp;}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#Role">Role</a>&nbsp;</td><td class="memItemRight" valign="bottom">{&nbsp;Client, WindowManager&nbsp;}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#State">State</a>&nbsp;</td><td class="memItemRight" valign="bottom">{&nbsp;Modal, Sticky, MaxVert, MaxHoriz, Max, Shaded, SkipTaskbar, KeepAbove, StaysOnTop, SkipPager, Hidden, FullScreen, KeepBelow, DemandsAttention&nbsp;}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#WindowType">WindowType</a>&nbsp;</td><td class="memItemRight" valign="bottom">{&nbsp;Unknown, Normal, Desktop, Dock, Toolbar, Menu, Dialog, Override, TopMenu, Utility, Splash, DropdownMenu, PopupMenu, Tooltip, Notification, ComboBox, DNDIcon&nbsp;}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="#WindowTypeMask">WindowTypeMask</a>&nbsp;</td><td class="memItemRight" valign="bottom">{&nbsp;NormalMask, DesktopMask, DockMask, ToolbarMask, MenuMask, DialogMask, OverrideMask, TopMenuMask, UtilityMask, SplashMask, DropdownMenuMask, PopupMenuMask, TooltipMask, NotificationMask, ComboBoxMask, DNDIconMask, AllTypesMask&nbsp;}</td></tr>
<tr><td colspan="2"><br><h2>Static Methods</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</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&nbsp;</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&nbsp;</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&nbsp;</td>
<td class="paramname"><em>time1</em>, </td>
</tr>
<tr>
<td class="memname"></td>
<td></td>
<td class="paramtype">long&nbsp;</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 &lt; time2, 1 for time1 &gt; 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&nbsp;</td>
<td class="paramname"><em>time1</em>, </td>
</tr>
<tr>
<td class="memname"></td>
<td></td>
<td class="paramtype">long&nbsp;</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>&nbsp;</td>
<td class="paramname"><em>type</em>, </td>
</tr>
<tr>
<td class="memname"></td>
<td></td>
<td class="paramtype">long&nbsp;</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>&nbsp;</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>&nbsp;=&nbsp;1<<0</td><td><tr><td valign="top"><em>ActionResize</em>&nbsp;=&nbsp;1<<1</td><td><tr><td valign="top"><em>ActionMinimize</em>&nbsp;=&nbsp;1<<2</td><td><tr><td valign="top"><em>ActionShade</em>&nbsp;=&nbsp;1<<3</td><td><tr><td valign="top"><em>ActionStick</em>&nbsp;=&nbsp;1<<4</td><td><tr><td valign="top"><em>ActionMaxVert</em>&nbsp;=&nbsp;1<<5</td><td><tr><td valign="top"><em>ActionMaxHoriz</em>&nbsp;=&nbsp;1<<6</td><td><tr><td valign="top"><em>ActionMax</em>&nbsp;=&nbsp;ActionMaxVert|ActionMaxHoriz</td><td><tr><td valign="top"><em>ActionFullScreen</em>&nbsp;=&nbsp;1<<7</td><td><tr><td valign="top"><em>ActionChangeDesktop</em>&nbsp;=&nbsp;1<<8</td><td><tr><td valign="top"><em>ActionClose</em>&nbsp;=&nbsp;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>&nbsp;=&nbsp;0</td><td><tr><td valign="top"><em>DesktopLayoutCornerTopRight</em>&nbsp;=&nbsp;1</td><td><tr><td valign="top"><em>DesktopLayoutCornerBottomLeft</em>&nbsp;=&nbsp;2</td><td><tr><td valign="top"><em>DesktopLayoutCornerBottomRight</em>&nbsp;=&nbsp;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>&nbsp;=&nbsp;0</td><td><tr><td valign="top"><em>Top</em>&nbsp;=&nbsp;1</td><td><tr><td valign="top"><em>TopRight</em>&nbsp;=&nbsp;2</td><td><tr><td valign="top"><em>Right</em>&nbsp;=&nbsp;3</td><td><tr><td valign="top"><em>BottomRight</em>&nbsp;=&nbsp;4</td><td><tr><td valign="top"><em>Bottom</em>&nbsp;=&nbsp;5</td><td><tr><td valign="top"><em>BottomLeft</em>&nbsp;=&nbsp;6</td><td><tr><td valign="top"><em>Left</em>&nbsp;=&nbsp;7</td><td><tr><td valign="top"><em>Move</em>&nbsp;=&nbsp;8</td><td><tr><td valign="top"><em>KeyboardSize</em>&nbsp;=&nbsp;9</td><td><tr><td valign="top"><em>KeyboardMove</em>&nbsp;=&nbsp;10</td><td><tr><td valign="top"><em>MoveResizeCancel</em>&nbsp;=&nbsp;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>&nbsp;=&nbsp;1</td><td><tr><td valign="top"><em>Withdrawn</em>&nbsp;=&nbsp;0</td><td><tr><td valign="top"><em>Iconic</em>&nbsp;=&nbsp;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>&nbsp;=&nbsp;0</td><td><tr><td valign="top"><em>OrientationVertical</em>&nbsp;=&nbsp;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>&nbsp;=&nbsp;1<<0</td><td><tr><td valign="top"><em>ClientList</em>&nbsp;=&nbsp;1<<1</td><td><tr><td valign="top"><em>ClientListStacking</em>&nbsp;=&nbsp;1<<2</td><td><tr><td valign="top"><em>NumberOfDesktops</em>&nbsp;=&nbsp;1<<3</td><td><tr><td valign="top"><em>DesktopGeometry</em>&nbsp;=&nbsp;1<<4</td><td><tr><td valign="top"><em>DesktopViewport</em>&nbsp;=&nbsp;1<<5</td><td><tr><td valign="top"><em>CurrentDesktop</em>&nbsp;=&nbsp;1<<6</td><td><tr><td valign="top"><em>DesktopNames</em>&nbsp;=&nbsp;1<<7</td><td><tr><td valign="top"><em>ActiveWindow</em>&nbsp;=&nbsp;1<<8</td><td><tr><td valign="top"><em>WorkArea</em>&nbsp;=&nbsp;1<<9</td><td><tr><td valign="top"><em>SupportingWMCheck</em>&nbsp;=&nbsp;1<<10</td><td><tr><td valign="top"><em>VirtualRoots</em>&nbsp;=&nbsp;1<<11</td><td><tr><td valign="top"><em>CloseWindow</em>&nbsp;=&nbsp;1<<13</td><td><tr><td valign="top"><em>WMMoveResize</em>&nbsp;=&nbsp;1<<14</td><td><tr><td valign="top"><em>WMName</em>&nbsp;=&nbsp;1<<15</td><td><tr><td valign="top"><em>WMVisibleName</em>&nbsp;=&nbsp;1<<16</td><td><tr><td valign="top"><em>WMDesktop</em>&nbsp;=&nbsp;1<<17</td><td><tr><td valign="top"><em>WMWindowType</em>&nbsp;=&nbsp;1<<18</td><td><tr><td valign="top"><em>WMState</em>&nbsp;=&nbsp;1<<19</td><td><tr><td valign="top"><em>WMStrut</em>&nbsp;=&nbsp;1<<20</td><td><tr><td valign="top"><em>WMIconGeometry</em>&nbsp;=&nbsp;1<<21</td><td><tr><td valign="top"><em>WMIcon</em>&nbsp;=&nbsp;1<<22</td><td><tr><td valign="top"><em>WMPid</em>&nbsp;=&nbsp;1<<23</td><td><tr><td valign="top"><em>WMHandledIcons</em>&nbsp;=&nbsp;1<<24</td><td><tr><td valign="top"><em>WMPing</em>&nbsp;=&nbsp;1<<25</td><td><tr><td valign="top"><em>XAWMState</em>&nbsp;=&nbsp;1<<27</td><td><tr><td valign="top"><em>WMFrameExtents</em>&nbsp;=&nbsp;1<<28</td><td><tr><td valign="top"><em>WMIconName</em>&nbsp;=&nbsp;1<<29</td><td><tr><td valign="top"><em>WMVisibleIconName</em>&nbsp;=&nbsp;1<<30</td><td><tr><td valign="top"><em>WMGeometry</em>&nbsp;=&nbsp;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>&nbsp;=&nbsp;1<<0</td><td><tr><td valign="top"><em>WM2StartupId</em>&nbsp;=&nbsp;1<<1</td><td><tr><td valign="top"><em>WM2TransientFor</em>&nbsp;=&nbsp;1<<2</td><td><tr><td valign="top"><em>WM2GroupLeader</em>&nbsp;=&nbsp;1<<3</td><td><tr><td valign="top"><em>WM2AllowedActions</em>&nbsp;=&nbsp;1<<4</td><td><tr><td valign="top"><em>WM2RestackWindow</em>&nbsp;=&nbsp;1<<5</td><td><tr><td valign="top"><em>WM2MoveResizeWindow</em>&nbsp;=&nbsp;1<<6</td><td><tr><td valign="top"><em>WM2ExtendedStrut</em>&nbsp;=&nbsp;1<<7</td><td><tr><td valign="top"><em>WM2TakeActivity</em>&nbsp;=&nbsp;1<<8</td><td><tr><td valign="top"><em>WM2KDETemporaryRules</em>&nbsp;=&nbsp;1<<9</td><td><tr><td valign="top"><em>WM2WindowClass</em>&nbsp;=&nbsp;1<<10</td><td><tr><td valign="top"><em>WM2WindowRole</em>&nbsp;=&nbsp;1<<11</td><td><tr><td valign="top"><em>WM2ClientMachine</em>&nbsp;=&nbsp;1<<12</td><td><tr><td valign="top"><em>WM2ShowingDesktop</em>&nbsp;=&nbsp;1<<13</td><td><tr><td valign="top"><em>WM2Opacity</em>&nbsp;=&nbsp;1<<14</td><td><tr><td valign="top"><em>WM2DesktopLayout</em>&nbsp;=&nbsp;1<<15</td><td><tr><td valign="top"><em>WM2FullPlacement</em>&nbsp;=&nbsp;1<<16</td><td><tr><td valign="top"><em>WM2FullscreenMonitors</em>&nbsp;=&nbsp;1<<17</td><td><tr><td valign="top"><em>WM2FrameOverlap</em>&nbsp;=&nbsp;1<<18</td><td><tr><td valign="top"><em>WM2Activities</em>&nbsp;=&nbsp;1<<19</td><td><tr><td valign="top"><em>WM2BlockCompositing</em>&nbsp;=&nbsp;1<<20</td><td><tr><td valign="top"><em>WM2KDEShadow</em>&nbsp;=&nbsp;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>&nbsp;=&nbsp;0</td><td><tr><td valign="top"><em>FromApplication</em>&nbsp;=&nbsp;1</td><td><tr><td valign="top"><em>FromTool</em>&nbsp;=&nbsp;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>&nbsp;</td><td><tr><td valign="top"><em>WindowManager</em>&nbsp;</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>&nbsp;=&nbsp;1<<0</td><td><tr><td valign="top"><em>Sticky</em>&nbsp;=&nbsp;1<<1</td><td><tr><td valign="top"><em>MaxVert</em>&nbsp;=&nbsp;1<<2</td><td><tr><td valign="top"><em>MaxHoriz</em>&nbsp;=&nbsp;1<<3</td><td><tr><td valign="top"><em>Max</em>&nbsp;=&nbsp;MaxVert|MaxHoriz</td><td><tr><td valign="top"><em>Shaded</em>&nbsp;=&nbsp;1<<4</td><td><tr><td valign="top"><em>SkipTaskbar</em>&nbsp;=&nbsp;1<<5</td><td><tr><td valign="top"><em>KeepAbove</em>&nbsp;=&nbsp;1<<6</td><td><tr><td valign="top"><em>StaysOnTop</em>&nbsp;=&nbsp;KeepAbove</td><td><tr><td valign="top"><em>SkipPager</em>&nbsp;=&nbsp;1<<7</td><td><tr><td valign="top"><em>Hidden</em>&nbsp;=&nbsp;1<<8</td><td><tr><td valign="top"><em>FullScreen</em>&nbsp;=&nbsp;1<<9</td><td><tr><td valign="top"><em>KeepBelow</em>&nbsp;=&nbsp;1<<10</td><td><tr><td valign="top"><em>DemandsAttention</em>&nbsp;=&nbsp;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>&nbsp;=&nbsp;-1</td><td><tr><td valign="top"><em>Normal</em>&nbsp;=&nbsp;0</td><td><tr><td valign="top"><em>Desktop</em>&nbsp;=&nbsp;1</td><td><tr><td valign="top"><em>Dock</em>&nbsp;=&nbsp;2</td><td><tr><td valign="top"><em>Toolbar</em>&nbsp;=&nbsp;3</td><td><tr><td valign="top"><em>Menu</em>&nbsp;=&nbsp;4</td><td><tr><td valign="top"><em>Dialog</em>&nbsp;=&nbsp;5</td><td><tr><td valign="top"><em>Override</em>&nbsp;=&nbsp;6</td><td><tr><td valign="top"><em>TopMenu</em>&nbsp;=&nbsp;7</td><td><tr><td valign="top"><em>Utility</em>&nbsp;=&nbsp;8</td><td><tr><td valign="top"><em>Splash</em>&nbsp;=&nbsp;9</td><td><tr><td valign="top"><em>DropdownMenu</em>&nbsp;=&nbsp;10</td><td><tr><td valign="top"><em>PopupMenu</em>&nbsp;=&nbsp;11</td><td><tr><td valign="top"><em>Tooltip</em>&nbsp;=&nbsp;12</td><td><tr><td valign="top"><em>Notification</em>&nbsp;=&nbsp;13</td><td><tr><td valign="top"><em>ComboBox</em>&nbsp;=&nbsp;14</td><td><tr><td valign="top"><em>DNDIcon</em>&nbsp;=&nbsp;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>&nbsp;=&nbsp;1<<0</td><td><tr><td valign="top"><em>DesktopMask</em>&nbsp;=&nbsp;1<<1</td><td><tr><td valign="top"><em>DockMask</em>&nbsp;=&nbsp;1<<2</td><td><tr><td valign="top"><em>ToolbarMask</em>&nbsp;=&nbsp;1<<3</td><td><tr><td valign="top"><em>MenuMask</em>&nbsp;=&nbsp;1<<4</td><td><tr><td valign="top"><em>DialogMask</em>&nbsp;=&nbsp;1<<5</td><td><tr><td valign="top"><em>OverrideMask</em>&nbsp;=&nbsp;1<<6</td><td><tr><td valign="top"><em>TopMenuMask</em>&nbsp;=&nbsp;1<<7</td><td><tr><td valign="top"><em>UtilityMask</em>&nbsp;=&nbsp;1<<8</td><td><tr><td valign="top"><em>SplashMask</em>&nbsp;=&nbsp;1<<9</td><td><tr><td valign="top"><em>DropdownMenuMask</em>&nbsp;=&nbsp;1<<10</td><td><tr><td valign="top"><em>PopupMenuMask</em>&nbsp;=&nbsp;1<<11</td><td><tr><td valign="top"><em>TooltipMask</em>&nbsp;=&nbsp;1<<12</td><td><tr><td valign="top"><em>NotificationMask</em>&nbsp;=&nbsp;1<<13</td><td><tr><td valign="top"><em>ComboBoxMask</em>&nbsp;=&nbsp;1<<14</td><td><tr><td valign="top"><em>DNDIconMask</em>&nbsp;=&nbsp;1<<15</td><td><tr><td valign="top"><em>AllTypesMask</em>&nbsp;=&nbsp;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="&#109;&#97;&#105;&#108;&#116;&#111;&#58;simon&#64;simonzone&#46;com">Simon Edwards</a>.<br />
        KDE<sup>&#174;</sup> and <a href="../images/kde_gear_black.png">the K Desktop Environment<sup>&#174;</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>