rumai 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CREDITS +2 -0
- data/bin/rumai +20 -8
- data/doc/api/classes/IO.html +72 -0
- data/doc/api/classes/Integer.html +110 -0
- data/doc/api/classes/Object.html +60 -0
- data/doc/api/classes/Rumai.html +867 -0
- data/doc/api/classes/Rumai/Area.html +836 -0
- data/doc/api/classes/Rumai/Chain.html +197 -0
- data/doc/api/classes/Rumai/Client.html +865 -0
- data/doc/api/classes/Rumai/ClientContainer.html +191 -0
- data/doc/api/classes/Rumai/ExportInstanceMethods.html +69 -0
- data/doc/api/classes/Rumai/IXP.html +131 -0
- data/doc/api/classes/Rumai/IXP/Agent.html +836 -0
- data/doc/api/classes/Rumai/IXP/Agent/FidStream.html +456 -0
- data/doc/api/classes/Rumai/IXP/Agent/MODES.html +108 -0
- data/doc/api/classes/Rumai/IXP/Agent/RangedPool.html +241 -0
- data/doc/api/classes/Rumai/IXP/Error.html +67 -0
- data/doc/api/classes/Rumai/IXP/Fcall.html +323 -0
- data/doc/api/classes/Rumai/IXP/Qid.html +153 -0
- data/doc/api/classes/Rumai/IXP/Rattach.html +67 -0
- data/doc/api/classes/Rumai/IXP/Rauth.html +67 -0
- data/doc/api/classes/Rumai/IXP/Rclunk.html +67 -0
- data/doc/api/classes/Rumai/IXP/Rcreate.html +67 -0
- data/doc/api/classes/Rumai/IXP/Rerror.html +67 -0
- data/doc/api/classes/Rumai/IXP/Rflush.html +67 -0
- data/doc/api/classes/Rumai/IXP/Ropen.html +67 -0
- data/doc/api/classes/Rumai/IXP/Rread.html +67 -0
- data/doc/api/classes/Rumai/IXP/Rremove.html +67 -0
- data/doc/api/classes/Rumai/IXP/Rstat.html +67 -0
- data/doc/api/classes/Rumai/IXP/Rversion.html +67 -0
- data/doc/api/classes/Rumai/IXP/Rwalk.html +67 -0
- data/doc/api/classes/Rumai/IXP/Rwrite.html +67 -0
- data/doc/api/classes/Rumai/IXP/Rwstat.html +67 -0
- data/doc/api/classes/Rumai/IXP/Stat.html +252 -0
- data/doc/api/classes/Rumai/IXP/Stream.html +131 -0
- data/doc/api/classes/Rumai/IXP/Struct.html +315 -0
- data/doc/api/classes/Rumai/IXP/Struct/Field.html +415 -0
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounteeField.html +153 -0
- data/doc/api/classes/Rumai/IXP/Struct/Field/CounterField.html +104 -0
- data/doc/api/classes/Rumai/IXP/Tattach.html +68 -0
- data/doc/api/classes/Rumai/IXP/Tauth.html +67 -0
- data/doc/api/classes/Rumai/IXP/Tclunk.html +67 -0
- data/doc/api/classes/Rumai/IXP/Tcreate.html +68 -0
- data/doc/api/classes/Rumai/IXP/Terror.html +110 -0
- data/doc/api/classes/Rumai/IXP/Tflush.html +67 -0
- data/doc/api/classes/Rumai/IXP/Topen.html +165 -0
- data/doc/api/classes/Rumai/IXP/Tread.html +67 -0
- data/doc/api/classes/Rumai/IXP/Tremove.html +67 -0
- data/doc/api/classes/Rumai/IXP/Tstat.html +67 -0
- data/doc/api/classes/Rumai/IXP/Tversion.html +86 -0
- data/doc/api/classes/Rumai/IXP/Twalk.html +68 -0
- data/doc/api/classes/Rumai/IXP/Twrite.html +68 -0
- data/doc/api/classes/Rumai/IXP/Twstat.html +67 -0
- data/doc/api/classes/Rumai/Node.html +817 -0
- data/doc/api/classes/Rumai/View.html +818 -0
- data/doc/api/classes/Rumai/WidgetImpl.html +65 -0
- data/doc/api/classes/Rumai/WidgetNode.html +68 -0
- data/doc/api/classes/String.html +163 -0
- data/doc/api/classes/StringIO.html +72 -0
- data/doc/api/classes/Time.html +156 -0
- data/doc/api/created.rid +1 -0
- data/doc/api/css/main.css +263 -0
- data/doc/api/css/panel.css +383 -0
- data/doc/api/css/reset.css +53 -0
- data/doc/api/files/CREDITS.html +64 -0
- data/doc/api/files/LICENSE.html +76 -0
- data/doc/api/files/lib/rumai/fs_rb.html +75 -0
- data/doc/api/files/lib/rumai/ixp/message_rb.html +91 -0
- data/doc/api/files/lib/rumai/ixp/transport_rb.html +75 -0
- data/doc/api/files/lib/rumai/ixp_rb.html +69 -0
- data/doc/api/files/lib/rumai/wm_rb.html +77 -0
- data/doc/api/files/lib/rumai_rb.html +65 -0
- data/doc/api/i/arrows.png +0 -0
- data/doc/api/i/results_bg.png +0 -0
- data/doc/api/i/tree_bg.png +0 -0
- data/doc/api/index.html +14 -18
- data/doc/api/js/jquery-1.3.2.min.js +19 -0
- data/doc/api/js/jquery-effect.js +593 -0
- data/doc/api/js/main.js +22 -0
- data/doc/api/js/searchdoc.js +605 -0
- data/doc/api/panel/index.html +63 -0
- data/doc/api/panel/search_index.js +1 -0
- data/doc/api/panel/tree.js +1 -0
- data/doc/history.erb +41 -16
- data/doc/index.erb +14 -11
- data/doc/index.xhtml +519 -846
- data/doc/intro.erb +33 -32
- data/doc/setup.erb +14 -13
- data/doc/usage.erb +69 -35
- data/lib/rumai.rb +13 -5
- data/lib/rumai/fs.rb +71 -27
- data/lib/rumai/ixp.rb +4 -0
- data/lib/rumai/ixp/message.rb +178 -81
- data/lib/rumai/ixp/transport.rb +144 -91
- data/lib/rumai/wm.rb +717 -593
- data/rakefile +14 -0
- data/test/rumai/ixp/message.rb +42 -54
- metadata +110 -89
- data/Rakefile +0 -8
- data/doc/api/IO.html +0 -53
- data/doc/api/Integer.html +0 -102
- data/doc/api/Object.html +0 -23
- data/doc/api/Rumai.html +0 -1218
- data/doc/api/Rumai/Area.html +0 -1088
- data/doc/api/Rumai/Chain.html +0 -230
- data/doc/api/Rumai/Client.html +0 -1264
- data/doc/api/Rumai/ClientContainer.html +0 -227
- data/doc/api/Rumai/ExportInstMethods.html +0 -115
- data/doc/api/Rumai/IXP.html +0 -23
- data/doc/api/Rumai/IXP/Agent.html +0 -1222
- data/doc/api/Rumai/IXP/Agent/FidStream.html +0 -602
- data/doc/api/Rumai/IXP/Agent/RangedPool.html +0 -263
- data/doc/api/Rumai/IXP/Error.html +0 -32
- data/doc/api/Rumai/IXP/Fcall.html +0 -398
- data/doc/api/Rumai/IXP/Qid.html +0 -99
- data/doc/api/Rumai/IXP/Rattach.html +0 -71
- data/doc/api/Rumai/IXP/Rauth.html +0 -71
- data/doc/api/Rumai/IXP/Rclunk.html +0 -71
- data/doc/api/Rumai/IXP/Rcreate.html +0 -71
- data/doc/api/Rumai/IXP/Rerror.html +0 -71
- data/doc/api/Rumai/IXP/Rflush.html +0 -71
- data/doc/api/Rumai/IXP/Ropen.html +0 -71
- data/doc/api/Rumai/IXP/Rread.html +0 -71
- data/doc/api/Rumai/IXP/Rremove.html +0 -71
- data/doc/api/Rumai/IXP/Rstat.html +0 -71
- data/doc/api/Rumai/IXP/Rversion.html +0 -71
- data/doc/api/Rumai/IXP/Rwalk.html +0 -71
- data/doc/api/Rumai/IXP/Rwrite.html +0 -71
- data/doc/api/Rumai/IXP/Rwstat.html +0 -71
- data/doc/api/Rumai/IXP/Stat.html +0 -188
- data/doc/api/Rumai/IXP/Stream.html +0 -112
- data/doc/api/Rumai/IXP/Struct.html +0 -348
- data/doc/api/Rumai/IXP/Struct/ClassField.html +0 -177
- data/doc/api/Rumai/IXP/Struct/Field.html +0 -549
- data/doc/api/Rumai/IXP/Struct/Field/CounteeField.html +0 -175
- data/doc/api/Rumai/IXP/Struct/Field/CounterField.html +0 -95
- data/doc/api/Rumai/IXP/Struct/Integer8Field.html +0 -181
- data/doc/api/Rumai/IXP/Struct/StringField.html +0 -128
- data/doc/api/Rumai/IXP/Tattach.html +0 -71
- data/doc/api/Rumai/IXP/Tauth.html +0 -71
- data/doc/api/Rumai/IXP/Tclunk.html +0 -71
- data/doc/api/Rumai/IXP/Tcreate.html +0 -71
- data/doc/api/Rumai/IXP/Terror.html +0 -156
- data/doc/api/Rumai/IXP/Tflush.html +0 -71
- data/doc/api/Rumai/IXP/Topen.html +0 -113
- data/doc/api/Rumai/IXP/Tread.html +0 -71
- data/doc/api/Rumai/IXP/Tremove.html +0 -71
- data/doc/api/Rumai/IXP/Tstat.html +0 -71
- data/doc/api/Rumai/IXP/Tversion.html +0 -83
- data/doc/api/Rumai/IXP/Twalk.html +0 -71
- data/doc/api/Rumai/IXP/Twrite.html +0 -71
- data/doc/api/Rumai/IXP/Twstat.html +0 -71
- data/doc/api/Rumai/Node.html +0 -1139
- data/doc/api/Rumai/View.html +0 -1280
- data/doc/api/Rumai/WidgetImpl.html +0 -196
- data/doc/api/Rumai/WidgetNode.html +0 -184
- data/doc/api/String.html +0 -180
- data/doc/api/StringIO.html +0 -53
- data/doc/api/Time.html +0 -175
- data/doc/api/all-methods.html +0 -1436
- data/doc/api/all-namespaces.html +0 -140
- data/doc/api/app.js +0 -18
- data/doc/api/jquery.js +0 -11
- data/doc/api/readme.html +0 -38
- data/doc/api/style.css +0 -68
- data/doc/api/syntax_highlight.css +0 -21
- data/doc/theory.erb +0 -3
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
5
|
+
<head>
|
|
6
|
+
<title>Rumai::Chain</title>
|
|
7
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../css/reset.css" type="text/css" media="screen" />
|
|
9
|
+
<link rel="stylesheet" href="../../css/main.css" type="text/css" media="screen" />
|
|
10
|
+
<script src="../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
|
|
11
|
+
<script src="../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
|
|
12
|
+
<script src="../../js/main.js" type="text/javascript" charset="utf-8"></script>
|
|
13
|
+
</head>
|
|
14
|
+
|
|
15
|
+
<body>
|
|
16
|
+
<div class="banner">
|
|
17
|
+
<h1>
|
|
18
|
+
<span class="type">Module</span>
|
|
19
|
+
Rumai::Chain
|
|
20
|
+
|
|
21
|
+
</h1>
|
|
22
|
+
<ul class="files">
|
|
23
|
+
|
|
24
|
+
<li><a href="../../files/lib/rumai/wm_rb.html">lib/rumai/wm.rb</a></li>
|
|
25
|
+
|
|
26
|
+
</ul>
|
|
27
|
+
</div>
|
|
28
|
+
<div id="bodyContent">
|
|
29
|
+
<div id="content">
|
|
30
|
+
|
|
31
|
+
<div class="description">
|
|
32
|
+
<p>
|
|
33
|
+
NOTE: Inheritors must override the ‘chain’ method.
|
|
34
|
+
</p>
|
|
35
|
+
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class="sectiontitle">Methods</div>
|
|
47
|
+
<dl class="methods">
|
|
48
|
+
|
|
49
|
+
<dt>C</dt>
|
|
50
|
+
<dd>
|
|
51
|
+
<ul>
|
|
52
|
+
|
|
53
|
+
<li><a href="#M000024">chain</a></li>
|
|
54
|
+
|
|
55
|
+
</ul>
|
|
56
|
+
</dd>
|
|
57
|
+
|
|
58
|
+
<dt>N</dt>
|
|
59
|
+
<dd>
|
|
60
|
+
<ul>
|
|
61
|
+
|
|
62
|
+
<li><a href="#M000026">next</a></li>
|
|
63
|
+
|
|
64
|
+
</ul>
|
|
65
|
+
</dd>
|
|
66
|
+
|
|
67
|
+
<dt>P</dt>
|
|
68
|
+
<dd>
|
|
69
|
+
<ul>
|
|
70
|
+
|
|
71
|
+
<li><a href="#M000027">prev</a></li>
|
|
72
|
+
|
|
73
|
+
</ul>
|
|
74
|
+
</dd>
|
|
75
|
+
|
|
76
|
+
</dl>
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
<div class="sectiontitle">Instance Public methods</div>
|
|
91
|
+
|
|
92
|
+
<div class="method">
|
|
93
|
+
<div class="title" id="M000024">
|
|
94
|
+
|
|
95
|
+
<a name="M000024"></a><b>chain</b>()
|
|
96
|
+
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
<div class="description">
|
|
100
|
+
<p>
|
|
101
|
+
Returns an array of objects related to this one.
|
|
102
|
+
</p>
|
|
103
|
+
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
<div class="sourcecode">
|
|
110
|
+
<p class="source-link">
|
|
111
|
+
Source: <a href="javascript:toggleSource('M000024_source')" id="l_M000024_source">show</a>
|
|
112
|
+
|
|
113
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L89" target="_blank" class="github_url">on GitHub</a>
|
|
114
|
+
|
|
115
|
+
</p>
|
|
116
|
+
<div id="M000024_source" class="dyn-source">
|
|
117
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 89</span>
|
|
118
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chain</span>
|
|
119
|
+
[<span class="ruby-keyword kw">self</span>]
|
|
120
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
|
|
124
|
+
</div>
|
|
125
|
+
|
|
126
|
+
<div class="method">
|
|
127
|
+
<div class="title" id="M000026">
|
|
128
|
+
|
|
129
|
+
<a name="M000026"></a><b>next</b>()
|
|
130
|
+
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
<div class="description">
|
|
134
|
+
<p>
|
|
135
|
+
Returns the object after this one in the chain.
|
|
136
|
+
</p>
|
|
137
|
+
|
|
138
|
+
</div>
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
<div class="sourcecode">
|
|
144
|
+
<p class="source-link">
|
|
145
|
+
Source: <a href="javascript:toggleSource('M000026_source')" id="l_M000026_source">show</a>
|
|
146
|
+
|
|
147
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L96" target="_blank" class="github_url">on GitHub</a>
|
|
148
|
+
|
|
149
|
+
</p>
|
|
150
|
+
<div id="M000026_source" class="dyn-source">
|
|
151
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 96</span>
|
|
152
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">next</span>
|
|
153
|
+
<span class="ruby-identifier">sibling</span>(<span class="ruby-value">+1</span>)
|
|
154
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
</div>
|
|
159
|
+
|
|
160
|
+
<div class="method">
|
|
161
|
+
<div class="title" id="M000027">
|
|
162
|
+
|
|
163
|
+
<a name="M000027"></a><b>prev</b>()
|
|
164
|
+
|
|
165
|
+
</div>
|
|
166
|
+
|
|
167
|
+
<div class="description">
|
|
168
|
+
<p>
|
|
169
|
+
Returns the object before this one in the chain.
|
|
170
|
+
</p>
|
|
171
|
+
|
|
172
|
+
</div>
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
<div class="sourcecode">
|
|
178
|
+
<p class="source-link">
|
|
179
|
+
Source: <a href="javascript:toggleSource('M000027_source')" id="l_M000027_source">show</a>
|
|
180
|
+
|
|
181
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L103" target="_blank" class="github_url">on GitHub</a>
|
|
182
|
+
|
|
183
|
+
</p>
|
|
184
|
+
<div id="M000027_source" class="dyn-source">
|
|
185
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 103</span>
|
|
186
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">prev</span>
|
|
187
|
+
<span class="ruby-identifier">sibling</span>(<span class="ruby-value">-1</span>)
|
|
188
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
</div>
|
|
193
|
+
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
</body>
|
|
197
|
+
</html>
|
|
@@ -0,0 +1,865 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
5
|
+
<head>
|
|
6
|
+
<title>Rumai::Client</title>
|
|
7
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../css/reset.css" type="text/css" media="screen" />
|
|
9
|
+
<link rel="stylesheet" href="../../css/main.css" type="text/css" media="screen" />
|
|
10
|
+
<script src="../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
|
|
11
|
+
<script src="../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
|
|
12
|
+
<script src="../../js/main.js" type="text/javascript" charset="utf-8"></script>
|
|
13
|
+
</head>
|
|
14
|
+
|
|
15
|
+
<body>
|
|
16
|
+
<div class="banner">
|
|
17
|
+
<h1>
|
|
18
|
+
<span class="type">Class</span>
|
|
19
|
+
Rumai::Client
|
|
20
|
+
|
|
21
|
+
<span class="parent"><
|
|
22
|
+
|
|
23
|
+
WidgetNode
|
|
24
|
+
|
|
25
|
+
</span>
|
|
26
|
+
|
|
27
|
+
</h1>
|
|
28
|
+
<ul class="files">
|
|
29
|
+
|
|
30
|
+
<li><a href="../../files/lib/rumai/wm_rb.html">lib/rumai/wm.rb</a></li>
|
|
31
|
+
|
|
32
|
+
</ul>
|
|
33
|
+
</div>
|
|
34
|
+
<div id="bodyContent">
|
|
35
|
+
<div id="content">
|
|
36
|
+
|
|
37
|
+
<div class="description">
|
|
38
|
+
<p>
|
|
39
|
+
A graphical program that is running in your current X Windows session.
|
|
40
|
+
</p>
|
|
41
|
+
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
<div class="sectiontitle">Methods</div>
|
|
53
|
+
<dl class="methods">
|
|
54
|
+
|
|
55
|
+
<dt>A</dt>
|
|
56
|
+
<dd>
|
|
57
|
+
<ul>
|
|
58
|
+
|
|
59
|
+
<li><a href="#M000037">area</a></li>
|
|
60
|
+
|
|
61
|
+
</ul>
|
|
62
|
+
</dd>
|
|
63
|
+
|
|
64
|
+
<dt>C</dt>
|
|
65
|
+
<dd>
|
|
66
|
+
<ul>
|
|
67
|
+
|
|
68
|
+
<li><a href="#M000032">chain</a>,</li>
|
|
69
|
+
|
|
70
|
+
<li><a href="#M000031">curr</a></li>
|
|
71
|
+
|
|
72
|
+
</ul>
|
|
73
|
+
</dd>
|
|
74
|
+
|
|
75
|
+
<dt>F</dt>
|
|
76
|
+
<dd>
|
|
77
|
+
<ul>
|
|
78
|
+
|
|
79
|
+
<li><a href="#M000033">focus</a></li>
|
|
80
|
+
|
|
81
|
+
</ul>
|
|
82
|
+
</dd>
|
|
83
|
+
|
|
84
|
+
<dt>G</dt>
|
|
85
|
+
<dd>
|
|
86
|
+
<ul>
|
|
87
|
+
|
|
88
|
+
<li><a href="#M000047">group</a>,</li>
|
|
89
|
+
|
|
90
|
+
<li><a href="#M000046">group?</a></li>
|
|
91
|
+
|
|
92
|
+
</ul>
|
|
93
|
+
</dd>
|
|
94
|
+
|
|
95
|
+
<dt>K</dt>
|
|
96
|
+
<dd>
|
|
97
|
+
<ul>
|
|
98
|
+
|
|
99
|
+
<li><a href="#M000036">kill</a></li>
|
|
100
|
+
|
|
101
|
+
</ul>
|
|
102
|
+
</dd>
|
|
103
|
+
|
|
104
|
+
<dt>N</dt>
|
|
105
|
+
<dd>
|
|
106
|
+
<ul>
|
|
107
|
+
|
|
108
|
+
<li><a href="#M000030">new</a></li>
|
|
109
|
+
|
|
110
|
+
</ul>
|
|
111
|
+
</dd>
|
|
112
|
+
|
|
113
|
+
<dt>S</dt>
|
|
114
|
+
<dd>
|
|
115
|
+
<ul>
|
|
116
|
+
|
|
117
|
+
<li><a href="#M000034">send</a>,</li>
|
|
118
|
+
|
|
119
|
+
<li><a href="#M000035">swap</a></li>
|
|
120
|
+
|
|
121
|
+
</ul>
|
|
122
|
+
</dd>
|
|
123
|
+
|
|
124
|
+
<dt>T</dt>
|
|
125
|
+
<dd>
|
|
126
|
+
<ul>
|
|
127
|
+
|
|
128
|
+
<li><a href="#M000043">tag</a>,</li>
|
|
129
|
+
|
|
130
|
+
<li><a href="#M000040">tags</a>,</li>
|
|
131
|
+
|
|
132
|
+
<li><a href="#M000041">tags=</a>,</li>
|
|
133
|
+
|
|
134
|
+
<li><a href="#M000050">toggle_group</a></li>
|
|
135
|
+
|
|
136
|
+
</ul>
|
|
137
|
+
</dd>
|
|
138
|
+
|
|
139
|
+
<dt>U</dt>
|
|
140
|
+
<dd>
|
|
141
|
+
<ul>
|
|
142
|
+
|
|
143
|
+
<li><a href="#M000049">ungroup</a>,</li>
|
|
144
|
+
|
|
145
|
+
<li><a href="#M000044">untag</a></li>
|
|
146
|
+
|
|
147
|
+
</ul>
|
|
148
|
+
</dd>
|
|
149
|
+
|
|
150
|
+
<dt>V</dt>
|
|
151
|
+
<dd>
|
|
152
|
+
<ul>
|
|
153
|
+
|
|
154
|
+
<li><a href="#M000039">views</a></li>
|
|
155
|
+
|
|
156
|
+
</ul>
|
|
157
|
+
</dd>
|
|
158
|
+
|
|
159
|
+
<dt>W</dt>
|
|
160
|
+
<dd>
|
|
161
|
+
<ul>
|
|
162
|
+
|
|
163
|
+
<li><a href="#M000042">with_tags</a></li>
|
|
164
|
+
|
|
165
|
+
</ul>
|
|
166
|
+
</dd>
|
|
167
|
+
|
|
168
|
+
</dl>
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
<div class="sectiontitle">Included Modules</div>
|
|
173
|
+
<ul>
|
|
174
|
+
|
|
175
|
+
<li>
|
|
176
|
+
|
|
177
|
+
<a href="IXP/Struct/Field/CounterField.html">Rumai::IXP::Struct::Field::CounterField</a>
|
|
178
|
+
|
|
179
|
+
START:includes
|
|
180
|
+
</li>
|
|
181
|
+
|
|
182
|
+
</ul>
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
<div class="sectiontitle">Constants</div>
|
|
191
|
+
<table border='0' cellpadding='5'>
|
|
192
|
+
|
|
193
|
+
<tr valign='top'>
|
|
194
|
+
<td class="attr-name">TAG_DELIMITER</td>
|
|
195
|
+
<td>=</td>
|
|
196
|
+
<td class="attr-value">'+'.freeze</td>
|
|
197
|
+
</tr>
|
|
198
|
+
|
|
199
|
+
<tr valign='top'>
|
|
200
|
+
<td> </td>
|
|
201
|
+
<td colspan="2" class="attr-desc"><p>
|
|
202
|
+
tag manipulations
|
|
203
|
+
</p>
|
|
204
|
+
</td>
|
|
205
|
+
</tr>
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
</table>
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
<div class="sectiontitle">Class Public methods</div>
|
|
215
|
+
|
|
216
|
+
<div class="method">
|
|
217
|
+
<div class="title" id="M000031">
|
|
218
|
+
|
|
219
|
+
<a name="M000031"></a><b>curr</b>()
|
|
220
|
+
|
|
221
|
+
</div>
|
|
222
|
+
|
|
223
|
+
<div class="description">
|
|
224
|
+
<p>
|
|
225
|
+
Returns the currently focused client.
|
|
226
|
+
</p>
|
|
227
|
+
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
<div class="sourcecode">
|
|
234
|
+
<p class="source-link">
|
|
235
|
+
Source: <a href="javascript:toggleSource('M000031_source')" id="l_M000031_source">show</a>
|
|
236
|
+
|
|
237
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L170" target="_blank" class="github_url">on GitHub</a>
|
|
238
|
+
|
|
239
|
+
</p>
|
|
240
|
+
<div id="M000031_source" class="dyn-source">
|
|
241
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 170</span>
|
|
242
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">curr</span>
|
|
243
|
+
<span class="ruby-identifier">new</span> <span class="ruby-identifier">:sel</span>
|
|
244
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
|
|
248
|
+
</div>
|
|
249
|
+
|
|
250
|
+
<div class="method">
|
|
251
|
+
<div class="title" id="M000030">
|
|
252
|
+
|
|
253
|
+
<a name="M000030"></a><b>new</b>(client_id)
|
|
254
|
+
|
|
255
|
+
</div>
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
<div class="sourcecode">
|
|
261
|
+
<p class="source-link">
|
|
262
|
+
Source: <a href="javascript:toggleSource('M000030_source')" id="l_M000030_source">show</a>
|
|
263
|
+
|
|
264
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L163" target="_blank" class="github_url">on GitHub</a>
|
|
265
|
+
|
|
266
|
+
</p>
|
|
267
|
+
<div id="M000030_source" class="dyn-source">
|
|
268
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 163</span>
|
|
269
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">client_id</span>
|
|
270
|
+
<span class="ruby-keyword kw">super</span> <span class="ruby-identifier">client_id</span>, <span class="ruby-value str">'/client'</span>
|
|
271
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
272
|
+
</div>
|
|
273
|
+
</div>
|
|
274
|
+
|
|
275
|
+
</div>
|
|
276
|
+
|
|
277
|
+
<div class="sectiontitle">Instance Public methods</div>
|
|
278
|
+
|
|
279
|
+
<div class="method">
|
|
280
|
+
<div class="title" id="M000037">
|
|
281
|
+
|
|
282
|
+
<a name="M000037"></a><b>area</b>(view = View.curr)
|
|
283
|
+
|
|
284
|
+
</div>
|
|
285
|
+
|
|
286
|
+
<div class="description">
|
|
287
|
+
<p>
|
|
288
|
+
Returns the area that contains this client within the given view.
|
|
289
|
+
</p>
|
|
290
|
+
|
|
291
|
+
</div>
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
<div class="sourcecode">
|
|
297
|
+
<p class="source-link">
|
|
298
|
+
Source: <a href="javascript:toggleSource('M000037_source')" id="l_M000037_source">show</a>
|
|
299
|
+
|
|
300
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L241" target="_blank" class="github_url">on GitHub</a>
|
|
301
|
+
|
|
302
|
+
</p>
|
|
303
|
+
<div id="M000037_source" class="dyn-source">
|
|
304
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 241</span>
|
|
305
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">area</span> <span class="ruby-identifier">view</span> = <span class="ruby-constant">View</span>.<span class="ruby-identifier">curr</span>
|
|
306
|
+
<span class="ruby-identifier">view</span>.<span class="ruby-identifier">area_of_client</span> <span class="ruby-keyword kw">self</span>
|
|
307
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
308
|
+
</div>
|
|
309
|
+
</div>
|
|
310
|
+
|
|
311
|
+
</div>
|
|
312
|
+
|
|
313
|
+
<div class="method">
|
|
314
|
+
<div class="title" id="M000032">
|
|
315
|
+
|
|
316
|
+
<a name="M000032"></a><b>chain</b>()
|
|
317
|
+
|
|
318
|
+
</div>
|
|
319
|
+
|
|
320
|
+
<div class="description">
|
|
321
|
+
<p>
|
|
322
|
+
Returns a list of all clients in the current view.
|
|
323
|
+
</p>
|
|
324
|
+
|
|
325
|
+
</div>
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
<div class="sourcecode">
|
|
331
|
+
<p class="source-link">
|
|
332
|
+
Source: <a href="javascript:toggleSource('M000032_source')" id="l_M000032_source">show</a>
|
|
333
|
+
|
|
334
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L179" target="_blank" class="github_url">on GitHub</a>
|
|
335
|
+
|
|
336
|
+
</p>
|
|
337
|
+
<div id="M000032_source" class="dyn-source">
|
|
338
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 179</span>
|
|
339
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chain</span>
|
|
340
|
+
<span class="ruby-constant">View</span>.<span class="ruby-identifier">curr</span>.<span class="ruby-identifier">clients</span>
|
|
341
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
342
|
+
</div>
|
|
343
|
+
</div>
|
|
344
|
+
|
|
345
|
+
</div>
|
|
346
|
+
|
|
347
|
+
<div class="method">
|
|
348
|
+
<div class="title" id="M000033">
|
|
349
|
+
|
|
350
|
+
<a name="M000033"></a><b>focus</b>(view = nil)
|
|
351
|
+
|
|
352
|
+
</div>
|
|
353
|
+
|
|
354
|
+
<div class="description">
|
|
355
|
+
<p>
|
|
356
|
+
Focuses this client within the given view.
|
|
357
|
+
</p>
|
|
358
|
+
|
|
359
|
+
</div>
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
<div class="sourcecode">
|
|
365
|
+
<p class="source-link">
|
|
366
|
+
Source: <a href="javascript:toggleSource('M000033_source')" id="l_M000033_source">show</a>
|
|
367
|
+
|
|
368
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L188" target="_blank" class="github_url">on GitHub</a>
|
|
369
|
+
|
|
370
|
+
</p>
|
|
371
|
+
<div id="M000033_source" class="dyn-source">
|
|
372
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 188</span>
|
|
373
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">focus</span> <span class="ruby-identifier">view</span> = <span class="ruby-keyword kw">nil</span>
|
|
374
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">exist?</span> <span class="ruby-keyword kw">and</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">focus?</span>
|
|
375
|
+
<span class="ruby-constant">Array</span>(<span class="ruby-identifier">view</span> <span class="ruby-operator">||</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">views</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
|
376
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">a</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">area</span>(<span class="ruby-identifier">v</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">exist?</span>
|
|
377
|
+
<span class="ruby-identifier">v</span>.<span class="ruby-identifier">focus</span>
|
|
378
|
+
<span class="ruby-identifier">a</span>.<span class="ruby-identifier">focus</span>
|
|
379
|
+
|
|
380
|
+
<span class="ruby-comment cmt"># slide focus from the current client onto this client</span>
|
|
381
|
+
<span class="ruby-identifier">arr</span> = <span class="ruby-identifier">a</span>.<span class="ruby-identifier">client_ids</span>
|
|
382
|
+
<span class="ruby-identifier">src</span> = <span class="ruby-identifier">arr</span>.<span class="ruby-identifier">index</span> <span class="ruby-constant">Client</span>.<span class="ruby-identifier">curr</span>.<span class="ruby-identifier">id</span>
|
|
383
|
+
<span class="ruby-identifier">dst</span> = <span class="ruby-identifier">arr</span>.<span class="ruby-identifier">index</span> <span class="ruby-ivar">@id</span>
|
|
384
|
+
|
|
385
|
+
<span class="ruby-identifier">distance</span> = (<span class="ruby-identifier">src</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">dst</span>).<span class="ruby-identifier">abs</span>
|
|
386
|
+
<span class="ruby-identifier">direction</span> = <span class="ruby-identifier">src</span> <span class="ruby-operator"><</span> <span class="ruby-identifier">dst</span> <span class="ruby-value">? </span><span class="ruby-operator">:</span><span class="ruby-identifier">down</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">:up</span>
|
|
387
|
+
|
|
388
|
+
<span class="ruby-identifier">distance</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span>
|
|
389
|
+
<span class="ruby-identifier">v</span>.<span class="ruby-identifier">ctl</span>.<span class="ruby-identifier">write</span> <span class="ruby-node">"select #{direction}"</span>
|
|
390
|
+
<span class="ruby-keyword kw">end</span>
|
|
391
|
+
|
|
392
|
+
<span class="ruby-keyword kw">break</span>
|
|
393
|
+
<span class="ruby-keyword kw">end</span>
|
|
394
|
+
<span class="ruby-keyword kw">end</span>
|
|
395
|
+
<span class="ruby-keyword kw">end</span>
|
|
396
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
397
|
+
</div>
|
|
398
|
+
</div>
|
|
399
|
+
|
|
400
|
+
</div>
|
|
401
|
+
|
|
402
|
+
<div class="method">
|
|
403
|
+
<div class="title" id="M000047">
|
|
404
|
+
|
|
405
|
+
<a name="M000047"></a><b>group</b>()
|
|
406
|
+
|
|
407
|
+
</div>
|
|
408
|
+
|
|
409
|
+
<div class="description">
|
|
410
|
+
<p>
|
|
411
|
+
Adds this client to the current grouping.
|
|
412
|
+
</p>
|
|
413
|
+
|
|
414
|
+
</div>
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
<div class="sourcecode">
|
|
420
|
+
<p class="source-link">
|
|
421
|
+
Source: <a href="javascript:toggleSource('M000047_source')" id="l_M000047_source">show</a>
|
|
422
|
+
|
|
423
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L313" target="_blank" class="github_url">on GitHub</a>
|
|
424
|
+
|
|
425
|
+
</p>
|
|
426
|
+
<div id="M000047_source" class="dyn-source">
|
|
427
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 313</span>
|
|
428
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">group</span>
|
|
429
|
+
<span class="ruby-identifier">with_tags</span> <span class="ruby-keyword kw">do</span>
|
|
430
|
+
<span class="ruby-identifier">push</span> <span class="ruby-constant">GROUPING_TAG</span>
|
|
431
|
+
<span class="ruby-keyword kw">end</span>
|
|
432
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
433
|
+
</div>
|
|
434
|
+
</div>
|
|
435
|
+
|
|
436
|
+
</div>
|
|
437
|
+
|
|
438
|
+
<div class="method">
|
|
439
|
+
<div class="title" id="M000046">
|
|
440
|
+
|
|
441
|
+
<a name="M000046"></a><b>group?</b>()
|
|
442
|
+
|
|
443
|
+
</div>
|
|
444
|
+
|
|
445
|
+
<div class="description">
|
|
446
|
+
<p>
|
|
447
|
+
Checks if this client is included in the current grouping.
|
|
448
|
+
</p>
|
|
449
|
+
|
|
450
|
+
</div>
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
<div class="sourcecode">
|
|
456
|
+
<p class="source-link">
|
|
457
|
+
Source: <a href="javascript:toggleSource('M000046_source')" id="l_M000046_source">show</a>
|
|
458
|
+
|
|
459
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L306" target="_blank" class="github_url">on GitHub</a>
|
|
460
|
+
|
|
461
|
+
</p>
|
|
462
|
+
<div id="M000046_source" class="dyn-source">
|
|
463
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 306</span>
|
|
464
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">group?</span>
|
|
465
|
+
<span class="ruby-identifier">tags</span>.<span class="ruby-identifier">include?</span> <span class="ruby-constant">GROUPING_TAG</span>
|
|
466
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
467
|
+
</div>
|
|
468
|
+
</div>
|
|
469
|
+
|
|
470
|
+
</div>
|
|
471
|
+
|
|
472
|
+
<div class="method">
|
|
473
|
+
<div class="title" id="M000036">
|
|
474
|
+
|
|
475
|
+
<a name="M000036"></a><b>kill</b>()
|
|
476
|
+
|
|
477
|
+
</div>
|
|
478
|
+
|
|
479
|
+
<div class="description">
|
|
480
|
+
<p>
|
|
481
|
+
Terminates this client nicely (requests this window to be closed).
|
|
482
|
+
</p>
|
|
483
|
+
|
|
484
|
+
</div>
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
<div class="sourcecode">
|
|
490
|
+
<p class="source-link">
|
|
491
|
+
Source: <a href="javascript:toggleSource('M000036_source')" id="l_M000036_source">show</a>
|
|
492
|
+
|
|
493
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L232" target="_blank" class="github_url">on GitHub</a>
|
|
494
|
+
|
|
495
|
+
</p>
|
|
496
|
+
<div id="M000036_source" class="dyn-source">
|
|
497
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 232</span>
|
|
498
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">kill</span>
|
|
499
|
+
<span class="ruby-identifier">ctl</span>.<span class="ruby-identifier">write</span> <span class="ruby-identifier">:kill</span>
|
|
500
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
501
|
+
</div>
|
|
502
|
+
</div>
|
|
503
|
+
|
|
504
|
+
</div>
|
|
505
|
+
|
|
506
|
+
<div class="method">
|
|
507
|
+
<div class="title" id="M000034">
|
|
508
|
+
|
|
509
|
+
<a name="M000034"></a><b>send</b>(area_or_id, view = View.curr)
|
|
510
|
+
|
|
511
|
+
</div>
|
|
512
|
+
|
|
513
|
+
<div class="description">
|
|
514
|
+
<p>
|
|
515
|
+
Sends this client to the given destination within the given view.
|
|
516
|
+
</p>
|
|
517
|
+
|
|
518
|
+
</div>
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
<div class="sourcecode">
|
|
524
|
+
<p class="source-link">
|
|
525
|
+
Source: <a href="javascript:toggleSource('M000034_source')" id="l_M000034_source">show</a>
|
|
526
|
+
|
|
527
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L216" target="_blank" class="github_url">on GitHub</a>
|
|
528
|
+
|
|
529
|
+
</p>
|
|
530
|
+
<div id="M000034_source" class="dyn-source">
|
|
531
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 216</span>
|
|
532
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send</span> <span class="ruby-identifier">area_or_id</span>, <span class="ruby-identifier">view</span> = <span class="ruby-constant">View</span>.<span class="ruby-identifier">curr</span>
|
|
533
|
+
<span class="ruby-identifier">dst</span> = <span class="ruby-identifier">area_to_id</span>(<span class="ruby-identifier">area_or_id</span>)
|
|
534
|
+
<span class="ruby-identifier">view</span>.<span class="ruby-identifier">ctl</span>.<span class="ruby-identifier">write</span> <span class="ruby-node">"send #{@id} #{dst}"</span>
|
|
535
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
536
|
+
</div>
|
|
537
|
+
</div>
|
|
538
|
+
|
|
539
|
+
</div>
|
|
540
|
+
|
|
541
|
+
<div class="method">
|
|
542
|
+
<div class="title" id="M000035">
|
|
543
|
+
|
|
544
|
+
<a name="M000035"></a><b>swap</b>(area_or_id, view = View.curr)
|
|
545
|
+
|
|
546
|
+
</div>
|
|
547
|
+
|
|
548
|
+
<div class="description">
|
|
549
|
+
<p>
|
|
550
|
+
Swaps this client with the given destination within the given view.
|
|
551
|
+
</p>
|
|
552
|
+
|
|
553
|
+
</div>
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
<div class="sourcecode">
|
|
559
|
+
<p class="source-link">
|
|
560
|
+
Source: <a href="javascript:toggleSource('M000035_source')" id="l_M000035_source">show</a>
|
|
561
|
+
|
|
562
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L224" target="_blank" class="github_url">on GitHub</a>
|
|
563
|
+
|
|
564
|
+
</p>
|
|
565
|
+
<div id="M000035_source" class="dyn-source">
|
|
566
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 224</span>
|
|
567
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">swap</span> <span class="ruby-identifier">area_or_id</span>, <span class="ruby-identifier">view</span> = <span class="ruby-constant">View</span>.<span class="ruby-identifier">curr</span>
|
|
568
|
+
<span class="ruby-identifier">dst</span> = <span class="ruby-identifier">area_to_id</span>(<span class="ruby-identifier">area_or_id</span>)
|
|
569
|
+
<span class="ruby-identifier">view</span>.<span class="ruby-identifier">ctl</span>.<span class="ruby-identifier">write</span> <span class="ruby-node">"swap #{@id} #{dst}"</span>
|
|
570
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
571
|
+
</div>
|
|
572
|
+
</div>
|
|
573
|
+
|
|
574
|
+
</div>
|
|
575
|
+
|
|
576
|
+
<div class="method">
|
|
577
|
+
<div class="title" id="M000043">
|
|
578
|
+
|
|
579
|
+
<a name="M000043"></a><b>tag</b>(*tags)
|
|
580
|
+
|
|
581
|
+
</div>
|
|
582
|
+
|
|
583
|
+
<div class="description">
|
|
584
|
+
<p>
|
|
585
|
+
Adds the given tags to this client.
|
|
586
|
+
</p>
|
|
587
|
+
|
|
588
|
+
</div>
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
<div class="sourcecode">
|
|
594
|
+
<p class="source-link">
|
|
595
|
+
Source: <a href="javascript:toggleSource('M000043_source')" id="l_M000043_source">show</a>
|
|
596
|
+
|
|
597
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L284" target="_blank" class="github_url">on GitHub</a>
|
|
598
|
+
|
|
599
|
+
</p>
|
|
600
|
+
<div id="M000043_source" class="dyn-source">
|
|
601
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 284</span>
|
|
602
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tag</span> <span class="ruby-operator">*</span><span class="ruby-identifier">tags</span>
|
|
603
|
+
<span class="ruby-identifier">with_tags</span> <span class="ruby-keyword kw">do</span>
|
|
604
|
+
<span class="ruby-identifier">concat</span> <span class="ruby-identifier">tags</span>
|
|
605
|
+
<span class="ruby-keyword kw">end</span>
|
|
606
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
607
|
+
</div>
|
|
608
|
+
</div>
|
|
609
|
+
|
|
610
|
+
</div>
|
|
611
|
+
|
|
612
|
+
<div class="method">
|
|
613
|
+
<div class="title" id="M000040">
|
|
614
|
+
|
|
615
|
+
<a name="M000040"></a><b>tags</b>()
|
|
616
|
+
|
|
617
|
+
</div>
|
|
618
|
+
|
|
619
|
+
<div class="description">
|
|
620
|
+
<p>
|
|
621
|
+
Returns the tags associated with this client.
|
|
622
|
+
</p>
|
|
623
|
+
|
|
624
|
+
</div>
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
<div class="sourcecode">
|
|
630
|
+
<p class="source-link">
|
|
631
|
+
Source: <a href="javascript:toggleSource('M000040_source')" id="l_M000040_source">show</a>
|
|
632
|
+
|
|
633
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L259" target="_blank" class="github_url">on GitHub</a>
|
|
634
|
+
|
|
635
|
+
</p>
|
|
636
|
+
<div id="M000040_source" class="dyn-source">
|
|
637
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 259</span>
|
|
638
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tags</span>
|
|
639
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">:tags</span>].<span class="ruby-identifier">read</span>.<span class="ruby-identifier">split</span> <span class="ruby-constant">TAG_DELIMITER</span>
|
|
640
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
641
|
+
</div>
|
|
642
|
+
</div>
|
|
643
|
+
|
|
644
|
+
</div>
|
|
645
|
+
|
|
646
|
+
<div class="method">
|
|
647
|
+
<div class="title" id="M000041">
|
|
648
|
+
|
|
649
|
+
<a name="M000041"></a><b>tags=</b>(*tags)
|
|
650
|
+
|
|
651
|
+
</div>
|
|
652
|
+
|
|
653
|
+
<div class="description">
|
|
654
|
+
<p>
|
|
655
|
+
Modifies the tags associated with this client.
|
|
656
|
+
</p>
|
|
657
|
+
|
|
658
|
+
</div>
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
<div class="sourcecode">
|
|
664
|
+
<p class="source-link">
|
|
665
|
+
Source: <a href="javascript:toggleSource('M000041_source')" id="l_M000041_source">show</a>
|
|
666
|
+
|
|
667
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L266" target="_blank" class="github_url">on GitHub</a>
|
|
668
|
+
|
|
669
|
+
</p>
|
|
670
|
+
<div id="M000041_source" class="dyn-source">
|
|
671
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 266</span>
|
|
672
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tags=</span> <span class="ruby-operator">*</span><span class="ruby-identifier">tags</span>
|
|
673
|
+
<span class="ruby-identifier">arr</span> = <span class="ruby-identifier">tags</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">compact</span>.<span class="ruby-identifier">uniq</span>
|
|
674
|
+
<span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">:tags</span>].<span class="ruby-identifier">write</span> <span class="ruby-identifier">arr</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">TAG_DELIMITER</span>)
|
|
675
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
676
|
+
</div>
|
|
677
|
+
</div>
|
|
678
|
+
|
|
679
|
+
</div>
|
|
680
|
+
|
|
681
|
+
<div class="method">
|
|
682
|
+
<div class="title" id="M000050">
|
|
683
|
+
|
|
684
|
+
<a name="M000050"></a><b>toggle_group</b>()
|
|
685
|
+
|
|
686
|
+
</div>
|
|
687
|
+
|
|
688
|
+
<div class="description">
|
|
689
|
+
<p>
|
|
690
|
+
Toggles the presence of this client in the current grouping.
|
|
691
|
+
</p>
|
|
692
|
+
|
|
693
|
+
</div>
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
<div class="sourcecode">
|
|
699
|
+
<p class="source-link">
|
|
700
|
+
Source: <a href="javascript:toggleSource('M000050_source')" id="l_M000050_source">show</a>
|
|
701
|
+
|
|
702
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L329" target="_blank" class="github_url">on GitHub</a>
|
|
703
|
+
|
|
704
|
+
</p>
|
|
705
|
+
<div id="M000050_source" class="dyn-source">
|
|
706
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 329</span>
|
|
707
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">toggle_group</span>
|
|
708
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">group?</span>
|
|
709
|
+
<span class="ruby-identifier">ungroup</span>
|
|
710
|
+
<span class="ruby-keyword kw">else</span>
|
|
711
|
+
<span class="ruby-identifier">group</span>
|
|
712
|
+
<span class="ruby-keyword kw">end</span>
|
|
713
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
714
|
+
</div>
|
|
715
|
+
</div>
|
|
716
|
+
|
|
717
|
+
</div>
|
|
718
|
+
|
|
719
|
+
<div class="method">
|
|
720
|
+
<div class="title" id="M000049">
|
|
721
|
+
|
|
722
|
+
<a name="M000049"></a><b>ungroup</b>()
|
|
723
|
+
|
|
724
|
+
</div>
|
|
725
|
+
|
|
726
|
+
<div class="description">
|
|
727
|
+
<p>
|
|
728
|
+
Removes this client to the current grouping.
|
|
729
|
+
</p>
|
|
730
|
+
|
|
731
|
+
</div>
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
<div class="sourcecode">
|
|
737
|
+
<p class="source-link">
|
|
738
|
+
Source: <a href="javascript:toggleSource('M000049_source')" id="l_M000049_source">show</a>
|
|
739
|
+
|
|
740
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L322" target="_blank" class="github_url">on GitHub</a>
|
|
741
|
+
|
|
742
|
+
</p>
|
|
743
|
+
<div id="M000049_source" class="dyn-source">
|
|
744
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 322</span>
|
|
745
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ungroup</span>
|
|
746
|
+
<span class="ruby-identifier">untag</span> <span class="ruby-constant">GROUPING_TAG</span>
|
|
747
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
748
|
+
</div>
|
|
749
|
+
</div>
|
|
750
|
+
|
|
751
|
+
</div>
|
|
752
|
+
|
|
753
|
+
<div class="method">
|
|
754
|
+
<div class="title" id="M000044">
|
|
755
|
+
|
|
756
|
+
<a name="M000044"></a><b>untag</b>(*tags)
|
|
757
|
+
|
|
758
|
+
</div>
|
|
759
|
+
|
|
760
|
+
<div class="description">
|
|
761
|
+
<p>
|
|
762
|
+
Removes the given tags from this client.
|
|
763
|
+
</p>
|
|
764
|
+
|
|
765
|
+
</div>
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
<div class="sourcecode">
|
|
771
|
+
<p class="source-link">
|
|
772
|
+
Source: <a href="javascript:toggleSource('M000044_source')" id="l_M000044_source">show</a>
|
|
773
|
+
|
|
774
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L293" target="_blank" class="github_url">on GitHub</a>
|
|
775
|
+
|
|
776
|
+
</p>
|
|
777
|
+
<div id="M000044_source" class="dyn-source">
|
|
778
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 293</span>
|
|
779
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untag</span> <span class="ruby-operator">*</span><span class="ruby-identifier">tags</span>
|
|
780
|
+
<span class="ruby-identifier">with_tags</span> <span class="ruby-keyword kw">do</span>
|
|
781
|
+
<span class="ruby-identifier">tags</span>.<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">tag</span><span class="ruby-operator">|</span>
|
|
782
|
+
<span class="ruby-identifier">delete</span> <span class="ruby-identifier">tag</span>.<span class="ruby-identifier">to_s</span>
|
|
783
|
+
<span class="ruby-keyword kw">end</span>
|
|
784
|
+
<span class="ruby-keyword kw">end</span>
|
|
785
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
786
|
+
</div>
|
|
787
|
+
</div>
|
|
788
|
+
|
|
789
|
+
</div>
|
|
790
|
+
|
|
791
|
+
<div class="method">
|
|
792
|
+
<div class="title" id="M000039">
|
|
793
|
+
|
|
794
|
+
<a name="M000039"></a><b>views</b>()
|
|
795
|
+
|
|
796
|
+
</div>
|
|
797
|
+
|
|
798
|
+
<div class="description">
|
|
799
|
+
<p>
|
|
800
|
+
Returns the views that contain this client.
|
|
801
|
+
</p>
|
|
802
|
+
|
|
803
|
+
</div>
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
<div class="sourcecode">
|
|
809
|
+
<p class="source-link">
|
|
810
|
+
Source: <a href="javascript:toggleSource('M000039_source')" id="l_M000039_source">show</a>
|
|
811
|
+
|
|
812
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L248" target="_blank" class="github_url">on GitHub</a>
|
|
813
|
+
|
|
814
|
+
</p>
|
|
815
|
+
<div id="M000039_source" class="dyn-source">
|
|
816
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 248</span>
|
|
817
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">views</span>
|
|
818
|
+
<span class="ruby-identifier">tags</span>.<span class="ruby-identifier">map!</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span> <span class="ruby-constant">View</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">t</span> }
|
|
819
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
820
|
+
</div>
|
|
821
|
+
</div>
|
|
822
|
+
|
|
823
|
+
</div>
|
|
824
|
+
|
|
825
|
+
<div class="method">
|
|
826
|
+
<div class="title" id="M000042">
|
|
827
|
+
|
|
828
|
+
<a name="M000042"></a><b>with_tags</b>(&block)
|
|
829
|
+
|
|
830
|
+
</div>
|
|
831
|
+
|
|
832
|
+
<div class="description">
|
|
833
|
+
<p>
|
|
834
|
+
Evaluates the given block within the context of this client’s list of
|
|
835
|
+
tags.
|
|
836
|
+
</p>
|
|
837
|
+
|
|
838
|
+
</div>
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
<div class="sourcecode">
|
|
844
|
+
<p class="source-link">
|
|
845
|
+
Source: <a href="javascript:toggleSource('M000042_source')" id="l_M000042_source">show</a>
|
|
846
|
+
|
|
847
|
+
| <a href="http://github.com/sunaku/rumai/blob/5fcf09b89976a53dd9346e335a1803b337e0c447/lib/rumai/wm.rb#L275" target="_blank" class="github_url">on GitHub</a>
|
|
848
|
+
|
|
849
|
+
</p>
|
|
850
|
+
<div id="M000042_source" class="dyn-source">
|
|
851
|
+
<pre><span class="ruby-comment cmt"># File lib/rumai/wm.rb, line 275</span>
|
|
852
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with_tags</span> <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>
|
|
853
|
+
<span class="ruby-identifier">arr</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">tags</span>
|
|
854
|
+
<span class="ruby-identifier">arr</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
|
855
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">tags</span> = <span class="ruby-identifier">arr</span>
|
|
856
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
857
|
+
</div>
|
|
858
|
+
</div>
|
|
859
|
+
|
|
860
|
+
</div>
|
|
861
|
+
|
|
862
|
+
</div>
|
|
863
|
+
</div>
|
|
864
|
+
</body>
|
|
865
|
+
</html>
|