[NUI] Split large files (#1081)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / UIComponents / ScrollView.cs
1 /*
2  * Copyright(c) 2019 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 using System;
19 using System.ComponentModel;
20 using Tizen.NUI.BaseComponents;
21
22 namespace Tizen.NUI
23 {
24     /// <summary>
25     /// ScrollView contains views that can be scrolled manually (via touch).
26     /// </summary>
27     /// <since_tizen> 3 </since_tizen>
28     [EditorBrowsable(EditorBrowsableState.Never)]
29     public partial class ScrollView : Scrollable
30     {
31         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
32
33         /// <summary>
34         /// Create an instance of ScrollView.
35         /// </summary>
36         /// <since_tizen> 3 </since_tizen>
37         /// This will be deprecated
38         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
39         [EditorBrowsable(EditorBrowsableState.Never)]
40         public ScrollView() : this(Interop.ScrollView.ScrollView_New(), true)
41         {
42             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
43         }
44
45         internal ScrollView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.ScrollView.ScrollView_SWIGUpcast(cPtr), cMemoryOwn)
46         {
47             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
48         }
49
50         /// <summary>
51         /// Sets and Gets WrapEnabled property.
52         /// </summary>
53         /// <since_tizen> 3 </since_tizen>
54         /// This will be deprecated
55         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
56         [EditorBrowsable(EditorBrowsableState.Never)]
57         public bool WrapEnabled
58         {
59             get
60             {
61                 return (bool)GetValue(WrapEnabledProperty);
62             }
63             set
64             {
65                 SetValue(WrapEnabledProperty, value);
66             }
67         }
68
69         /// <summary>
70         /// Sets and Gets PanningEnabled property.
71         /// </summary>
72         /// <since_tizen> 3 </since_tizen>
73         /// This will be deprecated
74         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
75         [EditorBrowsable(EditorBrowsableState.Never)]
76         public bool PanningEnabled
77         {
78             get
79             {
80                 return (bool)GetValue(PanningEnabledProperty);
81             }
82             set
83             {
84                 SetValue(PanningEnabledProperty, value);
85             }
86         }
87
88         /// <summary>
89         /// Sets and Gets AxisAutoLockEnabled property.
90         /// </summary>
91         /// <since_tizen> 3 </since_tizen>
92         /// This will be deprecated
93         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
94         [EditorBrowsable(EditorBrowsableState.Never)]
95         public bool AxisAutoLockEnabled
96         {
97             get
98             {
99                 return (bool)GetValue(AxisAutoLockEnabledProperty);
100             }
101             set
102             {
103                 SetValue(AxisAutoLockEnabledProperty, value);
104             }
105         }
106
107         /// <summary>
108         /// Sets and Gets WheelScrollDistanceStep property.
109         /// </summary>
110         /// <since_tizen> 3 </since_tizen>
111         /// This will be deprecated
112         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
113         [EditorBrowsable(EditorBrowsableState.Never)]
114         public Vector2 WheelScrollDistanceStep
115         {
116             get
117             {
118                 return (Vector2)GetValue(WheelScrollDistanceStepProperty);
119             }
120             set
121             {
122                 SetValue(WheelScrollDistanceStepProperty, value);
123             }
124         }
125
126         /// <summary>
127         /// Sets and Gets ScrollPosition property.
128         /// </summary>
129         /// <since_tizen> 3 </since_tizen>
130         /// This will be deprecated
131         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
132         [EditorBrowsable(EditorBrowsableState.Never)]
133         public Vector2 ScrollPosition
134         {
135             get
136             {
137                 return (Vector2)GetValue(ScrollPositionProperty);
138             }
139             set
140             {
141                 SetValue(ScrollPositionProperty, value);
142             }
143         }
144
145         /// <summary>
146         /// Sets and Gets ScrollPrePosition property.
147         /// </summary>
148         /// <since_tizen> 3 </since_tizen>
149         /// This will be deprecated
150         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
151         [EditorBrowsable(EditorBrowsableState.Never)]
152         public Vector2 ScrollPrePosition
153         {
154             get
155             {
156                 return (Vector2)GetValue(ScrollPrePositionProperty);
157             }
158             set
159             {
160                 SetValue(ScrollPrePositionProperty, value);
161             }
162         }
163
164         /// <summary>
165         /// Sets and Gets ScrollPrePositionMax property.
166         /// </summary>
167         /// <since_tizen> 3 </since_tizen>
168         /// This will be deprecated
169         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
170         [EditorBrowsable(EditorBrowsableState.Never)]
171         public Vector2 ScrollPrePositionMax
172         {
173             get
174             {
175                 return (Vector2)GetValue(ScrollPrePositionMaxProperty);
176             }
177             set
178             {
179                 SetValue(ScrollPrePositionMaxProperty, value);
180             }
181         }
182
183         /// <summary>
184         /// Sets and Gets OvershootX property.
185         /// </summary>
186         /// <since_tizen> 3 </since_tizen>
187         /// This will be deprecated
188         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
189         [EditorBrowsable(EditorBrowsableState.Never)]
190         public float OvershootX
191         {
192             get
193             {
194                 return (float)GetValue(OvershootXProperty);
195             }
196             set
197             {
198                 SetValue(OvershootXProperty, value);
199             }
200         }
201
202         /// <summary>
203         /// Sets and Gets OvershootY property.
204         /// </summary>
205         /// <since_tizen> 3 </since_tizen>
206         /// This will be deprecated
207         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
208         [EditorBrowsable(EditorBrowsableState.Never)]
209         public float OvershootY
210         {
211             get
212             {
213                 return (float)GetValue(OvershootYProperty);
214             }
215             set
216             {
217                 SetValue(OvershootYProperty, value);
218             }
219         }
220
221         /// <summary>
222         /// Sets and Gets ScrollFinal property.
223         /// </summary>
224         /// <since_tizen> 3 </since_tizen>
225         /// This will be deprecated
226         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
227         [EditorBrowsable(EditorBrowsableState.Never)]
228         public Vector2 ScrollFinal
229         {
230             get
231             {
232                 return (Vector2)GetValue(ScrollFinalProperty);
233             }
234             set
235             {
236                 SetValue(ScrollFinalProperty, value);
237             }
238         }
239
240         /// <summary>
241         /// Sets and Gets Wrap property.
242         /// </summary>
243         /// <since_tizen> 3 </since_tizen>
244         /// This will be deprecated
245         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
246         [EditorBrowsable(EditorBrowsableState.Never)]
247         public bool Wrap
248         {
249             get
250             {
251                 return (bool)GetValue(WrapProperty);
252             }
253             set
254             {
255                 SetValue(WrapProperty, value);
256             }
257         }
258
259         /// <summary>
260         /// Sets and Gets Panning property.
261         /// </summary>
262         /// <since_tizen> 3 </since_tizen>
263         /// This will be deprecated
264         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
265         [EditorBrowsable(EditorBrowsableState.Never)]
266         public bool Panning
267         {
268             get
269             {
270                 return (bool)GetValue(PanningProperty);
271             }
272             set
273             {
274                 SetValue(PanningProperty, value);
275             }
276         }
277
278         /// <summary>
279         /// Sets and Gets Scrolling property.
280         /// </summary>
281         /// <since_tizen> 3 </since_tizen>
282         /// This will be deprecated
283         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
284         [EditorBrowsable(EditorBrowsableState.Never)]
285         public bool Scrolling
286         {
287             get
288             {
289                 return (bool)GetValue(ScrollingProperty);
290             }
291             set
292             {
293                 SetValue(ScrollingProperty, value);
294             }
295         }
296
297         /// <summary>
298         /// Sets and Gets ScrollDomainSize property.
299         /// </summary>
300         /// <since_tizen> 3 </since_tizen>
301         /// This will be deprecated
302         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
303         [EditorBrowsable(EditorBrowsableState.Never)]
304         public Vector2 ScrollDomainSize
305         {
306             get
307             {
308                 return (Vector2)GetValue(ScrollDomainSizeProperty);
309             }
310             set
311             {
312                 SetValue(ScrollDomainSizeProperty, value);
313             }
314         }
315
316         /// <summary>
317         /// Sets and Gets ScrollDomainOffset property.
318         /// </summary>
319         /// <since_tizen> 3 </since_tizen>
320         /// This will be deprecated
321         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
322         [EditorBrowsable(EditorBrowsableState.Never)]
323         public Vector2 ScrollDomainOffset
324         {
325             get
326             {
327                 return (Vector2)GetValue(ScrollDomainOffsetProperty);
328             }
329             set
330             {
331                 SetValue(ScrollDomainOffsetProperty, value);
332             }
333         }
334
335         /// <summary>
336         /// Sets and Gets ScrollPositionDelta property.
337         /// </summary>
338         /// <since_tizen> 3 </since_tizen>
339         /// This will be deprecated
340         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
341         [EditorBrowsable(EditorBrowsableState.Never)]
342         public Vector2 ScrollPositionDelta
343         {
344             get
345             {
346                 return (Vector2)GetValue(ScrollPositionDeltaProperty);
347             }
348             set
349             {
350                 SetValue(ScrollPositionDeltaProperty, value);
351             }
352         }
353
354         /// <summary>
355         /// Sets and Gets StartPagePosition property.
356         /// </summary>
357         /// <since_tizen> 3 </since_tizen>
358         /// This will be deprecated
359         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
360         [EditorBrowsable(EditorBrowsableState.Never)]
361         public Vector3 StartPagePosition
362         {
363             get
364             {
365                 return (Vector3)GetValue(StartPagePositionProperty);
366             }
367             set
368             {
369                 SetValue(StartPagePositionProperty, value);
370             }
371         }
372
373
374         /// <summary>
375         /// Sets and Gets ScrollMode property.
376         /// </summary>
377         /// <since_tizen> 3 </since_tizen>
378         /// This will be deprecated
379         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
380         [EditorBrowsable(EditorBrowsableState.Never)]
381         public PropertyMap ScrollMode
382         {
383             get
384             {
385                 return (PropertyMap)GetValue(ScrollModeProperty);
386             }
387             set
388             {
389                 SetValue(ScrollModeProperty, value);
390             }
391         }
392
393         /// <summary>
394         /// Gets snap-animation's AlphaFunction.
395         /// </summary>
396         /// <returns>Current easing alpha function of the snap animation.</returns>
397         /// <since_tizen> 3 </since_tizen>
398         /// This will be deprecated
399         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
400         [EditorBrowsable(EditorBrowsableState.Never)]
401         public AlphaFunction GetScrollSnapAlphaFunction()
402         {
403             AlphaFunction ret = new AlphaFunction(Interop.ScrollView.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
404             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
405             return ret;
406         }
407
408         /// <summary>
409         /// Sets snap-animation's AlphaFunction.
410         /// </summary>
411         /// <param name="alpha">Easing alpha function of the snap animation.</param>
412         /// <since_tizen> 3 </since_tizen>
413         /// This will be deprecated
414         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
415         [EditorBrowsable(EditorBrowsableState.Never)]
416         public void SetScrollSnapAlphaFunction(AlphaFunction alpha)
417         {
418             Interop.ScrollView.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
419             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
420         }
421
422         /// <summary>
423         /// Gets flick-animation's AlphaFunction.
424         /// </summary>
425         /// <returns>Current easing alpha function of the flick animation.</returns>
426         /// <since_tizen> 3 </since_tizen>
427         /// This will be deprecated
428         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
429         [EditorBrowsable(EditorBrowsableState.Never)]
430         public AlphaFunction GetScrollFlickAlphaFunction()
431         {
432             AlphaFunction ret = new AlphaFunction(Interop.ScrollView.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
433             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
434             return ret;
435         }
436
437         /// <summary>
438         /// Sets flick-animation's AlphaFunction.
439         /// </summary>
440         /// <param name="alpha">Easing alpha function of the flick animation.</param>
441         /// <since_tizen> 3 </since_tizen>
442         /// This will be deprecated
443         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
444         [EditorBrowsable(EditorBrowsableState.Never)]
445         public void SetScrollFlickAlphaFunction(AlphaFunction alpha)
446         {
447             Interop.ScrollView.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
448             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
449         }
450
451         /// <summary>
452         /// Gets the time for the scroll snap-animation.
453         /// </summary>
454         /// <returns>The time in seconds for the animation to take.</returns>
455         /// <since_tizen> 3 </since_tizen>
456         /// This will be deprecated
457         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
458         [EditorBrowsable(EditorBrowsableState.Never)]
459         public float GetScrollSnapDuration()
460         {
461             float ret = Interop.ScrollView.ScrollView_GetScrollSnapDuration(swigCPtr);
462             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
463             return ret;
464         }
465
466         /// <summary>
467         /// Sets the time for the scroll snap-animation.
468         /// </summary>
469         /// <param name="time">The time in seconds for the animation to take.</param>
470         /// <since_tizen> 3 </since_tizen>
471         /// This will be deprecated
472         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
473         [EditorBrowsable(EditorBrowsableState.Never)]
474         public void SetScrollSnapDuration(float time)
475         {
476             Interop.ScrollView.ScrollView_SetScrollSnapDuration(swigCPtr, time);
477             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
478         }
479
480         /// <summary>
481         /// Gets the time for the scroll flick-animation.
482         /// </summary>
483         /// <returns>The time in seconds for the animation to take.</returns>
484         /// <since_tizen> 3 </since_tizen>
485         /// This will be deprecated
486         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
487         [EditorBrowsable(EditorBrowsableState.Never)]
488         public float GetScrollFlickDuration()
489         {
490             float ret = Interop.ScrollView.ScrollView_GetScrollFlickDuration(swigCPtr);
491             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
492             return ret;
493         }
494
495         /// <summary>
496         /// Sets the time for the scroll snap-animation.
497         /// </summary>
498         /// <param name="time">The time in seconds for the animation to take.</param>
499         /// <since_tizen> 3 </since_tizen>
500         /// This will be deprecated
501         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
502         [EditorBrowsable(EditorBrowsableState.Never)]
503         public void SetScrollFlickDuration(float time)
504         {
505             Interop.ScrollView.ScrollView_SetScrollFlickDuration(swigCPtr, time);
506             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
507         }
508
509         /// <summary>
510         /// Sets scroll sensibility of pan gesture.
511         /// </summary>
512         /// <param name="sensitive">True to enable scroll, false to disable scrolling.</param>
513         /// <since_tizen> 3 </since_tizen>
514         /// This will be deprecated
515         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
516         [EditorBrowsable(EditorBrowsableState.Never)]
517         public void SetScrollSensitive(bool sensitive)
518         {
519             Interop.ScrollView.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
520             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
521         }
522
523         /// <summary>
524         /// Sets maximum overshoot amount.
525         /// </summary>
526         /// <param name="overshootX">The maximum number of horizontally scrolled pixels before overshoot X reaches 1.0f.</param>
527         /// <param name="overshootY">The maximum number of vertically scrolled pixels before overshoot X reaches 1.0f.</param>
528         /// <since_tizen> 3 </since_tizen>
529         /// This will be deprecated
530         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
531         [EditorBrowsable(EditorBrowsableState.Never)]
532         public void SetMaxOvershoot(float overshootX, float overshootY)
533         {
534             Interop.ScrollView.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
535             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
536         }
537
538         /// <summary>
539         /// Sets Snap Overshoot animation's AlphaFunction.
540         /// </summary>
541         /// <param name="alpha">Easing alpha function of the overshoot snap animation.</param>
542         /// <since_tizen> 3 </since_tizen>
543         /// This will be deprecated
544         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
545         [EditorBrowsable(EditorBrowsableState.Never)]
546         public void SetSnapOvershootAlphaFunction(AlphaFunction alpha)
547         {
548             Interop.ScrollView.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
549             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
550         }
551
552         /// <summary>
553         /// Sets Snap Overshoot animation's Duration.
554         /// </summary>
555         /// <param name="duration">duration The duration of the overshoot snap animation.</param>
556         /// <since_tizen> 3 </since_tizen>
557         /// This will be deprecated
558         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
559         [EditorBrowsable(EditorBrowsableState.Never)]
560         public void SetSnapOvershootDuration(float duration)
561         {
562             Interop.ScrollView.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
563             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
564         }
565
566         /// <summary>
567         /// Enables or Disables Actor Auto-Snap mode.<br />
568         /// When Actor Auto-Snap mode has been enabled, ScrollView will automatically,
569         /// snap to the closest actor (The closest actor will appear in the center of the ScrollView).
570         /// </summary>
571         /// <param name="enable">Enables (true), or disables (false) Actor AutoSnap.</param>
572         /// <since_tizen> 3 </since_tizen>
573         /// This will be deprecated
574         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
575         [EditorBrowsable(EditorBrowsableState.Never)]
576         public void SetViewAutoSnap(bool enable)
577         {
578             Interop.ScrollView.ScrollView_SetActorAutoSnap(swigCPtr, enable);
579             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
580         }
581
582         /// <summary>
583         /// Enables or Disables Wrap mode for ScrollView contents.<br />
584         /// When enabled, the ScrollView contents are wrapped over the X/Y Domain.
585         /// </summary>
586         /// <param name="enable">Enables (true), or disables (false) Wrap Mode.</param>
587         /// <since_tizen> 3 </since_tizen>
588         /// This will be deprecated
589         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
590         [EditorBrowsable(EditorBrowsableState.Never)]
591         public void SetWrapMode(bool enable)
592         {
593             Interop.ScrollView.ScrollView_SetWrapMode(swigCPtr, enable);
594             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
595         }
596
597         /// <summary>
598         /// Gets the current distance needed to scroll for ScrollUpdatedSignal to be emitted.
599         /// </summary>
600         /// <returns>Current scroll update distance.</returns>
601         /// <since_tizen> 3 </since_tizen>
602         /// This will be deprecated
603         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
604         [EditorBrowsable(EditorBrowsableState.Never)]
605         public int GetScrollUpdateDistance()
606         {
607             int ret = Interop.ScrollView.ScrollView_GetScrollUpdateDistance(swigCPtr);
608             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
609             return ret;
610         }
611
612         /// <summary>
613         /// Sets the distance needed to scroll for ScrollUpdatedSignal to be emitted.<br />
614         /// The scroll update distance tells ScrollView how far to move before ScrollUpdatedSignal the informs application.<br />
615         /// Each time the ScrollView crosses this distance the signal will be emitted.<br />
616         /// </summary>
617         /// <param name="distance">The distance for ScrollView to move before emitting update signal.</param>
618         /// <since_tizen> 3 </since_tizen>
619         /// This will be deprecated
620         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
621         [EditorBrowsable(EditorBrowsableState.Never)]
622         public void SetScrollUpdateDistance(int distance)
623         {
624             Interop.ScrollView.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
625             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
626         }
627
628         /// <summary>
629         /// Returns state of Axis Auto Lock mode.
630         /// </summary>
631         /// <returns>Whether Axis Auto Lock mode has been enabled or not.</returns>
632         /// <since_tizen> 3 </since_tizen>
633         /// This will be deprecated
634         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
635         [EditorBrowsable(EditorBrowsableState.Never)]
636         public bool GetAxisAutoLock()
637         {
638             bool ret = Interop.ScrollView.ScrollView_GetAxisAutoLock(swigCPtr);
639             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
640             return ret;
641         }
642
643         /// <summary>
644         /// Enables or Disables Axis Auto Lock mode for panning within the ScrollView.<br />
645         /// When enabled, any pan gesture that appears mostly horizontal or mostly
646         /// vertical, will be automatically restricted to horizontal only or vertical
647         /// only panning, until the pan gesture has completed.
648         /// </summary>
649         /// <param name="enable">Enables (true), or disables (false) AxisAutoLock mode.</param>
650         /// <since_tizen> 3 </since_tizen>
651         /// This will be deprecated
652         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
653         [EditorBrowsable(EditorBrowsableState.Never)]
654         public void SetAxisAutoLock(bool enable)
655         {
656             Interop.ScrollView.ScrollView_SetAxisAutoLock(swigCPtr, enable);
657             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
658         }
659
660         /// <summary>
661         /// Gets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.
662         /// </summary>
663         /// <returns>The gradient, a value between 0.0 and 1.0f.</returns>
664         /// <since_tizen> 3 </since_tizen>
665         /// This will be deprecated
666         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
667         [EditorBrowsable(EditorBrowsableState.Never)]
668         public float GetAxisAutoLockGradient()
669         {
670             float ret = Interop.ScrollView.ScrollView_GetAxisAutoLockGradient(swigCPtr);
671             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
672             return ret;
673         }
674
675         /// <summary>
676         /// Sets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.<br />
677         /// By default, this is 0.36 (0.36:1) which means angles less than 20 degrees to an axis will lock to that axis.<br />
678         /// </summary>
679         /// <param name="gradient">gradient A value between 0.0 and 1.0 (auto-lock for all angles).</param>
680         /// <since_tizen> 3 </since_tizen>
681         /// This will be deprecated
682         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
683         [EditorBrowsable(EditorBrowsableState.Never)]
684         public void SetAxisAutoLockGradient(float gradient)
685         {
686             Interop.ScrollView.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
687             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
688         }
689
690         /// <summary>
691         /// Gets the friction coefficient setting for ScrollView when flicking in free panning mode.
692         /// This is a value in stage-diagonals per second^2, stage-diagonal = Length( stage.width, stage.height )
693         /// </summary>
694         /// <returns>Friction coefficient is returned.</returns>
695         /// <since_tizen> 3 </since_tizen>
696         /// This will be deprecated
697         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
698         [EditorBrowsable(EditorBrowsableState.Never)]
699         public float GetFrictionCoefficient()
700         {
701             float ret = Interop.ScrollView.ScrollView_GetFrictionCoefficient(swigCPtr);
702             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
703             return ret;
704         }
705
706         /// <summary>
707         /// Sets the friction coefficient for ScrollView when flicking.<br />
708         /// </summary>
709         /// <param name="friction">Friction coefficient must be greater than 0.0 (default = 1.0).</param>
710         /// <since_tizen> 3 </since_tizen>
711         /// This will be deprecated
712         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
713         [EditorBrowsable(EditorBrowsableState.Never)]
714         public void SetFrictionCoefficient(float friction)
715         {
716             Interop.ScrollView.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
717             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
718         }
719
720         /// <summary>
721         /// Gets the flick speed coefficient for ScrollView when flicking in free panning mode.<br />
722         /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at which to move the scrolling area.
723         /// </summary>
724         /// <returns>The flick speed coefficient is returned.</returns>
725         /// <since_tizen> 3 </since_tizen>
726         /// This will be deprecated
727         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
728         [EditorBrowsable(EditorBrowsableState.Never)]
729         public float GetFlickSpeedCoefficient()
730         {
731             float ret = Interop.ScrollView.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
732             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
733             return ret;
734         }
735
736         /// <summary>
737         /// Sets the flick speed coefficient for ScrollView when flicking in free panning mode.<br />
738         /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at
739         /// which to move the scrolling area.<br />
740         /// </summary>
741         /// <param name="speed">The flick speed coefficient (default = 1.0).</param>
742         /// <since_tizen> 3 </since_tizen>
743         /// This will be deprecated
744         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
745         [EditorBrowsable(EditorBrowsableState.Never)]
746         public void SetFlickSpeedCoefficient(float speed)
747         {
748             Interop.ScrollView.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
749             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
750         }
751
752         /// <summary>
753         /// Gets the minimum pan distance required for a flick gesture in pixels.<br />
754         /// </summary>
755         /// <returns>Minimum pan distance vector with separate x and y distance.</returns>
756         /// <since_tizen> 3 </since_tizen>
757         /// This will be deprecated
758         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
759         [EditorBrowsable(EditorBrowsableState.Never)]
760         public Vector2 GetMinimumDistanceForFlick()
761         {
762             Vector2 ret = new Vector2(Interop.ScrollView.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
763             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
764             return ret;
765         }
766
767         /// <summary>
768         /// Sets the minimum pan distance required for a flick in pixels.<br />
769         /// Takes a Vector2 containing separate x and y values. As long as the pan distance exceeds one of these axes, a flick will be allowed.
770         /// </summary>
771         /// <param name="distance">The flick speed coefficient (default = 1.0).</param>
772         /// <since_tizen> 3 </since_tizen>
773         /// This will be deprecated
774         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
775         [EditorBrowsable(EditorBrowsableState.Never)]
776         public void SetMinimumDistanceForFlick(Vector2 distance)
777         {
778             Interop.ScrollView.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
779             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
780         }
781
782         /// <summary>
783         /// Returns the minimum pan speed required for a flick gesture in pixels per second.
784         /// </summary>
785         /// <returns>Minimum pan speed.</returns>
786         /// <since_tizen> 3 </since_tizen>
787         /// This will be deprecated
788         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
789         [EditorBrowsable(EditorBrowsableState.Never)]
790         public float GetMinimumSpeedForFlick()
791         {
792             float ret = Interop.ScrollView.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
793             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
794             return ret;
795         }
796
797         /// <summary>
798         /// Sets the minimum pan speed required for a flick in pixels per second.<br />
799         /// </summary>
800         /// <param name="speed">The minimum pan speed for a flick.</param>
801         /// <since_tizen> 3 </since_tizen>
802         /// This will be deprecated
803         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
804         [EditorBrowsable(EditorBrowsableState.Never)]
805         public void SetMinimumSpeedForFlick(float speed)
806         {
807             Interop.ScrollView.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
808             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
809         }
810
811         /// <summary>
812         /// Gets the maximum flick speed setting for ScrollView when flicking in free panning mode.<br />
813         /// This is a value in stage-diagonals per second.
814         /// </summary>
815         /// <returns>Maximum flick speed is returned.</returns>
816         /// <since_tizen> 3 </since_tizen>
817         /// This will be deprecated
818         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
819         [EditorBrowsable(EditorBrowsableState.Never)]
820         public float GetMaxFlickSpeed()
821         {
822             float ret = Interop.ScrollView.ScrollView_GetMaxFlickSpeed(swigCPtr);
823             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
824             return ret;
825         }
826
827         /// <summary>
828         /// Sets the maximum flick speed for the ScrollView when flicking in free panning mode.<br />
829         /// This is a value in stage-diagonals per second. stage-diagonal = Length( stage.width, stage.height ).<br />
830         /// </summary>
831         /// <param name="speed">Maximum flick speed (default = 3.0).</param>
832         /// <since_tizen> 3 </since_tizen>
833         /// This will be deprecated
834         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
835         [EditorBrowsable(EditorBrowsableState.Never)]
836         public void SetMaxFlickSpeed(float speed)
837         {
838             Interop.ScrollView.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
839             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
840         }
841
842         /// <summary>
843         /// Gets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.<br />
844         /// </summary>
845         /// <returns>The step of scroll distance(pixel) in X and Y axes.</returns>
846         /// <since_tizen> 3 </since_tizen>
847         /// This will be deprecated
848         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
849         [EditorBrowsable(EditorBrowsableState.Never)]
850         public Vector2 GetWheelScrollDistanceStep()
851         {
852             Vector2 ret = new Vector2(Interop.ScrollView.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
853             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
854             return ret;
855         }
856
857         /// <summary>
858         /// Sets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.<br />
859         /// </summary>
860         /// <param name="step">step The step of scroll distance(pixel) in X and Y axes.</param>
861         /// <since_tizen> 3 </since_tizen>
862         /// This will be deprecated
863         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
864         [EditorBrowsable(EditorBrowsableState.Never)]
865         public void SetWheelScrollDistanceStep(Vector2 step)
866         {
867             Interop.ScrollView.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
868             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
869         }
870
871         /// <summary>
872         /// Retrieves current scroll position.<br />
873         /// </summary>
874         /// <returns>The current scroll position.</returns>
875         /// <since_tizen> 3 </since_tizen>
876         /// This will be deprecated
877         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
878         [EditorBrowsable(EditorBrowsableState.Never)]
879         public Vector2 GetCurrentScrollPosition()
880         {
881             Vector2 ret = new Vector2(Interop.ScrollView.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
882             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
883             return ret;
884         }
885
886         /// <summary>
887         /// Retrieves current scroll page based on ScrollView dimensions being the size of one page, and all pages laid out in<br />
888         /// a grid fashion, increasing from left to right until the end of the X-domain.
889         /// </summary>
890         /// <returns>The current scroll position.</returns>
891         /// <since_tizen> 3 </since_tizen>
892         /// This will be deprecated
893         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
894         [EditorBrowsable(EditorBrowsableState.Never)]
895         public uint GetCurrentPage()
896         {
897             uint ret = Interop.ScrollView.ScrollView_GetCurrentPage(swigCPtr);
898             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
899             return ret;
900         }
901
902         /// <summary>
903         /// Scrolls View to position specified (contents will scroll to this position).
904         /// </summary>
905         /// <param name="position">The position to scroll to.</param>
906         /// <since_tizen> 3 </since_tizen>
907         /// This will be deprecated
908         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
909         [EditorBrowsable(EditorBrowsableState.Never)]
910         public void ScrollTo(Vector2 position)
911         {
912             Interop.ScrollView.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
913             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
914         }
915
916         /// <summary>
917         /// Scrolls View to position specified (contents will scroll to this position).
918         /// </summary>
919         /// <param name="position">The position to scroll to.</param>
920         /// <param name="duration">The duration of the animation in seconds.</param>
921         /// <since_tizen> 3 </since_tizen>
922         /// This will be deprecated
923         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
924         [EditorBrowsable(EditorBrowsableState.Never)]
925         public void ScrollTo(Vector2 position, float duration)
926         {
927             Interop.ScrollView.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
928             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
929         }
930
931         /// <summary>
932         /// Scrolls View to position specified (contents will scroll to this position).
933         /// </summary>
934         /// <param name="position">The position to scroll to.</param>
935         /// <param name="duration">The duration of the animation in seconds.</param>
936         /// <param name="alpha">The alpha function to use.</param>
937         /// <since_tizen> 3 </since_tizen>
938         /// This will be deprecated
939         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
940         [EditorBrowsable(EditorBrowsableState.Never)]
941         public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha)
942         {
943             Interop.ScrollView.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
944             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
945         }
946
947         /// <summary>
948         /// Scrolls View to position specified (contents will scroll to this position).
949         /// </summary>
950         /// <param name="position">The position to scroll to.</param>
951         /// <param name="duration">The duration of the animation in seconds.</param>
952         /// <param name="horizontalBias">Whether to bias scrolling to left or right.</param>
953         /// <param name="verticalBias">Whether to bias scrolling to top or bottom.</param>
954         /// <since_tizen> 3 </since_tizen>
955         /// This will be deprecated
956         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
957         [EditorBrowsable(EditorBrowsableState.Never)]
958         public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias)
959         {
960             Interop.ScrollView.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
961             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
962         }
963
964         /// <summary>
965         /// Scrolls View to position specified (contents will scroll to this position).
966         /// </summary>
967         /// <param name="position">The position to scroll to.</param>
968         /// <param name="duration">The duration of the animation in seconds.</param>
969         /// <param name="alpha">Alpha function to use.</param>
970         /// <param name="horizontalBias">Whether to bias scrolling to left or right.</param>
971         /// <param name="verticalBias">Whether to bias scrolling to top or bottom.</param>
972         /// <since_tizen> 3 </since_tizen>
973         /// This will be deprecated
974         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
975         [EditorBrowsable(EditorBrowsableState.Never)]
976         public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias)
977         {
978             Interop.ScrollView.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
979             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
980         }
981
982         /// <summary>
983         /// Scrolls View to position specified (contents will scroll to this position).
984         /// </summary>
985         /// <param name="page">The page to scroll to.</param>
986         /// <since_tizen> 3 </since_tizen>
987         /// This will be deprecated
988         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
989         [EditorBrowsable(EditorBrowsableState.Never)]
990         public void ScrollTo(uint page)
991         {
992             Interop.ScrollView.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
993             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
994         }
995
996         /// <summary>
997         /// Scrolls View to position specified (contents will scroll to this position).
998         /// </summary>
999         /// <param name="page">The page to scroll to.</param>
1000         /// <param name="duration">The duration of the animation in seconds.</param>
1001         /// <since_tizen> 3 </since_tizen>
1002         /// This will be deprecated
1003         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1004         [EditorBrowsable(EditorBrowsableState.Never)]
1005         public void ScrollTo(uint page, float duration)
1006         {
1007             Interop.ScrollView.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
1008             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1009         }
1010
1011         /// <summary>
1012         /// Scrolls View to position specified (contents will scroll to this position).
1013         /// </summary>
1014         /// <param name="page">The page to scroll to.</param>
1015         /// <param name="duration">The duration of the animation in seconds.</param>
1016         /// <param name="bias">Whether to bias scrolling to left or right.</param>
1017         /// <since_tizen> 3 </since_tizen>
1018         /// This will be deprecated
1019         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1020         [EditorBrowsable(EditorBrowsableState.Never)]
1021         public void ScrollTo(uint page, float duration, DirectionBias bias)
1022         {
1023             Interop.ScrollView.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
1024             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1025         }
1026
1027         /// <summary>
1028         /// Scrolls View to position specified (contents will scroll to this position).
1029         /// </summary>
1030         /// <param name="view">The view to center in on (via Scrolling).</param>
1031         /// <since_tizen> 3 </since_tizen>
1032         /// This will be deprecated
1033         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1034         [EditorBrowsable(EditorBrowsableState.Never)]
1035         public void ScrollTo(View view)
1036         {
1037             Interop.ScrollView.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
1038             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1039         }
1040
1041         /// <summary>
1042         /// Scrolls View to position specified (contents will scroll to this position).
1043         /// </summary>
1044         /// <param name="view">The view to center in on (via Scrolling).</param>
1045         /// <param name="duration">The duration of the animation in seconds.</param>
1046         /// <since_tizen> 3 </since_tizen>
1047         /// This will be deprecated
1048         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1049         [EditorBrowsable(EditorBrowsableState.Never)]
1050         public void ScrollTo(View view, float duration)
1051         {
1052             Interop.ScrollView.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
1053             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1054         }
1055
1056         /// <summary>
1057         /// Scrolls View to the nearest snap points as specified by the Rulers.<br />
1058         /// If already at snap points, then will return false, and not scroll.<br />
1059         /// </summary>
1060         /// <returns>True if Snapping necessary.</returns>
1061         /// <since_tizen> 3 </since_tizen>
1062         /// This will be deprecated
1063         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1064         [EditorBrowsable(EditorBrowsableState.Never)]
1065         public bool ScrollToSnapPoint()
1066         {
1067             bool ret = Interop.ScrollView.ScrollView_ScrollToSnapPoint(swigCPtr);
1068             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1069             return ret;
1070         }
1071
1072         /// <summary>
1073         /// Applies Effect to ScrollView.
1074         /// </summary>
1075         /// <param name="effect">The effect to apply to scroll view.</param>
1076         /// <since_tizen> 3 </since_tizen>
1077         /// This will be deprecated
1078         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1079         [EditorBrowsable(EditorBrowsableState.Never)]
1080         public void ApplyEffect(ScrollViewEffect effect)
1081         {
1082             Interop.ScrollView.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
1083             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1084         }
1085
1086         /// <summary>
1087         /// Removes Effect from ScrollView.
1088         /// </summary>
1089         /// <param name="effect">The effect to remove.</param>
1090         /// <since_tizen> 3 </since_tizen>
1091         /// This will be deprecated
1092         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1093         [EditorBrowsable(EditorBrowsableState.Never)]
1094         public void RemoveEffect(ScrollViewEffect effect)
1095         {
1096             Interop.ScrollView.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
1097             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1098         }
1099
1100         /// <summary>
1101         /// Remove All Effects from ScrollView.
1102         /// </summary>
1103         /// <since_tizen> 3 </since_tizen>
1104         /// This will be deprecated
1105         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1106         [EditorBrowsable(EditorBrowsableState.Never)]
1107         public void RemoveAllEffects()
1108         {
1109             Interop.ScrollView.ScrollView_RemoveAllEffects(swigCPtr);
1110             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1111         }
1112
1113         /// <summary>
1114         /// Binds view to this ScrollView.
1115         /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
1116         /// </summary>
1117         /// <param name="child">The view to add to this ScrollView.</param>
1118         /// <since_tizen> 3 </since_tizen>
1119         /// This will be deprecated
1120         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1121         [EditorBrowsable(EditorBrowsableState.Never)]
1122         public void BindView(View child)
1123         {
1124             Interop.ScrollView.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
1125             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1126         }
1127
1128         /// <summary>
1129         /// Unbinds view to this ScrollView.
1130         /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
1131         /// </summary>
1132         /// <param name="child">The view to remove to this ScrollView.</param>
1133         /// <since_tizen> 3 </since_tizen>
1134         /// This will be deprecated
1135         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1136         [EditorBrowsable(EditorBrowsableState.Never)]
1137         public void UnbindView(View child)
1138         {
1139             Interop.ScrollView.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
1140             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1141         }
1142
1143         /// <summary>
1144         /// Allows the user to constrain the scroll view in a particular direction.
1145         /// </summary>
1146         /// <param name="direction">The axis to constrain the scroll-view to.</param>
1147         /// <param name="threshold">The threshold to apply around the axis.</param>
1148         /// <since_tizen> 3 </since_tizen>
1149         /// This will be deprecated
1150         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1151         [EditorBrowsable(EditorBrowsableState.Never)]
1152         public void SetScrollingDirection(Radian direction, Radian threshold)
1153         {
1154             Interop.ScrollView.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
1155             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1156         }
1157
1158         /// <summary>
1159         /// Allows the user to constrain the scroll view in a particular direction.
1160         /// </summary>
1161         /// <param name="direction">The axis to constrain the scroll-view to.</param>
1162         /// <since_tizen> 3 </since_tizen>
1163         /// This will be deprecated
1164         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1165         [EditorBrowsable(EditorBrowsableState.Never)]
1166         public void SetScrollingDirection(Radian direction)
1167         {
1168             Interop.ScrollView.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
1169             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1170         }
1171
1172         /// <summary>
1173         /// Removes a direction constraint from the scroll view.
1174         /// </summary>
1175         /// <param name="direction">The axis to constrain the scroll-view to.</param>
1176         /// <since_tizen> 3 </since_tizen>
1177         /// This will be deprecated
1178         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1179         [EditorBrowsable(EditorBrowsableState.Never)]
1180         public void RemoveScrollingDirection(Radian direction)
1181         {
1182             Interop.ScrollView.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
1183             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1184         }
1185
1186         /// <summary>
1187         /// Set ruler X
1188         /// </summary>
1189         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
1190         [EditorBrowsable(EditorBrowsableState.Never)]
1191         public void SetRulerX(RulerPtr ruler)
1192         {
1193             Interop.ScrollView.ScrollView_SetRulerX(swigCPtr, RulerPtr.getCPtr(ruler));
1194         }
1195
1196         /// <summary>
1197         /// Set ruler Y
1198         /// </summary>
1199         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
1200         [EditorBrowsable(EditorBrowsableState.Never)]
1201         public void SetRulerY(RulerPtr ruler)
1202         {
1203             Interop.ScrollView.ScrollView_SetRulerY(swigCPtr, RulerPtr.getCPtr(ruler));
1204         }
1205
1206         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ScrollView obj)
1207         {
1208             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1209         }
1210
1211         internal void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint)
1212         {
1213             Interop.ScrollView.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
1214             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1215         }
1216
1217         /// <summary>
1218         /// Dispose
1219         /// </summary>
1220         /// <param name="type">the dispose type</param>
1221         /// <since_tizen> 3 </since_tizen>
1222         /// This will be deprecated
1223         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1224         [EditorBrowsable(EditorBrowsableState.Never)]
1225         protected override void Dispose(DisposeTypes type)
1226         {
1227             if (disposed)
1228             {
1229                 return;
1230             }
1231
1232             //Release your own unmanaged resources here.
1233             //You should not access any managed member here except static instance.
1234             //because the execution order of Finalizes is non-deterministic.
1235
1236             if (this != null && _scrollViewSnapStartedCallbackDelegate != null)
1237             {
1238                 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
1239             }
1240
1241             if (swigCPtr.Handle != global::System.IntPtr.Zero)
1242             {
1243                 if (swigCMemOwn)
1244                 {
1245                     swigCMemOwn = false;
1246                     Interop.ScrollView.delete_ScrollView(swigCPtr);
1247                 }
1248                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1249             }
1250
1251             base.Dispose(type);
1252         }
1253
1254         /// <summary>
1255         /// This should be internal, please do not use.
1256         /// </summary>
1257         /// <since_tizen> 3 </since_tizen>
1258         /// This will be deprecated
1259         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1260         [EditorBrowsable(EditorBrowsableState.Never)]
1261         public new class Property
1262         {
1263             /// <summary>
1264             /// This should be internal, please do not use.
1265             /// </summary>
1266             /// <since_tizen> 3 </since_tizen>
1267             /// This will be deprecated
1268             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1269             [EditorBrowsable(EditorBrowsableState.Never)]
1270             public static readonly int WRAP_ENABLED = Interop.ScrollView.ScrollView_Property_WRAP_ENABLED_get();
1271             /// <summary>
1272             /// This should be internal, please do not use.
1273             /// </summary>
1274             /// <since_tizen> 3 </since_tizen>
1275             /// This will be deprecated
1276             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1277             [EditorBrowsable(EditorBrowsableState.Never)]
1278             public static readonly int PANNING_ENABLED = Interop.ScrollView.ScrollView_Property_PANNING_ENABLED_get();
1279             /// <summary>
1280             /// This should be internal, please do not use.
1281             /// </summary>
1282             /// <since_tizen> 3 </since_tizen>
1283             /// This will be deprecated
1284             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1285             [EditorBrowsable(EditorBrowsableState.Never)]
1286             public static readonly int AXIS_AUTO_LOCK_ENABLED = Interop.ScrollView.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get();
1287             /// <summary>
1288             /// This should be internal, please do not use.
1289             /// </summary>
1290             /// <since_tizen> 3 </since_tizen>
1291             /// This will be deprecated
1292             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1293             [EditorBrowsable(EditorBrowsableState.Never)]
1294             public static readonly int WHEEL_SCROLL_DISTANCE_STEP = Interop.ScrollView.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
1295             /// <summary>
1296             /// This should be internal, please do not use.
1297             /// </summary>
1298             /// <since_tizen> 3 </since_tizen>
1299             /// This will be deprecated
1300             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1301             [EditorBrowsable(EditorBrowsableState.Never)]
1302             public static readonly int SCROLL_MODE = Interop.ScrollView.ScrollView_Property_SCROLL_MODE_get();
1303             /// <summary>
1304             /// This should be internal, please do not use.
1305             /// </summary>
1306             /// <since_tizen> 3 </since_tizen>
1307             /// This will be deprecated
1308             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1309             [EditorBrowsable(EditorBrowsableState.Never)]
1310             public static readonly int SCROLL_POSITION = Interop.ScrollView.ScrollView_Property_SCROLL_POSITION_get();
1311             /// <summary>
1312             /// This should be internal, please do not use.
1313             /// </summary>
1314             /// <since_tizen> 3 </since_tizen>
1315             /// This will be deprecated
1316             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1317             [EditorBrowsable(EditorBrowsableState.Never)]
1318             public static readonly int SCROLL_PRE_POSITION = Interop.ScrollView.ScrollView_Property_SCROLL_PRE_POSITION_get();
1319             /// <summary>
1320             /// This should be internal, please do not use.
1321             /// </summary>
1322             /// <since_tizen> 3 </since_tizen>
1323             /// This will be deprecated
1324             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1325             [EditorBrowsable(EditorBrowsableState.Never)]
1326             public static readonly int SCROLL_PRE_POSITION_X = Interop.ScrollView.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
1327             /// <summary>
1328             /// This should be internal, please do not use.
1329             /// </summary>
1330             /// <since_tizen> 3 </since_tizen>
1331             /// This will be deprecated
1332             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1333             [EditorBrowsable(EditorBrowsableState.Never)]
1334             public static readonly int SCROLL_PRE_POSITION_Y = Interop.ScrollView.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
1335             /// <summary>
1336             /// This should be internal, please do not use.
1337             /// </summary>
1338             /// <since_tizen> 3 </since_tizen>
1339             /// This will be deprecated
1340             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1341             [EditorBrowsable(EditorBrowsableState.Never)]
1342             public static readonly int SCROLL_PRE_POSITION_MAX = Interop.ScrollView.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
1343             /// <summary>
1344             /// This should be internal, please do not use.
1345             /// </summary>
1346             /// <since_tizen> 3 </since_tizen>
1347             /// This will be deprecated
1348             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1349             [EditorBrowsable(EditorBrowsableState.Never)]
1350             public static readonly int SCROLL_PRE_POSITION_MAX_X = Interop.ScrollView.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
1351             /// <summary>
1352             /// This should be internal, please do not use.
1353             /// </summary>
1354             /// <since_tizen> 3 </since_tizen>
1355             /// This will be deprecated
1356             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1357             [EditorBrowsable(EditorBrowsableState.Never)]
1358             public static readonly int SCROLL_PRE_POSITION_MAX_Y = Interop.ScrollView.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
1359             /// <summary>
1360             /// This should be internal, please do not use.
1361             /// </summary>
1362             /// <since_tizen> 3 </since_tizen>
1363             /// This will be deprecated
1364             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1365             [EditorBrowsable(EditorBrowsableState.Never)]
1366             public static readonly int OVERSHOOT_X = Interop.ScrollView.ScrollView_Property_OVERSHOOT_X_get();
1367             /// <summary>
1368             /// This should be internal, please do not use.
1369             /// </summary>
1370             /// <since_tizen> 3 </since_tizen>
1371             /// This will be deprecated
1372             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1373             [EditorBrowsable(EditorBrowsableState.Never)]
1374             public static readonly int OVERSHOOT_Y = Interop.ScrollView.ScrollView_Property_OVERSHOOT_Y_get();
1375             /// <summary>
1376             /// This should be internal, please do not use.
1377             /// </summary>
1378             /// <since_tizen> 3 </since_tizen>
1379             /// This will be deprecated
1380             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1381             [EditorBrowsable(EditorBrowsableState.Never)]
1382             public static readonly int SCROLL_FINAL = Interop.ScrollView.ScrollView_Property_SCROLL_FINAL_get();
1383             /// <summary>
1384             /// This should be internal, please do not use.
1385             /// </summary>
1386             /// <since_tizen> 3 </since_tizen>
1387             /// This will be deprecated
1388             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1389             [EditorBrowsable(EditorBrowsableState.Never)]
1390             public static readonly int SCROLL_FINAL_X = Interop.ScrollView.ScrollView_Property_SCROLL_FINAL_X_get();
1391             /// <summary>
1392             /// This should be internal, please do not use.
1393             /// </summary>
1394             /// <since_tizen> 3 </since_tizen>
1395             /// This will be deprecated
1396             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1397             [EditorBrowsable(EditorBrowsableState.Never)]
1398             public static readonly int SCROLL_FINAL_Y = Interop.ScrollView.ScrollView_Property_SCROLL_FINAL_Y_get();
1399             /// <summary>
1400             /// This should be internal, please do not use.
1401             /// </summary>
1402             /// <since_tizen> 3 </since_tizen>
1403             /// This will be deprecated
1404             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1405             [EditorBrowsable(EditorBrowsableState.Never)]
1406             public static readonly int WRAP = Interop.ScrollView.ScrollView_Property_WRAP_get();
1407             /// <summary>
1408             /// This should be internal, please do not use.
1409             /// </summary>
1410             /// <since_tizen> 3 </since_tizen>
1411             /// This will be deprecated
1412             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1413             [EditorBrowsable(EditorBrowsableState.Never)]
1414             public static readonly int PANNING = Interop.ScrollView.ScrollView_Property_PANNING_get();
1415             /// <summary>
1416             /// This should be internal, please do not use.
1417             /// </summary>
1418             /// <since_tizen> 3 </since_tizen>
1419             /// This will be deprecated
1420             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1421             [EditorBrowsable(EditorBrowsableState.Never)]
1422             public static readonly int SCROLLING = Interop.ScrollView.ScrollView_Property_SCROLLING_get();
1423             /// <summary>
1424             /// This should be internal, please do not use.
1425             /// </summary>
1426             /// <since_tizen> 3 </since_tizen>
1427             /// This will be deprecated
1428             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1429             [EditorBrowsable(EditorBrowsableState.Never)]
1430             public static readonly int SCROLL_DOMAIN_SIZE = Interop.ScrollView.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
1431             /// <summary>
1432             /// This should be internal, please do not use.
1433             /// </summary>
1434             /// <since_tizen> 3 </since_tizen>
1435             /// This will be deprecated
1436             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1437             [EditorBrowsable(EditorBrowsableState.Never)]
1438             public static readonly int SCROLL_DOMAIN_SIZE_X = Interop.ScrollView.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
1439             /// <summary>
1440             /// This should be internal, please do not use.
1441             /// </summary>
1442             /// <since_tizen> 3 </since_tizen>
1443             /// This will be deprecated
1444             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1445             [EditorBrowsable(EditorBrowsableState.Never)]
1446             public static readonly int SCROLL_DOMAIN_SIZE_Y = Interop.ScrollView.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
1447             /// <summary>
1448             /// This should be internal, please do not use.
1449             /// </summary>
1450             /// <since_tizen> 3 </since_tizen>
1451             /// This will be deprecated
1452             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1453             [EditorBrowsable(EditorBrowsableState.Never)]
1454             public static readonly int SCROLL_DOMAIN_OFFSET = Interop.ScrollView.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
1455             /// <summary>
1456             /// This should be internal, please do not use.
1457             /// </summary>
1458             /// <since_tizen> 3 </since_tizen>
1459             /// This will be deprecated
1460             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1461             [EditorBrowsable(EditorBrowsableState.Never)]
1462             public static readonly int SCROLL_POSITION_DELTA = Interop.ScrollView.ScrollView_Property_SCROLL_POSITION_DELTA_get();
1463             /// <summary>
1464             /// This should be internal, please do not use.
1465             /// </summary>
1466             /// <since_tizen> 3 </since_tizen>
1467             /// This will be deprecated
1468             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1469             [EditorBrowsable(EditorBrowsableState.Never)]
1470             public static readonly int START_PAGE_POSITION = Interop.ScrollView.ScrollView_Property_START_PAGE_POSITION_get();
1471         }
1472     }
1473 }
1474