2 * Copyright(c) 2017 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.
22 using System.Runtime.InteropServices;
23 using Tizen.NUI.BaseComponents;
26 /// ScrollView contains views that can be scrolled manually (via touch).
28 /// <since_tizen> 3 </since_tizen>
29 public class ScrollView : Scrollable
31 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
33 internal ScrollView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ScrollView_SWIGUpcast(cPtr), cMemoryOwn)
35 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
38 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ScrollView obj)
40 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
46 /// <param name="type">the dispose type</param>
47 /// <since_tizen> 3 </since_tizen>
48 protected override void Dispose(DisposeTypes type)
55 if (type == DisposeTypes.Explicit)
58 //Release your own managed resources here.
59 //You should release all of your own disposable objects here.
63 //Release your own unmanaged resources here.
64 //You should not access any managed member here except static instance.
65 //because the execution order of Finalizes is non-deterministic.
67 if (_scrollViewSnapStartedCallbackDelegate != null)
69 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
72 if (swigCPtr.Handle != global::System.IntPtr.Zero)
77 NDalicPINVOKE.delete_ScrollView(swigCPtr);
79 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
86 /// Event arguments that passed via the SnapStarted signal.
88 /// <since_tizen> 3 </since_tizen>
89 public class SnapStartedEventArgs : EventArgs
91 private Tizen.NUI.ScrollView.SnapEvent _snapEvent;
94 /// SnapEventInfo is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick).
96 /// <since_tizen> 3 </since_tizen>
97 public Tizen.NUI.ScrollView.SnapEvent SnapEventInfo
110 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
111 private delegate void SnapStartedCallbackDelegate(IntPtr data);
112 private DaliEventHandler<object, SnapStartedEventArgs> _scrollViewSnapStartedEventHandler;
113 private SnapStartedCallbackDelegate _scrollViewSnapStartedCallbackDelegate;
116 /// SnapStarted can be used to subscribe or unsubscribe the event handler
117 /// The SnapStarted signal is emitted when the ScrollView has started to snap or flick (it tells the target
118 /// position, scale, rotation for the snap or flick).
120 /// <since_tizen> 3 </since_tizen>
121 public event DaliEventHandler<object, SnapStartedEventArgs> SnapStarted
127 // Restricted to only one listener
128 if (_scrollViewSnapStartedEventHandler == null)
130 _scrollViewSnapStartedEventHandler += value;
132 _scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted);
133 this.SnapStartedSignal().Connect(_scrollViewSnapStartedCallbackDelegate);
142 if (_scrollViewSnapStartedEventHandler != null)
144 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
147 _scrollViewSnapStartedEventHandler -= value;
152 // Callback for ScrollView SnapStarted signal
153 private void OnSnapStarted(IntPtr data)
155 SnapStartedEventArgs e = new SnapStartedEventArgs();
157 // Populate all members of "e" (SnapStartedEventArgs) with real data
158 e.SnapEventInfo = SnapEvent.GetSnapEventFromPtr(data);
160 if (_scrollViewSnapStartedEventHandler != null)
162 //here we send all data to user event handlers
163 _scrollViewSnapStartedEventHandler(this, e);
168 /// Snaps signal event's data.
170 /// <since_tizen> 3 </since_tizen>
171 public class SnapEvent : global::System.IDisposable
173 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
177 /// <since_tizen> 3 </since_tizen>
178 protected bool swigCMemOwn;
180 internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn)
182 swigCMemOwn = cMemoryOwn;
183 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
186 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj)
188 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
191 //A Flag to check who called Dispose(). (By User or DisposeQueue)
192 private bool isDisposeQueued = false;
194 /// A Flat to check if it is already disposed.
197 /// <since_tizen> 3 </since_tizen>
198 protected bool disposed = false;
203 /// <since_tizen> 3 </since_tizen>
206 if (!isDisposeQueued)
208 isDisposeQueued = true;
209 DisposeQueue.Instance.Add(this);
216 /// <since_tizen> 3 </since_tizen>
217 public void Dispose()
219 //Throw excpetion if Dispose() is called in separate thread.
220 if (!Window.IsInstalled())
222 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
227 Dispose(DisposeTypes.Implicit);
231 Dispose(DisposeTypes.Explicit);
232 System.GC.SuppressFinalize(this);
239 /// <param name="type">the dispose type</param>
240 /// <since_tizen> 3 </since_tizen>
241 protected virtual void Dispose(DisposeTypes type)
248 if (type == DisposeTypes.Explicit)
251 //Release your own managed resources here.
252 //You should release all of your own disposable objects here.
256 //Release your own unmanaged resources here.
257 //You should not access any managed member here except static instance.
258 //because the execution order of Finalizes is non-deterministic.
260 if (swigCPtr.Handle != global::System.IntPtr.Zero)
265 NDalicPINVOKE.delete_ScrollView_SnapEvent(swigCPtr);
267 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
274 /// Get SnapEvent From Ptr
276 /// <since_tizen> 3 </since_tizen>
277 public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr)
279 SnapEvent ret = new SnapEvent(cPtr, false);
280 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
284 internal SnapType type
288 NDalicPINVOKE.ScrollView_SnapEvent_type_set(swigCPtr, (int)value);
289 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
293 SnapType ret = (SnapType)NDalicPINVOKE.ScrollView_SnapEvent_type_get(swigCPtr);
294 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
302 /// <since_tizen> 3 </since_tizen>
303 public Vector2 position
307 NDalicPINVOKE.ScrollView_SnapEvent_position_set(swigCPtr, Vector2.getCPtr(value));
308 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
312 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_SnapEvent_position_get(swigCPtr);
313 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
314 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
322 /// <since_tizen> 3 </since_tizen>
323 public float duration
327 NDalicPINVOKE.ScrollView_SnapEvent_duration_set(swigCPtr, value);
328 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
332 float ret = NDalicPINVOKE.ScrollView_SnapEvent_duration_get(swigCPtr);
333 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
339 /// Create an instance of SnapEvent.
341 /// <since_tizen> 3 </since_tizen>
342 public SnapEvent() : this(NDalicPINVOKE.new_ScrollView_SnapEvent(), true)
344 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
350 /// This should be internal, please do not use.
352 /// <since_tizen> 3 </since_tizen>
353 public new class Property
356 /// This should be internal, please do not use.
358 /// <since_tizen> 3 </since_tizen>
359 public static readonly int WRAP_ENABLED = NDalicPINVOKE.ScrollView_Property_WRAP_ENABLED_get();
361 /// This should be internal, please do not use.
363 /// <since_tizen> 3 </since_tizen>
364 public static readonly int PANNING_ENABLED = NDalicPINVOKE.ScrollView_Property_PANNING_ENABLED_get();
366 /// This should be internal, please do not use.
368 /// <since_tizen> 3 </since_tizen>
369 public static readonly int AXIS_AUTO_LOCK_ENABLED = NDalicPINVOKE.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get();
371 /// This should be internal, please do not use.
373 /// <since_tizen> 3 </since_tizen>
374 public static readonly int WHEEL_SCROLL_DISTANCE_STEP = NDalicPINVOKE.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
376 /// This should be internal, please do not use.
378 /// <since_tizen> 3 </since_tizen>
379 public static readonly int SCROLL_MODE = NDalicPINVOKE.ScrollView_Property_SCROLL_MODE_get();
381 /// This should be internal, please do not use.
383 /// <since_tizen> 3 </since_tizen>
384 public static readonly int SCROLL_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get();
386 /// This should be internal, please do not use.
388 /// <since_tizen> 3 </since_tizen>
389 public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get();
391 /// This should be internal, please do not use.
393 /// <since_tizen> 3 </since_tizen>
394 public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
396 /// This should be internal, please do not use.
398 /// <since_tizen> 3 </since_tizen>
399 public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
401 /// This should be internal, please do not use.
403 /// <since_tizen> 3 </since_tizen>
404 public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
406 /// This should be internal, please do not use.
408 /// <since_tizen> 3 </since_tizen>
409 public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
411 /// This should be internal, please do not use.
413 /// <since_tizen> 3 </since_tizen>
414 public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
416 /// This should be internal, please do not use.
418 /// <since_tizen> 3 </since_tizen>
419 public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get();
421 /// This should be internal, please do not use.
423 /// <since_tizen> 3 </since_tizen>
424 public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get();
426 /// This should be internal, please do not use.
428 /// <since_tizen> 3 </since_tizen>
429 public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get();
431 /// This should be internal, please do not use.
433 /// <since_tizen> 3 </since_tizen>
434 public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get();
436 /// This should be internal, please do not use.
438 /// <since_tizen> 3 </since_tizen>
439 public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get();
441 /// This should be internal, please do not use.
443 /// <since_tizen> 3 </since_tizen>
444 public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get();
446 /// This should be internal, please do not use.
448 /// <since_tizen> 3 </since_tizen>
449 public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get();
451 /// This should be internal, please do not use.
453 /// <since_tizen> 3 </since_tizen>
454 public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get();
456 /// This should be internal, please do not use.
458 /// <since_tizen> 3 </since_tizen>
459 public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
461 /// This should be internal, please do not use.
463 /// <since_tizen> 3 </since_tizen>
464 public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
466 /// This should be internal, please do not use.
468 /// <since_tizen> 3 </since_tizen>
469 public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
471 /// This should be internal, please do not use.
473 /// <since_tizen> 3 </since_tizen>
474 public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
476 /// This should be internal, please do not use.
478 /// <since_tizen> 3 </since_tizen>
479 public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get();
481 /// This should be internal, please do not use.
483 /// <since_tizen> 3 </since_tizen>
484 public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get();
489 /// Create an instance of ScrollView.
491 /// <since_tizen> 3 </since_tizen>
492 public ScrollView() : this(NDalicPINVOKE.ScrollView_New(), true)
494 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
499 /// Gets snap-animation's AlphaFunction.
501 /// <returns>Current easing alpha function of the snap animation.</returns>
502 /// <since_tizen> 3 </since_tizen>
503 public AlphaFunction GetScrollSnapAlphaFunction()
505 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
506 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
511 /// Sets snap-animation's AlphaFunction.
513 /// <param name="alpha">Easing alpha function of the snap animation.</param>
514 /// <since_tizen> 3 </since_tizen>
515 public void SetScrollSnapAlphaFunction(AlphaFunction alpha)
517 NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
518 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
522 /// Gets flick-animation's AlphaFunction.
524 /// <returns>Current easing alpha function of the flick animation.</returns>
525 /// <since_tizen> 3 </since_tizen>
526 public AlphaFunction GetScrollFlickAlphaFunction()
528 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
529 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
534 /// Sets flick-animation's AlphaFunction.
536 /// <param name="alpha">Easing alpha function of the flick animation.</param>
537 /// <since_tizen> 3 </since_tizen>
538 public void SetScrollFlickAlphaFunction(AlphaFunction alpha)
540 NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
541 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
545 /// Gets the time for the scroll snap-animation.
547 /// <returns>The time in seconds for the animation to take.</returns>
548 /// <since_tizen> 3 </since_tizen>
549 public float GetScrollSnapDuration()
551 float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr);
552 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
557 /// Sets the time for the scroll snap-animation.
559 /// <param name="time">The time in seconds for the animation to take.</param>
560 /// <since_tizen> 3 </since_tizen>
561 public void SetScrollSnapDuration(float time)
563 NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time);
564 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
568 /// Gets the time for the scroll flick-animation.
570 /// <returns>The time in seconds for the animation to take.</returns>
571 /// <since_tizen> 3 </since_tizen>
572 public float GetScrollFlickDuration()
574 float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr);
575 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
580 /// Sets the time for the scroll snap-animation.
582 /// <param name="time">The time in seconds for the animation to take.</param>
583 /// <since_tizen> 3 </since_tizen>
584 public void SetScrollFlickDuration(float time)
586 NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time);
587 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
591 /// Sets scroll sensibility of pan gesture.
593 /// <param name="sensitive">True to enable scroll, false to disable scrolling.</param>
594 /// <since_tizen> 3 </since_tizen>
595 public void SetScrollSensitive(bool sensitive)
597 NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
598 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
602 /// Sets maximum overshoot amount.
604 /// <param name="overshootX">The maximum number of horizontally scrolled pixels before overshoot X reaches 1.0f.</param>
605 /// <param name="overshootY">The maximum number of vertically scrolled pixels before overshoot X reaches 1.0f.</param>
606 /// <since_tizen> 3 </since_tizen>
607 public void SetMaxOvershoot(float overshootX, float overshootY)
609 NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
610 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
614 /// Sets Snap Overshoot animation's AlphaFunction.
616 /// <param name="alpha">Easing alpha function of the overshoot snap animation.</param>
617 /// <since_tizen> 3 </since_tizen>
618 public void SetSnapOvershootAlphaFunction(AlphaFunction alpha)
620 NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
621 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
625 /// Sets Snap Overshoot animation's Duration.
627 /// <param name="duration">duration The duration of the overshoot snap animation.</param>
628 /// <since_tizen> 3 </since_tizen>
629 public void SetSnapOvershootDuration(float duration)
631 NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
632 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
636 /// Enables or Disables Actor Auto-Snap mode.<br />
637 /// When Actor Auto-Snap mode has been enabled, ScrollView will automatically,
638 /// snap to the closest actor (The closest actor will appear in the center of the ScrollView).
640 /// <param name="enable">Enables (true), or disables (false) Actor AutoSnap.</param>
641 /// <since_tizen> 3 </since_tizen>
642 public void SetViewAutoSnap(bool enable)
644 NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable);
645 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
649 /// Enables or Disables Wrap mode for ScrollView contents.<br />
650 /// When enabled, the ScrollView contents are wrapped over the X/Y Domain.
652 /// <param name="enable">Enables (true), or disables (false) Wrap Mode.</param>
653 /// <since_tizen> 3 </since_tizen>
654 public void SetWrapMode(bool enable)
656 NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable);
657 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
661 /// Gets the current distance needed to scroll for ScrollUpdatedSignal to be emitted.
663 /// <returns>Current scroll update distance.</returns>
664 /// <since_tizen> 3 </since_tizen>
665 public int GetScrollUpdateDistance()
667 int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr);
668 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
673 /// Sets the distance needed to scroll for ScrollUpdatedSignal to be emitted.<br />
674 /// The scroll update distance tells ScrollView how far to move before ScrollUpdatedSignal the informs application.<br />
675 /// Each time the ScrollView crosses this distance the signal will be emitted.<br />
677 /// <param name="distance">The distance for ScrollView to move before emitting update signal.</param>
678 /// <since_tizen> 3 </since_tizen>
679 public void SetScrollUpdateDistance(int distance)
681 NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
682 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
686 /// Returns state of Axis Auto Lock mode.
688 /// <returns>Whether Axis Auto Lock mode has been enabled or not.</returns>
689 /// <since_tizen> 3 </since_tizen>
690 public bool GetAxisAutoLock()
692 bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr);
693 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
698 /// Enables or Disables Axis Auto Lock mode for panning within the ScrollView.<br />
699 /// When enabled, any pan gesture that appears mostly horizontal or mostly
700 /// vertical, will be automatically restricted to horizontal only or vertical
701 /// only panning, until the pan gesture has completed.
703 /// <param name="enable">Enables (true), or disables (false) AxisAutoLock mode.</param>
704 /// <since_tizen> 3 </since_tizen>
705 public void SetAxisAutoLock(bool enable)
707 NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable);
708 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
712 /// Gets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.
714 /// <returns>The gradient, a value between 0.0 and 1.0f.</returns>
715 /// <since_tizen> 3 </since_tizen>
716 public float GetAxisAutoLockGradient()
718 float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr);
719 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
724 /// Sets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.<br />
725 /// 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 />
727 /// <param name="gradient">gradient A value between 0.0 and 1.0 (auto-lock for all angles).</param>
728 /// <since_tizen> 3 </since_tizen>
729 public void SetAxisAutoLockGradient(float gradient)
731 NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
732 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
736 /// Gets the friction coefficient setting for ScrollView when flicking in free panning mode.
737 /// This is a value in stage-diagonals per second^2, stage-diagonal = Length( stage.width, stage.height )
739 /// <returns>Friction coefficient is returned.</returns>
740 /// <since_tizen> 3 </since_tizen>
741 public float GetFrictionCoefficient()
743 float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr);
744 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
749 /// Sets the friction coefficient for ScrollView when flicking.<br />
751 /// <param name="friction">Friction coefficient must be greater than 0.0 (default = 1.0).</param>
752 /// <since_tizen> 3 </since_tizen>
753 public void SetFrictionCoefficient(float friction)
755 NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
756 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
760 /// Gets the flick speed coefficient for ScrollView when flicking in free panning mode.<br />
761 /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at which to move the scrolling area.
763 /// <returns>The flick speed coefficient is returned.</returns>
764 /// <since_tizen> 3 </since_tizen>
765 public float GetFlickSpeedCoefficient()
767 float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
768 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
773 /// Sets the flick speed coefficient for ScrollView when flicking in free panning mode.<br />
774 /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at
775 /// which to move the scrolling area.<br />
777 /// <param name="speed">The flick speed coefficient (default = 1.0).</param>
778 /// <since_tizen> 3 </since_tizen>
779 public void SetFlickSpeedCoefficient(float speed)
781 NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
782 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
786 /// Gets the minimum pan distance required for a flick gesture in pixels.<br />
788 /// <returns>Minimum pan distance vector with separate x and y distance.</returns>
789 /// <since_tizen> 3 </since_tizen>
790 public Vector2 GetMinimumDistanceForFlick()
792 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
793 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
798 /// Sets the minimum pan distance required for a flick in pixels.<br />
799 /// 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.
801 /// <param name="distance">The flick speed coefficient (default = 1.0).</param>
802 /// <since_tizen> 3 </since_tizen>
803 public void SetMinimumDistanceForFlick(Vector2 distance)
805 NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
806 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
810 /// Returns the minimum pan speed required for a flick gesture in pixels per second.
812 /// <returns>Minimum pan speed.</returns>
813 /// <since_tizen> 3 </since_tizen>
814 public float GetMinimumSpeedForFlick()
816 float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
817 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
822 /// Sets the minimum pan speed required for a flick in pixels per second.<br />
824 /// <param name="speed">The minimum pan speed for a flick.</param>
825 /// <since_tizen> 3 </since_tizen>
826 public void SetMinimumSpeedForFlick(float speed)
828 NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
829 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
833 /// Gets the maximum flick speed setting for ScrollView when flicking in free panning mode.<br />
834 /// This is a value in stage-diagonals per second.
836 /// <returns>Maximum flick speed is returned.</returns>
837 /// <since_tizen> 3 </since_tizen>
838 public float GetMaxFlickSpeed()
840 float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr);
841 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
846 /// Sets the maximum flick speed for the ScrollView when flicking in free panning mode.<br />
847 /// This is a value in stage-diagonals per second. stage-diagonal = Length( stage.width, stage.height ).<br />
849 /// <param name="speed">Maximum flick speed (default = 3.0).</param>
850 /// <since_tizen> 3 </since_tizen>
851 public void SetMaxFlickSpeed(float speed)
853 NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
854 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
858 /// Gets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.<br />
860 /// <returns>The step of scroll distance(pixel) in X and Y axes.</returns>
861 /// <since_tizen> 3 </since_tizen>
862 public Vector2 GetWheelScrollDistanceStep()
864 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
865 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
870 /// Sets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.<br />
872 /// <param name="step">step The step of scroll distance(pixel) in X and Y axes.</param>
873 /// <since_tizen> 3 </since_tizen>
874 public void SetWheelScrollDistanceStep(Vector2 step)
876 NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
877 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
881 /// Retrieves current scroll position.<br />
883 /// <returns>The current scroll position.</returns>
884 /// <since_tizen> 3 </since_tizen>
885 public Vector2 GetCurrentScrollPosition()
887 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
888 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
893 /// Retrieves current scroll page based on ScrollView dimensions being the size of one page, and all pages laid out in<br />
894 /// a grid fashion, increasing from left to right until the end of the X-domain.
896 /// <returns>The current scroll position.</returns>
897 /// <since_tizen> 3 </since_tizen>
898 public uint GetCurrentPage()
900 uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr);
901 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
906 /// Scrolls View to position specified (contents will scroll to this position).
908 /// <param name="position">The position to scroll to.</param>
909 /// <since_tizen> 3 </since_tizen>
910 public void ScrollTo(Vector2 position)
912 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
913 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
917 /// Scrolls View to position specified (contents will scroll to this position).
919 /// <param name="position">The position to scroll to.</param>
920 /// <param name="duration">The duration of the animation in seconds.</param>
921 /// <since_tizen> 3 </since_tizen>
922 public void ScrollTo(Vector2 position, float duration)
924 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
925 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
929 /// Scrolls View to position specified (contents will scroll to this position).
931 /// <param name="position">The position to scroll to.</param>
932 /// <param name="duration">The duration of the animation in seconds.</param>
933 /// <param name="alpha">The alpha function to use.</param>
934 /// <since_tizen> 3 </since_tizen>
935 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha)
937 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
938 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
942 /// Scrolls View to position specified (contents will scroll to this position).
944 /// <param name="position">The position to scroll to.</param>
945 /// <param name="duration">The duration of the animation in seconds.</param>
946 /// <param name="horizontalBias">Whether to bias scrolling to left or right.</param>
947 /// <param name="verticalBias">Whether to bias scrolling to top or bottom.</param>
948 /// <since_tizen> 3 </since_tizen>
949 public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias)
951 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
952 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
956 /// Scrolls View to position specified (contents will scroll to this position).
958 /// <param name="position">The position to scroll to.</param>
959 /// <param name="duration">The duration of the animation in seconds.</param>
960 /// <param name="alpha">Alpha function to use.</param>
961 /// <param name="horizontalBias">Whether to bias scrolling to left or right.</param>
962 /// <param name="verticalBias">Whether to bias scrolling to top or bottom.</param>
963 /// <since_tizen> 3 </since_tizen>
964 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias)
966 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
967 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
971 /// Scrolls View to position specified (contents will scroll to this position).
973 /// <param name="page">The page to scroll to.</param>
974 /// <since_tizen> 3 </since_tizen>
975 public void ScrollTo(uint page)
977 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
978 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
982 /// Scrolls View to position specified (contents will scroll to this position).
984 /// <param name="page">The page to scroll to.</param>
985 /// <param name="duration">The duration of the animation in seconds.</param>
986 /// <since_tizen> 3 </since_tizen>
987 public void ScrollTo(uint page, float duration)
989 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
990 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
994 /// Scrolls View to position specified (contents will scroll to this position).
996 /// <param name="page">The page to scroll to.</param>
997 /// <param name="duration">The duration of the animation in seconds.</param>
998 /// <param name="bias">Whether to bias scrolling to left or right.</param>
999 /// <since_tizen> 3 </since_tizen>
1000 public void ScrollTo(uint page, float duration, DirectionBias bias)
1002 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
1003 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1007 /// Scrolls View to position specified (contents will scroll to this position).
1009 /// <param name="view">The view to center in on (via Scrolling).</param>
1010 /// <since_tizen> 3 </since_tizen>
1011 public void ScrollTo(View view)
1013 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
1014 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1018 /// Scrolls View to position specified (contents will scroll to this position).
1020 /// <param name="view">The view to center in on (via Scrolling).</param>
1021 /// <param name="duration">The duration of the animation in seconds.</param>
1022 /// <since_tizen> 3 </since_tizen>
1023 public void ScrollTo(View view, float duration)
1025 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
1026 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1030 /// Scrolls View to the nearest snap points as specified by the Rulers.<br />
1031 /// If already at snap points, then will return false, and not scroll.<br />
1033 /// <returns>True if Snapping necessary.</returns>
1034 /// <since_tizen> 3 </since_tizen>
1035 public bool ScrollToSnapPoint()
1037 bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr);
1038 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1042 internal void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint)
1044 NDalicPINVOKE.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
1045 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1049 /// Applies Effect to ScrollView.
1051 /// <param name="effect">The effect to apply to scroll view.</param>
1052 /// <since_tizen> 3 </since_tizen>
1053 public void ApplyEffect(ScrollViewEffect effect)
1055 NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
1056 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1060 /// Removes Effect from ScrollView.
1062 /// <param name="effect">The effect to remove.</param>
1063 /// <since_tizen> 3 </since_tizen>
1064 public void RemoveEffect(ScrollViewEffect effect)
1066 NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
1067 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1071 /// Remove All Effects from ScrollView.
1073 /// <since_tizen> 3 </since_tizen>
1074 public void RemoveAllEffects()
1076 NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr);
1077 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1081 /// Binds view to this ScrollView.
1082 /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
1084 /// <param name="child">The view to add to this ScrollView.</param>
1085 /// <since_tizen> 3 </since_tizen>
1086 public void BindView(View child)
1088 NDalicPINVOKE.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
1089 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1093 /// Unbinds view to this ScrollView.
1094 /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
1096 /// <param name="child">The view to remove to this ScrollView.</param>
1097 /// <since_tizen> 3 </since_tizen>
1098 public void UnbindView(View child)
1100 NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
1101 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1105 /// Allows the user to constrain the scroll view in a particular direction.
1107 /// <param name="direction">The axis to constrain the scroll-view to.</param>
1108 /// <param name="threshold">The threshold to apply around the axis.</param>
1109 /// <since_tizen> 3 </since_tizen>
1110 public void SetScrollingDirection(Radian direction, Radian threshold)
1112 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
1113 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1117 /// Allows the user to constrain the scroll view in a particular direction.
1119 /// <param name="direction">The axis to constrain the scroll-view to.</param>
1120 /// <since_tizen> 3 </since_tizen>
1121 public void SetScrollingDirection(Radian direction)
1123 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
1124 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1128 /// Removes a direction constraint from the scroll view.
1130 /// <param name="direction">The axis to constrain the scroll-view to.</param>
1131 /// <since_tizen> 3 </since_tizen>
1132 public void RemoveScrollingDirection(Radian direction)
1134 NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
1135 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1138 internal ScrollViewSnapStartedSignal SnapStartedSignal()
1140 ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(NDalicPINVOKE.ScrollView_SnapStartedSignal(swigCPtr), false);
1141 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1146 /// Sets and Gets WrapEnabled property.
1148 /// <since_tizen> 3 </since_tizen>
1149 public bool WrapEnabled
1154 GetProperty(ScrollView.Property.WRAP_ENABLED).Get(out temp);
1159 SetProperty(ScrollView.Property.WRAP_ENABLED, new Tizen.NUI.PropertyValue(value));
1164 /// Sets and Gets PanningEnabled property.
1166 /// <since_tizen> 3 </since_tizen>
1167 public bool PanningEnabled
1172 GetProperty(ScrollView.Property.PANNING_ENABLED).Get(out temp);
1177 SetProperty(ScrollView.Property.PANNING_ENABLED, new Tizen.NUI.PropertyValue(value));
1182 /// Sets and Gets AxisAutoLockEnabled property.
1184 /// <since_tizen> 3 </since_tizen>
1185 public bool AxisAutoLockEnabled
1190 GetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get(out temp);
1195 SetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Tizen.NUI.PropertyValue(value));
1200 /// Sets and Gets WheelScrollDistanceStep property.
1202 /// <since_tizen> 3 </since_tizen>
1203 public Vector2 WheelScrollDistanceStep
1207 Vector2 temp = new Vector2(0.0f, 0.0f);
1208 GetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get(temp);
1213 SetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Tizen.NUI.PropertyValue(value));
1218 /// Sets and Gets ScrollPosition property.
1220 /// <since_tizen> 3 </since_tizen>
1221 public Vector2 ScrollPosition
1225 Vector2 temp = new Vector2(0.0f, 0.0f);
1226 GetProperty(ScrollView.Property.SCROLL_POSITION).Get(temp);
1231 SetProperty(ScrollView.Property.SCROLL_POSITION, new Tizen.NUI.PropertyValue(value));
1236 /// Sets and Gets ScrollPrePosition property.
1238 /// <since_tizen> 3 </since_tizen>
1239 public Vector2 ScrollPrePosition
1243 Vector2 temp = new Vector2(0.0f, 0.0f);
1244 GetProperty(ScrollView.Property.SCROLL_PRE_POSITION).Get(temp);
1249 SetProperty(ScrollView.Property.SCROLL_PRE_POSITION, new Tizen.NUI.PropertyValue(value));
1254 /// Sets and Gets ScrollPrePositionMax property.
1256 /// <since_tizen> 3 </since_tizen>
1257 public Vector2 ScrollPrePositionMax
1261 Vector2 temp = new Vector2(0.0f, 0.0f);
1262 GetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get(temp);
1267 SetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Tizen.NUI.PropertyValue(value));
1272 /// Sets and Gets OvershootX property.
1274 /// <since_tizen> 3 </since_tizen>
1275 public float OvershootX
1280 GetProperty(ScrollView.Property.OVERSHOOT_X).Get(out temp);
1285 SetProperty(ScrollView.Property.OVERSHOOT_X, new Tizen.NUI.PropertyValue(value));
1290 /// Sets and Gets OvershootY property.
1292 /// <since_tizen> 3 </since_tizen>
1293 public float OvershootY
1298 GetProperty(ScrollView.Property.OVERSHOOT_Y).Get(out temp);
1303 SetProperty(ScrollView.Property.OVERSHOOT_Y, new Tizen.NUI.PropertyValue(value));
1308 /// Sets and Gets ScrollFinal property.
1310 /// <since_tizen> 3 </since_tizen>
1311 public Vector2 ScrollFinal
1315 Vector2 temp = new Vector2(0.0f, 0.0f);
1316 GetProperty(ScrollView.Property.SCROLL_FINAL).Get(temp);
1321 SetProperty(ScrollView.Property.SCROLL_FINAL, new Tizen.NUI.PropertyValue(value));
1326 /// Sets and Gets Wrap property.
1328 /// <since_tizen> 3 </since_tizen>
1334 GetProperty(ScrollView.Property.WRAP).Get(out temp);
1339 SetProperty(ScrollView.Property.WRAP, new Tizen.NUI.PropertyValue(value));
1344 /// Sets and Gets Panning property.
1346 /// <since_tizen> 3 </since_tizen>
1352 GetProperty(ScrollView.Property.PANNING).Get(out temp);
1357 SetProperty(ScrollView.Property.PANNING, new Tizen.NUI.PropertyValue(value));
1362 /// Sets and Gets Scrolling property.
1364 /// <since_tizen> 3 </since_tizen>
1365 public bool Scrolling
1370 GetProperty(ScrollView.Property.SCROLLING).Get(out temp);
1375 SetProperty(ScrollView.Property.SCROLLING, new Tizen.NUI.PropertyValue(value));
1380 /// Sets and Gets ScrollDomainSize property.
1382 /// <since_tizen> 3 </since_tizen>
1383 public Vector2 ScrollDomainSize
1387 Vector2 temp = new Vector2(0.0f, 0.0f);
1388 GetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE).Get(temp);
1393 SetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE, new Tizen.NUI.PropertyValue(value));
1398 /// Sets and Gets ScrollDomainOffset property.
1400 /// <since_tizen> 3 </since_tizen>
1401 public Vector2 ScrollDomainOffset
1405 Vector2 temp = new Vector2(0.0f, 0.0f);
1406 GetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get(temp);
1411 SetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Tizen.NUI.PropertyValue(value));
1416 /// Sets and Gets ScrollPositionDelta property.
1418 /// <since_tizen> 3 </since_tizen>
1419 public Vector2 ScrollPositionDelta
1423 Vector2 temp = new Vector2(0.0f, 0.0f);
1424 GetProperty(ScrollView.Property.SCROLL_POSITION_DELTA).Get(temp);
1429 SetProperty(ScrollView.Property.SCROLL_POSITION_DELTA, new Tizen.NUI.PropertyValue(value));
1434 /// Sets and Gets StartPagePosition property.
1436 /// <since_tizen> 3 </since_tizen>
1437 public Vector3 StartPagePosition
1441 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1442 GetProperty(ScrollView.Property.START_PAGE_POSITION).Get(temp);
1447 SetProperty(ScrollView.Property.START_PAGE_POSITION, new Tizen.NUI.PropertyValue(value));
1453 /// Sets and Gets ScrollMode property.
1455 /// <since_tizen> 3 </since_tizen>
1456 public PropertyMap ScrollMode
1460 PropertyValue value = GetProperty( ScrollView.Property.SCROLL_MODE );
1461 PropertyMap map = new PropertyMap();
1467 SetProperty( ScrollView.Property.SCROLL_MODE, new PropertyValue( value ) );