forked from khchen/wNim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wScrollWinEvent.html
243 lines (201 loc) · 17.3 KB
/
wScrollWinEvent.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- This file is generated by Nim. -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Favicon -->
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
<!-- CSS -->
<title>wScrollWinEvent</title>
<link rel="stylesheet" type="text/css" href="nimdoc.out.css">
<script type="text/javascript" src="dochack.js"></script>
<script type="text/javascript">
function main() {
var pragmaDots = document.getElementsByClassName("pragmadots");
for (var i = 0; i < pragmaDots.length; i++) {
pragmaDots[i].onclick = function(event) {
// Hide tease
event.target.parentNode.style.display = "none";
// Show actual
event.target.parentNode.nextElementSibling.style.display = "inline";
}
}
const toggleSwitch = document.querySelector('.theme-switch input[type="checkbox"]');
function switchTheme(e) {
if (e.target.checked) {
document.documentElement.setAttribute('data-theme', 'dark');
localStorage.setItem('theme', 'dark');
} else {
document.documentElement.setAttribute('data-theme', 'light');
localStorage.setItem('theme', 'light');
}
}
toggleSwitch.addEventListener('change', switchTheme, false);
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.documentElement.setAttribute('data-theme', "dark");
toggleSwitch.checked = true;
} else if (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) {
document.documentElement.setAttribute('data-theme', "light");
toggleSwitch.checked = false;
} else {
const currentTheme = localStorage.getItem('theme') ? localStorage.getItem('theme') : null;
if (currentTheme) {
document.documentElement.setAttribute('data-theme', currentTheme);
if (currentTheme === 'dark') {
toggleSwitch.checked = true;
}
}
}
}
</script>
</head>
<body onload="main()">
<div class="document" id="documentId">
<div class="container">
<h1 class="title">wScrollWinEvent</h1>
<div class="row">
<div class="three columns">
<div class="theme-switch-wrapper">
<label class="theme-switch" for="checkbox">
<input type="checkbox" id="checkbox" />
<div class="slider round"></div>
</label>
<em>Dark Mode</em>
</div>
<div id="global-links">
<ul class="simple">
<li>
<a href="https://github.com/khchen/wNim">Github Project</a>
</li>
<li>
<a href="wNim.html">Main Page</a>
</li>
</ul>
</div>
<ul class="simple simple-toc" id="toc-list">
<li>
<a class="reference reference-toplevel" href="#10" id="60">Consts</a>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#wEvent_ScrollWinFirst"
title="wEvent_ScrollWinFirst = 32787'i32"><wbr />w<wbr />Event_<wbr />Scroll<wbr />Win<wbr />First<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wEvent_ScrollWin"
title="wEvent_ScrollWin = 32788'i32"><wbr />w<wbr />Event_<wbr />Scroll<wbr />Win<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wEvent_ScrollWinTop"
title="wEvent_ScrollWinTop = 32789'i32"><wbr />w<wbr />Event_<wbr />Scroll<wbr />Win<wbr />Top<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wEvent_ScrollWinBottom"
title="wEvent_ScrollWinBottom = 32790'i32"><wbr />w<wbr />Event_<wbr />Scroll<wbr />Win<wbr />Bottom<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wEvent_ScrollWinLineUp"
title="wEvent_ScrollWinLineUp = 32791'i32"><wbr />w<wbr />Event_<wbr />Scroll<wbr />Win<wbr />Line<wbr />Up<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wEvent_ScrollWinLineDown"
title="wEvent_ScrollWinLineDown = 32792'i32"><wbr />w<wbr />Event_<wbr />Scroll<wbr />Win<wbr />Line<wbr />Down<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wEvent_ScrollWinPageUp"
title="wEvent_ScrollWinPageUp = 32793'i32"><wbr />w<wbr />Event_<wbr />Scroll<wbr />Win<wbr />Page<wbr />Up<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wEvent_ScrollWinPageDown"
title="wEvent_ScrollWinPageDown = 32794'i32"><wbr />w<wbr />Event_<wbr />Scroll<wbr />Win<wbr />Page<wbr />Down<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wEvent_ScrollWinThumbTrack"
title="wEvent_ScrollWinThumbTrack = 32795'i32"><wbr />w<wbr />Event_<wbr />Scroll<wbr />Win<wbr />Thumb<wbr />Track<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wEvent_ScrollWinThumbRelease"
title="wEvent_ScrollWinThumbRelease = 32796'i32"><wbr />w<wbr />Event_<wbr />Scroll<wbr />Win<wbr />Thumb<wbr />Release<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wEvent_ScrollWinChanged"
title="wEvent_ScrollWinChanged = 32797'i32"><wbr />w<wbr />Event_<wbr />Scroll<wbr />Win<wbr />Changed<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wEvent_ScrollWinLast"
title="wEvent_ScrollWinLast = 32798'i32"><wbr />w<wbr />Event_<wbr />Scroll<wbr />Win<wbr />Last<span class="attachedType"></span></a></li>
</ul>
</li>
<li>
<a class="reference reference-toplevel" href="#14" id="64">Methods</a>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#getKind.e%2CwScrollWinEvent"
title="getKind(self: wScrollWinEvent): int"><wbr />get<wbr />Kind<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getOrientation.e%2CwScrollWinEvent"
title="getOrientation(self: wScrollWinEvent): int"><wbr />get<wbr />Orientation<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getScrollPos.e%2CwScrollWinEvent"
title="getScrollPos(self: wScrollWinEvent): int"><wbr />get<wbr />Scroll<wbr />Pos<span class="attachedType"></span></a></li>
</ul>
</li>
</ul>
</div>
<div class="nine columns" id="content">
<div id="tocRoot"></div>
<p class="module-desc">These events are generated by wWindow when the window is scrolling. Notice that these events are very similar to wScrollEvent but not derive from wCommandEvent. It means, these events won't propagate upwards by default.<table class="docinfo" frame="void" rules="none"><col class="docinfo-name" /><col class="docinfo-content" /><tbody valign="top"><tr><th class="docinfo-name">Superclass:</th><td><a class="reference external" href="wEvent.html">wEvent</a></td></tr>
</tbody></table><table class="docinfo" frame="void" rules="none"><col class="docinfo-name" /><col class="docinfo-content" /><tbody valign="top"><tr><th class="docinfo-name">Seealso:</th><td><a class="reference external" href="wWindow.html">wWindow</a></td></tr>
</tbody></table><table class="docinfo" frame="void" rules="none"><col class="docinfo-name" /><col class="docinfo-content" /><tbody valign="top"><tr><th class="docinfo-name">Events:</th><td><table border="1" class="docutils"><tr><th>wScrollWinEvent</th><th>Description</th></tr>
<tr><td>wEvent_ScrollWin</td><td>Sent to window before all of following event. Use getKind() to know what kind of type it is.</td></tr>
<tr><td>wEvent_ScrollWinTop</td><td>Scroll to top or leftmost.</td></tr>
<tr><td>wEvent_ScrollWinBottom</td><td>Scroll to bottom or rightmost.</td></tr>
<tr><td>wEvent_ScrollWinLineUp</td><td>Scroll line up or left</td></tr>
<tr><td>wEvent_ScrollWinLineDown</td><td>Scroll line down or right.</td></tr>
<tr><td>wEvent_ScrollWinPageUp</td><td>Scroll page up or left.</td></tr>
<tr><td>wEvent_ScrollWinPageDown</td><td>Scroll page down or right.</td></tr>
<tr><td>wEvent_ScrollWinThumbTrack</td><td>Frequent events sent as the user drags the thumbtrack.</td></tr>
<tr><td>wEvent_ScrollWinThumbRelease</td><td>Thumb release events.</td></tr>
<tr><td>wEvent_ScrollWinChanged</td><td>End of scrolling events</td></tr>
</table></td></tr>
</tbody></table></p>
<div class="section" id="10">
<h1><a class="toc-backref" href="#10">Consts</a></h1>
<dl class="item">
<a id="wEvent_ScrollWinFirst"></a>
<dt><pre><a href="wScrollWinEvent.html#wEvent_ScrollWinFirst"><span class="Identifier">wEvent_ScrollWinFirst</span></a> <span class="Other">=</span> <span class="DecNumber">32787'i32</span></pre></dt>
<a id="wEvent_ScrollWin"></a>
<dt><pre><a href="wScrollWinEvent.html#wEvent_ScrollWin"><span class="Identifier">wEvent_ScrollWin</span></a> <span class="Other">=</span> <span class="DecNumber">32788'i32</span></pre></dt>
<a id="wEvent_ScrollWinTop"></a>
<dt><pre><a href="wScrollWinEvent.html#wEvent_ScrollWinTop"><span class="Identifier">wEvent_ScrollWinTop</span></a> <span class="Other">=</span> <span class="DecNumber">32789'i32</span></pre></dt>
<a id="wEvent_ScrollWinBottom"></a>
<dt><pre><a href="wScrollWinEvent.html#wEvent_ScrollWinBottom"><span class="Identifier">wEvent_ScrollWinBottom</span></a> <span class="Other">=</span> <span class="DecNumber">32790'i32</span></pre></dt>
<a id="wEvent_ScrollWinLineUp"></a>
<dt><pre><a href="wScrollWinEvent.html#wEvent_ScrollWinLineUp"><span class="Identifier">wEvent_ScrollWinLineUp</span></a> <span class="Other">=</span> <span class="DecNumber">32791'i32</span></pre></dt>
<a id="wEvent_ScrollWinLineDown"></a>
<dt><pre><a href="wScrollWinEvent.html#wEvent_ScrollWinLineDown"><span class="Identifier">wEvent_ScrollWinLineDown</span></a> <span class="Other">=</span> <span class="DecNumber">32792'i32</span></pre></dt>
<a id="wEvent_ScrollWinPageUp"></a>
<dt><pre><a href="wScrollWinEvent.html#wEvent_ScrollWinPageUp"><span class="Identifier">wEvent_ScrollWinPageUp</span></a> <span class="Other">=</span> <span class="DecNumber">32793'i32</span></pre></dt>
<a id="wEvent_ScrollWinPageDown"></a>
<dt><pre><a href="wScrollWinEvent.html#wEvent_ScrollWinPageDown"><span class="Identifier">wEvent_ScrollWinPageDown</span></a> <span class="Other">=</span> <span class="DecNumber">32794'i32</span></pre></dt>
<a id="wEvent_ScrollWinThumbTrack"></a>
<dt><pre><a href="wScrollWinEvent.html#wEvent_ScrollWinThumbTrack"><span class="Identifier">wEvent_ScrollWinThumbTrack</span></a> <span class="Other">=</span> <span class="DecNumber">32795'i32</span></pre></dt>
<a id="wEvent_ScrollWinThumbRelease"></a>
<dt><pre><a href="wScrollWinEvent.html#wEvent_ScrollWinThumbRelease"><span class="Identifier">wEvent_ScrollWinThumbRelease</span></a> <span class="Other">=</span> <span class="DecNumber">32796'i32</span></pre></dt>
<a id="wEvent_ScrollWinChanged"></a>
<dt><pre><a href="wScrollWinEvent.html#wEvent_ScrollWinChanged"><span class="Identifier">wEvent_ScrollWinChanged</span></a> <span class="Other">=</span> <span class="DecNumber">32797'i32</span></pre></dt>
<a id="wEvent_ScrollWinLast"></a>
<dt><pre><a href="wScrollWinEvent.html#wEvent_ScrollWinLast"><span class="Identifier">wEvent_ScrollWinLast</span></a> <span class="Other">=</span> <span class="DecNumber">32798'i32</span></pre></dt>
</dl></div>
<div class="section" id="14">
<h1><a class="toc-backref" href="#14">Methods</a></h1>
<dl class="item">
<a id="getKind.e,wScrollWinEvent"></a>
<dt><pre><span class="Keyword">method</span> <a href="#getKind.e%2CwScrollWinEvent"><span class="Identifier">getKind</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wScrollWinEvent"><span class="Identifier">wScrollWinEvent</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Returns what kind of event type this is. Basically used in wEvent_ScrollWin.
</dd>
<a id="getOrientation.e,wScrollWinEvent"></a>
<dt><pre><span class="Keyword">method</span> <a href="#getOrientation.e%2CwScrollWinEvent"><span class="Identifier">getOrientation</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wScrollWinEvent"><span class="Identifier">wScrollWinEvent</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Returns wHorizontal or wVertical
</dd>
<a id="getScrollPos.e,wScrollWinEvent"></a>
<dt><pre><span class="Keyword">method</span> <a href="#getScrollPos.e%2CwScrollWinEvent"><span class="Identifier">getScrollPos</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wScrollWinEvent"><span class="Identifier">wScrollWinEvent</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Returns the position of the scrollbar.
</dd>
</dl></div>
</div>
</div>
<div class="row">
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim.</small>
</div>
</div>
</div>
</div>
</body>
</html>