This file is indexed.

/usr/share/doc/libjuce/apiref/classAnimatedPosition.html is in libjuce-doc 4.3.0~repack-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JUCE: AnimatedPosition&lt; Behaviour &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JUCE
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classAnimatedPosition-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">AnimatedPosition&lt; Behaviour &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Models a 1-dimensional position that can be dragged around by the user, and which will then continue moving with a customisable physics behaviour when released.  
 <a href="classAnimatedPosition.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for AnimatedPosition&lt; Behaviour &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
 <div class="center">
  <img src="classAnimatedPosition.png" usemap="#AnimatedPosition_3C_20Behaviour_20_3E_map" alt=""/>
  <map id="AnimatedPosition_3C_20Behaviour_20_3E_map" name="AnimatedPosition&lt; Behaviour &gt;_map">
<area href="classTimer.html" title="Makes repeated callbacks to a virtual method at a specified time interval. " alt="Timer" shape="rect" coords="0,0,190,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAnimatedPosition_1_1Listener.html">Listener</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Implement this class if you need to receive callbacks when the value of an <a class="el" href="classAnimatedPosition.html" title="Models a 1-dimensional position that can be dragged around by the user, and which will then continue ...">AnimatedPosition</a> changes.  <a href="classAnimatedPosition_1_1Listener.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a364daf059e5e4ac2bce94ea8a236c02c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAnimatedPosition.html#a364daf059e5e4ac2bce94ea8a236c02c">AnimatedPosition</a> ()</td></tr>
<tr class="separator:a364daf059e5e4ac2bce94ea8a236c02c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8513e6e68f4c37bbf1eaa6210467e672"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAnimatedPosition.html#a8513e6e68f4c37bbf1eaa6210467e672">setLimits</a> (<a class="el" href="classRange.html">Range</a>&lt; double &gt; newRange)</td></tr>
<tr class="memdesc:a8513e6e68f4c37bbf1eaa6210467e672"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a range within which the value will be constrained.  <a href="#a8513e6e68f4c37bbf1eaa6210467e672">More...</a><br /></td></tr>
<tr class="separator:a8513e6e68f4c37bbf1eaa6210467e672"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3378dd6b200539ef684f5d8031a4f69a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAnimatedPosition.html#a3378dd6b200539ef684f5d8031a4f69a">beginDrag</a> ()</td></tr>
<tr class="memdesc:a3378dd6b200539ef684f5d8031a4f69a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called to indicate that the object is now being controlled by a mouse-drag or similar operation.  <a href="#a3378dd6b200539ef684f5d8031a4f69a">More...</a><br /></td></tr>
<tr class="separator:a3378dd6b200539ef684f5d8031a4f69a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecd11c12c444387d46ef54931c5cbd86"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAnimatedPosition.html#aecd11c12c444387d46ef54931c5cbd86">drag</a> (double deltaFromStartOfDrag)</td></tr>
<tr class="memdesc:aecd11c12c444387d46ef54931c5cbd86"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called during a mouse-drag operation, to indicate that the mouse has moved.  <a href="#aecd11c12c444387d46ef54931c5cbd86">More...</a><br /></td></tr>
<tr class="separator:aecd11c12c444387d46ef54931c5cbd86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31520fda363c37afac010416dab7707f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAnimatedPosition.html#a31520fda363c37afac010416dab7707f">endDrag</a> ()</td></tr>
<tr class="memdesc:a31520fda363c37afac010416dab7707f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called after <a class="el" href="classAnimatedPosition.html#a3378dd6b200539ef684f5d8031a4f69a" title="Called to indicate that the object is now being controlled by a mouse-drag or similar operation...">beginDrag()</a> and <a class="el" href="classAnimatedPosition.html#aecd11c12c444387d46ef54931c5cbd86" title="Called during a mouse-drag operation, to indicate that the mouse has moved. ">drag()</a> to indicate that the drag operation has now finished.  <a href="#a31520fda363c37afac010416dab7707f">More...</a><br /></td></tr>
<tr class="separator:a31520fda363c37afac010416dab7707f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa58f2a396a133f7325322b5eeb9b1d3b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAnimatedPosition.html#aa58f2a396a133f7325322b5eeb9b1d3b">nudge</a> (double deltaFromCurrentPosition)</td></tr>
<tr class="memdesc:aa58f2a396a133f7325322b5eeb9b1d3b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called outside of a drag operation to cause a nudge in the specified direction.  <a href="#aa58f2a396a133f7325322b5eeb9b1d3b">More...</a><br /></td></tr>
<tr class="separator:aa58f2a396a133f7325322b5eeb9b1d3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6586cfc0cf0ec99e73d6287b0f2700f5"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAnimatedPosition.html#a6586cfc0cf0ec99e73d6287b0f2700f5">getPosition</a> () const noexcept</td></tr>
<tr class="memdesc:a6586cfc0cf0ec99e73d6287b0f2700f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current position.  <a href="#a6586cfc0cf0ec99e73d6287b0f2700f5">More...</a><br /></td></tr>
<tr class="separator:a6586cfc0cf0ec99e73d6287b0f2700f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18201fedfc570cb04582ff65b9ddbf3d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAnimatedPosition.html#a18201fedfc570cb04582ff65b9ddbf3d">setPosition</a> (double newPosition)</td></tr>
<tr class="memdesc:a18201fedfc570cb04582ff65b9ddbf3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Explicitly sets the position and stops any further movement.  <a href="#a18201fedfc570cb04582ff65b9ddbf3d">More...</a><br /></td></tr>
<tr class="separator:a18201fedfc570cb04582ff65b9ddbf3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26cb4a90ef54041d01dfe07be46c0e88"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAnimatedPosition.html#a26cb4a90ef54041d01dfe07be46c0e88">addListener</a> (<a class="el" href="classAnimatedPosition_1_1Listener.html">Listener</a> *listener)</td></tr>
<tr class="memdesc:a26cb4a90ef54041d01dfe07be46c0e88"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a listener to be called when the value changes.  <a href="#a26cb4a90ef54041d01dfe07be46c0e88">More...</a><br /></td></tr>
<tr class="separator:a26cb4a90ef54041d01dfe07be46c0e88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea1ba3edaac6d6f86739f64ca03f4597"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAnimatedPosition.html#aea1ba3edaac6d6f86739f64ca03f4597">removeListener</a> (<a class="el" href="classAnimatedPosition_1_1Listener.html">Listener</a> *listener)</td></tr>
<tr class="memdesc:aea1ba3edaac6d6f86739f64ca03f4597"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a previously-registered listener.  <a href="#aea1ba3edaac6d6f86739f64ca03f4597">More...</a><br /></td></tr>
<tr class="separator:aea1ba3edaac6d6f86739f64ca03f4597"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a8dee430f7730c4f6ff98b7f53d2f1d7b"><td class="memItemLeft" align="right" valign="top">Behaviour&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAnimatedPosition.html#a8dee430f7730c4f6ff98b7f53d2f1d7b">behaviour</a></td></tr>
<tr class="memdesc:a8dee430f7730c4f6ff98b7f53d2f1d7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">The behaviour object.  <a href="#a8dee430f7730c4f6ff98b7f53d2f1d7b">More...</a><br /></td></tr>
<tr class="separator:a8dee430f7730c4f6ff98b7f53d2f1d7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Behaviour&gt;<br />
class AnimatedPosition&lt; Behaviour &gt;</h3>

