[NUI] Deprecate Tizen.NUI.UIComponents (#1044)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / UIComponents / ScrollView.cs
1 /*
2  * Copyright(c) 2018 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 using System;
18 using System.ComponentModel;
19 using System.Runtime.InteropServices;
20 using Tizen.NUI.BaseComponents;
21 using Tizen.NUI.Binding;
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 class ScrollView : Scrollable
31     {
32         /// This will be deprecated
33         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
34         [EditorBrowsable(EditorBrowsableState.Never)]
35         public static readonly BindableProperty WrapEnabledProperty = BindableProperty.Create("WrapEnabled", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) =>
36         {
37             var scrollView = (ScrollView)bindable;
38             if (newValue != null)
39             {
40                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.WRAP_ENABLED, new Tizen.NUI.PropertyValue((bool)newValue));
41             }
42         },
43         defaultValueCreator: (bindable) =>
44         {
45             var scrollView = (ScrollView)bindable;
46             bool temp = false;
47             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.WRAP_ENABLED).Get(out temp);
48             return temp;
49         });
50         /// This will be deprecated
51         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
52         [EditorBrowsable(EditorBrowsableState.Never)]
53         public static readonly BindableProperty PanningEnabledProperty = BindableProperty.Create("PanningEnabled", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) =>
54         {
55             var scrollView = (ScrollView)bindable;
56             if (newValue != null)
57             {
58                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.PANNING_ENABLED, new Tizen.NUI.PropertyValue((bool)newValue));
59             }
60         },
61         defaultValueCreator: (bindable) =>
62         {
63             var scrollView = (ScrollView)bindable;
64             bool temp = false;
65             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.PANNING_ENABLED).Get(out temp);
66             return temp;
67         });
68         /// This will be deprecated
69         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
70         [EditorBrowsable(EditorBrowsableState.Never)]
71         public static readonly BindableProperty AxisAutoLockEnabledProperty = BindableProperty.Create("AxisAutoLockEnabled", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) =>
72         {
73             var scrollView = (ScrollView)bindable;
74             if (newValue != null)
75             {
76                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Tizen.NUI.PropertyValue((bool)newValue));
77             }
78         },
79         defaultValueCreator: (bindable) =>
80         {
81             var scrollView = (ScrollView)bindable;
82             bool temp = false;
83             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get(out temp);
84             return temp;
85         });
86         /// This will be deprecated
87         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
88         [EditorBrowsable(EditorBrowsableState.Never)]
89         public static readonly BindableProperty WheelScrollDistanceStepProperty = BindableProperty.Create("WheelScrollDistanceStep", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) =>
90         {
91             var scrollView = (ScrollView)bindable;
92             if (newValue != null)
93             {
94                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Tizen.NUI.PropertyValue((Vector2)newValue));
95             }
96         },
97         defaultValueCreator: (bindable) =>
98         {
99             var scrollView = (ScrollView)bindable;
100             Vector2 temp = new Vector2(0.0f, 0.0f);
101             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get(temp);
102             return temp;
103         });
104         /// This will be deprecated
105         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
106         [EditorBrowsable(EditorBrowsableState.Never)]
107         public static readonly BindableProperty ScrollPositionProperty = BindableProperty.Create("ScrollPosition", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) =>
108         {
109             var scrollView = (ScrollView)bindable;
110             if (newValue != null)
111             {
112                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_POSITION, new Tizen.NUI.PropertyValue((Vector2)newValue));
113             }
114         },
115         defaultValueCreator: (bindable) =>
116         {
117             var scrollView = (ScrollView)bindable;
118             Vector2 temp = new Vector2(0.0f, 0.0f);
119             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_POSITION).Get(temp);
120             return temp;
121         });
122         /// This will be deprecated
123         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
124         [EditorBrowsable(EditorBrowsableState.Never)]
125         public static readonly BindableProperty ScrollPrePositionProperty = BindableProperty.Create("ScrollPrePosition", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) =>
126         {
127             var scrollView = (ScrollView)bindable;
128             if (newValue != null)
129             {
130                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_PRE_POSITION, new Tizen.NUI.PropertyValue((Vector2)newValue));
131             }
132         },
133         defaultValueCreator: (bindable) =>
134         {
135             var scrollView = (ScrollView)bindable;
136             Vector2 temp = new Vector2(0.0f, 0.0f);
137             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_PRE_POSITION).Get(temp);
138             return temp;
139         });
140         /// This will be deprecated
141         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
142         [EditorBrowsable(EditorBrowsableState.Never)]
143         public static readonly BindableProperty ScrollPrePositionMaxProperty = BindableProperty.Create("ScrollPrePositionMax", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) =>
144         {
145             var scrollView = (ScrollView)bindable;
146             if (newValue != null)
147             {
148                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Tizen.NUI.PropertyValue((Vector2)newValue));
149             }
150         },
151         defaultValueCreator: (bindable) =>
152         {
153             var scrollView = (ScrollView)bindable;
154             Vector2 temp = new Vector2(0.0f, 0.0f);
155             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get(temp);
156             return temp;
157         });
158         /// This will be deprecated
159         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
160         [EditorBrowsable(EditorBrowsableState.Never)]
161         public static readonly BindableProperty OvershootXProperty = BindableProperty.Create("OvershootX", typeof(float), typeof(ScrollView), default(float), propertyChanged: (bindable, oldValue, newValue) =>
162         {
163             var scrollView = (ScrollView)bindable;
164             if (newValue != null)
165             {
166                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.OVERSHOOT_X, new Tizen.NUI.PropertyValue((float)newValue));
167             }
168         },
169         defaultValueCreator: (bindable) =>
170         {
171             var scrollView = (ScrollView)bindable;
172             float temp = 0.0f;
173             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.OVERSHOOT_X).Get(out temp);
174             return temp;
175         });
176         /// This will be deprecated
177         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
178         [EditorBrowsable(EditorBrowsableState.Never)]
179         public static readonly BindableProperty OvershootYProperty = BindableProperty.Create("OvershootY", typeof(float), typeof(ScrollView), default(float), propertyChanged: (bindable, oldValue, newValue) =>
180         {
181             var scrollView = (ScrollView)bindable;
182             if (newValue != null)
183             {
184                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.OVERSHOOT_Y, new Tizen.NUI.PropertyValue((float)newValue));
185             }
186         },
187         defaultValueCreator: (bindable) =>
188         {
189             var scrollView = (ScrollView)bindable;
190             float temp = 0.0f;
191             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.OVERSHOOT_Y).Get(out temp);
192             return temp;
193         });
194         /// This will be deprecated
195         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
196         [EditorBrowsable(EditorBrowsableState.Never)]
197         public static readonly BindableProperty ScrollFinalProperty = BindableProperty.Create("ScrollFinal", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) =>
198         {
199             var scrollView = (ScrollView)bindable;
200             if (newValue != null)
201             {
202                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_FINAL, new Tizen.NUI.PropertyValue((Vector2)newValue));
203             }
204         },
205         defaultValueCreator: (bindable) =>
206         {
207             var scrollView = (ScrollView)bindable;
208             Vector2 temp = new Vector2(0.0f, 0.0f);
209             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_FINAL).Get(temp);
210             return temp;
211         });
212         /// This will be deprecated
213         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
214         [EditorBrowsable(EditorBrowsableState.Never)]
215         public static readonly BindableProperty WrapProperty = BindableProperty.Create("Wrap", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) =>
216         {
217             var scrollView = (ScrollView)bindable;
218             if (newValue != null)
219             {
220                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.WRAP, new Tizen.NUI.PropertyValue((bool)newValue));
221             }
222         },
223         defaultValueCreator: (bindable) =>
224         {
225             var scrollView = (ScrollView)bindable;
226             bool temp = false;
227             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.WRAP).Get(out temp);
228             return temp;
229         });
230         /// This will be deprecated
231         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
232         [EditorBrowsable(EditorBrowsableState.Never)]
233         public static readonly BindableProperty PanningProperty = BindableProperty.Create("Panning", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) =>
234         {
235             var scrollView = (ScrollView)bindable;
236             if (newValue != null)
237             {
238                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.PANNING, new Tizen.NUI.PropertyValue((bool)newValue));
239             }
240         },
241         defaultValueCreator: (bindable) =>
242         {
243             var scrollView = (ScrollView)bindable;
244             bool temp = false;
245             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.PANNING).Get(out temp);
246             return temp;
247         });
248         /// This will be deprecated
249         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
250         [EditorBrowsable(EditorBrowsableState.Never)]
251         public static readonly BindableProperty ScrollingProperty = BindableProperty.Create("Scrolling", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) =>
252         {
253             var scrollView = (ScrollView)bindable;
254             if (newValue != null)
255             {
256                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLLING, new Tizen.NUI.PropertyValue((bool)newValue));
257             }
258         },
259         defaultValueCreator: (bindable) =>
260         {
261             var scrollView = (ScrollView)bindable;
262             bool temp = false;
263             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLLING).Get(out temp);
264             return temp;
265         });
266         /// This will be deprecated
267         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
268         [EditorBrowsable(EditorBrowsableState.Never)]
269         public static readonly BindableProperty ScrollDomainSizeProperty = BindableProperty.Create("ScrollDomainSize", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) =>
270         {
271             var scrollView = (ScrollView)bindable;
272             if (newValue != null)
273             {
274                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_DOMAIN_SIZE, new Tizen.NUI.PropertyValue((Vector2)newValue));
275             }
276         },
277         defaultValueCreator: (bindable) =>
278         {
279             var scrollView = (ScrollView)bindable;
280             Vector2 temp = new Vector2(0.0f, 0.0f);
281             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_DOMAIN_SIZE).Get(temp);
282             return temp;
283         });
284         /// This will be deprecated
285         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
286         [EditorBrowsable(EditorBrowsableState.Never)]
287         public static readonly BindableProperty ScrollDomainOffsetProperty = BindableProperty.Create("ScrollDomainOffset", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) =>
288         {
289             var scrollView = (ScrollView)bindable;
290             if (newValue != null)
291             {
292                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Tizen.NUI.PropertyValue((Vector2)newValue));
293             }
294         },
295         defaultValueCreator: (bindable) =>
296         {
297             var scrollView = (ScrollView)bindable;
298             Vector2 temp = new Vector2(0.0f, 0.0f);
299             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get(temp);
300             return temp;
301         });
302         /// This will be deprecated
303         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
304         [EditorBrowsable(EditorBrowsableState.Never)]
305         public static readonly BindableProperty ScrollPositionDeltaProperty = BindableProperty.Create("ScrollPositionDelta", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) =>
306         {
307             var scrollView = (ScrollView)bindable;
308             if (newValue != null)
309             {
310                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_POSITION_DELTA, new Tizen.NUI.PropertyValue((Vector2)newValue));
311             }
312         },
313         defaultValueCreator: (bindable) =>
314         {
315             var scrollView = (ScrollView)bindable;
316             Vector2 temp = new Vector2(0.0f, 0.0f);
317             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_POSITION_DELTA).Get(temp);
318             return temp;
319         });
320         /// This will be deprecated
321         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
322         [EditorBrowsable(EditorBrowsableState.Never)]
323         public static readonly BindableProperty StartPagePositionProperty = BindableProperty.Create("StartPagePosition", typeof(Vector3), typeof(ScrollView), Vector3.Zero, propertyChanged: (bindable, oldValue, newValue) =>
324         {
325             var scrollView = (ScrollView)bindable;
326             if (newValue != null)
327             {
328                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.START_PAGE_POSITION, new Tizen.NUI.PropertyValue((Vector3)newValue));
329             }
330         },
331         defaultValueCreator: (bindable) =>
332         {
333             var scrollView = (ScrollView)bindable;
334             Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
335             Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.START_PAGE_POSITION).Get(temp);
336             return temp;
337         });
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 static readonly BindableProperty ScrollModeProperty = BindableProperty.Create("ScrollMode", typeof(PropertyMap), typeof(ScrollView), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
342         {
343             var scrollView = (ScrollView)bindable;
344             if (newValue != null)
345             {
346                 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_MODE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
347             }
348         },
349         defaultValueCreator: (bindable) =>
350         {
351             var scrollView = (ScrollView)bindable;
352             PropertyValue value = Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_MODE);
353             PropertyMap map = new PropertyMap();
354             value.Get(map);
355             return map;
356         });
357
358         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
359
360         private DaliEventHandler<object, SnapStartedEventArgs> _scrollViewSnapStartedEventHandler;
361         private SnapStartedCallbackDelegate _scrollViewSnapStartedCallbackDelegate;
362
363         /// <summary>
364         /// Create an instance of ScrollView.
365         /// </summary>
366         /// <since_tizen> 3 </since_tizen>
367         /// This will be deprecated
368         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
369         [EditorBrowsable(EditorBrowsableState.Never)]
370         public ScrollView() : this(Interop.ScrollView.ScrollView_New(), true)
371         {
372             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
373         }
374
375         internal ScrollView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.ScrollView.ScrollView_SWIGUpcast(cPtr), cMemoryOwn)
376         {
377             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
378         }
379
380         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
381         private delegate void SnapStartedCallbackDelegate(IntPtr data);
382
383         /// <summary>
384         /// SnapStarted can be used to subscribe or unsubscribe the event handler
385         /// The SnapStarted signal is emitted when the ScrollView has started to snap or flick (it tells the target
386         ///  position, scale, rotation for the snap or flick).
387         /// </summary>
388         /// <since_tizen> 3 </since_tizen>
389         /// This will be deprecated
390         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
391         [EditorBrowsable(EditorBrowsableState.Never)]
392         public event DaliEventHandler<object, SnapStartedEventArgs> SnapStarted
393         {
394             add
395             {
396                 lock (this)
397                 {
398                     // Restricted to only one listener
399                     if (_scrollViewSnapStartedEventHandler == null)
400                     {
401                         _scrollViewSnapStartedEventHandler += value;
402
403                         _scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted);
404                         this.SnapStartedSignal().Connect(_scrollViewSnapStartedCallbackDelegate);
405                     }
406                 }
407             }
408
409             remove
410             {
411                 lock (this)
412                 {
413                     if (_scrollViewSnapStartedEventHandler != null)
414                     {
415                         this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
416                     }
417
418                     _scrollViewSnapStartedEventHandler -= value;
419                 }
420             }
421         }
422
423         /// <summary>
424         /// Sets and Gets WrapEnabled property.
425         /// </summary>
426         /// <since_tizen> 3 </since_tizen>
427         /// This will be deprecated
428         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
429         [EditorBrowsable(EditorBrowsableState.Never)]
430         public bool WrapEnabled
431         {
432             get
433             {
434                 return (bool)GetValue(WrapEnabledProperty);
435             }
436             set
437             {
438                 SetValue(WrapEnabledProperty, value);
439             }
440         }
441
442         /// <summary>
443         /// Sets and Gets PanningEnabled property.
444         /// </summary>
445         /// <since_tizen> 3 </since_tizen>
446         /// This will be deprecated
447         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
448         [EditorBrowsable(EditorBrowsableState.Never)]
449         public bool PanningEnabled
450         {
451             get
452             {
453                 return (bool)GetValue(PanningEnabledProperty);
454             }
455             set
456             {
457                 SetValue(PanningEnabledProperty, value);
458             }
459         }
460
461         /// <summary>
462         /// Sets and Gets AxisAutoLockEnabled property.
463         /// </summary>
464         /// <since_tizen> 3 </since_tizen>
465         /// This will be deprecated
466         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
467         [EditorBrowsable(EditorBrowsableState.Never)]
468         public bool AxisAutoLockEnabled
469         {
470             get
471             {
472                 return (bool)GetValue(AxisAutoLockEnabledProperty);
473             }
474             set
475             {
476                 SetValue(AxisAutoLockEnabledProperty, value);
477             }
478         }
479
480         /// <summary>
481         /// Sets and Gets WheelScrollDistanceStep property.
482         /// </summary>
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 Vector2 WheelScrollDistanceStep
488         {
489             get
490             {
491                 return (Vector2)GetValue(WheelScrollDistanceStepProperty);
492             }
493             set
494             {
495                 SetValue(WheelScrollDistanceStepProperty, value);
496             }
497         }
498
499         /// <summary>
500         /// Sets and Gets ScrollPosition property.
501         /// </summary>
502         /// <since_tizen> 3 </since_tizen>
503         /// This will be deprecated
504         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
505         [EditorBrowsable(EditorBrowsableState.Never)]
506         public Vector2 ScrollPosition
507         {
508             get
509             {
510                 return (Vector2)GetValue(ScrollPositionProperty);
511             }
512             set
513             {
514                 SetValue(ScrollPositionProperty, value);
515             }
516         }
517
518         /// <summary>
519         /// Sets and Gets ScrollPrePosition property.
520         /// </summary>
521         /// <since_tizen> 3 </since_tizen>
522         /// This will be deprecated
523         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
524         [EditorBrowsable(EditorBrowsableState.Never)]
525         public Vector2 ScrollPrePosition
526         {
527             get
528             {
529                 return (Vector2)GetValue(ScrollPrePositionProperty);
530             }
531             set
532             {
533                 SetValue(ScrollPrePositionProperty, value);
534             }
535         }
536
537         /// <summary>
538         /// Sets and Gets ScrollPrePositionMax property.
539         /// </summary>
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 Vector2 ScrollPrePositionMax
545         {
546             get
547             {
548                 return (Vector2)GetValue(ScrollPrePositionMaxProperty);
549             }
550             set
551             {
552                 SetValue(ScrollPrePositionMaxProperty, value);
553             }
554         }
555
556         /// <summary>
557         /// Sets and Gets OvershootX property.
558         /// </summary>
559         /// <since_tizen> 3 </since_tizen>
560         /// This will be deprecated
561         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
562         [EditorBrowsable(EditorBrowsableState.Never)]
563         public float OvershootX
564         {
565             get
566             {
567                 return (float)GetValue(OvershootXProperty);
568             }
569             set
570             {
571                 SetValue(OvershootXProperty, value);
572             }
573         }
574
575         /// <summary>
576         /// Sets and Gets OvershootY property.
577         /// </summary>
578         /// <since_tizen> 3 </since_tizen>
579         /// This will be deprecated
580         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
581         [EditorBrowsable(EditorBrowsableState.Never)]
582         public float OvershootY
583         {
584             get
585             {
586                 return (float)GetValue(OvershootYProperty);
587             }
588             set
589             {
590                 SetValue(OvershootYProperty, value);
591             }
592         }
593
594         /// <summary>
595         /// Sets and Gets ScrollFinal property.
596         /// </summary>
597         /// <since_tizen> 3 </since_tizen>
598         /// This will be deprecated
599         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
600         [EditorBrowsable(EditorBrowsableState.Never)]
601         public Vector2 ScrollFinal
602         {
603             get
604             {
605                 return (Vector2)GetValue(ScrollFinalProperty);
606             }
607             set
608             {
609                 SetValue(ScrollFinalProperty, value);
610             }
611         }
612
613         /// <summary>
614         /// Sets and Gets Wrap property.
615         /// </summary>
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 bool Wrap
621         {
622             get
623             {
624                 return (bool)GetValue(WrapProperty);
625             }
626             set
627             {
628                 SetValue(WrapProperty, value);
629             }
630         }
631
632         /// <summary>
633         /// Sets and Gets Panning property.
634         /// </summary>
635         /// <since_tizen> 3 </since_tizen>
636         /// This will be deprecated
637         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
638         [EditorBrowsable(EditorBrowsableState.Never)]
639         public bool Panning
640         {
641             get
642             {
643                 return (bool)GetValue(PanningProperty);
644             }
645             set
646             {
647                 SetValue(PanningProperty, value);
648             }
649         }
650
651         /// <summary>
652         /// Sets and Gets Scrolling property.
653         /// </summary>
654         /// <since_tizen> 3 </since_tizen>
655         /// This will be deprecated
656         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
657         [EditorBrowsable(EditorBrowsableState.Never)]
658         public bool Scrolling
659         {
660             get
661             {
662                 return (bool)GetValue(ScrollingProperty);
663             }
664             set
665             {
666                 SetValue(ScrollingProperty, value);
667             }
668         }
669
670         /// <summary>
671         /// Sets and Gets ScrollDomainSize property.
672         /// </summary>
673         /// <since_tizen> 3 </since_tizen>
674         /// This will be deprecated
675         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
676         [EditorBrowsable(EditorBrowsableState.Never)]
677         public Vector2 ScrollDomainSize
678         {
679             get
680             {
681                 return (Vector2)GetValue(ScrollDomainSizeProperty);
682             }
683             set
684             {
685                 SetValue(ScrollDomainSizeProperty, value);
686             }
687         }
688
689         /// <summary>
690         /// Sets and Gets ScrollDomainOffset property.
691         /// </summary>
692         /// <since_tizen> 3 </since_tizen>
693         /// This will be deprecated
694         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
695         [EditorBrowsable(EditorBrowsableState.Never)]
696         public Vector2 ScrollDomainOffset
697         {
698             get
699             {
700                 return (Vector2)GetValue(ScrollDomainOffsetProperty);
701             }
702             set
703             {
704                 SetValue(ScrollDomainOffsetProperty, value);
705             }
706         }
707
708         /// <summary>
709         /// Sets and Gets ScrollPositionDelta property.
710         /// </summary>
711         /// <since_tizen> 3 </since_tizen>
712         /// This will be deprecated
713         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
714         [EditorBrowsable(EditorBrowsableState.Never)]
715         public Vector2 ScrollPositionDelta
716         {
717             get
718             {
719                 return (Vector2)GetValue(ScrollPositionDeltaProperty);
720             }
721             set
722             {
723                 SetValue(ScrollPositionDeltaProperty, value);
724             }
725         }
726
727         /// <summary>
728         /// Sets and Gets StartPagePosition property.
729         /// </summary>
730         /// <since_tizen> 3 </since_tizen>
731         /// This will be deprecated
732         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
733         [EditorBrowsable(EditorBrowsableState.Never)]
734         public Vector3 StartPagePosition
735         {
736             get
737             {
738                 return (Vector3)GetValue(StartPagePositionProperty);
739             }
740             set
741             {
742                 SetValue(StartPagePositionProperty, value);
743             }
744         }
745
746
747         /// <summary>
748         /// Sets and Gets ScrollMode property.
749         /// </summary>
750         /// <since_tizen> 3 </since_tizen>
751         /// This will be deprecated
752         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
753         [EditorBrowsable(EditorBrowsableState.Never)]
754         public PropertyMap ScrollMode
755         {
756             get
757             {
758                 return (PropertyMap)GetValue(ScrollModeProperty);
759             }
760             set
761             {
762                 SetValue(ScrollModeProperty, value);
763             }
764         }
765
766         /// <summary>
767         /// Gets snap-animation's AlphaFunction.
768         /// </summary>
769         /// <returns>Current easing alpha function of the snap animation.</returns>
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 AlphaFunction GetScrollSnapAlphaFunction()
775         {
776             AlphaFunction ret = new AlphaFunction(Interop.ScrollView.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
777             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
778             return ret;
779         }
780
781         /// <summary>
782         /// Sets snap-animation's AlphaFunction.
783         /// </summary>
784         /// <param name="alpha">Easing alpha function of the snap animation.</param>
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 void SetScrollSnapAlphaFunction(AlphaFunction alpha)
790         {
791             Interop.ScrollView.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
792             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
793         }
794
795         /// <summary>
796         /// Gets flick-animation's AlphaFunction.
797         /// </summary>
798         /// <returns>Current easing alpha function of the flick animation.</returns>
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 AlphaFunction GetScrollFlickAlphaFunction()
804         {
805             AlphaFunction ret = new AlphaFunction(Interop.ScrollView.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
806             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
807             return ret;
808         }
809
810         /// <summary>
811         /// Sets flick-animation's AlphaFunction.
812         /// </summary>
813         /// <param name="alpha">Easing alpha function of the flick animation.</param>
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 void SetScrollFlickAlphaFunction(AlphaFunction alpha)
819         {
820             Interop.ScrollView.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
821             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
822         }
823
824         /// <summary>
825         /// Gets the time for the scroll snap-animation.
826         /// </summary>
827         /// <returns>The time in seconds for the animation to take.</returns>
828         /// <since_tizen> 3 </since_tizen>
829         /// This will be deprecated
830         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
831         [EditorBrowsable(EditorBrowsableState.Never)]
832         public float GetScrollSnapDuration()
833         {
834             float ret = Interop.ScrollView.ScrollView_GetScrollSnapDuration(swigCPtr);
835             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
836             return ret;
837         }
838
839         /// <summary>
840         /// Sets the time for the scroll snap-animation.
841         /// </summary>
842         /// <param name="time">The time in seconds for the animation to take.</param>
843         /// <since_tizen> 3 </since_tizen>
844         /// This will be deprecated
845         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
846         [EditorBrowsable(EditorBrowsableState.Never)]
847         public void SetScrollSnapDuration(float time)
848         {
849             Interop.ScrollView.ScrollView_SetScrollSnapDuration(swigCPtr, time);
850             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
851         }
852
853         /// <summary>
854         /// Gets the time for the scroll flick-animation.
855         /// </summary>
856         /// <returns>The time in seconds for the animation to take.</returns>
857         /// <since_tizen> 3 </since_tizen>
858         /// This will be deprecated
859         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
860         [EditorBrowsable(EditorBrowsableState.Never)]
861         public float GetScrollFlickDuration()
862         {
863             float ret = Interop.ScrollView.ScrollView_GetScrollFlickDuration(swigCPtr);
864             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
865             return ret;
866         }
867
868         /// <summary>
869         /// Sets the time for the scroll snap-animation.
870         /// </summary>
871         /// <param name="time">The time in seconds for the animation to take.</param>
872         /// <since_tizen> 3 </since_tizen>
873         /// This will be deprecated
874         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
875         [EditorBrowsable(EditorBrowsableState.Never)]
876         public void SetScrollFlickDuration(float time)
877         {
878             Interop.ScrollView.ScrollView_SetScrollFlickDuration(swigCPtr, time);
879             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
880         }
881
882         /// <summary>
883         /// Sets scroll sensibility of pan gesture.
884         /// </summary>
885         /// <param name="sensitive">True to enable scroll, false to disable scrolling.</param>
886         /// <since_tizen> 3 </since_tizen>
887         /// This will be deprecated
888         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
889         [EditorBrowsable(EditorBrowsableState.Never)]
890         public void SetScrollSensitive(bool sensitive)
891         {
892             Interop.ScrollView.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
893             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
894         }
895
896         /// <summary>
897         /// Sets maximum overshoot amount.
898         /// </summary>
899         /// <param name="overshootX">The maximum number of horizontally scrolled pixels before overshoot X reaches 1.0f.</param>
900         /// <param name="overshootY">The maximum number of vertically scrolled pixels before overshoot X reaches 1.0f.</param>
901         /// <since_tizen> 3 </since_tizen>
902         /// This will be deprecated
903         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
904         [EditorBrowsable(EditorBrowsableState.Never)]
905         public void SetMaxOvershoot(float overshootX, float overshootY)
906         {
907             Interop.ScrollView.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
908             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
909         }
910
911         /// <summary>
912         /// Sets Snap Overshoot animation's AlphaFunction.
913         /// </summary>
914         /// <param name="alpha">Easing alpha function of the overshoot snap animation.</param>
915         /// <since_tizen> 3 </since_tizen>
916         /// This will be deprecated
917         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
918         [EditorBrowsable(EditorBrowsableState.Never)]
919         public void SetSnapOvershootAlphaFunction(AlphaFunction alpha)
920         {
921             Interop.ScrollView.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
922             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
923         }
924
925         /// <summary>
926         /// Sets Snap Overshoot animation's Duration.
927         /// </summary>
928         /// <param name="duration">duration The duration of the overshoot snap animation.</param>
929         /// <since_tizen> 3 </since_tizen>
930         /// This will be deprecated
931         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
932         [EditorBrowsable(EditorBrowsableState.Never)]
933         public void SetSnapOvershootDuration(float duration)
934         {
935             Interop.ScrollView.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
936             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
937         }
938
939         /// <summary>
940         /// Enables or Disables Actor Auto-Snap mode.<br />
941         /// When Actor Auto-Snap mode has been enabled, ScrollView will automatically,
942         /// snap to the closest actor (The closest actor will appear in the center of the ScrollView).
943         /// </summary>
944         /// <param name="enable">Enables (true), or disables (false) Actor AutoSnap.</param>
945         /// <since_tizen> 3 </since_tizen>
946         /// This will be deprecated
947         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
948         [EditorBrowsable(EditorBrowsableState.Never)]
949         public void SetViewAutoSnap(bool enable)
950         {
951             Interop.ScrollView.ScrollView_SetActorAutoSnap(swigCPtr, enable);
952             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
953         }
954
955         /// <summary>
956         /// Enables or Disables Wrap mode for ScrollView contents.<br />
957         /// When enabled, the ScrollView contents are wrapped over the X/Y Domain.
958         /// </summary>
959         /// <param name="enable">Enables (true), or disables (false) Wrap Mode.</param>
960         /// <since_tizen> 3 </since_tizen>
961         /// This will be deprecated
962         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
963         [EditorBrowsable(EditorBrowsableState.Never)]
964         public void SetWrapMode(bool enable)
965         {
966             Interop.ScrollView.ScrollView_SetWrapMode(swigCPtr, enable);
967             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
968         }
969
970         /// <summary>
971         /// Gets the current distance needed to scroll for ScrollUpdatedSignal to be emitted.
972         /// </summary>
973         /// <returns>Current scroll update distance.</returns>
974         /// <since_tizen> 3 </since_tizen>
975         /// This will be deprecated
976         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
977         [EditorBrowsable(EditorBrowsableState.Never)]
978         public int GetScrollUpdateDistance()
979         {
980             int ret = Interop.ScrollView.ScrollView_GetScrollUpdateDistance(swigCPtr);
981             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
982             return ret;
983         }
984
985         /// <summary>
986         /// Sets the distance needed to scroll for ScrollUpdatedSignal to be emitted.<br />
987         /// The scroll update distance tells ScrollView how far to move before ScrollUpdatedSignal the informs application.<br />
988         /// Each time the ScrollView crosses this distance the signal will be emitted.<br />
989         /// </summary>
990         /// <param name="distance">The distance for ScrollView to move before emitting update signal.</param>
991         /// <since_tizen> 3 </since_tizen>
992         /// This will be deprecated
993         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
994         [EditorBrowsable(EditorBrowsableState.Never)]
995         public void SetScrollUpdateDistance(int distance)
996         {
997             Interop.ScrollView.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
998             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
999         }
1000
1001         /// <summary>
1002         /// Returns state of Axis Auto Lock mode.
1003         /// </summary>
1004         /// <returns>Whether Axis Auto Lock mode has been enabled or not.</returns>
1005         /// <since_tizen> 3 </since_tizen>
1006         /// This will be deprecated
1007         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1008         [EditorBrowsable(EditorBrowsableState.Never)]
1009         public bool GetAxisAutoLock()
1010         {
1011             bool ret = Interop.ScrollView.ScrollView_GetAxisAutoLock(swigCPtr);
1012             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1013             return ret;
1014         }
1015
1016         /// <summary>
1017         /// Enables or Disables Axis Auto Lock mode for panning within the ScrollView.<br />
1018         /// When enabled, any pan gesture that appears mostly horizontal or mostly
1019         /// vertical, will be automatically restricted to horizontal only or vertical
1020         /// only panning, until the pan gesture has completed.
1021         /// </summary>
1022         /// <param name="enable">Enables (true), or disables (false) AxisAutoLock mode.</param>
1023         /// <since_tizen> 3 </since_tizen>
1024         /// This will be deprecated
1025         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1026         [EditorBrowsable(EditorBrowsableState.Never)]
1027         public void SetAxisAutoLock(bool enable)
1028         {
1029             Interop.ScrollView.ScrollView_SetAxisAutoLock(swigCPtr, enable);
1030             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1031         }
1032
1033         /// <summary>
1034         /// Gets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.
1035         /// </summary>
1036         /// <returns>The gradient, a value between 0.0 and 1.0f.</returns>
1037         /// <since_tizen> 3 </since_tizen>
1038         /// This will be deprecated
1039         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1040         [EditorBrowsable(EditorBrowsableState.Never)]
1041         public float GetAxisAutoLockGradient()
1042         {
1043             float ret = Interop.ScrollView.ScrollView_GetAxisAutoLockGradient(swigCPtr);
1044             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1045             return ret;
1046         }
1047
1048         /// <summary>
1049         /// Sets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.<br />
1050         /// 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 />
1051         /// </summary>
1052         /// <param name="gradient">gradient A value between 0.0 and 1.0 (auto-lock for all angles).</param>
1053         /// <since_tizen> 3 </since_tizen>
1054         /// This will be deprecated
1055         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1056         [EditorBrowsable(EditorBrowsableState.Never)]
1057         public void SetAxisAutoLockGradient(float gradient)
1058         {
1059             Interop.ScrollView.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
1060             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1061         }
1062
1063         /// <summary>
1064         /// Gets the friction coefficient setting for ScrollView when flicking in free panning mode.
1065         /// This is a value in stage-diagonals per second^2, stage-diagonal = Length( stage.width, stage.height )
1066         /// </summary>
1067         /// <returns>Friction coefficient is returned.</returns>
1068         /// <since_tizen> 3 </since_tizen>
1069         /// This will be deprecated
1070         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1071         [EditorBrowsable(EditorBrowsableState.Never)]
1072         public float GetFrictionCoefficient()
1073         {
1074             float ret = Interop.ScrollView.ScrollView_GetFrictionCoefficient(swigCPtr);
1075             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1076             return ret;
1077         }
1078
1079         /// <summary>
1080         /// Sets the friction coefficient for ScrollView when flicking.<br />
1081         /// </summary>
1082         /// <param name="friction">Friction coefficient must be greater than 0.0 (default = 1.0).</param>
1083         /// <since_tizen> 3 </since_tizen>
1084         /// This will be deprecated
1085         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1086         [EditorBrowsable(EditorBrowsableState.Never)]
1087         public void SetFrictionCoefficient(float friction)
1088         {
1089             Interop.ScrollView.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
1090             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1091         }
1092
1093         /// <summary>
1094         /// Gets the flick speed coefficient for ScrollView when flicking in free panning mode.<br />
1095         /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at which to move the scrolling area.
1096         /// </summary>
1097         /// <returns>The flick speed coefficient is returned.</returns>
1098         /// <since_tizen> 3 </since_tizen>
1099         /// This will be deprecated
1100         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1101         [EditorBrowsable(EditorBrowsableState.Never)]
1102         public float GetFlickSpeedCoefficient()
1103         {
1104             float ret = Interop.ScrollView.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
1105             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1106             return ret;
1107         }
1108
1109         /// <summary>
1110         /// Sets the flick speed coefficient for ScrollView when flicking in free panning mode.<br />
1111         /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at
1112         /// which to move the scrolling area.<br />
1113         /// </summary>
1114         /// <param name="speed">The flick speed coefficient (default = 1.0).</param>
1115         /// <since_tizen> 3 </since_tizen>
1116         /// This will be deprecated
1117         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1118         [EditorBrowsable(EditorBrowsableState.Never)]
1119         public void SetFlickSpeedCoefficient(float speed)
1120         {
1121             Interop.ScrollView.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
1122             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1123         }
1124
1125         /// <summary>
1126         /// Gets the minimum pan distance required for a flick gesture in pixels.<br />
1127         /// </summary>
1128         /// <returns>Minimum pan distance vector with separate x and y distance.</returns>
1129         /// <since_tizen> 3 </since_tizen>
1130         /// This will be deprecated
1131         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1132         [EditorBrowsable(EditorBrowsableState.Never)]
1133         public Vector2 GetMinimumDistanceForFlick()
1134         {
1135             Vector2 ret = new Vector2(Interop.ScrollView.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
1136             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1137             return ret;
1138         }
1139
1140         /// <summary>
1141         /// Sets the minimum pan distance required for a flick in pixels.<br />
1142         /// 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.
1143         /// </summary>
1144         /// <param name="distance">The flick speed coefficient (default = 1.0).</param>
1145         /// <since_tizen> 3 </since_tizen>
1146         /// This will be deprecated
1147         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1148         [EditorBrowsable(EditorBrowsableState.Never)]
1149         public void SetMinimumDistanceForFlick(Vector2 distance)
1150         {
1151             Interop.ScrollView.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
1152             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1153         }
1154
1155         /// <summary>
1156         /// Returns the minimum pan speed required for a flick gesture in pixels per second.
1157         /// </summary>
1158         /// <returns>Minimum pan speed.</returns>
1159         /// <since_tizen> 3 </since_tizen>
1160         /// This will be deprecated
1161         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1162         [EditorBrowsable(EditorBrowsableState.Never)]
1163         public float GetMinimumSpeedForFlick()
1164         {
1165             float ret = Interop.ScrollView.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
1166             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1167             return ret;
1168         }
1169
1170         /// <summary>
1171         /// Sets the minimum pan speed required for a flick in pixels per second.<br />
1172         /// </summary>
1173         /// <param name="speed">The minimum pan speed for a flick.</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 SetMinimumSpeedForFlick(float speed)
1179         {
1180             Interop.ScrollView.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
1181             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1182         }
1183
1184         /// <summary>
1185         /// Gets the maximum flick speed setting for ScrollView when flicking in free panning mode.<br />
1186         /// This is a value in stage-diagonals per second.
1187         /// </summary>
1188         /// <returns>Maximum flick speed is returned.</returns>
1189         /// <since_tizen> 3 </since_tizen>
1190         /// This will be deprecated
1191         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1192         [EditorBrowsable(EditorBrowsableState.Never)]
1193         public float GetMaxFlickSpeed()
1194         {
1195             float ret = Interop.ScrollView.ScrollView_GetMaxFlickSpeed(swigCPtr);
1196             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1197             return ret;
1198         }
1199
1200         /// <summary>
1201         /// Sets the maximum flick speed for the ScrollView when flicking in free panning mode.<br />
1202         /// This is a value in stage-diagonals per second. stage-diagonal = Length( stage.width, stage.height ).<br />
1203         /// </summary>
1204         /// <param name="speed">Maximum flick speed (default = 3.0).</param>
1205         /// <since_tizen> 3 </since_tizen>
1206         /// This will be deprecated
1207         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1208         [EditorBrowsable(EditorBrowsableState.Never)]
1209         public void SetMaxFlickSpeed(float speed)
1210         {
1211             Interop.ScrollView.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
1212             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1213         }
1214
1215         /// <summary>
1216         /// Gets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.<br />
1217         /// </summary>
1218         /// <returns>The step of scroll distance(pixel) in X and Y axes.</returns>
1219         /// <since_tizen> 3 </since_tizen>
1220         /// This will be deprecated
1221         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1222         [EditorBrowsable(EditorBrowsableState.Never)]
1223         public Vector2 GetWheelScrollDistanceStep()
1224         {
1225             Vector2 ret = new Vector2(Interop.ScrollView.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
1226             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1227             return ret;
1228         }
1229
1230         /// <summary>
1231         /// Sets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.<br />
1232         /// </summary>
1233         /// <param name="step">step The step of scroll distance(pixel) in X and Y axes.</param>
1234         /// <since_tizen> 3 </since_tizen>
1235         /// This will be deprecated
1236         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1237         [EditorBrowsable(EditorBrowsableState.Never)]
1238         public void SetWheelScrollDistanceStep(Vector2 step)
1239         {
1240             Interop.ScrollView.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
1241             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1242         }
1243
1244         /// <summary>
1245         /// Retrieves current scroll position.<br />
1246         /// </summary>
1247         /// <returns>The current scroll position.</returns>
1248         /// <since_tizen> 3 </since_tizen>
1249         /// This will be deprecated
1250         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1251         [EditorBrowsable(EditorBrowsableState.Never)]
1252         public Vector2 GetCurrentScrollPosition()
1253         {
1254             Vector2 ret = new Vector2(Interop.ScrollView.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
1255             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1256             return ret;
1257         }
1258
1259         /// <summary>
1260         /// Retrieves current scroll page based on ScrollView dimensions being the size of one page, and all pages laid out in<br />
1261         /// a grid fashion, increasing from left to right until the end of the X-domain.
1262         /// </summary>
1263         /// <returns>The current scroll position.</returns>
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 uint GetCurrentPage()
1269         {
1270             uint ret = Interop.ScrollView.ScrollView_GetCurrentPage(swigCPtr);
1271             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1272             return ret;
1273         }
1274
1275         /// <summary>
1276         /// Scrolls View to position specified (contents will scroll to this position).
1277         /// </summary>
1278         /// <param name="position">The position to scroll to.</param>
1279         /// <since_tizen> 3 </since_tizen>
1280         /// This will be deprecated
1281         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1282         [EditorBrowsable(EditorBrowsableState.Never)]
1283         public void ScrollTo(Vector2 position)
1284         {
1285             Interop.ScrollView.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
1286             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1287         }
1288
1289         /// <summary>
1290         /// Scrolls View to position specified (contents will scroll to this position).
1291         /// </summary>
1292         /// <param name="position">The position to scroll to.</param>
1293         /// <param name="duration">The duration of the animation in seconds.</param>
1294         /// <since_tizen> 3 </since_tizen>
1295         /// This will be deprecated
1296         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1297         [EditorBrowsable(EditorBrowsableState.Never)]
1298         public void ScrollTo(Vector2 position, float duration)
1299         {
1300             Interop.ScrollView.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
1301             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1302         }
1303
1304         /// <summary>
1305         /// Scrolls View to position specified (contents will scroll to this position).
1306         /// </summary>
1307         /// <param name="position">The position to scroll to.</param>
1308         /// <param name="duration">The duration of the animation in seconds.</param>
1309         /// <param name="alpha">The alpha function to use.</param>
1310         /// <since_tizen> 3 </since_tizen>
1311         /// This will be deprecated
1312         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1313         [EditorBrowsable(EditorBrowsableState.Never)]
1314         public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha)
1315         {
1316             Interop.ScrollView.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
1317             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1318         }
1319
1320         /// <summary>
1321         /// Scrolls View to position specified (contents will scroll to this position).
1322         /// </summary>
1323         /// <param name="position">The position to scroll to.</param>
1324         /// <param name="duration">The duration of the animation in seconds.</param>
1325         /// <param name="horizontalBias">Whether to bias scrolling to left or right.</param>
1326         /// <param name="verticalBias">Whether to bias scrolling to top or bottom.</param>
1327         /// <since_tizen> 3 </since_tizen>
1328         /// This will be deprecated
1329         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1330         [EditorBrowsable(EditorBrowsableState.Never)]
1331         public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias)
1332         {
1333             Interop.ScrollView.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
1334             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1335         }
1336
1337         /// <summary>
1338         /// Scrolls View to position specified (contents will scroll to this position).
1339         /// </summary>
1340         /// <param name="position">The position to scroll to.</param>
1341         /// <param name="duration">The duration of the animation in seconds.</param>
1342         /// <param name="alpha">Alpha function to use.</param>
1343         /// <param name="horizontalBias">Whether to bias scrolling to left or right.</param>
1344         /// <param name="verticalBias">Whether to bias scrolling to top or bottom.</param>
1345         /// <since_tizen> 3 </since_tizen>
1346         /// This will be deprecated
1347         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1348         [EditorBrowsable(EditorBrowsableState.Never)]
1349         public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias)
1350         {
1351             Interop.ScrollView.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
1352             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1353         }
1354
1355         /// <summary>
1356         /// Scrolls View to position specified (contents will scroll to this position).
1357         /// </summary>
1358         /// <param name="page">The page to scroll to.</param>
1359         /// <since_tizen> 3 </since_tizen>
1360         /// This will be deprecated
1361         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1362         [EditorBrowsable(EditorBrowsableState.Never)]
1363         public void ScrollTo(uint page)
1364         {
1365             Interop.ScrollView.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
1366             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1367         }
1368
1369         /// <summary>
1370         /// Scrolls View to position specified (contents will scroll to this position).
1371         /// </summary>
1372         /// <param name="page">The page to scroll to.</param>
1373         /// <param name="duration">The duration of the animation in seconds.</param>
1374         /// <since_tizen> 3 </since_tizen>
1375         /// This will be deprecated
1376         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1377         [EditorBrowsable(EditorBrowsableState.Never)]
1378         public void ScrollTo(uint page, float duration)
1379         {
1380             Interop.ScrollView.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
1381             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1382         }
1383
1384         /// <summary>
1385         /// Scrolls View to position specified (contents will scroll to this position).
1386         /// </summary>
1387         /// <param name="page">The page to scroll to.</param>
1388         /// <param name="duration">The duration of the animation in seconds.</param>
1389         /// <param name="bias">Whether to bias scrolling to left or right.</param>
1390         /// <since_tizen> 3 </since_tizen>
1391         /// This will be deprecated
1392         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1393         [EditorBrowsable(EditorBrowsableState.Never)]
1394         public void ScrollTo(uint page, float duration, DirectionBias bias)
1395         {
1396             Interop.ScrollView.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
1397             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1398         }
1399
1400         /// <summary>
1401         /// Scrolls View to position specified (contents will scroll to this position).
1402         /// </summary>
1403         /// <param name="view">The view to center in on (via Scrolling).</param>
1404         /// <since_tizen> 3 </since_tizen>
1405         /// This will be deprecated
1406         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1407         [EditorBrowsable(EditorBrowsableState.Never)]
1408         public void ScrollTo(View view)
1409         {
1410             Interop.ScrollView.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
1411             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1412         }
1413
1414         /// <summary>
1415         /// Scrolls View to position specified (contents will scroll to this position).
1416         /// </summary>
1417         /// <param name="view">The view to center in on (via Scrolling).</param>
1418         /// <param name="duration">The duration of the animation in seconds.</param>
1419         /// <since_tizen> 3 </since_tizen>
1420         /// This will be deprecated
1421         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1422         [EditorBrowsable(EditorBrowsableState.Never)]
1423         public void ScrollTo(View view, float duration)
1424         {
1425             Interop.ScrollView.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
1426             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1427         }
1428
1429         /// <summary>
1430         /// Scrolls View to the nearest snap points as specified by the Rulers.<br />
1431         /// If already at snap points, then will return false, and not scroll.<br />
1432         /// </summary>
1433         /// <returns>True if Snapping necessary.</returns>
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 bool ScrollToSnapPoint()
1439         {
1440             bool ret = Interop.ScrollView.ScrollView_ScrollToSnapPoint(swigCPtr);
1441             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1442             return ret;
1443         }
1444
1445         /// <summary>
1446         /// Applies Effect to ScrollView.
1447         /// </summary>
1448         /// <param name="effect">The effect to apply to scroll view.</param>
1449         /// <since_tizen> 3 </since_tizen>
1450         /// This will be deprecated
1451         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1452         [EditorBrowsable(EditorBrowsableState.Never)]
1453         public void ApplyEffect(ScrollViewEffect effect)
1454         {
1455             Interop.ScrollView.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
1456             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1457         }
1458
1459         /// <summary>
1460         /// Removes Effect from ScrollView.
1461         /// </summary>
1462         /// <param name="effect">The effect to remove.</param>
1463         /// <since_tizen> 3 </since_tizen>
1464         /// This will be deprecated
1465         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1466         [EditorBrowsable(EditorBrowsableState.Never)]
1467         public void RemoveEffect(ScrollViewEffect effect)
1468         {
1469             Interop.ScrollView.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
1470             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1471         }
1472
1473         /// <summary>
1474         /// Remove All Effects from ScrollView.
1475         /// </summary>
1476         /// <since_tizen> 3 </since_tizen>
1477         /// This will be deprecated
1478         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1479         [EditorBrowsable(EditorBrowsableState.Never)]
1480         public void RemoveAllEffects()
1481         {
1482             Interop.ScrollView.ScrollView_RemoveAllEffects(swigCPtr);
1483             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1484         }
1485
1486         /// <summary>
1487         /// Binds view to this ScrollView.
1488         /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
1489         /// </summary>
1490         /// <param name="child">The view to add to this ScrollView.</param>
1491         /// <since_tizen> 3 </since_tizen>
1492         /// This will be deprecated
1493         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1494         [EditorBrowsable(EditorBrowsableState.Never)]
1495         public void BindView(View child)
1496         {
1497             Interop.ScrollView.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
1498             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1499         }
1500
1501         /// <summary>
1502         /// Unbinds view to this ScrollView.
1503         /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
1504         /// </summary>
1505         /// <param name="child">The view to remove to this ScrollView.</param>
1506         /// <since_tizen> 3 </since_tizen>
1507         /// This will be deprecated
1508         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1509         [EditorBrowsable(EditorBrowsableState.Never)]
1510         public void UnbindView(View child)
1511         {
1512             Interop.ScrollView.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
1513             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1514         }
1515
1516         /// <summary>
1517         /// Allows the user to constrain the scroll view in a particular direction.
1518         /// </summary>
1519         /// <param name="direction">The axis to constrain the scroll-view to.</param>
1520         /// <param name="threshold">The threshold to apply around the axis.</param>
1521         /// <since_tizen> 3 </since_tizen>
1522         /// This will be deprecated
1523         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1524         [EditorBrowsable(EditorBrowsableState.Never)]
1525         public void SetScrollingDirection(Radian direction, Radian threshold)
1526         {
1527             Interop.ScrollView.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
1528             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1529         }
1530
1531         /// <summary>
1532         /// Allows the user to constrain the scroll view in a particular direction.
1533         /// </summary>
1534         /// <param name="direction">The axis to constrain the scroll-view to.</param>
1535         /// <since_tizen> 3 </since_tizen>
1536         /// This will be deprecated
1537         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1538         [EditorBrowsable(EditorBrowsableState.Never)]
1539         public void SetScrollingDirection(Radian direction)
1540         {
1541             Interop.ScrollView.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
1542             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1543         }
1544
1545         /// <summary>
1546         /// Removes a direction constraint from the scroll view.
1547         /// </summary>
1548         /// <param name="direction">The axis to constrain the scroll-view to.</param>
1549         /// <since_tizen> 3 </since_tizen>
1550         /// This will be deprecated
1551         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1552         [EditorBrowsable(EditorBrowsableState.Never)]
1553         public void RemoveScrollingDirection(Radian direction)
1554         {
1555             Interop.ScrollView.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
1556             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1557         }
1558
1559         /// <summary>
1560         /// Set ruler X
1561         /// </summary>
1562         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
1563         [EditorBrowsable(EditorBrowsableState.Never)]
1564         public void SetRulerX(RulerPtr ruler)
1565         {
1566             Interop.ScrollView.ScrollView_SetRulerX(swigCPtr, RulerPtr.getCPtr(ruler));
1567         }
1568
1569         /// <summary>
1570         /// Set ruler Y
1571         /// </summary>
1572         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
1573         [EditorBrowsable(EditorBrowsableState.Never)]
1574         public void SetRulerY(RulerPtr ruler)
1575         {
1576             Interop.ScrollView.ScrollView_SetRulerY(swigCPtr, RulerPtr.getCPtr(ruler));
1577         }
1578
1579         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ScrollView obj)
1580         {
1581             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1582         }
1583
1584         internal void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint)
1585         {
1586             Interop.ScrollView.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
1587             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1588         }
1589
1590         internal ScrollViewSnapStartedSignal SnapStartedSignal()
1591         {
1592             ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(Interop.ScrollView.ScrollView_SnapStartedSignal(swigCPtr), false);
1593             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1594             return ret;
1595         }
1596
1597         /// <summary>
1598         /// Dispose
1599         /// </summary>
1600         /// <param name="type">the dispose type</param>
1601         /// <since_tizen> 3 </since_tizen>
1602         /// This will be deprecated
1603         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1604         [EditorBrowsable(EditorBrowsableState.Never)]
1605         protected override void Dispose(DisposeTypes type)
1606         {
1607             if (disposed)
1608             {
1609                 return;
1610             }
1611
1612             //Release your own unmanaged resources here.
1613             //You should not access any managed member here except static instance.
1614             //because the execution order of Finalizes is non-deterministic.
1615
1616             if (this != null && _scrollViewSnapStartedCallbackDelegate != null)
1617             {
1618                 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
1619             }
1620
1621             if (swigCPtr.Handle != global::System.IntPtr.Zero)
1622             {
1623                 if (swigCMemOwn)
1624                 {
1625                     swigCMemOwn = false;
1626                     Interop.ScrollView.delete_ScrollView(swigCPtr);
1627                 }
1628                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1629             }
1630
1631             base.Dispose(type);
1632         }
1633
1634         // Callback for ScrollView SnapStarted signal
1635         private void OnSnapStarted(IntPtr data)
1636         {
1637             SnapStartedEventArgs e = new SnapStartedEventArgs();
1638
1639             // Populate all members of "e" (SnapStartedEventArgs) with real data
1640             e.SnapEventInfo = SnapEvent.GetSnapEventFromPtr(data);
1641
1642             if (_scrollViewSnapStartedEventHandler != null)
1643             {
1644                 //here we send all data to user event handlers
1645                 _scrollViewSnapStartedEventHandler(this, e);
1646             }
1647         }
1648
1649         /// <summary>
1650         /// This should be internal, please do not use.
1651         /// </summary>
1652         /// <since_tizen> 3 </since_tizen>
1653         /// This will be deprecated
1654         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1655         [EditorBrowsable(EditorBrowsableState.Never)]
1656         public new class Property
1657         {
1658             /// <summary>
1659             /// This should be internal, please do not use.
1660             /// </summary>
1661             /// <since_tizen> 3 </since_tizen>
1662             /// This will be deprecated
1663             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1664             [EditorBrowsable(EditorBrowsableState.Never)]
1665             public static readonly int WRAP_ENABLED = Interop.ScrollView.ScrollView_Property_WRAP_ENABLED_get();
1666             /// <summary>
1667             /// This should be internal, please do not use.
1668             /// </summary>
1669             /// <since_tizen> 3 </since_tizen>
1670             /// This will be deprecated
1671             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1672             [EditorBrowsable(EditorBrowsableState.Never)]
1673             public static readonly int PANNING_ENABLED = Interop.ScrollView.ScrollView_Property_PANNING_ENABLED_get();
1674             /// <summary>
1675             /// This should be internal, please do not use.
1676             /// </summary>
1677             /// <since_tizen> 3 </since_tizen>
1678             /// This will be deprecated
1679             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1680             [EditorBrowsable(EditorBrowsableState.Never)]
1681             public static readonly int AXIS_AUTO_LOCK_ENABLED = Interop.ScrollView.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get();
1682             /// <summary>
1683             /// This should be internal, please do not use.
1684             /// </summary>
1685             /// <since_tizen> 3 </since_tizen>
1686             /// This will be deprecated
1687             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1688             [EditorBrowsable(EditorBrowsableState.Never)]
1689             public static readonly int WHEEL_SCROLL_DISTANCE_STEP = Interop.ScrollView.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
1690             /// <summary>
1691             /// This should be internal, please do not use.
1692             /// </summary>
1693             /// <since_tizen> 3 </since_tizen>
1694             /// This will be deprecated
1695             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1696             [EditorBrowsable(EditorBrowsableState.Never)]
1697             public static readonly int SCROLL_MODE = Interop.ScrollView.ScrollView_Property_SCROLL_MODE_get();
1698             /// <summary>
1699             /// This should be internal, please do not use.
1700             /// </summary>
1701             /// <since_tizen> 3 </since_tizen>
1702             /// This will be deprecated
1703             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1704             [EditorBrowsable(EditorBrowsableState.Never)]
1705             public static readonly int SCROLL_POSITION = Interop.ScrollView.ScrollView_Property_SCROLL_POSITION_get();
1706             /// <summary>
1707             /// This should be internal, please do not use.
1708             /// </summary>
1709             /// <since_tizen> 3 </since_tizen>
1710             /// This will be deprecated
1711             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1712             [EditorBrowsable(EditorBrowsableState.Never)]
1713             public static readonly int SCROLL_PRE_POSITION = Interop.ScrollView.ScrollView_Property_SCROLL_PRE_POSITION_get();
1714             /// <summary>
1715             /// This should be internal, please do not use.
1716             /// </summary>
1717             /// <since_tizen> 3 </since_tizen>
1718             /// This will be deprecated
1719             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1720             [EditorBrowsable(EditorBrowsableState.Never)]
1721             public static readonly int SCROLL_PRE_POSITION_X = Interop.ScrollView.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
1722             /// <summary>
1723             /// This should be internal, please do not use.
1724             /// </summary>
1725             /// <since_tizen> 3 </since_tizen>
1726             /// This will be deprecated
1727             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1728             [EditorBrowsable(EditorBrowsableState.Never)]
1729             public static readonly int SCROLL_PRE_POSITION_Y = Interop.ScrollView.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
1730             /// <summary>
1731             /// This should be internal, please do not use.
1732             /// </summary>
1733             /// <since_tizen> 3 </since_tizen>
1734             /// This will be deprecated
1735             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1736             [EditorBrowsable(EditorBrowsableState.Never)]
1737             public static readonly int SCROLL_PRE_POSITION_MAX = Interop.ScrollView.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
1738             /// <summary>
1739             /// This should be internal, please do not use.
1740             /// </summary>
1741             /// <since_tizen> 3 </since_tizen>
1742             /// This will be deprecated
1743             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1744             [EditorBrowsable(EditorBrowsableState.Never)]
1745             public static readonly int SCROLL_PRE_POSITION_MAX_X = Interop.ScrollView.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
1746             /// <summary>
1747             /// This should be internal, please do not use.
1748             /// </summary>
1749             /// <since_tizen> 3 </since_tizen>
1750             /// This will be deprecated
1751             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1752             [EditorBrowsable(EditorBrowsableState.Never)]
1753             public static readonly int SCROLL_PRE_POSITION_MAX_Y = Interop.ScrollView.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
1754             /// <summary>
1755             /// This should be internal, please do not use.
1756             /// </summary>
1757             /// <since_tizen> 3 </since_tizen>
1758             /// This will be deprecated
1759             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1760             [EditorBrowsable(EditorBrowsableState.Never)]
1761             public static readonly int OVERSHOOT_X = Interop.ScrollView.ScrollView_Property_OVERSHOOT_X_get();
1762             /// <summary>
1763             /// This should be internal, please do not use.
1764             /// </summary>
1765             /// <since_tizen> 3 </since_tizen>
1766             /// This will be deprecated
1767             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1768             [EditorBrowsable(EditorBrowsableState.Never)]
1769             public static readonly int OVERSHOOT_Y = Interop.ScrollView.ScrollView_Property_OVERSHOOT_Y_get();
1770             /// <summary>
1771             /// This should be internal, please do not use.
1772             /// </summary>
1773             /// <since_tizen> 3 </since_tizen>
1774             /// This will be deprecated
1775             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1776             [EditorBrowsable(EditorBrowsableState.Never)]
1777             public static readonly int SCROLL_FINAL = Interop.ScrollView.ScrollView_Property_SCROLL_FINAL_get();
1778             /// <summary>
1779             /// This should be internal, please do not use.
1780             /// </summary>
1781             /// <since_tizen> 3 </since_tizen>
1782             /// This will be deprecated
1783             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1784             [EditorBrowsable(EditorBrowsableState.Never)]
1785             public static readonly int SCROLL_FINAL_X = Interop.ScrollView.ScrollView_Property_SCROLL_FINAL_X_get();
1786             /// <summary>
1787             /// This should be internal, please do not use.
1788             /// </summary>
1789             /// <since_tizen> 3 </since_tizen>
1790             /// This will be deprecated
1791             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1792             [EditorBrowsable(EditorBrowsableState.Never)]
1793             public static readonly int SCROLL_FINAL_Y = Interop.ScrollView.ScrollView_Property_SCROLL_FINAL_Y_get();
1794             /// <summary>
1795             /// This should be internal, please do not use.
1796             /// </summary>
1797             /// <since_tizen> 3 </since_tizen>
1798             /// This will be deprecated
1799             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1800             [EditorBrowsable(EditorBrowsableState.Never)]
1801             public static readonly int WRAP = Interop.ScrollView.ScrollView_Property_WRAP_get();
1802             /// <summary>
1803             /// This should be internal, please do not use.
1804             /// </summary>
1805             /// <since_tizen> 3 </since_tizen>
1806             /// This will be deprecated
1807             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1808             [EditorBrowsable(EditorBrowsableState.Never)]
1809             public static readonly int PANNING = Interop.ScrollView.ScrollView_Property_PANNING_get();
1810             /// <summary>
1811             /// This should be internal, please do not use.
1812             /// </summary>
1813             /// <since_tizen> 3 </since_tizen>
1814             /// This will be deprecated
1815             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1816             [EditorBrowsable(EditorBrowsableState.Never)]
1817             public static readonly int SCROLLING = Interop.ScrollView.ScrollView_Property_SCROLLING_get();
1818             /// <summary>
1819             /// This should be internal, please do not use.
1820             /// </summary>
1821             /// <since_tizen> 3 </since_tizen>
1822             /// This will be deprecated
1823             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1824             [EditorBrowsable(EditorBrowsableState.Never)]
1825             public static readonly int SCROLL_DOMAIN_SIZE = Interop.ScrollView.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
1826             /// <summary>
1827             /// This should be internal, please do not use.
1828             /// </summary>
1829             /// <since_tizen> 3 </since_tizen>
1830             /// This will be deprecated
1831             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1832             [EditorBrowsable(EditorBrowsableState.Never)]
1833             public static readonly int SCROLL_DOMAIN_SIZE_X = Interop.ScrollView.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
1834             /// <summary>
1835             /// This should be internal, please do not use.
1836             /// </summary>
1837             /// <since_tizen> 3 </since_tizen>
1838             /// This will be deprecated
1839             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1840             [EditorBrowsable(EditorBrowsableState.Never)]
1841             public static readonly int SCROLL_DOMAIN_SIZE_Y = Interop.ScrollView.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
1842             /// <summary>
1843             /// This should be internal, please do not use.
1844             /// </summary>
1845             /// <since_tizen> 3 </since_tizen>
1846             /// This will be deprecated
1847             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1848             [EditorBrowsable(EditorBrowsableState.Never)]
1849             public static readonly int SCROLL_DOMAIN_OFFSET = Interop.ScrollView.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
1850             /// <summary>
1851             /// This should be internal, please do not use.
1852             /// </summary>
1853             /// <since_tizen> 3 </since_tizen>
1854             /// This will be deprecated
1855             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1856             [EditorBrowsable(EditorBrowsableState.Never)]
1857             public static readonly int SCROLL_POSITION_DELTA = Interop.ScrollView.ScrollView_Property_SCROLL_POSITION_DELTA_get();
1858             /// <summary>
1859             /// This should be internal, please do not use.
1860             /// </summary>
1861             /// <since_tizen> 3 </since_tizen>
1862             /// This will be deprecated
1863             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1864             [EditorBrowsable(EditorBrowsableState.Never)]
1865             public static readonly int START_PAGE_POSITION = Interop.ScrollView.ScrollView_Property_START_PAGE_POSITION_get();
1866         }
1867
1868         /// <summary>
1869         /// Snaps signal event's data.
1870         /// </summary>
1871         /// <since_tizen> 3 </since_tizen>
1872         /// This will be deprecated
1873         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1874         [EditorBrowsable(EditorBrowsableState.Never)]
1875         public class SnapEvent : global::System.IDisposable
1876         {
1877             /// <summary>
1878             /// swigCMemOwn
1879             /// </summary>
1880             /// <since_tizen> 3 </since_tizen>
1881             /// This will be deprecated
1882             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1883             [EditorBrowsable(EditorBrowsableState.Never)]
1884             protected bool swigCMemOwn;
1885
1886             /// <summary>
1887             /// A Flat to check if it is already disposed.
1888             /// </summary>
1889             /// swigCMemOwn
1890             /// <since_tizen> 3 </since_tizen>
1891             /// This will be deprecated
1892             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1893             [EditorBrowsable(EditorBrowsableState.Never)]
1894             protected bool disposed = false;
1895
1896             private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1897
1898             //A Flag to check who called Dispose(). (By User or DisposeQueue)
1899             private bool isDisposeQueued = false;
1900
1901             /// <summary>
1902             /// Create an instance of SnapEvent.
1903             /// </summary>
1904             /// <since_tizen> 3 </since_tizen>
1905             /// This will be deprecated
1906             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1907             [EditorBrowsable(EditorBrowsableState.Never)]
1908             public SnapEvent() : this(Interop.ScrollView.new_ScrollView_SnapEvent(), true)
1909             {
1910                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1911             }
1912
1913             internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn)
1914             {
1915                 swigCMemOwn = cMemoryOwn;
1916                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1917             }
1918
1919             /// <summary>
1920             /// Dispose
1921             /// </summary>
1922             /// <since_tizen> 3 </since_tizen>
1923             ~SnapEvent()
1924             {
1925                 if (!isDisposeQueued)
1926                 {
1927                     isDisposeQueued = true;
1928                     DisposeQueue.Instance.Add(this);
1929                 }
1930             }
1931
1932             /// <summary>
1933             /// Scroll position.
1934             /// </summary>
1935             /// <since_tizen> 3 </since_tizen>
1936             /// This will be deprecated
1937             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1938             [EditorBrowsable(EditorBrowsableState.Never)]
1939             public Vector2 position
1940             {
1941                 set
1942                 {
1943                     Interop.ScrollView.ScrollView_SnapEvent_position_set(swigCPtr, Vector2.getCPtr(value));
1944                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1945                 }
1946                 get
1947                 {
1948                     global::System.IntPtr cPtr = Interop.ScrollView.ScrollView_SnapEvent_position_get(swigCPtr);
1949                     Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
1950                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1951                     return ret;
1952                 }
1953             }
1954
1955             /// <summary>
1956             /// Scroll duration.
1957             /// </summary>
1958             /// <since_tizen> 3 </since_tizen>
1959             /// This will be deprecated
1960             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1961             [EditorBrowsable(EditorBrowsableState.Never)]
1962             public float duration
1963             {
1964                 set
1965                 {
1966                     Interop.ScrollView.ScrollView_SnapEvent_duration_set(swigCPtr, value);
1967                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1968                 }
1969                 get
1970                 {
1971                     float ret = Interop.ScrollView.ScrollView_SnapEvent_duration_get(swigCPtr);
1972                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1973                     return ret;
1974                 }
1975             }
1976
1977             internal SnapType type
1978             {
1979                 set
1980                 {
1981                     Interop.ScrollView.ScrollView_SnapEvent_type_set(swigCPtr, (int)value);
1982                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1983                 }
1984                 get
1985                 {
1986                     SnapType ret = (SnapType)Interop.ScrollView.ScrollView_SnapEvent_type_get(swigCPtr);
1987                     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1988                     return ret;
1989                 }
1990             }
1991
1992             /// <summary>
1993             /// Get SnapEvent From Ptr
1994             /// </summary>
1995             /// <since_tizen> 3 </since_tizen>
1996             /// This will be deprecated
1997             [Obsolete("Deprecated in API6, Will be removed in API9, " + 
1998                 "Please use SnapStarted event instead!" +
1999                 "IntPtr(native integer pointer) is supposed to be not used in Application!")]
2000             [EditorBrowsable(EditorBrowsableState.Never)]
2001             public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr)
2002             {
2003                 SnapEvent ret = new SnapEvent(cPtr, false);
2004                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2005                 return ret;
2006             }
2007
2008             /// <summary>
2009             /// Dispose.
2010             /// </summary>
2011             /// <since_tizen> 3 </since_tizen>
2012             /// This will be deprecated
2013             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
2014             [EditorBrowsable(EditorBrowsableState.Never)]
2015             public void Dispose()
2016             {
2017                 //Throw excpetion if Dispose() is called in separate thread.
2018                 if (!Window.IsInstalled())
2019                 {
2020                     throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
2021                 }
2022
2023                 if (isDisposeQueued)
2024                 {
2025                     Dispose(DisposeTypes.Implicit);
2026                 }
2027                 else
2028                 {
2029                     Dispose(DisposeTypes.Explicit);
2030                     System.GC.SuppressFinalize(this);
2031                 }
2032             }
2033
2034             internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj)
2035             {
2036                 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
2037             }
2038
2039             /// <summary>
2040             /// Dispose
2041             /// </summary>
2042             /// <param name="type">the dispose type</param>
2043             /// <since_tizen> 3 </since_tizen>
2044             /// This will be deprecated
2045             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
2046             [EditorBrowsable(EditorBrowsableState.Never)]
2047             protected virtual void Dispose(DisposeTypes type)
2048             {
2049                 if (disposed)
2050                 {
2051                     return;
2052                 }
2053
2054                 if (type == DisposeTypes.Explicit)
2055                 {
2056                     //Called by User
2057                     //Release your own managed resources here.
2058                     //You should release all of your own disposable objects here.
2059
2060                 }
2061
2062                 //Release your own unmanaged resources here.
2063                 //You should not access any managed member here except static instance.
2064                 //because the execution order of Finalizes is non-deterministic.
2065
2066                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
2067                 {
2068                     if (swigCMemOwn)
2069                     {
2070                         swigCMemOwn = false;
2071                         Interop.ScrollView.delete_ScrollView_SnapEvent(swigCPtr);
2072                     }
2073                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
2074                 }
2075
2076                 disposed = true;
2077             }
2078
2079         }
2080         /// <summary>
2081         /// Event arguments that passed via the SnapStarted signal.
2082         /// </summary>
2083         /// <since_tizen> 3 </since_tizen>
2084         /// This will be deprecated
2085         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
2086         [EditorBrowsable(EditorBrowsableState.Never)]
2087         public class SnapStartedEventArgs : EventArgs
2088         {
2089             private Tizen.NUI.ScrollView.SnapEvent _snapEvent;
2090
2091             /// <summary>
2092             /// SnapEventInfo is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick).
2093             /// </summary>
2094             /// <since_tizen> 3 </since_tizen>
2095             /// This will be deprecated
2096             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
2097             [EditorBrowsable(EditorBrowsableState.Never)]
2098             public Tizen.NUI.ScrollView.SnapEvent SnapEventInfo
2099             {
2100                 get
2101                 {
2102                     return _snapEvent;
2103                 }
2104                 set
2105                 {
2106                     _snapEvent = value;
2107                 }
2108             }
2109         }
2110     }
2111 }
2112