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