<p>Models a 1-dimensional position that can be dragged around by the user, and which will then continue moving with a customisable physics behaviour when released. </p>
<p>This is useful for things like scrollable views or objects that can be dragged and thrown around with the mouse/touch, and by writing your own behaviour class, you can customise the trajectory that it follows when released.</p>
<p>The class uses its own <a class="el" href="classTimer.html" title="Makes repeated callbacks to a virtual method at a specified time interval. ">Timer</a> to continuously change its value when a drag ends, and <a class="el" href="classAnimatedPosition_1_1Listener.html" title="Implement this class if you need to receive callbacks when the value of an AnimatedPosition changes...">Listener</a> objects can be registered to receive callbacks whenever the value changes.</p>
<p>The value is stored as a double, and can be used to represent whatever units you need.</p>
<p>The template parameter Behaviour must be a class that implements various methods to return the physics of the value's movement - you can use the classes provided for this in the <a class="el" href="namespaceAnimatedPositionBehaviours.html" title="Contains classes for different types of physics behaviours - these classes are used as template param...">AnimatedPositionBehaviours</a> namespace, or write your own custom behaviour.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="structAnimatedPositionBehaviours_1_1ContinuousWithMomentum.html" title="A non-snapping behaviour that allows the content to be freely flicked in either direction, with momentum based on the velocity at which it was released, and variable friction to make it come to a halt. ">AnimatedPositionBehaviours::ContinuousWithMomentum</a>, <a class="el" href="structAnimatedPositionBehaviours_1_1SnapToPageBoundaries.html" title="A behaviour that gravitates an AnimatedPosition object towards the nearest integer position when rele...">AnimatedPositionBehaviours::SnapToPageBoundaries</a> </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a364daf059e5e4ac2bce94ea8a236c02c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a364daf059e5e4ac2bce94ea8a236c02c">&sect;&nbsp;</a></span>AnimatedPosition()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Behaviour &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAnimatedPosition.html">AnimatedPosition</a>&lt; Behaviour &gt;::<a class="el" href="classAnimatedPosition.html">AnimatedPosition</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a8513e6e68f4c37bbf1eaa6210467e672"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8513e6e68f4c37bbf1eaa6210467e672">&sect;&nbsp;</a></span>setLimits()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Behaviour &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classAnimatedPosition.html">AnimatedPosition</a>&lt; Behaviour &gt;::setLimits </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classRange.html">Range</a>&lt; double &gt;&#160;</td>
          <td class="paramname"><em>newRange</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets a range within which the value will be constrained. </p>

