2 * Copyright(c) 2018 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 using System.ComponentModel;
19 using System.Runtime.InteropServices;
20 using Tizen.NUI.BaseComponents;
21 using Tizen.NUI.Binding;
26 /// ScrollView contains views that can be scrolled manually (via touch).
28 /// <since_tizen> 3 </since_tizen>
29 [EditorBrowsable(EditorBrowsableState.Never)]
30 public class ScrollView : Scrollable
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) =>
37 var scrollView = (ScrollView)bindable;
40 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.WRAP_ENABLED, new Tizen.NUI.PropertyValue((bool)newValue));
43 defaultValueCreator: (bindable) =>
45 var scrollView = (ScrollView)bindable;
47 Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.WRAP_ENABLED).Get(out temp);
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) =>
55 var scrollView = (ScrollView)bindable;
58 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.PANNING_ENABLED, new Tizen.NUI.PropertyValue((bool)newValue));
61 defaultValueCreator: (bindable) =>
63 var scrollView = (ScrollView)bindable;
65 Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.PANNING_ENABLED).Get(out temp);
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) =>
73 var scrollView = (ScrollView)bindable;
76 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Tizen.NUI.PropertyValue((bool)newValue));
79 defaultValueCreator: (bindable) =>
81 var scrollView = (ScrollView)bindable;
83 Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get(out temp);
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) =>
91 var scrollView = (ScrollView)bindable;
94 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Tizen.NUI.PropertyValue((Vector2)newValue));
97 defaultValueCreator: (bindable) =>
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);
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) =>
109 var scrollView = (ScrollView)bindable;
110 if (newValue != null)
112 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_POSITION, new Tizen.NUI.PropertyValue((Vector2)newValue));
115 defaultValueCreator: (bindable) =>
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);
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) =>
127 var scrollView = (ScrollView)bindable;
128 if (newValue != null)
130 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_PRE_POSITION, new Tizen.NUI.PropertyValue((Vector2)newValue));
133 defaultValueCreator: (bindable) =>
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);
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) =>
145 var scrollView = (ScrollView)bindable;
146 if (newValue != null)
148 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Tizen.NUI.PropertyValue((Vector2)newValue));
151 defaultValueCreator: (bindable) =>
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);
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) =>
163 var scrollView = (ScrollView)bindable;
164 if (newValue != null)
166 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.OVERSHOOT_X, new Tizen.NUI.PropertyValue((float)newValue));
169 defaultValueCreator: (bindable) =>
171 var scrollView = (ScrollView)bindable;
173 Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.OVERSHOOT_X).Get(out temp);
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) =>
181 var scrollView = (ScrollView)bindable;
182 if (newValue != null)
184 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.OVERSHOOT_Y, new Tizen.NUI.PropertyValue((float)newValue));
187 defaultValueCreator: (bindable) =>
189 var scrollView = (ScrollView)bindable;
191 Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.OVERSHOOT_Y).Get(out temp);
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) =>
199 var scrollView = (ScrollView)bindable;
200 if (newValue != null)
202 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_FINAL, new Tizen.NUI.PropertyValue((Vector2)newValue));
205 defaultValueCreator: (bindable) =>
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);
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) =>
217 var scrollView = (ScrollView)bindable;
218 if (newValue != null)
220 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.WRAP, new Tizen.NUI.PropertyValue((bool)newValue));
223 defaultValueCreator: (bindable) =>
225 var scrollView = (ScrollView)bindable;
227 Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.WRAP).Get(out temp);
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) =>
235 var scrollView = (ScrollView)bindable;
236 if (newValue != null)
238 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.PANNING, new Tizen.NUI.PropertyValue((bool)newValue));
241 defaultValueCreator: (bindable) =>
243 var scrollView = (ScrollView)bindable;
245 Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.PANNING).Get(out temp);
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) =>
253 var scrollView = (ScrollView)bindable;
254 if (newValue != null)
256 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLLING, new Tizen.NUI.PropertyValue((bool)newValue));
259 defaultValueCreator: (bindable) =>
261 var scrollView = (ScrollView)bindable;
263 Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLLING).Get(out temp);
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) =>
271 var scrollView = (ScrollView)bindable;
272 if (newValue != null)
274 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_DOMAIN_SIZE, new Tizen.NUI.PropertyValue((Vector2)newValue));
277 defaultValueCreator: (bindable) =>
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);
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) =>
289 var scrollView = (ScrollView)bindable;
290 if (newValue != null)
292 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Tizen.NUI.PropertyValue((Vector2)newValue));
295 defaultValueCreator: (bindable) =>
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);
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) =>
307 var scrollView = (ScrollView)bindable;
308 if (newValue != null)
310 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_POSITION_DELTA, new Tizen.NUI.PropertyValue((Vector2)newValue));
313 defaultValueCreator: (bindable) =>
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);
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) =>
325 var scrollView = (ScrollView)bindable;
326 if (newValue != null)
328 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.START_PAGE_POSITION, new Tizen.NUI.PropertyValue((Vector3)newValue));
331 defaultValueCreator: (bindable) =>
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);
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) =>
343 var scrollView = (ScrollView)bindable;
344 if (newValue != null)
346 Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_MODE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
349 defaultValueCreator: (bindable) =>
351 var scrollView = (ScrollView)bindable;
352 PropertyValue value = Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_MODE);
353 PropertyMap map = new PropertyMap();
358 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
360 private DaliEventHandler<object, SnapStartedEventArgs> _scrollViewSnapStartedEventHandler;
361 private SnapStartedCallbackDelegate _scrollViewSnapStartedCallbackDelegate;
364 /// Create an instance of ScrollView.
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)
372 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
375 internal ScrollView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.ScrollView.ScrollView_SWIGUpcast(cPtr), cMemoryOwn)
377 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
380 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
381 private delegate void SnapStartedCallbackDelegate(IntPtr data);
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).
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
398 // Restricted to only one listener
399 if (_scrollViewSnapStartedEventHandler == null)
401 _scrollViewSnapStartedEventHandler += value;
403 _scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted);
404 this.SnapStartedSignal().Connect(_scrollViewSnapStartedCallbackDelegate);
413 if (_scrollViewSnapStartedEventHandler != null)
415 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
418 _scrollViewSnapStartedEventHandler -= value;
424 /// Sets and Gets WrapEnabled property.
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
434 return (bool)GetValue(WrapEnabledProperty);
438 SetValue(WrapEnabledProperty, value);
443 /// Sets and Gets PanningEnabled property.
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
453 return (bool)GetValue(PanningEnabledProperty);
457 SetValue(PanningEnabledProperty, value);
462 /// Sets and Gets AxisAutoLockEnabled property.
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
472 return (bool)GetValue(AxisAutoLockEnabledProperty);
476 SetValue(AxisAutoLockEnabledProperty, value);
481 /// Sets and Gets WheelScrollDistanceStep property.
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
491 return (Vector2)GetValue(WheelScrollDistanceStepProperty);
495 SetValue(WheelScrollDistanceStepProperty, value);
500 /// Sets and Gets ScrollPosition property.
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
510 return (Vector2)GetValue(ScrollPositionProperty);
514 SetValue(ScrollPositionProperty, value);
519 /// Sets and Gets ScrollPrePosition property.
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
529 return (Vector2)GetValue(ScrollPrePositionProperty);
533 SetValue(ScrollPrePositionProperty, value);
538 /// Sets and Gets ScrollPrePositionMax property.
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
548 return (Vector2)GetValue(ScrollPrePositionMaxProperty);
552 SetValue(ScrollPrePositionMaxProperty, value);
557 /// Sets and Gets OvershootX property.
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
567 return (float)GetValue(OvershootXProperty);
571 SetValue(OvershootXProperty, value);
576 /// Sets and Gets OvershootY property.
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
586 return (float)GetValue(OvershootYProperty);
590 SetValue(OvershootYProperty, value);
595 /// Sets and Gets ScrollFinal property.
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
605 return (Vector2)GetValue(ScrollFinalProperty);
609 SetValue(ScrollFinalProperty, value);
614 /// Sets and Gets Wrap property.
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)]
624 return (bool)GetValue(WrapProperty);
628 SetValue(WrapProperty, value);
633 /// Sets and Gets Panning property.
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)]
643 return (bool)GetValue(PanningProperty);
647 SetValue(PanningProperty, value);
652 /// Sets and Gets Scrolling property.
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
662 return (bool)GetValue(ScrollingProperty);
666 SetValue(ScrollingProperty, value);
671 /// Sets and Gets ScrollDomainSize property.
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
681 return (Vector2)GetValue(ScrollDomainSizeProperty);
685 SetValue(ScrollDomainSizeProperty, value);
690 /// Sets and Gets ScrollDomainOffset property.
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
700 return (Vector2)GetValue(ScrollDomainOffsetProperty);
704 SetValue(ScrollDomainOffsetProperty, value);
709 /// Sets and Gets ScrollPositionDelta property.
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
719 return (Vector2)GetValue(ScrollPositionDeltaProperty);
723 SetValue(ScrollPositionDeltaProperty, value);
728 /// Sets and Gets StartPagePosition property.
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
738 return (Vector3)GetValue(StartPagePositionProperty);
742 SetValue(StartPagePositionProperty, value);
748 /// Sets and Gets ScrollMode property.
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
758 return (PropertyMap)GetValue(ScrollModeProperty);
762 SetValue(ScrollModeProperty, value);
767 /// Gets snap-animation's AlphaFunction.
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()
776 AlphaFunction ret = new AlphaFunction(Interop.ScrollView.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
777 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
782 /// Sets snap-animation's AlphaFunction.
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)
791 Interop.ScrollView.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
792 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
796 /// Gets flick-animation's AlphaFunction.
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()
805 AlphaFunction ret = new AlphaFunction(Interop.ScrollView.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
806 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
811 /// Sets flick-animation's AlphaFunction.
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)
820 Interop.ScrollView.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
821 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
825 /// Gets the time for the scroll snap-animation.
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()
834 float ret = Interop.ScrollView.ScrollView_GetScrollSnapDuration(swigCPtr);
835 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
840 /// Sets the time for the scroll snap-animation.
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)
849 Interop.ScrollView.ScrollView_SetScrollSnapDuration(swigCPtr, time);
850 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
854 /// Gets the time for the scroll flick-animation.
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()
863 float ret = Interop.ScrollView.ScrollView_GetScrollFlickDuration(swigCPtr);
864 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
869 /// Sets the time for the scroll snap-animation.
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)
878 Interop.ScrollView.ScrollView_SetScrollFlickDuration(swigCPtr, time);
879 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
883 /// Sets scroll sensibility of pan gesture.
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)
892 Interop.ScrollView.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
893 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
897 /// Sets maximum overshoot amount.
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)
907 Interop.ScrollView.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
908 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
912 /// Sets Snap Overshoot animation's AlphaFunction.
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)
921 Interop.ScrollView.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
922 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
926 /// Sets Snap Overshoot animation's Duration.
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)
935 Interop.ScrollView.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
936 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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).
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)
951 Interop.ScrollView.ScrollView_SetActorAutoSnap(swigCPtr, enable);
952 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
956 /// Enables or Disables Wrap mode for ScrollView contents.<br />
957 /// When enabled, the ScrollView contents are wrapped over the X/Y Domain.
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)
966 Interop.ScrollView.ScrollView_SetWrapMode(swigCPtr, enable);
967 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
971 /// Gets the current distance needed to scroll for ScrollUpdatedSignal to be emitted.
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()
980 int ret = Interop.ScrollView.ScrollView_GetScrollUpdateDistance(swigCPtr);
981 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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 />
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)
997 Interop.ScrollView.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
998 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1002 /// Returns state of Axis Auto Lock mode.
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()
1011 bool ret = Interop.ScrollView.ScrollView_GetAxisAutoLock(swigCPtr);
1012 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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.
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)
1029 Interop.ScrollView.ScrollView_SetAxisAutoLock(swigCPtr, enable);
1030 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1034 /// Gets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.
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()
1043 float ret = Interop.ScrollView.ScrollView_GetAxisAutoLockGradient(swigCPtr);
1044 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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 />
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)
1059 Interop.ScrollView.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
1060 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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 )
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()
1074 float ret = Interop.ScrollView.ScrollView_GetFrictionCoefficient(swigCPtr);
1075 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1080 /// Sets the friction coefficient for ScrollView when flicking.<br />
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)
1089 Interop.ScrollView.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
1090 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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.
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()
1104 float ret = Interop.ScrollView.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
1105 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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 />
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)
1121 Interop.ScrollView.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
1122 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1126 /// Gets the minimum pan distance required for a flick gesture in pixels.<br />
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()
1135 Vector2 ret = new Vector2(Interop.ScrollView.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
1136 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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.
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)
1151 Interop.ScrollView.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
1152 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1156 /// Returns the minimum pan speed required for a flick gesture in pixels per second.
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()
1165 float ret = Interop.ScrollView.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
1166 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1171 /// Sets the minimum pan speed required for a flick in pixels per second.<br />
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)
1180 Interop.ScrollView.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
1181 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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.
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()
1195 float ret = Interop.ScrollView.ScrollView_GetMaxFlickSpeed(swigCPtr);
1196 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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 />
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)
1211 Interop.ScrollView.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
1212 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1216 /// Gets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.<br />
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()
1225 Vector2 ret = new Vector2(Interop.ScrollView.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
1226 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1231 /// Sets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.<br />
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)
1240 Interop.ScrollView.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
1241 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1245 /// Retrieves current scroll position.<br />
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()
1254 Vector2 ret = new Vector2(Interop.ScrollView.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
1255 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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.
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()
1270 uint ret = Interop.ScrollView.ScrollView_GetCurrentPage(swigCPtr);
1271 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1276 /// Scrolls View to position specified (contents will scroll to this position).
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)
1285 Interop.ScrollView.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
1286 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1290 /// Scrolls View to position specified (contents will scroll to this position).
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)
1300 Interop.ScrollView.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
1301 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1305 /// Scrolls View to position specified (contents will scroll to this position).
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)
1316 Interop.ScrollView.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
1317 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1321 /// Scrolls View to position specified (contents will scroll to this position).
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)
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();
1338 /// Scrolls View to position specified (contents will scroll to this position).
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)
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();
1356 /// Scrolls View to position specified (contents will scroll to this position).
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)
1365 Interop.ScrollView.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
1366 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1370 /// Scrolls View to position specified (contents will scroll to this position).
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)
1380 Interop.ScrollView.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
1381 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1385 /// Scrolls View to position specified (contents will scroll to this position).
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)
1396 Interop.ScrollView.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
1397 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1401 /// Scrolls View to position specified (contents will scroll to this position).
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)
1410 Interop.ScrollView.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
1411 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1415 /// Scrolls View to position specified (contents will scroll to this position).
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)
1425 Interop.ScrollView.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
1426 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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 />
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()
1440 bool ret = Interop.ScrollView.ScrollView_ScrollToSnapPoint(swigCPtr);
1441 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1446 /// Applies Effect to ScrollView.
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)
1455 Interop.ScrollView.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
1456 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1460 /// Removes Effect from ScrollView.
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)
1469 Interop.ScrollView.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
1470 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1474 /// Remove All Effects from ScrollView.
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()
1482 Interop.ScrollView.ScrollView_RemoveAllEffects(swigCPtr);
1483 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1487 /// Binds view to this ScrollView.
1488 /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
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)
1497 Interop.ScrollView.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
1498 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1502 /// Unbinds view to this ScrollView.
1503 /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
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)
1512 Interop.ScrollView.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
1513 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1517 /// Allows the user to constrain the scroll view in a particular direction.
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)
1527 Interop.ScrollView.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
1528 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1532 /// Allows the user to constrain the scroll view in a particular direction.
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)
1541 Interop.ScrollView.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
1542 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1546 /// Removes a direction constraint from the scroll view.
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)
1555 Interop.ScrollView.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
1556 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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)
1566 Interop.ScrollView.ScrollView_SetRulerX(swigCPtr, RulerPtr.getCPtr(ruler));
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)
1576 Interop.ScrollView.ScrollView_SetRulerY(swigCPtr, RulerPtr.getCPtr(ruler));
1579 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ScrollView obj)
1581 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1584 internal void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint)
1586 Interop.ScrollView.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
1587 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1590 internal ScrollViewSnapStartedSignal SnapStartedSignal()
1592 ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(Interop.ScrollView.ScrollView_SnapStartedSignal(swigCPtr), false);
1593 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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)
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.
1616 if (this != null && _scrollViewSnapStartedCallbackDelegate != null)
1618 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
1621 if (swigCPtr.Handle != global::System.IntPtr.Zero)
1625 swigCMemOwn = false;
1626 Interop.ScrollView.delete_ScrollView(swigCPtr);
1628 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1634 // Callback for ScrollView SnapStarted signal
1635 private void OnSnapStarted(IntPtr data)
1637 SnapStartedEventArgs e = new SnapStartedEventArgs();
1639 // Populate all members of "e" (SnapStartedEventArgs) with real data
1640 e.SnapEventInfo = SnapEvent.GetSnapEventFromPtr(data);
1642 if (_scrollViewSnapStartedEventHandler != null)
1644 //here we send all data to user event handlers
1645 _scrollViewSnapStartedEventHandler(this, e);
1650 /// This should be internal, please do not use.
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
1659 /// This should be internal, please do not use.
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();
1667 /// This should be internal, please do not use.
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();
1675 /// This should be internal, please do not use.
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();
1683 /// This should be internal, please do not use.
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();
1691 /// This should be internal, please do not use.
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();
1699 /// This should be internal, please do not use.
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();
1707 /// This should be internal, please do not use.
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();
1715 /// This should be internal, please do not use.
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();
1723 /// This should be internal, please do not use.
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();
1731 /// This should be internal, please do not use.
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();
1739 /// This should be internal, please do not use.
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();
1747 /// This should be internal, please do not use.
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();
1755 /// This should be internal, please do not use.
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();
1763 /// This should be internal, please do not use.
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();
1771 /// This should be internal, please do not use.
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();
1779 /// This should be internal, please do not use.
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();
1787 /// This should be internal, please do not use.
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();
1795 /// This should be internal, please do not use.
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();
1803 /// This should be internal, please do not use.
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();
1811 /// This should be internal, please do not use.
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();
1819 /// This should be internal, please do not use.
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();
1827 /// This should be internal, please do not use.
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();
1835 /// This should be internal, please do not use.
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();
1843 /// This should be internal, please do not use.
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();
1851 /// This should be internal, please do not use.
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();
1859 /// This should be internal, please do not use.
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();
1869 /// Snaps signal event's data.
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
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;
1887 /// A Flat to check if it is already disposed.
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;
1896 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1898 //A Flag to check who called Dispose(). (By User or DisposeQueue)
1899 private bool isDisposeQueued = false;
1902 /// Create an instance of SnapEvent.
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)
1910 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1913 internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn)
1915 swigCMemOwn = cMemoryOwn;
1916 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1922 /// <since_tizen> 3 </since_tizen>
1925 if (!isDisposeQueued)
1927 isDisposeQueued = true;
1928 DisposeQueue.Instance.Add(this);
1933 /// Scroll position.
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
1943 Interop.ScrollView.ScrollView_SnapEvent_position_set(swigCPtr, Vector2.getCPtr(value));
1944 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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();
1956 /// Scroll duration.
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
1966 Interop.ScrollView.ScrollView_SnapEvent_duration_set(swigCPtr, value);
1967 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1971 float ret = Interop.ScrollView.ScrollView_SnapEvent_duration_get(swigCPtr);
1972 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1977 internal SnapType type
1981 Interop.ScrollView.ScrollView_SnapEvent_type_set(swigCPtr, (int)value);
1982 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1986 SnapType ret = (SnapType)Interop.ScrollView.ScrollView_SnapEvent_type_get(swigCPtr);
1987 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1993 /// Get SnapEvent From Ptr
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)
2003 SnapEvent ret = new SnapEvent(cPtr, false);
2004 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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()
2017 //Throw excpetion if Dispose() is called in separate thread.
2018 if (!Window.IsInstalled())
2020 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
2023 if (isDisposeQueued)
2025 Dispose(DisposeTypes.Implicit);
2029 Dispose(DisposeTypes.Explicit);
2030 System.GC.SuppressFinalize(this);
2034 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj)
2036 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
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)
2054 if (type == DisposeTypes.Explicit)
2057 //Release your own managed resources here.
2058 //You should release all of your own disposable objects here.
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.
2066 if (swigCPtr.Handle != global::System.IntPtr.Zero)
2070 swigCMemOwn = false;
2071 Interop.ScrollView.delete_ScrollView_SnapEvent(swigCPtr);
2073 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
2081 /// Event arguments that passed via the SnapStarted signal.
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
2089 private Tizen.NUI.ScrollView.SnapEvent _snapEvent;
2092 /// SnapEventInfo is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick).
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