1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
21 using System.Runtime.InteropServices;
22 using Tizen.NUI.BaseComponents;
25 /// ScrollView contains views that can be scrolled manually (via touch).
27 public class ScrollView : Scrollable
29 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
31 internal ScrollView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ScrollView_SWIGUpcast(cPtr), cMemoryOwn)
33 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
36 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ScrollView obj)
38 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
41 protected override void Dispose(DisposeTypes type)
48 if (type == DisposeTypes.Explicit)
51 //Release your own managed resources here.
52 //You should release all of your own disposable objects here.
56 //Release your own unmanaged resources here.
57 //You should not access any managed member here except static instance.
58 //because the execution order of Finalizes is non-deterministic.
60 if (_scrollViewSnapStartedCallbackDelegate != null)
62 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
65 if (swigCPtr.Handle != global::System.IntPtr.Zero)
70 NDalicPINVOKE.delete_ScrollView(swigCPtr);
72 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
79 /// Event arguments that passed via the SnapStarted signal.
81 public class SnapStartedEventArgs : EventArgs
83 private Tizen.NUI.ScrollView.SnapEvent _snapEvent;
86 /// SnapEventInfo is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick).
88 /// <since_tizen> 3 </since_tizen>
89 public Tizen.NUI.ScrollView.SnapEvent SnapEventInfo
102 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
103 private delegate void SnapStartedCallbackDelegate(IntPtr data);
104 private DaliEventHandler<object, SnapStartedEventArgs> _scrollViewSnapStartedEventHandler;
105 private SnapStartedCallbackDelegate _scrollViewSnapStartedCallbackDelegate;
108 /// SnapStarted can be used to subscribe or unsubscribe the event handler
109 /// (in the type of SnapStartedEventHandler-DaliEventHandler<object, SnapStartedEventArgs>) provided by the user.<br>
110 /// The SnapStarted signal is emitted when the ScrollView has started to snap or flick (it tells the target
111 /// position, scale, rotation for the snap or flick).
113 /// <since_tizen> 3 </since_tizen>
114 public event DaliEventHandler<object, SnapStartedEventArgs> SnapStarted
120 // Restricted to only one listener
121 if (_scrollViewSnapStartedEventHandler == null)
123 _scrollViewSnapStartedEventHandler += value;
125 _scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted);
126 this.SnapStartedSignal().Connect(_scrollViewSnapStartedCallbackDelegate);
135 if (_scrollViewSnapStartedEventHandler != null)
137 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
140 _scrollViewSnapStartedEventHandler -= value;
145 // Callback for ScrollView SnapStarted signal
146 private void OnSnapStarted(IntPtr data)
148 SnapStartedEventArgs e = new SnapStartedEventArgs();
150 // Populate all members of "e" (SnapStartedEventArgs) with real data
151 e.SnapEventInfo = SnapEvent.GetSnapEventFromPtr(data);
153 if (_scrollViewSnapStartedEventHandler != null)
155 //here we send all data to user event handlers
156 _scrollViewSnapStartedEventHandler(this, e);
161 /// Snaps signal event's data.
163 public class SnapEvent : global::System.IDisposable
165 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
166 protected bool swigCMemOwn;
168 internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn)
170 swigCMemOwn = cMemoryOwn;
171 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
174 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj)
176 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
179 //A Flag to check who called Dispose(). (By User or DisposeQueue)
180 private bool isDisposeQueued = false;
181 //A Flat to check if it is already disposed.
182 protected bool disposed = false;
187 if (!isDisposeQueued)
189 isDisposeQueued = true;
190 DisposeQueue.Instance.Add(this);
197 /// <since_tizen> 3 </since_tizen>
198 public void Dispose()
200 //Throw excpetion if Dispose() is called in separate thread.
201 if (!Window.IsInstalled())
203 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
208 Dispose(DisposeTypes.Implicit);
212 Dispose(DisposeTypes.Explicit);
213 System.GC.SuppressFinalize(this);
217 protected virtual void Dispose(DisposeTypes type)
224 if (type == DisposeTypes.Explicit)
227 //Release your own managed resources here.
228 //You should release all of your own disposable objects here.
232 //Release your own unmanaged resources here.
233 //You should not access any managed member here except static instance.
234 //because the execution order of Finalizes is non-deterministic.
236 if (swigCPtr.Handle != global::System.IntPtr.Zero)
241 NDalicPINVOKE.delete_ScrollView_SnapEvent(swigCPtr);
243 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
249 public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr)
251 SnapEvent ret = new SnapEvent(cPtr, false);
252 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
256 internal SnapType type
260 NDalicPINVOKE.ScrollView_SnapEvent_type_set(swigCPtr, (int)value);
261 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
265 SnapType ret = (SnapType)NDalicPINVOKE.ScrollView_SnapEvent_type_get(swigCPtr);
266 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
274 /// <since_tizen> 3 </since_tizen>
275 public Vector2 position
279 NDalicPINVOKE.ScrollView_SnapEvent_position_set(swigCPtr, Vector2.getCPtr(value));
280 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
284 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_SnapEvent_position_get(swigCPtr);
285 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
286 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
294 /// <since_tizen> 3 </since_tizen>
295 public float duration
299 NDalicPINVOKE.ScrollView_SnapEvent_duration_set(swigCPtr, value);
300 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
304 float ret = NDalicPINVOKE.ScrollView_SnapEvent_duration_get(swigCPtr);
305 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
311 /// Create an instance of SnapEvent.
313 /// <since_tizen> 3 </since_tizen>
314 public SnapEvent() : this(NDalicPINVOKE.new_ScrollView_SnapEvent(), true)
316 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
321 public new class Property
323 public static readonly int WRAP_ENABLED = NDalicPINVOKE.ScrollView_Property_WRAP_ENABLED_get();
324 public static readonly int PANNING_ENABLED = NDalicPINVOKE.ScrollView_Property_PANNING_ENABLED_get();
325 public static readonly int AXIS_AUTO_LOCK_ENABLED = NDalicPINVOKE.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get();
326 public static readonly int WHEEL_SCROLL_DISTANCE_STEP = NDalicPINVOKE.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
327 public static readonly int SCROLL_MODE = NDalicPINVOKE.ScrollView_Property_SCROLL_MODE_get();
328 public static readonly int SCROLL_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get();
329 public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get();
330 public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
331 public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
332 public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
333 public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
334 public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
335 public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get();
336 public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get();
337 public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get();
338 public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get();
339 public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get();
340 public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get();
341 public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get();
342 public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get();
343 public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
344 public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
345 public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
346 public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
347 public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get();
348 public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get();
353 /// Create an instance of ScrollView.
355 /// <since_tizen> 3 </since_tizen>
356 public ScrollView() : this(NDalicPINVOKE.ScrollView_New(), true)
358 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
363 /// Gets snap-animation's AlphaFunction.
365 /// <returns>Current easing alpha function of the snap animation.</returns>
366 /// <since_tizen> 3 </since_tizen>
367 public AlphaFunction GetScrollSnapAlphaFunction()
369 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
370 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
375 /// Sets snap-animation's AlphaFunction.
377 /// <param name="alpha">Easing alpha function of the snap animation.</param>
378 /// <since_tizen> 3 </since_tizen>
379 public void SetScrollSnapAlphaFunction(AlphaFunction alpha)
381 NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
382 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
386 /// Gets flick-animation's AlphaFunction.
388 /// <returns>Current easing alpha function of the flick animation.</returns>
389 /// <since_tizen> 3 </since_tizen>
390 public AlphaFunction GetScrollFlickAlphaFunction()
392 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
393 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
398 /// Sets flick-animation's AlphaFunction.
400 /// <param name="alpha">Easing alpha function of the flick animation.</param>
401 /// <since_tizen> 3 </since_tizen>
402 public void SetScrollFlickAlphaFunction(AlphaFunction alpha)
404 NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
405 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
409 /// Gets the time for the scroll snap-animation.
411 /// <returns>The time in seconds for the animation to take.</returns>
412 /// <since_tizen> 3 </since_tizen>
413 public float GetScrollSnapDuration()
415 float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr);
416 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
421 /// Sets the time for the scroll snap-animation.
423 /// <param name="time">The time in seconds for the animation to take.</param>
424 /// <since_tizen> 3 </since_tizen>
425 public void SetScrollSnapDuration(float time)
427 NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time);
428 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
432 /// Gets the time for the scroll flick-animation.
434 /// <returns>The time in seconds for the animation to take.</returns>
435 /// <since_tizen> 3 </since_tizen>
436 public float GetScrollFlickDuration()
438 float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr);
439 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
444 /// Sets the time for the scroll snap-animation.
446 /// <param name="time">The time in seconds for the animation to take.</param>
447 /// <since_tizen> 3 </since_tizen>
448 public void SetScrollFlickDuration(float time)
450 NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time);
451 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
455 /// Sets scroll sensibility of pan gesture.
457 /// <param name="sensitive">True to enable scroll, false to disable scrolling.</param>
458 /// <since_tizen> 3 </since_tizen>
459 public void SetScrollSensitive(bool sensitive)
461 NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
462 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
466 /// Sets maximum overshoot amount.
468 /// <param name="overshootX">The maximum number of horizontally scrolled pixels before overshoot X reaches 1.0f.</param>
469 /// <param name="overshootY">The maximum number of vertically scrolled pixels before overshoot X reaches 1.0f.</param>
470 /// <since_tizen> 3 </since_tizen>
471 public void SetMaxOvershoot(float overshootX, float overshootY)
473 NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
474 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
478 /// Sets Snap Overshoot animation's AlphaFunction.
480 /// <param name="alpha">Easing alpha function of the overshoot snap animation.</param>
481 /// <since_tizen> 3 </since_tizen>
482 public void SetSnapOvershootAlphaFunction(AlphaFunction alpha)
484 NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
485 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
489 /// Sets Snap Overshoot animation's Duration.
491 /// <param name="duration">duration The duration of the overshoot snap animation.</param>
492 /// <since_tizen> 3 </since_tizen>
493 public void SetSnapOvershootDuration(float duration)
495 NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
496 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
500 /// Enables or Disables Actor Auto-Snap mode.<br>
501 /// When Actor Auto-Snap mode has been enabled, ScrollView will automatically,
502 /// snap to the closest actor (The closest actor will appear in the center of the ScrollView).
504 /// <param name="enable">Enables (true), or disables (false) Actor AutoSnap.</param>
505 /// <since_tizen> 3 </since_tizen>
506 public void SetViewAutoSnap(bool enable)
508 NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable);
509 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
513 /// Enables or Disables Wrap mode for ScrollView contents.<br>
514 /// When enabled, the ScrollView contents are wrapped over the X/Y Domain.
516 /// <param name="enable">Enables (true), or disables (false) Wrap Mode.</param>
517 /// <since_tizen> 3 </since_tizen>
518 public void SetWrapMode(bool enable)
520 NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable);
521 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
525 /// Gets the current distance needed to scroll for ScrollUpdatedSignal to be emitted.
527 /// <returns>Current scroll update distance.</returns>
528 /// <since_tizen> 3 </since_tizen>
529 public int GetScrollUpdateDistance()
531 int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr);
532 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
537 /// Sets the distance needed to scroll for ScrollUpdatedSignal to be emitted.<br>
538 /// The scroll update distance tells ScrollView how far to move before ScrollUpdatedSignal the informs application.<br>
539 /// Each time the ScrollView crosses this distance the signal will be emitted.<br>
541 /// <param name="distance">The distance for ScrollView to move before emitting update signal.</param>
542 /// <since_tizen> 3 </since_tizen>
543 public void SetScrollUpdateDistance(int distance)
545 NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
546 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
550 /// Returns state of Axis Auto Lock mode.
552 /// <returns>Whether Axis Auto Lock mode has been enabled or not.</returns>
553 /// <since_tizen> 3 </since_tizen>
554 public bool GetAxisAutoLock()
556 bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr);
557 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
562 /// Enables or Disables Axis Auto Lock mode for panning within the ScrollView.<br>
563 /// When enabled, any pan gesture that appears mostly horizontal or mostly
564 /// vertical, will be automatically restricted to horizontal only or vertical
565 /// only panning, until the pan gesture has completed.
567 /// <param name="enable">Enables (true), or disables (false) AxisAutoLock mode.</param>
568 /// <since_tizen> 3 </since_tizen>
569 public void SetAxisAutoLock(bool enable)
571 NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable);
572 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
576 /// Gets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.
578 /// <returns>The gradient, a value between 0.0 and 1.0f.</returns>
579 /// <since_tizen> 3 </since_tizen>
580 public float GetAxisAutoLockGradient()
582 float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr);
583 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
588 /// Sets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.<br>
589 /// 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>
591 /// <param name="gradient">gradient A value between 0.0 and 1.0 (auto-lock for all angles).</param>
592 /// <since_tizen> 3 </since_tizen>
593 public void SetAxisAutoLockGradient(float gradient)
595 NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
596 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
600 /// Gets the friction coefficient setting for ScrollView when flicking in free panning mode.
601 /// This is a value in stage-diagonals per second^2, stage-diagonal = Length( stage.width, stage.height )
603 /// <returns>Friction coefficient is returned.</returns>
604 /// <since_tizen> 3 </since_tizen>
605 public float GetFrictionCoefficient()
607 float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr);
608 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
613 /// Sets the friction coefficient for ScrollView when flicking.<br>
615 /// <param name="friction">Friction coefficient must be greater than 0.0 (default = 1.0).</param>
616 /// <since_tizen> 3 </since_tizen>
617 public void SetFrictionCoefficient(float friction)
619 NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
620 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
624 /// Gets the flick speed coefficient for ScrollView when flicking in free panning mode.<br>
625 /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at which to move the scrolling area.
627 /// <returns>The flick speed coefficient is returned.</returns>
628 /// <since_tizen> 3 </since_tizen>
629 public float GetFlickSpeedCoefficient()
631 float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
632 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
637 /// Sets the flick speed coefficient for ScrollView when flicking in free panning mode.<br>
638 /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at
639 /// which to move the scrolling area.<br>
641 /// <param name="speed">The flick speed coefficient (default = 1.0).</param>
642 /// <since_tizen> 3 </since_tizen>
643 public void SetFlickSpeedCoefficient(float speed)
645 NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
646 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
650 /// Gets the minimum pan distance required for a flick gesture in pixels.<br>
652 /// <returns>Minimum pan distance vector with separate x and y distance.</returns>
653 /// <since_tizen> 3 </since_tizen>
654 public Vector2 GetMinimumDistanceForFlick()
656 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
657 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
662 /// Sets the minimum pan distance required for a flick in pixels.<br>
663 /// 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.
665 /// <param name="distance">The flick speed coefficient (default = 1.0).</param>
666 /// <since_tizen> 3 </since_tizen>
667 public void SetMinimumDistanceForFlick(Vector2 distance)
669 NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
670 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
674 /// Returns the minimum pan speed required for a flick gesture in pixels per second.
676 /// <returns>Minimum pan speed.</returns>
677 /// <since_tizen> 3 </since_tizen>
678 public float GetMinimumSpeedForFlick()
680 float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
681 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
686 /// Sets the minimum pan speed required for a flick in pixels per second.<br>
688 /// <param name="speed">The minimum pan speed for a flick.</param>
689 /// <since_tizen> 3 </since_tizen>
690 public void SetMinimumSpeedForFlick(float speed)
692 NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
693 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
697 /// Gets the maximum flick speed setting for ScrollView when flicking in free panning mode.<br>
698 /// This is a value in stage-diagonals per second.
700 /// <returns>Maximum flick speed is returned.</returns>
701 /// <since_tizen> 3 </since_tizen>
702 public float GetMaxFlickSpeed()
704 float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr);
705 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
710 /// Sets the maximum flick speed for the ScrollView when flicking in free panning mode.<br>
711 /// This is a value in stage-diagonals per second. stage-diagonal = Length( stage.width, stage.height ).<br>
713 /// <param name="speed">Maximum flick speed (default = 3.0).</param>
714 /// <since_tizen> 3 </since_tizen>
715 public void SetMaxFlickSpeed(float speed)
717 NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
718 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
722 /// Gets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.<br>
724 /// <returns>The step of scroll distance(pixel) in X and Y axes.</returns>
725 /// <since_tizen> 3 </since_tizen>
726 public Vector2 GetWheelScrollDistanceStep()
728 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
729 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
734 /// Sets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.<br>
736 /// <param name="step">step The step of scroll distance(pixel) in X and Y axes.</param>
737 /// <since_tizen> 3 </since_tizen>
738 public void SetWheelScrollDistanceStep(Vector2 step)
740 NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
741 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
745 /// Retrieves current scroll position.<br>
747 /// <returns>The current scroll position.</returns>
748 /// <since_tizen> 3 </since_tizen>
749 public Vector2 GetCurrentScrollPosition()
751 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
752 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
757 /// Retrieves current scroll page based on ScrollView dimensions being the size of one page, and all pages laid out in<br>
758 /// a grid fashion, increasing from left to right until the end of the X-domain.
760 /// <returns>The current scroll position.</returns>
761 /// <since_tizen> 3 </since_tizen>
762 public uint GetCurrentPage()
764 uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr);
765 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
770 /// Scrolls View to position specified (contents will scroll to this position).
772 /// <param name="position">The position to scroll to.</param>
773 /// <since_tizen> 3 </since_tizen>
774 public void ScrollTo(Vector2 position)
776 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
777 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
781 /// Scrolls View to position specified (contents will scroll to this position).
783 /// <param name="position">The position to scroll to.</param>
784 /// <param name="duration">The duration of the animation in seconds.</param>
785 /// <since_tizen> 3 </since_tizen>
786 public void ScrollTo(Vector2 position, float duration)
788 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
789 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
793 /// Scrolls View to position specified (contents will scroll to this position).
795 /// <param name="position">The position to scroll to.</param>
796 /// <param name="duration">The duration of the animation in seconds.</param>
797 /// <param name="alpha">The alpha function to use.</param>
798 /// <since_tizen> 3 </since_tizen>
799 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha)
801 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
802 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
806 /// Scrolls View to position specified (contents will scroll to this position).
808 /// <param name="position">The position to scroll to.</param>
809 /// <param name="duration">The duration of the animation in seconds.</param>
810 /// <param name="horizontalBias">Whether to bias scrolling to left or right.</param>
811 /// <param name="verticalBias">Whether to bias scrolling to top or bottom.</param>
812 /// <since_tizen> 3 </since_tizen>
813 public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias)
815 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
816 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
820 /// Scrolls View to position specified (contents will scroll to this position).
822 /// <param name="position">The position to scroll to.</param>
823 /// <param name="duration">The duration of the animation in seconds.</param>
824 /// <param name="alpha">Alpha function to use.</param>
825 /// <param name="horizontalBias">Whether to bias scrolling to left or right.</param>
826 /// <param name="verticalBias">Whether to bias scrolling to top or bottom.</param>
827 /// <since_tizen> 3 </since_tizen>
828 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias)
830 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
831 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
835 /// Scrolls View to position specified (contents will scroll to this position).
837 /// <param name="page">The page to scroll to.</param>
838 /// <since_tizen> 3 </since_tizen>
839 public void ScrollTo(uint page)
841 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
842 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
846 /// Scrolls View to position specified (contents will scroll to this position).
848 /// <param name="page">The page to scroll to.</param>
849 /// <param name="duration">The duration of the animation in seconds.</param>
850 /// <since_tizen> 3 </since_tizen>
851 public void ScrollTo(uint page, float duration)
853 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
854 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
858 /// Scrolls View to position specified (contents will scroll to this position).
860 /// <param name="page">The page to scroll to.</param>
861 /// <param name="duration">The duration of the animation in seconds.</param>
862 /// <param name="bias">Whether to bias scrolling to left or right.</param>
863 /// <since_tizen> 3 </since_tizen>
864 public void ScrollTo(uint page, float duration, DirectionBias bias)
866 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
867 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
871 /// Scrolls View to position specified (contents will scroll to this position).
873 /// <param name="view">The view to center in on (via Scrolling).</param>
874 /// <since_tizen> 3 </since_tizen>
875 public void ScrollTo(View view)
877 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
878 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
882 /// Scrolls View to position specified (contents will scroll to this position).
884 /// <param name="view">The view to center in on (via Scrolling).</param>
885 /// <param name="duration">The duration of the animation in seconds.</param>
886 /// <since_tizen> 3 </since_tizen>
887 public void ScrollTo(View view, float duration)
889 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
890 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
894 /// Scrolls View to the nearest snap points as specified by the Rulers.<br>
895 /// If already at snap points, then will return false, and not scroll.<br>
897 /// <returns>True if Snapping necessary.</returns>
898 /// <since_tizen> 3 </since_tizen>
899 public bool ScrollToSnapPoint()
901 bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr);
902 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
906 internal void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint)
908 NDalicPINVOKE.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
909 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
913 /// Applies Effect to ScrollView.
915 /// <param name="effect">The effect to apply to scroll view.</param>
916 /// <since_tizen> 3 </since_tizen>
917 public void ApplyEffect(ScrollViewEffect effect)
919 NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
920 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
924 /// Removes Effect from ScrollView.
926 /// <param name="effect">The effect to remove.</param>
927 /// <since_tizen> 3 </since_tizen>
928 public void RemoveEffect(ScrollViewEffect effect)
930 NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
931 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
935 /// Remove All Effects from ScrollView.
937 /// <since_tizen> 3 </since_tizen>
938 public void RemoveAllEffects()
940 NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr);
941 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
945 /// Binds view to this ScrollView.
946 /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
948 /// <param name="child">The view to add to this ScrollView.</param>
949 /// <since_tizen> 3 </since_tizen>
950 public void BindView(View child)
952 NDalicPINVOKE.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
953 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
957 /// Unbinds view to this ScrollView.
958 /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
960 /// <param name="child">The view to remove to this ScrollView.</param>
961 /// <since_tizen> 3 </since_tizen>
962 public void UnbindView(View child)
964 NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
965 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
969 /// Allows the user to constrain the scroll view in a particular direction.
971 /// <param name="direction">The axis to constrain the scroll-view to.</param>
972 /// <param name="threshold">The threshold to apply around the axis.</param>
973 /// <since_tizen> 3 </since_tizen>
974 public void SetScrollingDirection(Radian direction, Radian threshold)
976 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
977 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
981 /// Allows the user to constrain the scroll view in a particular direction.
983 /// <param name="direction">The axis to constrain the scroll-view to.</param>
984 /// <since_tizen> 3 </since_tizen>
985 public void SetScrollingDirection(Radian direction)
987 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
988 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
992 /// Removes a direction constraint from the scroll view.
994 /// <param name="direction">The axis to constrain the scroll-view to.</param>
995 /// <since_tizen> 3 </since_tizen>
996 public void RemoveScrollingDirection(Radian direction)
998 NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
999 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1002 internal ScrollViewSnapStartedSignal SnapStartedSignal()
1004 ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(NDalicPINVOKE.ScrollView_SnapStartedSignal(swigCPtr), false);
1005 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1010 /// Sets and Gets WrapEnabled property.
1012 /// <since_tizen> 3 </since_tizen>
1013 public bool WrapEnabled
1018 GetProperty(ScrollView.Property.WRAP_ENABLED).Get(out temp);
1023 SetProperty(ScrollView.Property.WRAP_ENABLED, new Tizen.NUI.PropertyValue(value));
1028 /// Sets and Gets PanningEnabled property.
1030 /// <since_tizen> 3 </since_tizen>
1031 public bool PanningEnabled
1036 GetProperty(ScrollView.Property.PANNING_ENABLED).Get(out temp);
1041 SetProperty(ScrollView.Property.PANNING_ENABLED, new Tizen.NUI.PropertyValue(value));
1046 /// Sets and Gets AxisAutoLockEnabled property.
1048 /// <since_tizen> 3 </since_tizen>
1049 public bool AxisAutoLockEnabled
1054 GetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get(out temp);
1059 SetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Tizen.NUI.PropertyValue(value));
1064 /// Sets and Gets WheelScrollDistanceStep property.
1066 /// <since_tizen> 3 </since_tizen>
1067 public Vector2 WheelScrollDistanceStep
1071 Vector2 temp = new Vector2(0.0f, 0.0f);
1072 GetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get(temp);
1077 SetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Tizen.NUI.PropertyValue(value));
1082 /// Sets and Gets ScrollPosition property.
1084 /// <since_tizen> 3 </since_tizen>
1085 public Vector2 ScrollPosition
1089 Vector2 temp = new Vector2(0.0f, 0.0f);
1090 GetProperty(ScrollView.Property.SCROLL_POSITION).Get(temp);
1095 SetProperty(ScrollView.Property.SCROLL_POSITION, new Tizen.NUI.PropertyValue(value));
1100 /// Sets and Gets ScrollPrePosition property.
1102 /// <since_tizen> 3 </since_tizen>
1103 public Vector2 ScrollPrePosition
1107 Vector2 temp = new Vector2(0.0f, 0.0f);
1108 GetProperty(ScrollView.Property.SCROLL_PRE_POSITION).Get(temp);
1113 SetProperty(ScrollView.Property.SCROLL_PRE_POSITION, new Tizen.NUI.PropertyValue(value));
1118 /// Sets and Gets ScrollPrePositionMax property.
1120 /// <since_tizen> 3 </since_tizen>
1121 public Vector2 ScrollPrePositionMax
1125 Vector2 temp = new Vector2(0.0f, 0.0f);
1126 GetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get(temp);
1131 SetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Tizen.NUI.PropertyValue(value));
1136 /// Sets and Gets OvershootX property.
1138 /// <since_tizen> 3 </since_tizen>
1139 public float OvershootX
1144 GetProperty(ScrollView.Property.OVERSHOOT_X).Get(out temp);
1149 SetProperty(ScrollView.Property.OVERSHOOT_X, new Tizen.NUI.PropertyValue(value));
1154 /// Sets and Gets OvershootY property.
1156 /// <since_tizen> 3 </since_tizen>
1157 public float OvershootY
1162 GetProperty(ScrollView.Property.OVERSHOOT_Y).Get(out temp);
1167 SetProperty(ScrollView.Property.OVERSHOOT_Y, new Tizen.NUI.PropertyValue(value));
1172 /// Sets and Gets ScrollFinal property.
1174 /// <since_tizen> 3 </since_tizen>
1175 public Vector2 ScrollFinal
1179 Vector2 temp = new Vector2(0.0f, 0.0f);
1180 GetProperty(ScrollView.Property.SCROLL_FINAL).Get(temp);
1185 SetProperty(ScrollView.Property.SCROLL_FINAL, new Tizen.NUI.PropertyValue(value));
1190 /// Sets and Gets Wrap property.
1192 /// <since_tizen> 3 </since_tizen>
1198 GetProperty(ScrollView.Property.WRAP).Get(out temp);
1203 SetProperty(ScrollView.Property.WRAP, new Tizen.NUI.PropertyValue(value));
1208 /// Sets and Gets Panning property.
1210 /// <since_tizen> 3 </since_tizen>
1216 GetProperty(ScrollView.Property.PANNING).Get(out temp);
1221 SetProperty(ScrollView.Property.PANNING, new Tizen.NUI.PropertyValue(value));
1226 /// Sets and Gets Scrolling property.
1228 /// <since_tizen> 3 </since_tizen>
1229 public bool Scrolling
1234 GetProperty(ScrollView.Property.SCROLLING).Get(out temp);
1239 SetProperty(ScrollView.Property.SCROLLING, new Tizen.NUI.PropertyValue(value));
1244 /// Sets and Gets ScrollDomainSize property.
1246 /// <since_tizen> 3 </since_tizen>
1247 public Vector2 ScrollDomainSize
1251 Vector2 temp = new Vector2(0.0f, 0.0f);
1252 GetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE).Get(temp);
1257 SetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE, new Tizen.NUI.PropertyValue(value));
1262 /// Sets and Gets ScrollDomainOffset property.
1264 /// <since_tizen> 3 </since_tizen>
1265 public Vector2 ScrollDomainOffset
1269 Vector2 temp = new Vector2(0.0f, 0.0f);
1270 GetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get(temp);
1275 SetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Tizen.NUI.PropertyValue(value));
1280 /// Sets and Gets ScrollPositionDelta property.
1282 /// <since_tizen> 3 </since_tizen>
1283 public Vector2 ScrollPositionDelta
1287 Vector2 temp = new Vector2(0.0f, 0.0f);
1288 GetProperty(ScrollView.Property.SCROLL_POSITION_DELTA).Get(temp);
1293 SetProperty(ScrollView.Property.SCROLL_POSITION_DELTA, new Tizen.NUI.PropertyValue(value));
1298 /// Sets and Gets StartPagePosition property.
1300 /// <since_tizen> 3 </since_tizen>
1301 public Vector3 StartPagePosition
1305 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1306 GetProperty(ScrollView.Property.START_PAGE_POSITION).Get(temp);
1311 SetProperty(ScrollView.Property.START_PAGE_POSITION, new Tizen.NUI.PropertyValue(value));
1317 /// Sets and Gets ScrollMode property.
1319 /// <since_tizen> 3 </since_tizen>
1320 public PropertyMap ScrollMode
1324 PropertyValue value = GetProperty( ScrollView.Property.SCROLL_MODE );
1325 PropertyMap map = new PropertyMap();
1331 SetProperty( ScrollView.Property.SCROLL_MODE, new PropertyValue( value ) );