</div>
</div>
<a id="a3378dd6b200539ef684f5d8031a4f69a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3378dd6b200539ef684f5d8031a4f69a">&sect;&nbsp;</a></span>beginDrag()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Behaviour &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classAnimatedPosition.html">AnimatedPosition</a>&lt; Behaviour &gt;::beginDrag </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Called to indicate that the object is now being controlled by a mouse-drag or similar operation. </p>
<p>After calling this method, you should make calls to the <a class="el" href="classAnimatedPosition.html#aecd11c12c444387d46ef54931c5cbd86" title="Called during a mouse-drag operation, to indicate that the mouse has moved. ">drag()</a> method each time the mouse drags the position around, and always be sure to finish with a call to <a class="el" href="classAnimatedPosition.html#a31520fda363c37afac010416dab7707f" title="Called after beginDrag() and drag() to indicate that the drag operation has now finished. ">endDrag()</a> when the mouse is released, which allows the position to continue moving freely according to the specified behaviour. </p>

<p>References <a class="el" href="classTimer.html#ab918b8c1f80bf1de92dd1a5878f498bd">Timer::stopTimer()</a>.</p>

</div>
</div>
<a id="aecd11c12c444387d46ef54931c5cbd86"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aecd11c12c444387d46ef54931c5cbd86">&sect;&nbsp;</a></span>drag()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Behaviour &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classAnimatedPosition.html">AnimatedPosition</a>&lt; Behaviour &gt;::drag </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>deltaFromStartOfDrag</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Called during a mouse-drag operation, to indicate that the mouse has moved. </p>
<p>The delta is the difference between the position when <a class="el" href="classAnimatedPosition.html#a3378dd6b200539ef684f5d8031a4f69a" title="Called to indicate that the object is now being controlled by a mouse-drag or similar operation...">beginDrag()</a> was called and the new position that's required. </p>

