rumai 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. data/CREDITS +4 -3
  2. data/HISTORY +327 -0
  3. data/INSTALL +31 -0
  4. data/README +92 -0
  5. data/USAGE +297 -0
  6. data/bin/rumai +9 -22
  7. data/doc/api/IO.html +119 -0
  8. data/doc/api/Integer.html +171 -0
  9. data/doc/api/Rumai.html +1270 -0
  10. data/doc/api/Rumai/Area.html +1485 -0
  11. data/doc/api/Rumai/Chain.html +301 -0
  12. data/doc/api/Rumai/Client.html +2451 -0
  13. data/doc/api/Rumai/ClientContainer.html +301 -0
  14. data/doc/api/Rumai/ExportInstanceMethods.html +103 -0
  15. data/doc/api/Rumai/IXP.html +94 -0
  16. data/doc/api/Rumai/IXP/Agent.html +1625 -0
  17. data/doc/api/Rumai/IXP/Agent/FidStream.html +959 -0
  18. data/doc/api/Rumai/IXP/Agent/RangedPool.html +381 -0
  19. data/doc/api/Rumai/IXP/Error.html +110 -0
  20. data/doc/api/Rumai/IXP/Fcall.html +503 -0
  21. data/doc/api/Rumai/IXP/Qid.html +207 -0
  22. data/doc/api/Rumai/IXP/Rattach.html +148 -0
  23. data/doc/api/Rumai/IXP/Rauth.html +148 -0
  24. data/doc/api/Rumai/IXP/Rclunk.html +148 -0
  25. data/doc/api/Rumai/IXP/Rcreate.html +148 -0
  26. data/doc/api/Rumai/IXP/Rerror.html +148 -0
  27. data/doc/api/Rumai/IXP/Rflush.html +148 -0
  28. data/doc/api/Rumai/IXP/Ropen.html +148 -0
  29. data/doc/api/Rumai/IXP/Rread.html +148 -0
  30. data/doc/api/Rumai/IXP/Rremove.html +148 -0
  31. data/doc/api/Rumai/IXP/Rstat.html +148 -0
  32. data/doc/api/Rumai/IXP/Rversion.html +148 -0
  33. data/doc/api/Rumai/IXP/Rwalk.html +148 -0
  34. data/doc/api/Rumai/IXP/Rwrite.html +148 -0
  35. data/doc/api/Rumai/IXP/Rwstat.html +148 -0
  36. data/doc/api/Rumai/IXP/Stat.html +335 -0
  37. data/doc/api/Rumai/IXP/Stream.html +194 -0
  38. data/doc/api/Rumai/IXP/Struct.html +586 -0
  39. data/doc/api/Rumai/IXP/Struct/ClassField.html +242 -0
  40. data/doc/api/Rumai/IXP/Struct/Field.html +782 -0
  41. data/doc/api/Rumai/IXP/Struct/Field/CounteeField.html +227 -0
  42. data/doc/api/Rumai/IXP/Struct/Field/CounterField.html +153 -0
  43. data/doc/api/Rumai/IXP/Struct/Integer8Field.html +242 -0
  44. data/doc/api/Rumai/IXP/Struct/StringField.html +206 -0
  45. data/doc/api/Rumai/IXP/Tattach.html +148 -0
  46. data/doc/api/Rumai/IXP/Tauth.html +148 -0
  47. data/doc/api/Rumai/IXP/Tclunk.html +148 -0
  48. data/doc/api/Rumai/IXP/Tcreate.html +148 -0
  49. data/doc/api/Rumai/IXP/Terror.html +231 -0
  50. data/doc/api/Rumai/IXP/Tflush.html +148 -0
  51. data/doc/api/Rumai/IXP/Topen.html +240 -0
  52. data/doc/api/Rumai/IXP/Tread.html +148 -0
  53. data/doc/api/Rumai/IXP/Tremove.html +148 -0
  54. data/doc/api/Rumai/IXP/Tstat.html +148 -0
  55. data/doc/api/Rumai/IXP/Tversion.html +162 -0
  56. data/doc/api/Rumai/IXP/Twalk.html +148 -0
  57. data/doc/api/Rumai/IXP/Twrite.html +148 -0
  58. data/doc/api/Rumai/IXP/Twstat.html +148 -0
  59. data/doc/api/Rumai/Node.html +1406 -0
  60. data/doc/api/Rumai/View.html +1587 -0
  61. data/doc/api/Rumai/WidgetImpl.html +333 -0
  62. data/doc/api/Rumai/WidgetNode.html +246 -0
  63. data/doc/api/String.html +258 -0
  64. data/doc/api/StringIO.html +119 -0
  65. data/doc/api/Time.html +247 -0
  66. data/doc/api/_index.html +581 -0
  67. data/doc/api/class_list.html +36 -0
  68. data/doc/api/css/common.css +1 -0
  69. data/doc/api/css/full_list.css +50 -0
  70. data/doc/api/css/style.css +273 -0
  71. data/doc/api/file.LICENSE.html +73 -0
  72. data/doc/api/file_list.html +38 -0
  73. data/doc/api/frames.html +13 -0
  74. data/doc/api/index.html +72 -13
  75. data/doc/api/js/app.js +111 -0
  76. data/doc/api/js/full_list.js +117 -0
  77. data/doc/api/js/{jquery-1.3.2.min.js → jquery.js} +0 -0
  78. data/doc/api/method_list.html +1483 -0
  79. data/doc/api/top-level-namespace.html +89 -0
  80. data/doc/index.erb +18 -13
  81. data/doc/index.html +331 -386
  82. data/lib/rumai.rb +1 -18
  83. data/lib/rumai/fs.rb +11 -11
  84. data/lib/rumai/inochi.rb +48 -0
  85. data/lib/rumai/inochi.yaml +94 -0
  86. data/lib/rumai/ixp.rb +0 -4
  87. data/lib/rumai/ixp/message.rb +6 -17
  88. data/lib/rumai/ixp/transport.rb +39 -30
  89. data/lib/rumai/wm.rb +35 -37
  90. data/test/rumai/inochi_test.rb +17 -0
  91. data/test/rumai/ixp/message_test.rb +245 -0
  92. data/test/runner +25 -0
  93. data/test/test_helper.rb +1 -0
  94. metadata +107 -125
  95. data/doc/api/apple-touch-icon.png +0 -0
  96. data/doc/api/classes/IO.html +0 -72
  97. data/doc/api/classes/Integer.html +0 -110
  98. data/doc/api/classes/Object.html +0 -60
  99. data/doc/api/classes/Rumai.html +0 -837
  100. data/doc/api/classes/Rumai/Area.html +0 -909
  101. data/doc/api/classes/Rumai/Chain.html +0 -197
  102. data/doc/api/classes/Rumai/Client.html +0 -1526
  103. data/doc/api/classes/Rumai/ClientContainer.html +0 -191
  104. data/doc/api/classes/Rumai/ExportInstanceMethods.html +0 -69
  105. data/doc/api/classes/Rumai/IXP.html +0 -131
  106. data/doc/api/classes/Rumai/IXP/Agent.html +0 -941
  107. data/doc/api/classes/Rumai/IXP/Agent/FidStream.html +0 -456
  108. data/doc/api/classes/Rumai/IXP/Agent/MODES.html +0 -108
  109. data/doc/api/classes/Rumai/IXP/Agent/RangedPool.html +0 -241
  110. data/doc/api/classes/Rumai/IXP/Error.html +0 -67
  111. data/doc/api/classes/Rumai/IXP/Fcall.html +0 -323
  112. data/doc/api/classes/Rumai/IXP/Qid.html +0 -153
  113. data/doc/api/classes/Rumai/IXP/Rattach.html +0 -67
  114. data/doc/api/classes/Rumai/IXP/Rauth.html +0 -67
  115. data/doc/api/classes/Rumai/IXP/Rclunk.html +0 -67
  116. data/doc/api/classes/Rumai/IXP/Rcreate.html +0 -67
  117. data/doc/api/classes/Rumai/IXP/Rerror.html +0 -67
  118. data/doc/api/classes/Rumai/IXP/Rflush.html +0 -67
  119. data/doc/api/classes/Rumai/IXP/Ropen.html +0 -67
  120. data/doc/api/classes/Rumai/IXP/Rread.html +0 -67
  121. data/doc/api/classes/Rumai/IXP/Rremove.html +0 -67
  122. data/doc/api/classes/Rumai/IXP/Rstat.html +0 -67
  123. data/doc/api/classes/Rumai/IXP/Rversion.html +0 -67
  124. data/doc/api/classes/Rumai/IXP/Rwalk.html +0 -67
  125. data/doc/api/classes/Rumai/IXP/Rwrite.html +0 -67
  126. data/doc/api/classes/Rumai/IXP/Rwstat.html +0 -67
  127. data/doc/api/classes/Rumai/IXP/Stat.html +0 -252
  128. data/doc/api/classes/Rumai/IXP/Stream.html +0 -131
  129. data/doc/api/classes/Rumai/IXP/Struct.html +0 -311
  130. data/doc/api/classes/Rumai/IXP/Struct/Field.html +0 -415
  131. data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.html +0 -153
  132. data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.html +0 -104
  133. data/doc/api/classes/Rumai/IXP/Tattach.html +0 -68
  134. data/doc/api/classes/Rumai/IXP/Tauth.html +0 -67
  135. data/doc/api/classes/Rumai/IXP/Tclunk.html +0 -67
  136. data/doc/api/classes/Rumai/IXP/Tcreate.html +0 -68
  137. data/doc/api/classes/Rumai/IXP/Terror.html +0 -110
  138. data/doc/api/classes/Rumai/IXP/Tflush.html +0 -67
  139. data/doc/api/classes/Rumai/IXP/Topen.html +0 -165
  140. data/doc/api/classes/Rumai/IXP/Tread.html +0 -67
  141. data/doc/api/classes/Rumai/IXP/Tremove.html +0 -67
  142. data/doc/api/classes/Rumai/IXP/Tstat.html +0 -67
  143. data/doc/api/classes/Rumai/IXP/Tversion.html +0 -86
  144. data/doc/api/classes/Rumai/IXP/Twalk.html +0 -68
  145. data/doc/api/classes/Rumai/IXP/Twrite.html +0 -68
  146. data/doc/api/classes/Rumai/IXP/Twstat.html +0 -67
  147. data/doc/api/classes/Rumai/Node.html +0 -821
  148. data/doc/api/classes/Rumai/View.html +0 -967
  149. data/doc/api/classes/Rumai/WidgetImpl.html +0 -65
  150. data/doc/api/classes/Rumai/WidgetNode.html +0 -68
  151. data/doc/api/classes/String.html +0 -163
  152. data/doc/api/classes/StringIO.html +0 -72
  153. data/doc/api/classes/Time.html +0 -156
  154. data/doc/api/created.rid +0 -1
  155. data/doc/api/css/main.css +0 -263
  156. data/doc/api/css/panel.css +0 -383
  157. data/doc/api/css/reset.css +0 -53
  158. data/doc/api/favicon.ico +0 -0
  159. data/doc/api/files/CREDITS.html +0 -67
  160. data/doc/api/files/LICENSE.html +0 -76
  161. data/doc/api/files/lib/rumai/fs_rb.html +0 -75
  162. data/doc/api/files/lib/rumai/ixp/message_rb.html +0 -91
  163. data/doc/api/files/lib/rumai/ixp/transport_rb.html +0 -75
  164. data/doc/api/files/lib/rumai/ixp_rb.html +0 -69
  165. data/doc/api/files/lib/rumai/wm_rb.html +0 -77
  166. data/doc/api/files/lib/rumai_rb.html +0 -65
  167. data/doc/api/i/arrows.png +0 -0
  168. data/doc/api/i/results_bg.png +0 -0
  169. data/doc/api/i/tree_bg.png +0 -0
  170. data/doc/api/js/jquery-effect.js +0 -593
  171. data/doc/api/js/main.js +0 -22
  172. data/doc/api/js/searchdoc.js +0 -628
  173. data/doc/api/panel/index.html +0 -71
  174. data/doc/api/panel/search_index.js +0 -1
  175. data/doc/api/panel/tree.js +0 -1
  176. data/doc/history.erb +0 -233
  177. data/doc/intro.erb +0 -70
  178. data/doc/setup.erb +0 -144
  179. data/doc/usage.erb +0 -308
  180. data/rakefile +0 -14
  181. data/test/rumai/ixp/message.rb +0 -237
