rumai 3.2.2 → 3.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. data/CREDITS +27 -5
  2. data/bin/rumai +12 -37
  3. data/lib/rumai/inochi.rb +8 -17
  4. data/lib/rumai/irb.rb +21 -0
  5. data/man.html +914 -0
  6. data/man/man1/rumai.1.gz +0 -0
  7. metadata +19 -94
  8. data/HISTORY +0 -350
  9. data/INSTALL +0 -33
  10. data/MANUAL +0 -26
  11. data/README +0 -92
  12. data/USAGE +0 -297
  13. data/doc/ann.xml +0 -61
  14. data/doc/api/IO.html +0 -119
  15. data/doc/api/Integer.html +0 -171
  16. data/doc/api/Rumai.html +0 -1540
  17. data/doc/api/Rumai/Area.html +0 -1485
  18. data/doc/api/Rumai/Chain.html +0 -301
  19. data/doc/api/Rumai/Client.html +0 -2451
  20. data/doc/api/Rumai/ClientContainer.html +0 -301
  21. data/doc/api/Rumai/ExportInstanceMethods.html +0 -103
  22. data/doc/api/Rumai/IXP.html +0 -94
  23. data/doc/api/Rumai/IXP/Agent.html +0 -1625
  24. data/doc/api/Rumai/IXP/Agent/FidStream.html +0 -959
  25. data/doc/api/Rumai/IXP/Agent/RangedPool.html +0 -381
  26. data/doc/api/Rumai/IXP/Error.html +0 -110
  27. data/doc/api/Rumai/IXP/Fcall.html +0 -503
  28. data/doc/api/Rumai/IXP/Qid.html +0 -207
  29. data/doc/api/Rumai/IXP/Rattach.html +0 -148
  30. data/doc/api/Rumai/IXP/Rauth.html +0 -148
  31. data/doc/api/Rumai/IXP/Rclunk.html +0 -148
  32. data/doc/api/Rumai/IXP/Rcreate.html +0 -148
  33. data/doc/api/Rumai/IXP/Rerror.html +0 -148
  34. data/doc/api/Rumai/IXP/Rflush.html +0 -148
  35. data/doc/api/Rumai/IXP/Ropen.html +0 -148
  36. data/doc/api/Rumai/IXP/Rread.html +0 -148
  37. data/doc/api/Rumai/IXP/Rremove.html +0 -148
  38. data/doc/api/Rumai/IXP/Rstat.html +0 -148
  39. data/doc/api/Rumai/IXP/Rversion.html +0 -148
  40. data/doc/api/Rumai/IXP/Rwalk.html +0 -148
  41. data/doc/api/Rumai/IXP/Rwrite.html +0 -148
  42. data/doc/api/Rumai/IXP/Rwstat.html +0 -148
  43. data/doc/api/Rumai/IXP/Stat.html +0 -335
  44. data/doc/api/Rumai/IXP/Stream.html +0 -194
  45. data/doc/api/Rumai/IXP/Struct.html +0 -586
  46. data/doc/api/Rumai/IXP/Struct/ClassField.html +0 -242
  47. data/doc/api/Rumai/IXP/Struct/Field.html +0 -782
  48. data/doc/api/Rumai/IXP/Struct/Field/CounteeField.html +0 -227
  49. data/doc/api/Rumai/IXP/Struct/Field/CounterField.html +0 -153
  50. data/doc/api/Rumai/IXP/Struct/Integer8Field.html +0 -242
  51. data/doc/api/Rumai/IXP/Struct/StringField.html +0 -206
  52. data/doc/api/Rumai/IXP/Tattach.html +0 -148
  53. data/doc/api/Rumai/IXP/Tauth.html +0 -148
  54. data/doc/api/Rumai/IXP/Tclunk.html +0 -148
  55. data/doc/api/Rumai/IXP/Tcreate.html +0 -148
  56. data/doc/api/Rumai/IXP/Terror.html +0 -231
  57. data/doc/api/Rumai/IXP/Tflush.html +0 -148
  58. data/doc/api/Rumai/IXP/Topen.html +0 -240
  59. data/doc/api/Rumai/IXP/Tread.html +0 -148
  60. data/doc/api/Rumai/IXP/Tremove.html +0 -148
  61. data/doc/api/Rumai/IXP/Tstat.html +0 -148
  62. data/doc/api/Rumai/IXP/Tversion.html +0 -162
  63. data/doc/api/Rumai/IXP/Twalk.html +0 -148
  64. data/doc/api/Rumai/IXP/Twrite.html +0 -148
  65. data/doc/api/Rumai/IXP/Twstat.html +0 -148
  66. data/doc/api/Rumai/Node.html +0 -1406
  67. data/doc/api/Rumai/View.html +0 -1587
  68. data/doc/api/Rumai/WidgetImpl.html +0 -333
  69. data/doc/api/Rumai/WidgetNode.html +0 -246
  70. data/doc/api/String.html +0 -258
  71. data/doc/api/StringIO.html +0 -119
  72. data/doc/api/Time.html +0 -247
  73. data/doc/api/_index.html +0 -581
  74. data/doc/api/class_list.html +0 -36
  75. data/doc/api/css/common.css +0 -1
  76. data/doc/api/css/full_list.css +0 -50
  77. data/doc/api/css/style.css +0 -273
  78. data/doc/api/file.LICENSE.html +0 -73
  79. data/doc/api/file_list.html +0 -38
  80. data/doc/api/frames.html +0 -13
  81. data/doc/api/index.html +0 -73
  82. data/doc/api/js/app.js +0 -111
  83. data/doc/api/js/full_list.js +0 -117
  84. data/doc/api/js/jquery.js +0 -19
  85. data/doc/api/method_list.html +0 -1491
  86. data/doc/api/top-level-namespace.html +0 -89
  87. data/doc/index.html +0 -2655
  88. data/inochi.opts +0 -31
  89. data/test/rumai/ixp/message_test.rb +0 -245
  90. data/test/runner +0 -25
  91. data/test/test_helper.rb +0 -1
@@ -1,1587 +0,0 @@
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 Thu Apr 1 00:30:57 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>