</div>
</div>
<a id="a31520fda363c37afac010416dab7707f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31520fda363c37afac010416dab7707f">&sect;&nbsp;</a></span>endDrag()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Behaviour &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classAnimatedPosition.html">AnimatedPosition</a>&lt; Behaviour &gt;::endDrag </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Called after <a class="el" href="classAnimatedPosition.html#a3378dd6b200539ef684f5d8031a4f69a" title="Called to indicate that the object is now being controlled by a mouse-drag or similar operation...">beginDrag()</a> and <a class="el" href="classAnimatedPosition.html#aecd11c12c444387d46ef54931c5cbd86" title="Called during a mouse-drag operation, to indicate that the mouse has moved. ">drag()</a> to indicate that the drag operation has now finished. </p>

<p>References <a class="el" href="classTimer.html#a457efb22cb11b8518b18a0e8f02d818b">Timer::startTimerHz()</a>.</p>

</div>
</div>
<a id="aa58f2a396a133f7325322b5eeb9b1d3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa58f2a396a133f7325322b5eeb9b1d3b">&sect;&nbsp;</a></span>nudge()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Behaviour &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classAnimatedPosition.html">AnimatedPosition</a>&lt; Behaviour &gt;::nudge </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>deltaFromCurrentPosition</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Called outside of a drag operation to cause a nudge in the specified direction. </p>
<p>This is intended for use by e.g. mouse-wheel events. </p>

<p>References <a class="el" href="classTimer.html#a457efb22cb11b8518b18a0e8f02d818b">Timer::startTimerHz()</a>.</p>

</div>
</div>
<a id="a6586cfc0cf0ec99e73d6287b0f2700f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6586cfc0cf0ec99e73d6287b0f2700f5">&sect;&nbsp;</a></span>getPosition()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Behaviour &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classAnimatedPosition.html">AnimatedPosition</a>&lt; Behaviour &gt;::getPosition </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the current position. </p>

</div>
</div>
<a id="a18201fedfc570cb04582ff65b9ddbf3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18201fedfc570cb04582ff65b9ddbf3d">&sect;&nbsp;</a></span>setPosition()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Behaviour &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classAnimatedPosition.html">AnimatedPosition</a>&lt; Behaviour &gt;::setPosition </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>newPosition</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Explicitly sets the position and stops any further movement. </p>
<p>This will cause a synchronous call to any listeners if the position actually changes. </p>

<p>References <a class="el" href="classTimer.html#ab918b8c1f80bf1de92dd1a5878f498bd">Timer::stopTimer()</a>.</p>

</div>
</div>
<a id="a26cb4a90ef54041d01dfe07be46c0e88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26cb4a90ef54041d01dfe07be46c0e88">&sect;&nbsp;</a></span>addListener()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Behaviour &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classAnimatedPosition.html">AnimatedPosition</a>&lt; Behaviour &gt;::addListener </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classAnimatedPosition_1_1Listener.html">Listener</a> *&#160;</td>
          <td class="paramname"><em>listener</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a listener to be called when the value changes. </p>

</div>
</div>
<a id="aea1ba3edaac6d6f86739f64ca03f4597"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea1ba3edaac6d6f86739f64ca03f4597">&sect;&nbsp;</a></span>removeListener()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Behaviour &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classAnimatedPosition.html">AnimatedPosition</a>&lt; Behaviour &gt;::removeListener </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classAnimatedPosition_1_1Listener.html">Listener</a> *&#160;</td>
          <td class="paramname"><em>listener</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes a previously-registered listener. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a8dee430f7730c4f6ff98b7f53d2f1d7b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8dee430f7730c4f6ff98b7f53d2f1d7b">&sect;&nbsp;</a></span>behaviour</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Behaviour &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">Behaviour <a class="el" href="classAnimatedPosition.html">AnimatedPosition</a>&lt; Behaviour &gt;::behaviour</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The behaviour object. </p>
<p>This is public to let you tweak any parameters that it provides. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__AnimatedPosition_8h.html">juce_AnimatedPosition.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content &copy ROLI Ltd.</small></address><br/>
</body>
</html>