[NUI] Fix CA1052
[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 System.Diagnostics.CodeAnalysis;
21 using Tizen.NUI.BaseComponents;
22
23 namespace Tizen.NUI
24 {
25     /// <summary>
26     /// ScrollView contains views that can be scrolled manually (via touch).
27     /// </summary>
28     /// <since_tizen> 3 </since_tizen>
29     [EditorBrowsable(EditorBrowsableState.Never)]
30     public partial class ScrollView : Scrollable
31     {
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.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.Upcast(cPtr), cMemoryOwn)
46         {
47         }
48
49         /// <summary>
50         /// Sets and Gets WrapEnabled property.
51         /// </summary>
52         /// <since_tizen> 3 </since_tizen>
53         /// This will be deprecated
54         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
55         [EditorBrowsable(EditorBrowsableState.Never)]
56         public bool WrapEnabled
57         {
58             get
59             {
60                 return (bool)GetValue(WrapEnabledProperty);
61             }
62             set
63             {
64                 SetValue(WrapEnabledProperty, value);
65             }
66         }
67
68         /// <summary>
69         /// Sets and Gets PanningEnabled property.
70         /// </summary>
71         /// <since_tizen> 3 </since_tizen>
72         /// This will be deprecated
73         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
74         [EditorBrowsable(EditorBrowsableState.Never)]
75         public bool PanningEnabled
76         {
77             get
78             {
79                 return (bool)GetValue(PanningEnabledProperty);
80             }
81             set
82             {
83                 SetValue(PanningEnabledProperty, value);
84             }
85         }
86
87         /// <summary>
88         /// Sets and Gets AxisAutoLockEnabled property.
89         /// </summary>
90         /// <since_tizen> 3 </since_tizen>
91         /// This will be deprecated
92         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
93         [EditorBrowsable(EditorBrowsableState.Never)]
94         public bool AxisAutoLockEnabled
95         {
96             get
97             {
98                 return (bool)GetValue(AxisAutoLockEnabledProperty);
99             }
100             set
101             {
102                 SetValue(AxisAutoLockEnabledProperty, value);
103             }
104         }
105
106         /// <summary>
107         /// Sets and Gets WheelScrollDistanceStep property.
108         /// </summary>
109         /// <since_tizen> 3 </since_tizen>
110         /// This will be deprecated
111         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
112         [EditorBrowsable(EditorBrowsableState.Never)]
113         public Vector2 WheelScrollDistanceStep
114         {
115             get
116             {
117                 return (Vector2)GetValue(WheelScrollDistanceStepProperty);
118             }
119             set
120             {
121                 SetValue(WheelScrollDistanceStepProperty, value);
122             }
123         }
124
125         /// <summary>
126         /// Sets and Gets ScrollPosition property.
127         /// </summary>
128         /// <since_tizen> 3 </since_tizen>
129         /// This will be deprecated
130         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
131         [EditorBrowsable(EditorBrowsableState.Never)]
132         public Vector2 ScrollPosition
133         {
134             get
135             {
136                 return (Vector2)GetValue(ScrollPositionProperty);
137             }
138             set
139             {
140                 SetValue(ScrollPositionProperty, value);
141             }
142         }
143
144         /// <summary>
145         /// Sets and Gets ScrollPrePosition property.
146         /// </summary>
147         /// <since_tizen> 3 </since_tizen>
148         /// This will be deprecated
149         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
150         [EditorBrowsable(EditorBrowsableState.Never)]
151         public Vector2 ScrollPrePosition
152         {
153             get
154             {
155                 return (Vector2)GetValue(ScrollPrePositionProperty);
156             }
157             set
158             {
159                 SetValue(ScrollPrePositionProperty, value);
160             }
161         }
162
163         /// <summary>
164         /// Sets and Gets ScrollPrePositionMax property.
165         /// </summary>
166         /// <since_tizen> 3 </since_tizen>
167         /// This will be deprecated
168         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
169         [EditorBrowsable(EditorBrowsableState.Never)]
170         public Vector2 ScrollPrePositionMax
171         {
172             get
173             {
174                 return (Vector2)GetValue(ScrollPrePositionMaxProperty);
175             }
176             set
177             {
178                 SetValue(ScrollPrePositionMaxProperty, value);
179             }
180         }
181
182         /// <summary>
183         /// Sets and Gets OvershootX property.
184         /// </summary>
185         /// <since_tizen> 3 </since_tizen>
186         /// This will be deprecated
187         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
188         [EditorBrowsable(EditorBrowsableState.Never)]
189         public float OvershootX
190         {
191             get
192             {
193                 return (float)GetValue(OvershootXProperty);
194             }
195             set
196             {
197                 SetValue(OvershootXProperty, value);
198             }
199         }
200
201         /// <summary>
202         /// Sets and Gets OvershootY property.
203         /// </summary>
204         /// <since_tizen> 3 </since_tizen>
205         /// This will be deprecated
206         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
207         [EditorBrowsable(EditorBrowsableState.Never)]
208         public float OvershootY
209         {
210             get
211             {
212                 return (float)GetValue(OvershootYProperty);
213             }
214             set
215             {
216                 SetValue(OvershootYProperty, value);
217             }
218         }
219
220         /// <summary>
221         /// Sets and Gets ScrollFinal property.
222         /// </summary>
223         /// <since_tizen> 3 </since_tizen>
224         /// This will be deprecated
225         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
226         [EditorBrowsable(EditorBrowsableState.Never)]
227         public Vector2 ScrollFinal
228         {
229             get
230             {
231                 return (Vector2)GetValue(ScrollFinalProperty);
232             }
233             set
234             {
235                 SetValue(ScrollFinalProperty, value);
236             }
237         }
238
239         /// <summary>
240         /// Sets and Gets Wrap property.
241         /// </summary>
242         /// <since_tizen> 3 </since_tizen>
243         /// This will be deprecated
244         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
245         [EditorBrowsable(EditorBrowsableState.Never)]
246         public bool Wrap
247         {
248             get
249             {
250                 return (bool)GetValue(WrapProperty);
251             }
252             set
253             {
254                 SetValue(WrapProperty, value);
255             }
256         }
257
258         /// <summary>
259         /// Sets and Gets Panning property.
260         /// </summary>
261         /// <since_tizen> 3 </since_tizen>
262         /// This will be deprecated
263         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
264         [EditorBrowsable(EditorBrowsableState.Never)]
265         public bool Panning
266         {
267             get
268             {
269                 return (bool)GetValue(PanningProperty);
270             }
271             set
272             {
273                 SetValue(PanningProperty, value);
274             }
275         }
276
277         /// <summary>
278         /// Sets and Gets Scrolling property.
279         /// </summary>
280         /// <since_tizen> 3 </since_tizen>
281         /// This will be deprecated
282         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
283         [EditorBrowsable(EditorBrowsableState.Never)]
284         public bool Scrolling
285         {
286             get
287             {
288                 return (bool)GetValue(ScrollingProperty);
289             }
290             set
291             {
292                 SetValue(ScrollingProperty, value);
293             }
294         }
295
296         /// <summary>
297         /// Sets and Gets ScrollDomainSize property.
298         /// </summary>
299         /// <since_tizen> 3 </since_tizen>
300         /// This will be deprecated
301         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
302         [EditorBrowsable(EditorBrowsableState.Never)]
303         public Vector2 ScrollDomainSize
304         {
305             get
306             {
307                 return (Vector2)GetValue(ScrollDomainSizeProperty);
308             }
309             set
310             {
311                 SetValue(ScrollDomainSizeProperty, value);
312             }
313         }
314
315         /// <summary>
316         /// Sets and Gets ScrollDomainOffset property.
317         /// </summary>
318         /// <since_tizen> 3 </since_tizen>
319         /// This will be deprecated
320         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
321         [EditorBrowsable(EditorBrowsableState.Never)]
322         public Vector2 ScrollDomainOffset
323         {
324             get
325             {
326                 return (Vector2)GetValue(ScrollDomainOffsetProperty);
327             }
328             set
329             {
330                 SetValue(ScrollDomainOffsetProperty, value);
331             }
332         }
333
334         /// <summary>
335         /// Sets and Gets ScrollPositionDelta property.
336         /// </summary>
337         /// <since_tizen> 3 </since_tizen>
338         /// This will be deprecated
339         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
340         [EditorBrowsable(EditorBrowsableState.Never)]
341         public Vector2 ScrollPositionDelta
342         {
343             get
344             {
345                 return (Vector2)GetValue(ScrollPositionDeltaProperty);
346             }
347             set
348             {
349                 SetValue(ScrollPositionDeltaProperty, value);
350             }
351         }
352
353         /// <summary>
354         /// Sets and Gets StartPagePosition property.
355         /// </summary>
356         /// <since_tizen> 3 </since_tizen>
357         /// This will be deprecated
358         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
359         [EditorBrowsable(EditorBrowsableState.Never)]
360         public Vector3 StartPagePosition
361         {
362             get
363             {
364                 return (Vector3)GetValue(StartPagePositionProperty);
365             }
366             set
367             {
368                 SetValue(StartPagePositionProperty, value);
369             }
370         }
371
372
373         /// <summary>
374         /// Sets and Gets ScrollMode property.
375         /// </summary>
376         /// <since_tizen> 3 </since_tizen>
377         /// This will be deprecated
378         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
379         [EditorBrowsable(EditorBrowsableState.Never)]
380         public PropertyMap ScrollMode
381         {
382             get
383             {
384                 return (PropertyMap)GetValue(ScrollModeProperty);
385             }
386             set
387             {
388                 SetValue(ScrollModeProperty, value);
389             }
390         }
391
392         /// <summary>
393         /// Gets snap-animation's AlphaFunction.
394         /// </summary>
395         /// <returns>Current easing alpha function of the snap animation.</returns>
396         /// <since_tizen> 3 </since_tizen>
397         /// This will be deprecated
398         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
399         [EditorBrowsable(EditorBrowsableState.Never)]
400         public AlphaFunction GetScrollSnapAlphaFunction()
401         {
402             AlphaFunction ret = new AlphaFunction(Interop.ScrollView.GetScrollSnapAlphaFunction(swigCPtr), true);
403             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
404             return ret;
405         }
406
407         /// <summary>
408         /// Sets snap-animation's AlphaFunction.
409         /// </summary>
410         /// <param name="alpha">Easing alpha function of the snap animation.</param>
411         /// <since_tizen> 3 </since_tizen>
412         /// This will be deprecated
413         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
414         [EditorBrowsable(EditorBrowsableState.Never)]
415         public void SetScrollSnapAlphaFunction(AlphaFunction alpha)
416         {
417             Interop.ScrollView.SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
418             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
419         }
420
421         /// <summary>
422         /// Gets flick-animation's AlphaFunction.
423         /// </summary>
424         /// <returns>Current easing alpha function of the flick animation.</returns>
425         /// <since_tizen> 3 </since_tizen>
426         /// This will be deprecated
427         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
428         [EditorBrowsable(EditorBrowsableState.Never)]
429         public AlphaFunction GetScrollFlickAlphaFunction()
430         {
431             AlphaFunction ret = new AlphaFunction(Interop.ScrollView.GetScrollFlickAlphaFunction(swigCPtr), true);
432             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
433             return ret;
434         }
435
436         /// <summary>
437         /// Sets flick-animation's AlphaFunction.
438         /// </summary>
439         /// <param name="alpha">Easing alpha function of the flick animation.</param>
440         /// <since_tizen> 3 </since_tizen>
441         /// This will be deprecated
442         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
443         [EditorBrowsable(EditorBrowsableState.Never)]
444         public void SetScrollFlickAlphaFunction(AlphaFunction alpha)
445         {
446             Interop.ScrollView.SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
447             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
448         }
449
450         /// <summary>
451         /// Gets the time for the scroll snap-animation.
452         /// </summary>
453         /// <returns>The time in seconds for the animation to take.</returns>
454         /// <since_tizen> 3 </since_tizen>
455         /// This will be deprecated
456         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
457         [EditorBrowsable(EditorBrowsableState.Never)]
458         public float GetScrollSnapDuration()
459         {
460             float ret = Interop.ScrollView.GetScrollSnapDuration(swigCPtr);
461             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
462             return ret;
463         }
464
465         /// <summary>
466         /// Sets the time for the scroll snap-animation.
467         /// </summary>
468         /// <param name="time">The time in seconds for the animation to take.</param>
469         /// <since_tizen> 3 </since_tizen>
470         /// This will be deprecated
471         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
472         [EditorBrowsable(EditorBrowsableState.Never)]
473         public void SetScrollSnapDuration(float time)
474         {
475             Interop.ScrollView.SetScrollSnapDuration(swigCPtr, time);
476             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
477         }
478
479         /// <summary>
480         /// Gets the time for the scroll flick-animation.
481         /// </summary>
482         /// <returns>The time in seconds for the animation to take.</returns>
483         /// <since_tizen> 3 </since_tizen>
484         /// This will be deprecated
485         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
486         [EditorBrowsable(EditorBrowsableState.Never)]
487         public float GetScrollFlickDuration()
488         {
489             float ret = Interop.ScrollView.GetScrollFlickDuration(swigCPtr);
490             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
491             return ret;
492         }
493
494         /// <summary>
495         /// Sets the time for the scroll snap-animation.
496         /// </summary>
497         /// <param name="time">The time in seconds for the animation to take.</param>
498         /// <since_tizen> 3 </since_tizen>
499         /// This will be deprecated
500         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
501         [EditorBrowsable(EditorBrowsableState.Never)]
502         public void SetScrollFlickDuration(float time)
503         {
504             Interop.ScrollView.SetScrollFlickDuration(swigCPtr, time);
505             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
506         }
507
508         /// <summary>
509         /// Sets scroll sensibility of pan gesture.
510         /// </summary>
511         /// <param name="sensitive">True to enable scroll, false to disable scrolling.</param>
512         /// <since_tizen> 3 </since_tizen>
513         /// This will be deprecated
514         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
515         [EditorBrowsable(EditorBrowsableState.Never)]
516         public void SetScrollSensitive(bool sensitive)
517         {
518             Interop.ScrollView.SetScrollSensitive(swigCPtr, sensitive);
519             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
520         }
521
522         /// <summary>
523         /// Sets maximum overshoot amount.
524         /// </summary>
525         /// <param name="overshootX">The maximum number of horizontally scrolled pixels before overshoot X reaches 1.0f.</param>
526         /// <param name="overshootY">The maximum number of vertically scrolled pixels before overshoot X reaches 1.0f.</param>
527         /// <since_tizen> 3 </since_tizen>
528         /// This will be deprecated
529         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
530         [EditorBrowsable(EditorBrowsableState.Never)]
531         public void SetMaxOvershoot(float overshootX, float overshootY)
532         {
533             Interop.ScrollView.SetMaxOvershoot(swigCPtr, overshootX, overshootY);
534             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
535         }
536
537         /// <summary>
538         /// Sets Snap Overshoot animation's AlphaFunction.
539         /// </summary>
540         /// <param name="alpha">Easing alpha function of the overshoot snap animation.</param>
541         /// <since_tizen> 3 </since_tizen>
542         /// This will be deprecated
543         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
544         [EditorBrowsable(EditorBrowsableState.Never)]
545         public void SetSnapOvershootAlphaFunction(AlphaFunction alpha)
546         {
547             Interop.ScrollView.SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
548             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
549         }
550
551         /// <summary>
552         /// Sets Snap Overshoot animation's Duration.
553         /// </summary>
554         /// <param name="duration">duration The duration of the overshoot snap animation.</param>
555         /// <since_tizen> 3 </since_tizen>
556         /// This will be deprecated
557         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
558         [EditorBrowsable(EditorBrowsableState.Never)]
559         public void SetSnapOvershootDuration(float duration)
560         {
561             Interop.ScrollView.SetSnapOvershootDuration(swigCPtr, duration);
562             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
563         }
564
565         /// <summary>
566         /// Enables or Disables Actor Auto-Snap mode.<br />
567         /// When Actor Auto-Snap mode has been enabled, ScrollView will automatically,
568         /// snap to the closest actor (The closest actor will appear in the center of the ScrollView).
569         /// </summary>
570         /// <param name="enable">Enables (true), or disables (false) Actor AutoSnap.</param>
571         /// <since_tizen> 3 </since_tizen>
572         /// This will be deprecated
573         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
574         [EditorBrowsable(EditorBrowsableState.Never)]
575         public void SetViewAutoSnap(bool enable)
576         {
577             Interop.ScrollView.SetActorAutoSnap(swigCPtr, enable);
578             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
579         }
580
581         /// <summary>
582         /// Enables or Disables Wrap mode for ScrollView contents.<br />
583         /// When enabled, the ScrollView contents are wrapped over the X/Y Domain.
584         /// </summary>
585         /// <param name="enable">Enables (true), or disables (false) Wrap Mode.</param>
586         /// <since_tizen> 3 </since_tizen>
587         /// This will be deprecated
588         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
589         [EditorBrowsable(EditorBrowsableState.Never)]
590         public void SetWrapMode(bool enable)
591         {
592             Interop.ScrollView.SetWrapMode(swigCPtr, enable);
593             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
594         }
595
596         /// <summary>
597         /// Gets the current distance needed to scroll for ScrollUpdatedSignal to be emitted.
598         /// </summary>
599         /// <returns>Current scroll update distance.</returns>
600         /// <since_tizen> 3 </since_tizen>
601         /// This will be deprecated
602         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
603         [EditorBrowsable(EditorBrowsableState.Never)]
604         public int GetScrollUpdateDistance()
605         {
606             int ret = Interop.ScrollView.GetScrollUpdateDistance(swigCPtr);
607             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
608             return ret;
609         }
610
611         /// <summary>
612         /// Sets the distance needed to scroll for ScrollUpdatedSignal to be emitted.<br />
613         /// The scroll update distance tells ScrollView how far to move before ScrollUpdatedSignal the informs application.<br />
614         /// Each time the ScrollView crosses this distance the signal will be emitted.<br />
615         /// </summary>
616         /// <param name="distance">The distance for ScrollView to move before emitting update signal.</param>
617         /// <since_tizen> 3 </since_tizen>
618         /// This will be deprecated
619         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
620         [EditorBrowsable(EditorBrowsableState.Never)]
621         public void SetScrollUpdateDistance(int distance)
622         {
623             Interop.ScrollView.SetScrollUpdateDistance(swigCPtr, distance);
624             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
625         }
626
627         /// <summary>
628         /// Returns state of Axis Auto Lock mode.
629         /// </summary>
630         /// <returns>Whether Axis Auto Lock mode has been enabled or not.</returns>
631         /// <since_tizen> 3 </since_tizen>
632         /// This will be deprecated
633         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
634         [EditorBrowsable(EditorBrowsableState.Never)]
635         public bool GetAxisAutoLock()
636         {
637             bool ret = Interop.ScrollView.GetAxisAutoLock(swigCPtr);
638             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
639             return ret;
640         }
641
642         /// <summary>
643         /// Enables or Disables Axis Auto Lock mode for panning within the ScrollView.<br />
644         /// When enabled, any pan gesture that appears mostly horizontal or mostly
645         /// vertical, will be automatically restricted to horizontal only or vertical
646         /// only panning, until the pan gesture has completed.
647         /// </summary>
648         /// <param name="enable">Enables (true), or disables (false) AxisAutoLock mode.</param>
649         /// <since_tizen> 3 </since_tizen>
650         /// This will be deprecated
651         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
652         [EditorBrowsable(EditorBrowsableState.Never)]
653         public void SetAxisAutoLock(bool enable)
654         {
655             Interop.ScrollView.SetAxisAutoLock(swigCPtr, enable);
656             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
657         }
658
659         /// <summary>
660         /// Gets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.
661         /// </summary>
662         /// <returns>The gradient, a value between 0.0 and 1.0f.</returns>
663         /// <since_tizen> 3 </since_tizen>
664         /// This will be deprecated
665         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
666         [EditorBrowsable(EditorBrowsableState.Never)]
667         public float GetAxisAutoLockGradient()
668         {
669             float ret = Interop.ScrollView.GetAxisAutoLockGradient(swigCPtr);
670             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
671             return ret;
672         }
673
674         /// <summary>
675         /// Sets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.<br />
676         /// 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 />
677         /// </summary>
678         /// <param name="gradient">gradient A value between 0.0 and 1.0 (auto-lock for all angles).</param>
679         /// <since_tizen> 3 </since_tizen>
680         /// This will be deprecated
681         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
682         [EditorBrowsable(EditorBrowsableState.Never)]
683         public void SetAxisAutoLockGradient(float gradient)
684         {
685             Interop.ScrollView.SetAxisAutoLockGradient(swigCPtr, gradient);
686             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
687         }
688
689         /// <summary>
690         /// Gets the friction coefficient setting for ScrollView when flicking in free panning mode.
691         /// This is a value in stage-diagonals per second^2, stage-diagonal = Length( stage.width, stage.height )
692         /// </summary>
693         /// <returns>Friction coefficient is returned.</returns>
694         /// <since_tizen> 3 </since_tizen>
695         /// This will be deprecated
696         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
697         [EditorBrowsable(EditorBrowsableState.Never)]
698         public float GetFrictionCoefficient()
699         {
700             float ret = Interop.ScrollView.GetFrictionCoefficient(swigCPtr);
701             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
702             return ret;
703         }
704
705         /// <summary>
706         /// Sets the friction coefficient for ScrollView when flicking.<br />
707         /// </summary>
708         /// <param name="friction">Friction coefficient must be greater than 0.0 (default = 1.0).</param>
709         /// <since_tizen> 3 </since_tizen>
710         /// This will be deprecated
711         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
712         [EditorBrowsable(EditorBrowsableState.Never)]
713         public void SetFrictionCoefficient(float friction)
714         {
715             Interop.ScrollView.SetFrictionCoefficient(swigCPtr, friction);
716             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
717         }
718
719         /// <summary>
720         /// Gets the flick speed coefficient for ScrollView when flicking in free panning mode.<br />
721         /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at which to move the scrolling area.
722         /// </summary>
723         /// <returns>The flick speed coefficient is returned.</returns>
724         /// <since_tizen> 3 </since_tizen>
725         /// This will be deprecated
726         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
727         [EditorBrowsable(EditorBrowsableState.Never)]
728         public float GetFlickSpeedCoefficient()
729         {
730             float ret = Interop.ScrollView.GetFlickSpeedCoefficient(swigCPtr);
731             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
732             return ret;
733         }
734
735         /// <summary>
736         /// Sets the flick speed coefficient for ScrollView when flicking in free panning mode.<br />
737         /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at
738         /// which to move the scrolling area.<br />
739         /// </summary>
740         /// <param name="speed">The flick speed coefficient (default = 1.0).</param>
741         /// <since_tizen> 3 </since_tizen>
742         /// This will be deprecated
743         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
744         [EditorBrowsable(EditorBrowsableState.Never)]
745         public void SetFlickSpeedCoefficient(float speed)
746         {
747             Interop.ScrollView.SetFlickSpeedCoefficient(swigCPtr, speed);
748             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
749         }
750
751         /// <summary>
752         /// Gets the minimum pan distance required for a flick gesture in pixels.<br />
753         /// </summary>
754         /// <returns>Minimum pan distance vector with separate x and y distance.</returns>
755         /// <since_tizen> 3 </since_tizen>
756         /// This will be deprecated
757         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
758         [EditorBrowsable(EditorBrowsableState.Never)]
759         public Vector2 GetMinimumDistanceForFlick()
760         {
761             Vector2 ret = new Vector2(Interop.ScrollView.GetMinimumDistanceForFlick(swigCPtr), true);
762             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
763             return ret;
764         }
765
766         /// <summary>
767         /// Sets the minimum pan distance required for a flick in pixels.<br />
768         /// 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.
769         /// </summary>
770         /// <param name="distance">The flick speed coefficient (default = 1.0).</param>
771         /// <since_tizen> 3 </since_tizen>
772         /// This will be deprecated
773         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
774         [EditorBrowsable(EditorBrowsableState.Never)]
775         public void SetMinimumDistanceForFlick(Vector2 distance)
776         {
777             Interop.ScrollView.SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
778             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
779         }
780
781         /// <summary>
782         /// Returns the minimum pan speed required for a flick gesture in pixels per second.
783         /// </summary>
784         /// <returns>Minimum pan speed.</returns>
785         /// <since_tizen> 3 </since_tizen>
786         /// This will be deprecated
787         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
788         [EditorBrowsable(EditorBrowsableState.Never)]
789         public float GetMinimumSpeedForFlick()
790         {
791             float ret = Interop.ScrollView.GetMinimumSpeedForFlick(swigCPtr);
792             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
793             return ret;
794         }
795
796         /// <summary>
797         /// Sets the minimum pan speed required for a flick in pixels per second.<br />
798         /// </summary>
799         /// <param name="speed">The minimum pan speed for a flick.</param>
800         /// <since_tizen> 3 </since_tizen>
801         /// This will be deprecated
802         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
803         [EditorBrowsable(EditorBrowsableState.Never)]
804         public void SetMinimumSpeedForFlick(float speed)
805         {
806             Interop.ScrollView.SetMinimumSpeedForFlick(swigCPtr, speed);
807             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
808         }
809
810         /// <summary>
811         /// Gets the maximum flick speed setting for ScrollView when flicking in free panning mode.<br />
812         /// This is a value in stage-diagonals per second.
813         /// </summary>
814         /// <returns>Maximum flick speed is returned.</returns>
815         /// <since_tizen> 3 </since_tizen>
816         /// This will be deprecated
817         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
818         [EditorBrowsable(EditorBrowsableState.Never)]
819         public float GetMaxFlickSpeed()
820         {
821             float ret = Interop.ScrollView.GetMaxFlickSpeed(swigCPtr);
822             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
823             return ret;
824         }
825
826         /// <summary>
827         /// Sets the maximum flick speed for the ScrollView when flicking in free panning mode.<br />
828         /// This is a value in stage-diagonals per second. stage-diagonal = Length( stage.width, stage.height ).<br />
829         /// </summary>
830         /// <param name="speed">Maximum flick speed (default = 3.0).</param>
831         /// <since_tizen> 3 </since_tizen>
832         /// This will be deprecated
833         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
834         [EditorBrowsable(EditorBrowsableState.Never)]
835         public void SetMaxFlickSpeed(float speed)
836         {
837             Interop.ScrollView.SetMaxFlickSpeed(swigCPtr, speed);
838             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
839         }
840
841         /// <summary>
842         /// Gets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.<br />
843         /// </summary>
844         /// <returns>The step of scroll distance(pixel) in X and Y axes.</returns>
845         /// <since_tizen> 3 </since_tizen>
846         /// This will be deprecated
847         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
848         [EditorBrowsable(EditorBrowsableState.Never)]
849         public Vector2 GetWheelScrollDistanceStep()
850         {
851             Vector2 ret = new Vector2(Interop.ScrollView.GetWheelScrollDistanceStep(swigCPtr), true);
852             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
853             return ret;
854         }
855
856         /// <summary>
857         /// Sets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.<br />
858         /// </summary>
859         /// <param name="step">step The step of scroll distance(pixel) in X and Y axes.</param>
860         /// <since_tizen> 3 </since_tizen>
861         /// This will be deprecated
862         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
863         [EditorBrowsable(EditorBrowsableState.Never)]
864         public void SetWheelScrollDistanceStep(Vector2 step)
865         {
866             Interop.ScrollView.SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
867             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
868         }
869
870         /// <summary>
871         /// Retrieves current scroll position.<br />
872         /// </summary>
873         /// <returns>The current scroll position.</returns>
874         /// <since_tizen> 3 </since_tizen>
875         /// This will be deprecated
876         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
877         [EditorBrowsable(EditorBrowsableState.Never)]
878         public Vector2 GetCurrentScrollPosition()
879         {
880             Vector2 ret = new Vector2(Interop.ScrollView.GetCurrentScrollPosition(swigCPtr), true);
881             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
882             return ret;
883         }
884
885         /// <summary>
886         /// Retrieves current scroll page based on ScrollView dimensions being the size of one page, and all pages laid out in<br />
887         /// a grid fashion, increasing from left to right until the end of the X-domain.
888         /// </summary>
889         /// <returns>The current scroll position.</returns>
890         /// <since_tizen> 3 </since_tizen>
891         /// This will be deprecated
892         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
893         [EditorBrowsable(EditorBrowsableState.Never)]
894         public uint GetCurrentPage()
895         {
896             uint ret = Interop.ScrollView.GetCurrentPage(swigCPtr);
897             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
898             return ret;
899         }
900
901         /// <summary>
902         /// Scrolls View to position specified (contents will scroll to this position).
903         /// </summary>
904         /// <param name="position">The position to scroll to.</param>
905         /// <since_tizen> 3 </since_tizen>
906         /// This will be deprecated
907         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
908         [EditorBrowsable(EditorBrowsableState.Never)]
909         public void ScrollTo(Vector2 position)
910         {
911             Interop.ScrollView.ScrollToVector2(swigCPtr, Vector2.getCPtr(position));
912             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
913         }
914
915         /// <summary>
916         /// Scrolls View to position specified (contents will scroll to this position).
917         /// </summary>
918         /// <param name="position">The position to scroll to.</param>
919         /// <param name="duration">The duration of the animation in seconds.</param>
920         /// <since_tizen> 3 </since_tizen>
921         /// This will be deprecated
922         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
923         [EditorBrowsable(EditorBrowsableState.Never)]
924         public void ScrollTo(Vector2 position, float duration)
925         {
926             Interop.ScrollView.ScrollTo(swigCPtr, Vector2.getCPtr(position), duration);
927             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
928         }
929
930         /// <summary>
931         /// Scrolls View to position specified (contents will scroll to this position).
932         /// </summary>
933         /// <param name="position">The position to scroll to.</param>
934         /// <param name="duration">The duration of the animation in seconds.</param>
935         /// <param name="alpha">The alpha function to use.</param>
936         /// <since_tizen> 3 </since_tizen>
937         /// This will be deprecated
938         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
939         [EditorBrowsable(EditorBrowsableState.Never)]
940         public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha)
941         {
942             Interop.ScrollView.ScrollTo(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
943             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
944         }
945
946         /// <summary>
947         /// Scrolls View to position specified (contents will scroll to this position).
948         /// </summary>
949         /// <param name="position">The position to scroll to.</param>
950         /// <param name="duration">The duration of the animation in seconds.</param>
951         /// <param name="horizontalBias">Whether to bias scrolling to left or right.</param>
952         /// <param name="verticalBias">Whether to bias scrolling to top or bottom.</param>
953         /// <since_tizen> 3 </since_tizen>
954         /// This will be deprecated
955         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
956         [EditorBrowsable(EditorBrowsableState.Never)]
957         public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias)
958         {
959             Interop.ScrollView.ScrollTo(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
960             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
961         }
962
963         /// <summary>
964         /// Scrolls View to position specified (contents will scroll to this position).
965         /// </summary>
966         /// <param name="position">The position to scroll to.</param>
967         /// <param name="duration">The duration of the animation in seconds.</param>
968         /// <param name="alpha">Alpha function to use.</param>
969         /// <param name="horizontalBias">Whether to bias scrolling to left or right.</param>
970         /// <param name="verticalBias">Whether to bias scrolling to top or bottom.</param>
971         /// <since_tizen> 3 </since_tizen>
972         /// This will be deprecated
973         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
974         [EditorBrowsable(EditorBrowsableState.Never)]
975         public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias)
976         {
977             Interop.ScrollView.ScrollTo(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
978             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
979         }
980
981         /// <summary>
982         /// Scrolls View to position specified (contents will scroll to this position).
983         /// </summary>
984         /// <param name="page">The page to scroll to.</param>
985         /// <since_tizen> 3 </since_tizen>
986         /// This will be deprecated
987         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
988         [EditorBrowsable(EditorBrowsableState.Never)]
989         public void ScrollTo(uint page)
990         {
991             Interop.ScrollView.ScrollTo(swigCPtr, page);
992             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
993         }
994
995         /// <summary>
996         /// Scrolls View to position specified (contents will scroll to this position).
997         /// </summary>
998         /// <param name="page">The page to scroll to.</param>
999         /// <param name="duration">The duration of the animation in seconds.</param>
1000         /// <since_tizen> 3 </since_tizen>
1001         /// This will be deprecated
1002         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1003         [EditorBrowsable(EditorBrowsableState.Never)]
1004         public void ScrollTo(uint page, float duration)
1005         {
1006             Interop.ScrollView.ScrollTo(swigCPtr, page, duration);
1007             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1008         }
1009
1010         /// <summary>
1011         /// Scrolls View to position specified (contents will scroll to this position).
1012         /// </summary>
1013         /// <param name="page">The page to scroll to.</param>
1014         /// <param name="duration">The duration of the animation in seconds.</param>
1015         /// <param name="bias">Whether to bias scrolling to left or right.</param>
1016         /// <since_tizen> 3 </since_tizen>
1017         /// This will be deprecated
1018         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1019         [EditorBrowsable(EditorBrowsableState.Never)]
1020         public void ScrollTo(uint page, float duration, DirectionBias bias)
1021         {
1022             Interop.ScrollView.ScrollTo(swigCPtr, page, duration, (int)bias);
1023             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1024         }
1025
1026         /// <summary>
1027         /// Scrolls View to position specified (contents will scroll to this position).
1028         /// </summary>
1029         /// <param name="view">The view to center in on (via Scrolling).</param>
1030         /// <since_tizen> 3 </since_tizen>
1031         /// This will be deprecated
1032         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1033         [EditorBrowsable(EditorBrowsableState.Never)]
1034         public void ScrollTo(View view)
1035         {
1036             Interop.ScrollView.ScrollToView(swigCPtr, View.getCPtr(view));
1037             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1038         }
1039
1040         /// <summary>
1041         /// Scrolls View to position specified (contents will scroll to this position).
1042         /// </summary>
1043         /// <param name="view">The view to center in on (via Scrolling).</param>
1044         /// <param name="duration">The duration of the animation in seconds.</param>
1045         /// <since_tizen> 3 </since_tizen>
1046         /// This will be deprecated
1047         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1048         [EditorBrowsable(EditorBrowsableState.Never)]
1049         public void ScrollTo(View view, float duration)
1050         {
1051             Interop.ScrollView.ScrollToViewDuration(swigCPtr, View.getCPtr(view), duration);
1052             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1053         }
1054
1055         /// <summary>
1056         /// Scrolls View to the nearest snap points as specified by the Rulers.<br />
1057         /// If already at snap points, then will return false, and not scroll.<br />
1058         /// </summary>
1059         /// <returns>True if Snapping necessary.</returns>
1060         /// <since_tizen> 3 </since_tizen>
1061         /// This will be deprecated
1062         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1063         [EditorBrowsable(EditorBrowsableState.Never)]
1064         public bool ScrollToSnapPoint()
1065         {
1066             bool ret = Interop.ScrollView.ScrollToSnapPoint(swigCPtr);
1067             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1068             return ret;
1069         }
1070
1071         /// <summary>
1072         /// Applies Effect to ScrollView.
1073         /// </summary>
1074         /// <param name="effect">The effect to apply to scroll view.</param>
1075         /// <since_tizen> 3 </since_tizen>
1076         /// This will be deprecated
1077         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1078         [EditorBrowsable(EditorBrowsableState.Never)]
1079         public void ApplyEffect(ScrollViewEffect effect)
1080         {
1081             Interop.ScrollView.ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
1082             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1083         }
1084
1085         /// <summary>
1086         /// Removes Effect from ScrollView.
1087         /// </summary>
1088         /// <param name="effect">The effect to remove.</param>
1089         /// <since_tizen> 3 </since_tizen>
1090         /// This will be deprecated
1091         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1092         [EditorBrowsable(EditorBrowsableState.Never)]
1093         public void RemoveEffect(ScrollViewEffect effect)
1094         {
1095             Interop.ScrollView.RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
1096             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1097         }
1098
1099         /// <summary>
1100         /// Remove All Effects from ScrollView.
1101         /// </summary>
1102         /// <since_tizen> 3 </since_tizen>
1103         /// This will be deprecated
1104         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1105         [EditorBrowsable(EditorBrowsableState.Never)]
1106         public void RemoveAllEffects()
1107         {
1108             Interop.ScrollView.RemoveAllEffects(swigCPtr);
1109             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1110         }
1111
1112         /// <summary>
1113         /// Binds view to this ScrollView.
1114         /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
1115         /// </summary>
1116         /// <param name="child">The view to add to this ScrollView.</param>
1117         /// <since_tizen> 3 </since_tizen>
1118         /// This will be deprecated
1119         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1120         [EditorBrowsable(EditorBrowsableState.Never)]
1121         public void BindView(View child)
1122         {
1123             Interop.ScrollView.BindActor(swigCPtr, View.getCPtr(child));
1124             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1125         }
1126
1127         /// <summary>
1128         /// Unbinds view to this ScrollView.
1129         /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
1130         /// </summary>
1131         /// <param name="child">The view to remove to this ScrollView.</param>
1132         /// <since_tizen> 3 </since_tizen>
1133         /// This will be deprecated
1134         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1135         [EditorBrowsable(EditorBrowsableState.Never)]
1136         public void UnbindView(View child)
1137         {
1138             Interop.ScrollView.UnbindActor(swigCPtr, View.getCPtr(child));
1139             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1140         }
1141
1142         /// <summary>
1143         /// Allows the user to constrain the scroll view in a particular direction.
1144         /// </summary>
1145         /// <param name="direction">The axis to constrain the scroll-view to.</param>
1146         /// <param name="threshold">The threshold to apply around the axis.</param>
1147         /// <since_tizen> 3 </since_tizen>
1148         /// This will be deprecated
1149         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1150         [EditorBrowsable(EditorBrowsableState.Never)]
1151         public void SetScrollingDirection(Radian direction, Radian threshold)
1152         {
1153             Interop.ScrollView.SetScrollingDirection(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
1154             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1155         }
1156
1157         /// <summary>
1158         /// Allows the user to constrain the scroll view in a particular direction.
1159         /// </summary>
1160         /// <param name="direction">The axis to constrain the scroll-view to.</param>
1161         /// <since_tizen> 3 </since_tizen>
1162         /// This will be deprecated
1163         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1164         [EditorBrowsable(EditorBrowsableState.Never)]
1165         public void SetScrollingDirection(Radian direction)
1166         {
1167             Interop.ScrollView.SetScrollingDirection(swigCPtr, Radian.getCPtr(direction));
1168             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1169         }
1170
1171         /// <summary>
1172         /// Removes a direction constraint from the scroll view.
1173         /// </summary>
1174         /// <param name="direction">The axis to constrain the scroll-view to.</param>
1175         /// <since_tizen> 3 </since_tizen>
1176         /// This will be deprecated
1177         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1178         [EditorBrowsable(EditorBrowsableState.Never)]
1179         public void RemoveScrollingDirection(Radian direction)
1180         {
1181             Interop.ScrollView.RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
1182             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1183         }
1184
1185         /// <summary>
1186         /// Set ruler X
1187         /// </summary>
1188         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
1189         [EditorBrowsable(EditorBrowsableState.Never)]
1190         public void SetRulerX(RulerPtr ruler)
1191         {
1192             Interop.ScrollView.SetRulerX(swigCPtr, RulerPtr.getCPtr(ruler));
1193         }
1194
1195         /// <summary>
1196         /// Set ruler Y
1197         /// </summary>
1198         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
1199         [EditorBrowsable(EditorBrowsableState.Never)]
1200         public void SetRulerY(RulerPtr ruler)
1201         {
1202             Interop.ScrollView.SetRulerY(swigCPtr, RulerPtr.getCPtr(ruler));
1203         }
1204
1205         internal void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint)
1206         {
1207             Interop.ScrollView.ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
1208             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1209         }
1210
1211         /// <summary>
1212         /// Dispose
1213         /// </summary>
1214         /// <param name="type">the dispose type</param>
1215         /// <since_tizen> 3 </since_tizen>
1216         /// This will be deprecated
1217         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1218         [EditorBrowsable(EditorBrowsableState.Never)]
1219         protected override void Dispose(DisposeTypes type)
1220         {
1221             if (disposed)
1222             {
1223                 return;
1224             }
1225
1226             //Release your own unmanaged resources here.
1227             //You should not access any managed member here except static instance.
1228             //because the execution order of Finalizes is non-deterministic.
1229
1230             if (this != null && _scrollViewSnapStartedCallbackDelegate != null)
1231             {
1232                 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
1233             }
1234
1235             base.Dispose(type);
1236         }
1237
1238         /// This will not be public opened.
1239         [EditorBrowsable(EditorBrowsableState.Never)]
1240         protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
1241         {
1242             Interop.ScrollView.DeleteScrollView(swigCPtr);
1243         }
1244
1245         /// <summary>
1246         /// This should be internal, please do not use.
1247         /// </summary>
1248         /// <since_tizen> 3 </since_tizen>
1249         /// This will be deprecated
1250         [SuppressMessage("Microsoft.Design", "CA1052:StaticHolderTypesShouldBeStaticOrNotInheritable")]
1251         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1252         [EditorBrowsable(EditorBrowsableState.Never)]
1253         public new class Property
1254         {
1255             /// <summary>
1256             /// This should be internal, please do not use.
1257             /// </summary>
1258             /// <since_tizen> 3 </since_tizen>
1259             /// This will be deprecated
1260             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1261             [EditorBrowsable(EditorBrowsableState.Never)]
1262             public static readonly int WrapEnabled = Interop.ScrollView.WrapEnabledGet();
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 PanningEnabled = Interop.ScrollView.PanningEnabledGet();
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 AxisAutoLockEnabled = Interop.ScrollView.AxisAutoLockEnabledGet();
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 WheelScrollDistanceStep = Interop.ScrollView.WheelScrollDistanceStepGet();
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 ScrollMode = Interop.ScrollView.ScrollModeGet();
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 ScrollPosition = Interop.ScrollView.ScrollPositionGet();
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 ScrollPrePosition = Interop.ScrollView.ScrollPrePositionGet();
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 ScrollPrePositionX = Interop.ScrollView.ScrollPrePositionXGet();
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 ScrollPrePositionY = Interop.ScrollView.ScrollPrePositionYGet();
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 ScrollPrePositionMax = Interop.ScrollView.ScrollPrePositionMaxGet();
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 ScrollPrePositionMaxX = Interop.ScrollView.ScrollPrePositionMaxXGet();
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 ScrollPrePositionMaxY = Interop.ScrollView.ScrollPrePositionMaxYGet();
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 OvershootX = Interop.ScrollView.OvershootXGet();
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 OvershootY = Interop.ScrollView.OvershootYGet();
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 ScrollFinal = Interop.ScrollView.ScrollFinalGet();
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 ScrollFinalX = Interop.ScrollView.ScrollFinalXGet();
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 ScrollFinalY = Interop.ScrollView.ScrollFinalYGet();
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 WRAP = Interop.ScrollView.WrapGet();
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 PANNING = Interop.ScrollView.PanningGet();
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 SCROLLING = Interop.ScrollView.ScrollingGet();
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 ScrollDomainSize = Interop.ScrollView.ScrollDomainSizeGet();
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 ScrollDomainSizeX = Interop.ScrollView.ScrollDomainSizeXGet();
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 ScrollDomainSizeY = Interop.ScrollView.ScrollDomainSizeYGet();
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 ScrollDomainOffset = Interop.ScrollView.ScrollDomainOffsetGet();
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 ScrollPositionDelta = Interop.ScrollView.ScrollPositionDeltaGet();
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 StartPagePosition = Interop.ScrollView.StartPagePositionGet();
1463         }
1464     }
1465 }
1466