@@ -0,0 +1,1587 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>Class: Rumai::View</title>
7
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '..';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+ <a href="../_index.html">Index (V)</a> &raquo;
27
+ <span class='title'><a href="../Rumai.html" title="Rumai (module)">Rumai</a></span>
28
+ &raquo;
29
+ <span class="title">View</span>
30
+
31
+
32
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
+ </div>
34
+
35
+ <div id="search">
36
+ <a id="class_list_link" href="#">Class List</a>
37
+ <a id="method_list_link" href="#">Method List</a>
38
+ <a id ="file_list_link" href="#">File List</a>
39
+ </div>
40
+
41
+ <div class="clear"></div>
42
+ </div>
43
+
44
+ <iframe id="search_frame"></iframe>
45
+
46
+ <div id="content"><h1>Class: Rumai::View
47
+
48
+
49
+ </h1>
50
+
51
+ <dl class="box">
52
+
53
+ <dt class="r1">Inherits:</dt>
54
+ <dd class="r1">
55
+ <span class="inheritName"><a href="WidgetNode.html" title="Rumai::WidgetNode (class)">WidgetNode</a></span>
56
+
57
+ <ul class="fullTree">
58
+ <li><a href="../Object.html" title="Object (class)">Object</a></li>
59
+
60
+ <li class="next"><a href="Node.html" title="Rumai::Node (class)">Node</a></li>
61
+
62
+ <li class="next"><a href="WidgetNode.html" title="Rumai::WidgetNode (class)">WidgetNode</a></li>
63
+
64
+ <li class="next">Rumai::View</li>
65
+
66
+ </ul>
67
+ <a href="#" class="inheritanceTree">show all</a>
68
+
69
+ </dd>
70
+
71
+
72
+
73
+
74
+
75
+
76
+ <dt class="r2">Includes:</dt>
77
+ <dd class="r2">Enumerable, <a href="Chain.html" title="Rumai::Chain (module)">Chain</a>, <a href="ClientContainer.html" title="Rumai::ClientContainer (module)">ClientContainer</a>, <a href="WidgetImpl.html" title="Rumai::WidgetImpl (module)">WidgetImpl</a></dd>
78
+
79
+
80
+
81
+
82
+
83
+ <dt class="r1 last">Defined in:</dt>
84
+ <dd class="r1 last">lib/rumai/wm.rb</dd>
85
+
86
+ </dl>
87
+ <div class="clear"></div>
88
+
89
+ <h2>Overview</h2><div class="docstring">
90
+ <div class="discussion">
91
+ <p>
92
+ The visualization of a tag.
93
+ </p>
94
+
95
+
96
+ </div>
97
+ </div>
98
+ <div class="tags">
99
+
100
+ </div>
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
+ <h2>Class Method Summary</h2>
131
+
132
+ <ul class="summary">
133
+
134
+ <li class="public ">
135
+ <span class="summary_signature">
136
+
137
+ <a href="#curr-class_method" title="curr (class method)">+ (Object) <strong>curr</strong> </a>
138
+
139
+
140
+
141
+ </span>
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+ <span class="summary_desc"><div class='inline'><p>
150
+ Returns the currently focused view.
151
+ </p>
152
+ </div></span>
153
+
154
+ </li>
155
+
156
+
157
+ </ul>
158
+
159
+ <h2>Instance Method Summary</h2>
160
+
161
+ <ul class="summary">
162
+
163
+ <li class="public ">
164
+ <span class="summary_signature">
165
+
166
+ <a href="#area_ids-instance_method" title="#area_ids (instance method)">- (Object) <strong>area_ids</strong> </a>
167
+
168
+
169
+
170
+ </span>
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+ <span class="summary_desc"><div class='inline'><p>
179
+ Returns the IDs of all areas in this view.
180
+ </p>
181
+ </div></span>
182
+
183
+ </li>
184
+
185
+
186
+ <li class="public ">
187
+ <span class="summary_signature">
188
+
189
+ <a href="#area_of_client-instance_method" title="#area_of_client (instance method)">- (Object) <strong>area_of_client</strong>(client_or_id) </a>
190
+
191
+
192
+
193
+ </span>
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+ <span class="summary_desc"><div class='inline'><p>
202
+ Returns the area which contains the given client in this view.
203
+ </p>
204
+ </div></span>
205
+
206
+ </li>
207
+
208
+
209
+ <li class="public ">
210
+ <span class="summary_signature">
211
+
212
+ <a href="#areas-instance_method" title="#areas (instance method)">- (Object) <strong>areas</strong> </a>
213
+
214
+
215
+
216
+ </span>
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+ <span class="summary_desc"><div class='inline'><p>
225
+ Returns all areas in this view.
226
+ </p>
227
+ </div></span>
228
+
229
+ </li>
230
+
231
+
232
+ <li class="public ">
233
+ <span class="summary_signature">
234
+
235
+ <a href="#arrange_as_larswm-instance_method" title="#arrange_as_larswm (instance method)">- (Object) <strong>arrange_as_larswm</strong> </a>
236
+
237
+
238
+
239
+ </span>
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+ <span class="summary_desc"><div class='inline'><p>
248
+ Arranges the clients in this view, while maintaining their relative order,
249
+ in the tiling fashion of LarsWM.
250
+ </p>
251
+ </div></span>
252
+
253
+ </li>
254
+
255
+
256
+ <li class="public ">
257
+ <span class="summary_signature">
258
+
259
+ <a href="#arrange_in_diamond-instance_method" title="#arrange_in_diamond (instance method)">- (Object) <strong>arrange_in_diamond</strong> </a>
260
+
261
+
262
+
263
+ </span>
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+ <span class="summary_desc"><div class='inline'><p>
272
+ Arranges the clients in this view, while maintaining their relative order,
273
+ in a (at best) equilateral triangle.
274
+ </p>
275
+ </div></span>
276
+
277
+ </li>
278
+
279
+
280
+ <li class="public ">
281
+ <span class="summary_signature">
282
+
283
+ <a href="#arrange_in_grid-instance_method" title="#arrange_in_grid (instance method)">- (Object) <strong>arrange_in_grid</strong>(max_clients_per_column = nil) </a>
284
+
285
+
286
+
287
+ </span>
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+ <span class="summary_desc"><div class='inline'><p>
296
+ Arranges the clients in this view, while maintaining their relative order,
297
+ in a (at best) square grid.
298
+ </p>
299
+ </div></span>
300
+
301
+ </li>
302
+
303
+
304
+ <li class="public ">
305
+ <span class="summary_signature">
306
+
307
+ <a href="#arrange_in_stacks-instance_method" title="#arrange_in_stacks (instance method)">- (Object) <strong>arrange_in_stacks</strong>(num_stacks) </a>
308
+
309
+
310
+
311
+ </span>
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+ <span class="summary_desc"><div class='inline'><p>
320
+ Arranges the clients in this view, while maintaining their relative order,
321
+ in the given number of columns.
322
+ </p>
323
+ </div></span>
324
+
325
+ </li>
326
+
327
+
328
+ <li class="public ">
329
+ <span class="summary_signature">
330
+
331
+ <a href="#chain-instance_method" title="#chain (instance method)">- (Object) <strong>chain</strong> </a>
332
+
333
+
334
+
335
+ </span>
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+ <span class="summary_desc"><div class='inline'><p>
344
+ Returns a list of all views.
345
+ </p>
346
+ </div></span>
347
+
348
+ </li>
349
+
350
+
351
+ <li class="public ">
352
+ <span class="summary_signature">
353
+
354
+ <a href="#client_ids-instance_method" title="#client_ids (instance method)">- (Object) <strong>client_ids</strong>(area_id = '\S+') </a>
355
+
356
+
357
+
358
+ </span>
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+ <span class="summary_desc"><div class='inline'><p>
367
+ Returns the IDs of the clients contained in the given area within this
368
+ view.
369
+ </p>
370
+ </div></span>
371
+
372
+ </li>
373
+
374
+
375
+ <li class="public ">
376
+ <span class="summary_signature">
377
+
378
+ <a href="#columns-instance_method" title="#columns (instance method)">- (Object) <strong>columns</strong> </a>
379
+
380
+
381
+
382
+ (also: #managed_areas)
383
+
384
+ </span>
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+ <span class="summary_desc"><div class='inline'><p>
393
+ Returns all columns (managed areas) in this view.
394
+ </p>
395
+ </div></span>
396
+
397
+ </li>
398
+
399
+
400
+ <li class="public ">
401
+ <span class="summary_signature">
402
+
403
+ <a href="#each-instance_method" title="#each (instance method)">- (Object) <strong>each</strong>(&amp;block) </a>
404
+
405
+
406
+
407
+ </span>
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+ <span class="summary_desc"><div class='inline'><p>
416
+ Iterates through each area in this view.
417
+ </p>
418
+ </div></span>
419
+
420
+ </li>
421
+
422
+
423
+ <li class="public ">
424
+ <span class="summary_signature">
425
+
426
+ <a href="#each_column-instance_method" title="#each_column (instance method)">- (Object) <strong>each_column</strong>(starting_column_id = 1) </a>
427
+
428
+
429
+
430
+ (also: #each_managed_area)
431
+
432
+ </span>
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+ <span class="summary_desc"><div class='inline'><p>
441
+ Resiliently iterates through possibly destructive changes to each column.
442
+ </p>
443
+ </div></span>
444
+
445
+ </li>
446
+
447
+
448
+ <li class="public ">
449
+ <span class="summary_signature">
450
+
451
+ <a href="#floating_area-instance_method" title="#floating_area (instance method)">- (Object) <strong>floating_area</strong> </a>
452
+
453
+
454
+
455
+ </span>
456
+
457
+
458
+
459
+
460
+
461
+
462
+
463
+ <span class="summary_desc"><div class='inline'><p>
464
+ Returns the floating area of this view.
465
+ </p>
466
+ </div></span>
467
+
468
+ </li>
469
+
470
+
471
+ <li class="public ">
472
+ <span class="summary_signature">
473
+
474
+ <a href="#focus-instance_method" title="#focus (instance method)">- (Object) <strong>focus</strong> </a>
475
+
476
+
477
+
478
+ </span>
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+ <span class="summary_desc"><div class='inline'><p>
487
+ Focuses this view.
488
+ </p>
489
+ </div></span>
490
+
491
+ </li>
492
+
493
+
494
+ <li class="public ">
495
+ <span class="summary_signature">
496
+
497
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (View) <strong>initialize</strong>(view_id) </a>
498
+
499
+
500
+
501
+ </span>
502
+
503
+ <span class="note title constructor">constructor</span>
504
+
505
+
506
+
507
+
508
+
509
+
510
+
511
+ <span class="summary_desc"><div class='inline'><p>
512
+ A new instance of View.
513
+ </p>
514
+ </div></span>
515
+
516
+ </li>
517
+
518
+
519
+ <li class="public ">
520
+ <span class="summary_signature">
521
+
522
+ <a href="#manifest-instance_method" title="#manifest (instance method)">- (Object) <strong>manifest</strong> </a>
523
+
524
+
525
+
526
+ </span>
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+ <span class="summary_desc"><div class='inline'><p>
535
+ Returns the manifest of all areas and clients in this view.
536
+ </p>
537
+ </div></span>
538
+
539
+ </li>
540
+
541
+
542
+ <li class="public ">
543
+ <span class="summary_signature">
544
+
545
+ <a href="#select-instance_method" title="#select (instance method)">- (Object) <strong>select</strong>(direction) </a>
546
+
547
+
548
+
549
+ </span>
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+ <span class="summary_desc"><div class='inline'><p>
558
+ Moves the focus from the current client in the given direction.
559
+ </p>
560
+ </div></span>
561
+
562
+ </li>
563
+
564
+
565
+ </ul>
566
+
567
+
568
+
569
+
570
+
571
+
572
+
573
+
574
+
575
+
576
+ <h3 class="inherited">Methods included from <a href="WidgetImpl.html" title="Rumai::WidgetImpl (module)">WidgetImpl</a></h3>
577
+ <p class="inherited"><a href="WidgetImpl.html#%3D%3D-instance_method" title="Rumai::WidgetImpl#== (method)">#==</a>, <a href="WidgetImpl.html#current%3F-instance_method" title="Rumai::WidgetImpl#current? (method)">#current?</a></p>
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+
586
+ <h3 class="inherited">Methods included from <a href="Chain.html" title="Rumai::Chain (module)">Chain</a></h3>
587
+ <p class="inherited"><a href="Chain.html#next-instance_method" title="Rumai::Chain#next (method)">#next</a>, <a href="Chain.html#prev-instance_method" title="Rumai::Chain#prev (method)">#prev</a></p>
588
+
589
+
590
+
591
+
592
+
593
+
594
+
595
+
596
+ <h3 class="inherited">Methods included from <a href="ClientContainer.html" title="Rumai::ClientContainer (module)">ClientContainer</a></h3>
597
+ <p class="inherited"><a href="ClientContainer.html#clients-instance_method" title="Rumai::ClientContainer#clients (method)">#clients</a>, <a href="ClientContainer.html#grouping-instance_method" title="Rumai::ClientContainer#grouping (method)">#grouping</a></p>
598
+
599
+
600
+
601
+
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+ <h3 class="inherited">Methods included from <a href="WidgetImpl.html" title="Rumai::WidgetImpl (module)">WidgetImpl</a></h3>
613
+ <p class="inherited"><a href="WidgetImpl.html#%3D%3D-instance_method" title="Rumai::WidgetImpl#== (method)">#==</a>, <a href="WidgetImpl.html#current%3F-instance_method" title="Rumai::WidgetImpl#current? (method)">#current?</a></p>
614
+
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+ <h3 class="inherited">Methods inherited from <a href="Node.html" title="Rumai::Node (class)">Node</a></h3>
623
+ <p class="inherited"><a href="Node.html#%5B%5D-instance_method" title="Rumai::Node#[] (method)">#[]</a>, <a href="Node.html#children-instance_method" title="Rumai::Node#children (method)">#children</a>, <a href="Node.html#clear-instance_method" title="Rumai::Node#clear (method)">#clear</a>, <a href="Node.html#create-instance_method" title="Rumai::Node#create (method)">#create</a>, <a href="Node.html#directory%3F-instance_method" title="Rumai::Node#directory? (method)">#directory?</a>, <a href="Node.html#each_line-instance_method" title="Rumai::Node#each_line (method)">#each_line</a>, <a href="Node.html#entries-instance_method" title="Rumai::Node#entries (method)">#entries</a>, <a href="Node.html#exist%3F-instance_method" title="Rumai::Node#exist? (method)">#exist?</a>, <a href="Node.html#method_missing-instance_method" title="Rumai::Node#method_missing (method)">#method_missing</a>, <a href="Node.html#open-instance_method" title="Rumai::Node#open (method)">#open</a>, <a href="Node.html#parent-instance_method" title="Rumai::Node#parent (method)">#parent</a>, <a href="Node.html#read-instance_method" title="Rumai::Node#read (method)">#read</a>, <a href="Node.html#remove-instance_method" title="Rumai::Node#remove (method)">#remove</a>, <a href="Node.html#stat-instance_method" title="Rumai::Node#stat (method)">#stat</a>, <a href="Node.html#write-instance_method" title="Rumai::Node#write (method)">#write</a></p>
624
+
625
+ <div id="constructor_details" class="method_details_list">
626
+ <h2>Constructor Details</h2>
627
+
628
+ <div class="method_details first">
629
+ <p class="signature first" id="initialize-instance_method">
630
+
631
+ - (<tt><a href="" title="Rumai::View (class)">View</a></tt>) <strong>initialize</strong>(view_id)
632
+
633
+
634
+
635
+ </p><div class="docstring">
636
+ <div class="discussion">
637
+ <p>
638
+ A new instance of View
639
+ </p>
640
+
641
+
642
+ </div>
643
+ </div>
644
+ <div class="tags">
645
+
646
+ </div><table class="source_code">
647
+ <tr>
648
+ <td>
649
+ <pre class="lines">
650
+
651
+
652
+ 758
653
+ 759
654
+ 760</pre>
655
+ </td>
656
+ <td>
657
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 758</span>
658
+
659
+ <span class='kw'>def</span> <span class='id initialize'>initialize</span> <span class='id view_id'>view_id</span>
660
+ <span class='kw'>super</span> <span class='id view_id'>view_id</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/tag</span><span class='tstring_end'>'</span></span>
661
+ <span class='kw'>end</span></pre>
662
+ </td>
663
+ </tr>
664
+ </table>
665
+ </div>
666
+
667
+ </div>
668
+ <div id="method_missing_details" class="method_details_list">
669
+ <h2>Dynamic Method Handling</h2>
670
+ <p class="notice super">
671
+ This class handles dynamic methods through the <tt>method_missing</tt> method
672
+
673
+ in the class <a href="Node.html#method_missing-instance_method" title="Rumai::Node#method_missing (method)">Rumai::Node</a>
674
+
675
+ </p>
676
+
677
+ </div>
678
+
679
+
680
+ <div id="class_method_details" class="method_details_list">
681
+ <h2>Class Method Details</h2>
682
+
683
+
684
+ <div class="method_details first">
685
+ <p class="signature first" id="curr-class_method">
686
+
687
+ + (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>curr</strong>
688
+
689
+
690
+
691
+ </p><div class="docstring">
692
+ <div class="discussion">
693
+ <p>
694
+ Returns the currently focused view.
695
+ </p>
696
+
697
+
698
+ </div>
699
+ </div>
700
+ <div class="tags">
701
+
702
+ </div><table class="source_code">
703
+ <tr>
704
+ <td>
705
+ <pre class="lines">
706
+
707
+
708
+ 719
709
+ 720
710
+ 721</pre>
711
+ </td>
712
+ <td>
713
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 719</span>
714
+
715
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id curr'>curr</span>
716
+ <span class='id new'>new</span> <span class='const'>FOCUSED_WIDGET_ID</span>
717
+ <span class='kw'>end</span></pre>
718
+ </td>
719
+ </tr>
720
+ </table>
721
+ </div>
722
+
723
+ </div>
724
+
725
+ <div id="instance_method_details" class="method_details_list">
726
+ <h2>Instance Method Details</h2>
727
+
728
+
729
+ <div class="method_details first">
730
+ <p class="signature first" id="area_ids-instance_method">
731
+
732
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>area_ids</strong>
733
+
734
+
735
+
736
+ </p><div class="docstring">
737
+ <div class="discussion">
738
+ <p>
739
+ Returns the IDs of all areas in this view.
740
+ </p>
741
+
742
+
743
+ </div>
744
+ </div>
745
+ <div class="tags">
746
+
747
+ </div><table class="source_code">
748
+ <tr>
749
+ <td>
750
+ <pre class="lines">
751
+
752
+
753
+ 804
754
+ 805
755
+ 806</pre>
756
+ </td>
757
+ <td>
758
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 804</span>
759
+
760
+ <span class='kw'>def</span> <span class='id area_ids'>area_ids</span>
761
+ <span class='id manifest'>manifest</span><span class='period'>.</span><span class='id scan'>scan</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^# (\d+)</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id flatten'>flatten</span><span class='period'>.</span><span class='id unshift'>unshift</span><span class='lparen'>(</span><span class='const'>FLOATING_AREA_ID</span><span class='rparen'>)</span>
762
+ <span class='kw'>end</span></pre>
763
+ </td>
764
+ </tr>
765
+ </table>
766
+ </div>
767
+
768
+ <div class="method_details ">
769
+ <p class="signature " id="area_of_client-instance_method">
770
+
771
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>area_of_client</strong>(client_or_id)
772
+
773
+
774
+
775
+ </p><div class="docstring">
776
+ <div class="discussion">
777
+ <p>
778
+ Returns the area which contains the given client in this view.
779
+ </p>
780
+
781
+
782
+ </div>
783
+ </div>
784
+ <div class="tags">
785
+
786
+ </div><table class="source_code">
787
+ <tr>
788
+ <td>
789
+ <pre class="lines">
790
+
791
+
792
+ 787
793
+ 788
794
+ 789
795
+ 790
796
+ 791
797
+ 792
798
+ 793
799
+ 794
800
+ 795
801
+ 796
802
+ 797
803
+ 798
804
+ 799</pre>
805
+ </td>
806
+ <td>
807
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 787</span>
808
+
809
+ <span class='kw'>def</span> <span class='id area_of_client'>area_of_client</span> <span class='id client_or_id'>client_or_id</span>
810
+ <span class='id arg'>arg</span> <span class='op'>=</span>
811
+ <span class='kw'>if</span> <span class='id client_or_id'>client_or_id</span><span class='period'>.</span><span class='id respond_to?'>respond_to?</span> <span class='symbol'>:id</span>
812
+ <span class='id client_or_id'>client_or_id</span><span class='period'>.</span><span class='id id'>id</span>
813
+ <span class='kw'>else</span>
814
+ <span class='id client_or_id'>client_or_id</span>
815
+ <span class='kw'>end</span>
816
+
817
+ <span class='id manifest'>manifest</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^(\S+) </span><span class='embexpr_beg'>#{</span><span class='id arg'>arg</span><span class='rbrace'>}</span><span class='regexp_end'>/</span></span>
818
+ <span class='kw'>if</span> <span class='id area_id'>area_id</span> <span class='op'>=</span> <span class='backref'>$1</span>
819
+ <span class='const'>Area</span><span class='period'>.</span><span class='id new'>new</span> <span class='id area_id'>area_id</span><span class='comma'>,</span> <span class='kw'>self</span>
820
+ <span class='kw'>end</span>
821
+ <span class='kw'>end</span></pre>
822
+ </td>
823
+ </tr>
824
+ </table>
825
+ </div>
826
+
827
+ <div class="method_details ">
828
+ <p class="signature " id="areas-instance_method">
829
+
830
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>areas</strong>
831
+
832
+
833
+
834
+ </p><div class="docstring">
835
+ <div class="discussion">
836
+ <p>
837
+ Returns all areas in this view.
838
+ </p>
839
+
840
+
841
+ </div>
842
+ </div>
843
+ <div class="tags">
844
+
845
+ </div><table class="source_code">
846
+ <tr>
847
+ <td>
848
+ <pre class="lines">
849
+
850
+
851
+ 811
852
+ 812
853
+ 813</pre>
854
+ </td>
855
+ <td>
856
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 811</span>
857
+
858
+ <span class='kw'>def</span> <span class='id areas'>areas</span>
859
+ <span class='id area_ids'>area_ids</span><span class='period'>.</span><span class='id map!'>map!</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id i'>i</span><span class='op'>|</span> <span class='const'>Area</span><span class='period'>.</span><span class='id new'>new</span> <span class='id i'>i</span><span class='comma'>,</span> <span class='kw'>self</span> <span class='rbrace'>}</span>
860
+ <span class='kw'>end</span></pre>
861
+ </td>
862
+ </tr>
863
+ </table>
864
+ </div>
865
+
866
+ <div class="method_details ">
867
+ <p class="signature " id="arrange_as_larswm-instance_method">
868
+
869
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>arrange_as_larswm</strong>
870
+
871
+
872
+
873
+ </p><div class="docstring">
874
+ <div class="discussion">
875
+ <p>
876
+ Arranges the clients in this view, while maintaining their relative order,
877
+ in the tiling fashion of LarsWM.
878
+ </p>
879
+ <p>
880
+ Only the first client in the primary column is kept; all others are evicted
881
+ to the <b>top</b> of the secondary column. Any subsequent columns are
882
+ squeezed into the <b>bottom</b> of the secondary column.
883
+ </p>
884
+
885
+
886
+ </div>
887
+ </div>
888
+ <div class="tags">
889
+
890
+ </div><table class="source_code">
891
+ <tr>
892
+ <td>
893
+ <pre class="lines">
894
+
895
+
896
+ 865
897
+ 866
898
+ 867
899
+ 868
900
+ 869
901
+ 870
902
+ 871
903
+ 872
904
+ 873
905
+ 874
906
+ 875
907
+ 876
908
+ 877
909
+ 878
910
+ 879</pre>
911
+ </td>
912
+ <td>
913
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 865</span>
914
+
915
+ <span class='kw'>def</span> <span class='id arrange_as_larswm'>arrange_as_larswm</span>
916
+ <span class='id maintain_focus'>maintain_focus</span> <span class='kw'>do</span>
917
+ <span class='comment'># keep only one client in the primary column
918
+ </span> <span class='id main'>main</span> <span class='op'>=</span> <span class='const'>Area</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='int'>1</span><span class='comma'>,</span> <span class='kw'>self</span><span class='rparen'>)</span>
919
+ <span class='id main'>main</span><span class='period'>.</span><span class='id length'>length</span> <span class='op'>=</span> <span class='int'>1</span>
920
+ <span class='id main'>main</span><span class='period'>.</span><span class='id layout'>layout</span> <span class='op'>=</span> <span class='symbol'>:default</span>
921
+
922
+ <span class='comment'># collapse remaining areas into secondary column
923
+ </span> <span class='id extra'>extra</span> <span class='op'>=</span> <span class='id squeeze_columns'>squeeze_columns</span><span class='lparen'>(</span><span class='int'>1</span><span class='op'>..</span><span class='op'>-</span><span class='int'>1</span><span class='rparen'>)</span>
924
+
925
+ <span class='kw'>if</span> <span class='id dock'>dock</span> <span class='op'>=</span> <span class='id extra'>extra</span><span class='period'>.</span><span class='id first'>first</span>
926
+ <span class='id dock'>dock</span><span class='period'>.</span><span class='id layout'>layout</span> <span class='op'>=</span> <span class='symbol'>:default</span>
927
+ <span class='kw'>end</span>
928
+ <span class='kw'>end</span>
929
+ <span class='kw'>end</span></pre>
930
+ </td>
931
+ </tr>
932
+ </table>
933
+ </div>
934
+
935
+ <div class="method_details ">
936
+ <p class="signature " id="arrange_in_diamond-instance_method">
937
+
938
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>arrange_in_diamond</strong>
939
+
940
+
941
+
942
+ </p><div class="docstring">
943
+ <div class="discussion">
944
+ <p>
945
+ Arranges the clients in this view, while maintaining their relative order,
946
+ in a (at best) equilateral triangle. However, the resulting arrangement
947
+ appears like a diamond because wmii does not waste screen space.
948
+ </p>
949
+
950
+
951
+ </div>
952
+ </div>
953
+ <div class="tags">
954
+
955
+ </div><table class="source_code">
956
+ <tr>
957
+ <td>
958
+ <pre class="lines">
959
+
960
+
961
+ 938
962
+ 939
963
+ 940
964
+ 941
965
+ 942
966
+ 943
967
+ 944
968
+ 945
969
+ 946
970
+ 947
971
+ 948
972
+ 949
973
+ 950
974
+ 951
975
+ 952
976
+ 953
977
+ 954
978
+ 955
979
+ 956
980
+ 957
981
+ 958
982
+ 959
983
+ 960
984
+ 961
985
+ 962
986
+ 963
987
+ 964
988
+ 965
989
+ 966
990
+ 967
991
+ 968
992
+ 969
993
+ 970
994
+ 971
995
+ 972
996
+ 973
997
+ 974</pre>
998
+ </td>
999
+ <td>
1000
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 938</span>
1001
+
1002
+ <span class='kw'>def</span> <span class='id arrange_in_diamond'>arrange_in_diamond</span>
1003
+ <span class='id num_clients'>num_clients</span> <span class='op'>=</span> <span class='id num_managed_clients'>num_managed_clients</span>
1004
+ <span class='kw'>return</span> <span class='kw'>unless</span> <span class='id num_clients'>num_clients</span> <span class='op'>&gt;</span> <span class='int'>1</span>
1005
+
1006
+ <span class='comment'># determine dimensions of the rising sub-triangle
1007
+ </span> <span class='id rise'>rise</span> <span class='op'>=</span> <span class='id num_clients'>num_clients</span> <span class='op'>/</span> <span class='int'>2</span>
1008
+
1009
+ <span class='id span'>span</span> <span class='op'>=</span> <span class='id sum'>sum</span> <span class='op'>=</span> <span class='int'>0</span>
1010
+ <span class='int'>1</span><span class='period'>.</span><span class='id upto'>upto</span> <span class='id rise'>rise</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id h'>h</span><span class='op'>|</span>
1011
+ <span class='kw'>if</span> <span class='id sum'>sum</span> <span class='op'>+</span> <span class='id h'>h</span> <span class='op'>&gt;</span> <span class='id rise'>rise</span>
1012
+ <span class='kw'>break</span>
1013
+ <span class='kw'>else</span>
1014
+ <span class='id sum'>sum</span> <span class='op'>+=</span> <span class='id h'>h</span>
1015
+ <span class='id span'>span</span> <span class='op'>+=</span> <span class='int'>1</span>
1016
+ <span class='kw'>end</span>
1017
+ <span class='kw'>end</span>
1018
+
1019
+ <span class='id peak'>peak</span> <span class='op'>=</span> <span class='id num_clients'>num_clients</span> <span class='op'>-</span> <span class='lparen'>(</span><span class='id sum'>sum</span> <span class='op'>*</span> <span class='int'>2</span><span class='rparen'>)</span>
1020
+
1021
+ <span class='comment'># describe the overall triangle as a sequence of heights
1022
+ </span> <span class='id rise_seq'>rise_seq</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='int'>1</span><span class='op'>..</span><span class='id span'>span</span><span class='rparen'>)</span><span class='period'>.</span><span class='id to_a'>to_a</span>
1023
+ <span class='id fall_seq'>fall_seq</span> <span class='op'>=</span> <span class='id rise_seq'>rise_seq</span><span class='period'>.</span><span class='id reverse'>reverse</span>
1024
+
1025
+ <span class='id heights'>heights</span> <span class='op'>=</span> <span class='id rise_seq'>rise_seq</span>
1026
+ <span class='id heights'>heights</span> <span class='op'>&lt;&lt;</span> <span class='id peak'>peak</span> <span class='kw'>if</span> <span class='id peak'>peak</span> <span class='op'>&gt;</span> <span class='int'>0</span>
1027
+ <span class='id heights'>heights</span><span class='period'>.</span><span class='id concat'>concat</span> <span class='id fall_seq'>fall_seq</span>
1028
+
1029
+ <span class='comment'># apply the heights
1030
+ </span> <span class='id maintain_focus'>maintain_focus</span> <span class='kw'>do</span>
1031
+ <span class='id each_column'>each_column</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id col'>col</span><span class='op'>|</span>
1032
+ <span class='kw'>if</span> <span class='id h'>h</span> <span class='op'>=</span> <span class='id heights'>heights</span><span class='period'>.</span><span class='id shift'>shift</span>
1033
+ <span class='id col'>col</span><span class='period'>.</span><span class='id length'>length</span> <span class='op'>=</span> <span class='id h'>h</span>
1034
+ <span class='id col'>col</span><span class='period'>.</span><span class='id layout'>layout</span> <span class='op'>=</span> <span class='symbol'>:default</span>
1035
+ <span class='kw'>end</span>
1036
+ <span class='kw'>end</span>
1037
+ <span class='kw'>end</span>
1038
+ <span class='kw'>end</span></pre>
1039
+ </td>
1040
+ </tr>
1041
+ </table>
1042
+ </div>
1043
+
1044
+ <div class="method_details ">
1045
+ <p class="signature " id="arrange_in_grid-instance_method">
1046
+
1047
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>arrange_in_grid</strong>(max_clients_per_column = nil)
1048
+
1049
+
1050
+
1051
+ </p><div class="docstring">
1052
+ <div class="discussion">
1053
+ <p>
1054
+ Arranges the clients in this view, while maintaining their relative order,
1055
+ in a (at best) square grid.
1056
+ </p>
1057
+
1058
+
1059
+ </div>
1060
+ </div>
1061
+ <div class="tags">
1062
+
1063
+ </div><table class="source_code">
1064
+ <tr>
1065
+ <td>
1066
+ <pre class="lines">
1067
+
1068
+
1069
+ 885
1070
+ 886
1071
+ 887
1072
+ 888
1073
+ 889
1074
+ 890
1075
+ 891
1076
+ 892
1077
+ 893
1078
+ 894
1079
+ 895
1080
+ 896
1081
+ 897
1082
+ 898
1083
+ 899
1084
+ 900
1085
+ 901
1086
+ 902
1087
+ 903
1088
+ 904</pre>
1089
+ </td>
1090
+ <td>
1091
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 885</span>
1092
+
1093
+ <span class='kw'>def</span> <span class='id arrange_in_grid'>arrange_in_grid</span> <span class='id max_clients_per_column'>max_clients_per_column</span> <span class='op'>=</span> <span class='kw'>nil</span>
1094
+ <span class='comment'># compute client distribution
1095
+ </span> <span class='kw'>unless</span> <span class='id max_clients_per_column'>max_clients_per_column</span>
1096
+ <span class='id num_clients'>num_clients</span> <span class='op'>=</span> <span class='id num_managed_clients'>num_managed_clients</span>
1097
+ <span class='kw'>return</span> <span class='kw'>unless</span> <span class='id num_clients'>num_clients</span> <span class='op'>&gt;</span> <span class='int'>0</span>
1098
+
1099
+ <span class='id num_columns'>num_columns</span> <span class='op'>=</span> <span class='const'>Math</span><span class='period'>.</span><span class='id sqrt'>sqrt</span><span class='lparen'>(</span><span class='id num_clients'>num_clients</span><span class='rparen'>)</span>
1100
+ <span class='id max_clients_per_column'>max_clients_per_column</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id num_clients'>num_clients</span> <span class='op'>/</span> <span class='id num_columns'>num_columns</span><span class='rparen'>)</span><span class='period'>.</span><span class='id round'>round</span>
1101
+ <span class='kw'>end</span>
1102
+
1103
+ <span class='kw'>return</span> <span class='kw'>if</span> <span class='id max_clients_per_column'>max_clients_per_column</span> <span class='op'>&lt;</span> <span class='int'>1</span>
1104
+
1105
+ <span class='comment'># apply the distribution
1106
+ </span> <span class='id maintain_focus'>maintain_focus</span> <span class='kw'>do</span>
1107
+ <span class='id each_column'>each_column</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id a'>a</span><span class='op'>|</span>
1108
+ <span class='id a'>a</span><span class='period'>.</span><span class='id length'>length</span> <span class='op'>=</span> <span class='id max_clients_per_column'>max_clients_per_column</span>
1109
+ <span class='id a'>a</span><span class='period'>.</span><span class='id layout'>layout</span> <span class='op'>=</span> <span class='symbol'>:default</span>
1110
+ <span class='kw'>end</span>
1111
+ <span class='kw'>end</span>
1112
+ <span class='kw'>end</span></pre>
1113
+ </td>
1114
+ </tr>
1115
+ </table>
1116
+ </div>
1117
+
1118
+ <div class="method_details ">
1119
+ <p class="signature " id="arrange_in_stacks-instance_method">
1120
+
1121
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>arrange_in_stacks</strong>(num_stacks)
1122
+
1123
+
1124
+
1125
+ </p><div class="docstring">
1126
+ <div class="discussion">
1127
+ <p>
1128
+ Arranges the clients in this view, while maintaining their relative order,
1129
+ in the given number of columns.
1130
+ </p>
1131
+
1132
+
1133
+ </div>
1134
+ </div>
1135
+ <div class="tags">
1136
+
1137
+ </div><table class="source_code">
1138
+ <tr>
1139
+ <td>
1140
+ <pre class="lines">
1141
+
1142
+
1143
+ 910
1144
+ 911
1145
+ 912
1146
+ 913
1147
+ 914
1148
+ 915
1149
+ 916
1150
+ 917
1151
+ 918
1152
+ 919
1153
+ 920
1154
+ 921
1155
+ 922
1156
+ 923
1157
+ 924
1158
+ 925
1159
+ 926
1160
+ 927
1161
+ 928
1162
+ 929</pre>
1163
+ </td>
1164
+ <td>
1165
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 910</span>
1166
+
1167
+ <span class='kw'>def</span> <span class='id arrange_in_stacks'>arrange_in_stacks</span> <span class='id num_stacks'>num_stacks</span>
1168
+ <span class='kw'>return</span> <span class='kw'>if</span> <span class='id num_stacks'>num_stacks</span> <span class='op'>&lt;</span> <span class='int'>1</span>
1169
+
1170
+ <span class='comment'># compute client distribution
1171
+ </span> <span class='id num_clients'>num_clients</span> <span class='op'>=</span> <span class='id num_managed_clients'>num_managed_clients</span>
1172
+ <span class='kw'>return</span> <span class='kw'>unless</span> <span class='id num_clients'>num_clients</span> <span class='op'>&gt;</span> <span class='int'>0</span>
1173
+
1174
+ <span class='id stack_length'>stack_length</span> <span class='op'>=</span> <span class='id num_clients'>num_clients</span> <span class='op'>/</span> <span class='id num_stacks'>num_stacks</span>
1175
+ <span class='kw'>return</span> <span class='kw'>if</span> <span class='id stack_length'>stack_length</span> <span class='op'>&lt;</span> <span class='int'>1</span>
1176
+
1177
+ <span class='comment'># apply the distribution
1178
+ </span> <span class='id maintain_focus'>maintain_focus</span> <span class='kw'>do</span>
1179
+ <span class='id each_column'>each_column</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id a'>a</span><span class='op'>|</span>
1180
+ <span class='id a'>a</span><span class='period'>.</span><span class='id length'>length</span> <span class='op'>=</span> <span class='id stack_length'>stack_length</span>
1181
+ <span class='id a'>a</span><span class='period'>.</span><span class='id layout'>layout</span> <span class='op'>=</span> <span class='symbol'>:stack</span>
1182
+ <span class='kw'>end</span>
1183
+
1184
+ <span class='id squeeze_columns'>squeeze_columns</span> <span class='id num_stacks'>num_stacks</span><span class='op'>-</span><span class='int'>1</span><span class='op'>..</span><span class='op'>-</span><span class='int'>1</span>
1185
+ <span class='kw'>end</span>
1186
+ <span class='kw'>end</span></pre>
1187
+ </td>
1188
+ </tr>
1189
+ </table>
1190
+ </div>
1191
+
1192
+ <div class="method_details ">
1193
+ <p class="signature " id="chain-instance_method">
1194
+
1195
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>chain</strong>
1196
+
1197
+
1198
+
1199
+ </p><div class="docstring">
1200
+ <div class="discussion">
1201
+ <p>
1202
+ Returns a list of all views.
1203
+ </p>
1204
+
1205
+
1206
+ </div>
1207
+ </div>
1208
+ <div class="tags">
1209
+
1210
+ </div><table class="source_code">
1211
+ <tr>
1212
+ <td>
1213
+ <pre class="lines">
1214
+
1215
+
1216
+ 735
1217
+ 736
1218
+ 737</pre>
1219
+ </td>
1220
+ <td>
1221
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 735</span>
1222
+
1223
+ <span class='kw'>def</span> <span class='id chain'>chain</span>
1224
+ <span class='const'>Rumai</span><span class='period'>.</span><span class='id views'>views</span>
1225
+ <span class='kw'>end</span></pre>
1226
+ </td>
1227
+ </tr>
1228
+ </table>
1229
+ </div>
1230
+
1231
+ <div class="method_details ">
1232
+ <p class="signature " id="client_ids-instance_method">
1233
+
1234
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>client_ids</strong>(area_id = '\S+')
1235
+
1236
+
1237
+
1238
+ </p><div class="docstring">
1239
+ <div class="discussion">
1240
+ <p>
1241
+ Returns the IDs of the clients contained in the given area within this
1242
+ view.
1243
+ </p>
1244
+
1245
+
1246
+ </div>
1247
+ </div>
1248
+ <div class="tags">
1249
+
1250
+ </div><table class="source_code">
1251
+ <tr>
1252
+ <td>
1253
+ <pre class="lines">
1254
+
1255
+
1256
+ 745
1257
+ 746
1258
+ 747</pre>
1259
+ </td>
1260
+ <td>
1261
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 745</span>
1262
+
1263
+ <span class='kw'>def</span> <span class='id client_ids'>client_ids</span> <span class='id area_id'>area_id</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>\S+</span><span class='tstring_end'>'</span></span>
1264
+ <span class='id manifest'>manifest</span><span class='period'>.</span><span class='id scan'>scan</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^</span><span class='embexpr_beg'>#{</span><span class='id area_id'>area_id</span><span class='rbrace'>}</span><span class='tstring_content'> (0x\S+)</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id flatten'>flatten</span>
1265
+ <span class='kw'>end</span></pre>
1266
+ </td>
1267
+ </tr>
1268
+ </table>
1269
+ </div>
1270
+
1271
+ <div class="method_details ">
1272
+ <p class="signature " id="columns-instance_method">
1273
+
1274
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>columns</strong>
1275
+
1276
+
1277
+
1278
+ <span class="aliases">Also known as:
1279
+ <span class="names"><span id='managed_areas-instance_method'>managed_areas</span></span>
1280
+ </span>
1281
+
1282
+ </p><div class="docstring">
1283
+ <div class="discussion">
1284
+ <p>
1285
+ Returns all columns (managed areas) in this view.
1286
+ </p>
1287
+
1288
+
1289
+ </div>
1290
+ </div>
1291
+ <div class="tags">
1292
+
1293
+ </div><table class="source_code">
1294
+ <tr>
1295
+ <td>
1296
+ <pre class="lines">
1297
+
1298
+
1299
+ 825
1300
+ 826
1301
+ 827</pre>
1302
+ </td>
1303
+ <td>
1304
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 825</span>
1305
+
1306
+ <span class='kw'>def</span> <span class='id columns'>columns</span>
1307
+ <span class='id areas'>areas</span><span class='lbracket'>[</span><span class='int'>1</span><span class='op'>..</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span>
1308
+ <span class='kw'>end</span></pre>
1309
+ </td>
1310
+ </tr>
1311
+ </table>
1312
+ </div>
1313
+
1314
+ <div class="method_details ">
1315
+ <p class="signature " id="each-instance_method">
1316
+
1317
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>each</strong>(&amp;block)
1318
+
1319
+
1320
+
1321
+ </p><div class="docstring">
1322
+ <div class="discussion">
1323
+ <p>
1324
+ Iterates through each area in this view.
1325
+ </p>
1326
+
1327
+
1328
+ </div>
1329
+ </div>
1330
+ <div class="tags">
1331
+
1332
+ </div><table class="source_code">
1333
+ <tr>
1334
+ <td>
1335
+ <pre class="lines">
1336
+
1337
+
1338
+ 754
1339
+ 755
1340
+ 756</pre>
1341
+ </td>
1342
+ <td>
1343
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 754</span>
1344
+
1345
+ <span class='kw'>def</span> <span class='id each'>each</span> <span class='op'>&amp;</span><span class='id block'>block</span>
1346
+ <span class='id areas'>areas</span><span class='period'>.</span><span class='id each'>each</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id block'>block</span><span class='rparen'>)</span>
1347
+ <span class='kw'>end</span></pre>
1348
+ </td>
1349
+ </tr>
1350
+ </table>
1351
+ </div>
1352
+
1353
+ <div class="method_details ">
1354
+ <p class="signature " id="each_column-instance_method">
1355
+
1356
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>each_column</strong>(starting_column_id = 1)
1357
+
1358
+
1359
+
1360
+ <span class="aliases">Also known as:
1361
+ <span class="names"><span id='each_managed_area-instance_method'>each_managed_area</span></span>
1362
+ </span>
1363
+
1364
+ </p><div class="docstring">
1365
+ <div class="discussion">
1366
+ <p>
1367
+ Resiliently iterates through possibly destructive changes to each column.
1368
+ That is, if the given block creates new columns, then those will also be
1369
+ processed in the iteration.
1370
+ </p>
1371
+
1372
+
1373
+ </div>
1374
+ </div>
1375
+ <div class="tags">
1376
+
1377
+ </div><table class="source_code">
1378
+ <tr>
1379
+ <td>
1380
+ <pre class="lines">
1381
+
1382
+
1383
+ 836
1384
+ 837
1385
+ 838
1386
+ 839
1387
+ 840
1388
+ 841
1389
+ 842
1390
+ 843
1391
+ 844
1392
+ 845
1393
+ 846
1394
+ 847
1395
+ 848
1396
+ 849</pre>
1397
+ </td>
1398
+ <td>
1399
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 836</span>
1400
+
1401
+ <span class='kw'>def</span> <span class='id each_column'>each_column</span> <span class='id starting_column_id'>starting_column_id</span> <span class='op'>=</span> <span class='int'>1</span>
1402
+ <span class='id i'>i</span> <span class='op'>=</span> <span class='id starting_column_id'>starting_column_id</span>
1403
+ <span class='id loop'>loop</span> <span class='kw'>do</span>
1404
+ <span class='id a'>a</span> <span class='op'>=</span> <span class='const'>Area</span><span class='period'>.</span><span class='id new'>new</span> <span class='id i'>i</span><span class='comma'>,</span> <span class='kw'>self</span>
1405
+
1406
+ <span class='kw'>if</span> <span class='id a'>a</span><span class='period'>.</span><span class='id exist?'>exist?</span>
1407
+ <span class='kw'>yield</span> <span class='id a'>a</span>
1408
+ <span class='kw'>else</span>
1409
+ <span class='kw'>break</span>
1410
+ <span class='kw'>end</span>
1411
+
1412
+ <span class='id i'>i</span> <span class='op'>+=</span> <span class='int'>1</span>
1413
+ <span class='kw'>end</span>
1414
+ <span class='kw'>end</span></pre>
1415
+ </td>
1416
+ </tr>
1417
+ </table>
1418
+ </div>
1419
+
1420
+ <div class="method_details ">
1421
+ <p class="signature " id="floating_area-instance_method">
1422
+
1423
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>floating_area</strong>
1424
+
1425
+
1426
+
1427
+ </p><div class="docstring">
1428
+ <div class="discussion">
1429
+ <p>
1430
+ Returns the floating area of this view.
1431
+ </p>
1432
+
1433
+
1434
+ </div>
1435
+ </div>
1436
+ <div class="tags">
1437
+
1438
+ </div><table class="source_code">
1439
+ <tr>
1440
+ <td>
1441
+ <pre class="lines">
1442
+
1443
+
1444
+ 818
1445
+ 819
1446
+ 820</pre>
1447
+ </td>
1448
+ <td>
1449
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 818</span>
1450
+
1451
+ <span class='kw'>def</span> <span class='id floating_area'>floating_area</span>
1452
+ <span class='const'>Area</span><span class='period'>.</span><span class='id floating'>floating</span> <span class='kw'>self</span>
1453
+ <span class='kw'>end</span></pre>
1454
+ </td>
1455
+ </tr>
1456
+ </table>
1457
+ </div>
1458
+
1459
+ <div class="method_details ">
1460
+ <p class="signature " id="focus-instance_method">
1461
+
1462
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>focus</strong>
1463
+
1464
+
1465
+
1466
+ </p><div class="docstring">
1467
+ <div class="discussion">
1468
+ <p>
1469
+ Focuses this view.
1470
+ </p>
1471
+
1472
+
1473
+ </div>
1474
+ </div>
1475
+ <div class="tags">
1476
+
1477
+ </div><table class="source_code">
1478
+ <tr>
1479
+ <td>
1480
+ <pre class="lines">
1481
+
1482
+
1483
+ 726
1484
+ 727
1485
+ 728</pre>
1486
+ </td>
1487
+ <td>
1488
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 726</span>
1489
+
1490
+ <span class='kw'>def</span> <span class='id focus'>focus</span>
1491
+ <span class='const'>IXP_FS_ROOT</span><span class='period'>.</span><span class='id ctl'>ctl</span><span class='period'>.</span><span class='id write'>write</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>view </span><span class='embexpr_beg'>#{</span><span class='ivar'>@id</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1492
+ <span class='kw'>end</span></pre>
1493
+ </td>
1494
+ </tr>
1495
+ </table>
1496
+ </div>
1497
+
1498
+ <div class="method_details ">
1499
+ <p class="signature " id="manifest-instance_method">
1500
+
1501
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>manifest</strong>
1502
+
1503
+
1504
+
1505
+ </p><div class="docstring">
1506
+ <div class="discussion">
1507
+ <p>
1508
+ Returns the manifest of all areas and clients in this view.
1509
+ </p>
1510
+
1511
+
1512
+ </div>
1513
+ </div>
1514
+ <div class="tags">
1515
+
1516
+ </div><table class="source_code">
1517
+ <tr>
1518
+ <td>
1519
+ <pre class="lines">
1520
+
1521
+
1522
+ 769
1523
+ 770
1524
+ 771</pre>
1525
+ </td>
1526
+ <td>
1527
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 769</span>
1528
+
1529
+ <span class='kw'>def</span> <span class='id manifest'>manifest</span>
1530
+ <span class='id index'>index</span><span class='period'>.</span><span class='id read'>read</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
1531
+ <span class='kw'>end</span></pre>
1532
+ </td>
1533
+ </tr>
1534
+ </table>
1535
+ </div>
1536
+
1537
+ <div class="method_details ">
1538
+ <p class="signature " id="select-instance_method">
1539
+
1540
+ - (<tt><a href="../Object.html" title="Object (class)">Object</a></tt>) <strong>select</strong>(direction)
1541
+
1542
+
1543
+
1544
+ </p><div class="docstring">
1545
+ <div class="discussion">
1546
+ <p>
1547
+ Moves the focus from the current client in the given direction.
1548
+ </p>
1549
+
1550
+
1551
+ </div>
1552
+ </div>
1553
+ <div class="tags">
1554
+
1555
+ </div><table class="source_code">
1556
+ <tr>
1557
+ <td>
1558
+ <pre class="lines">
1559
+
1560
+
1561
+ 776
1562
+ 777
1563
+ 778</pre>
1564
+ </td>
1565
+ <td>
1566
+ <pre class="code"><span class="info file"># File 'lib/rumai/wm.rb', line 776</span>
1567
+
1568
+ <span class='kw'>def</span> <span class='id select'>select</span> <span class='id direction'>direction</span>
1569
+ <span class='id ctl'>ctl</span><span class='period'>.</span><span class='id write'>write</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>select </span><span class='embexpr_beg'>#{</span><span class='id direction'>direction</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1570
+ <span class='kw'>end</span></pre>
1571
+ </td>
1572
+ </tr>
1573
+ </table>
1574
+ </div>
1575
+
1576
+ </div>
1577
+
1578
+ </div>
1579
+
1580
+ <div id="footer">
1581
+ Generated on Mon Mar 22 22:23:55 2010 by
1582
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
1583
+ 0.5.4 (ruby-1.9.1).
1584
+ </div>
1585
+
1586
+ </body>
1587
+ </html>