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;
24 public class ScrollView : Scrollable
26 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
28 internal ScrollView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ScrollView_SWIGUpcast(cPtr), cMemoryOwn)
30 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
33 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ScrollView obj)
35 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
38 protected override void Dispose(DisposeTypes type)
45 if (type == DisposeTypes.Explicit)
48 //Release your own managed resources here.
49 //You should release all of your own disposable objects here.
53 //Release your own unmanaged resources here.
54 //You should not access any managed member here except static instance.
55 //because the execution order of Finalizes is non-deterministic.
57 if (_scrollViewSnapStartedCallbackDelegate != null)
59 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
62 if (swigCPtr.Handle != global::System.IntPtr.Zero)
67 NDalicPINVOKE.delete_ScrollView(swigCPtr);
69 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
76 * @brief Event arguments that passed via the SnapStarted signal
79 public class SnapStartedEventArgs : EventArgs
81 private Tizen.NUI.ScrollView.SnapEvent _snapEvent;
84 * @brief SnapEvent - is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick).
87 public Tizen.NUI.ScrollView.SnapEvent SnapEventInfo
100 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
101 private delegate void SnapStartedCallbackDelegate(IntPtr data);
102 private DaliEventHandler<object, SnapStartedEventArgs> _scrollViewSnapStartedEventHandler;
103 private SnapStartedCallbackDelegate _scrollViewSnapStartedCallbackDelegate;
106 * @brief Event for the SnapStarted signal which can be used to subscribe or unsubscribe the event handler
107 * (in the type of SnapStartedEventHandler-DaliEventHandler<object,SnapStartedEventArgs>) provided by the user.
108 * The SnapStarted signal is emitted when the ScrollView has started to snap or flick (it tells the target
109 * position, scale, rotation for the snap or flick).
112 public event DaliEventHandler<object, SnapStartedEventArgs> SnapStarted
118 // Restricted to only one listener
119 if (_scrollViewSnapStartedEventHandler == null)
121 _scrollViewSnapStartedEventHandler += value;
123 _scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted);
124 this.SnapStartedSignal().Connect(_scrollViewSnapStartedCallbackDelegate);
133 if (_scrollViewSnapStartedEventHandler != null)
135 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
138 _scrollViewSnapStartedEventHandler -= value;
143 // Callback for ScrollView SnapStarted signal
144 private void OnSnapStarted(IntPtr data)
146 SnapStartedEventArgs e = new SnapStartedEventArgs();
148 // Populate all members of "e" (SnapStartedEventArgs) with real data
149 e.SnapEventInfo = SnapEvent.GetSnapEventFromPtr(data);
151 if (_scrollViewSnapStartedEventHandler != null)
153 //here we send all data to user event handlers
154 _scrollViewSnapStartedEventHandler(this, e);
158 public class SnapEvent : global::System.IDisposable
160 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
161 protected bool swigCMemOwn;
163 internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn)
165 swigCMemOwn = cMemoryOwn;
166 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
169 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj)
171 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
174 //A Flag to check who called Dispose(). (By User or DisposeQueue)
175 private bool isDisposeQueued = false;
176 //A Flat to check if it is already disposed.
177 protected bool disposed = false;
182 if (!isDisposeQueued)
184 isDisposeQueued = true;
185 DisposeQueue.Instance.Add(this);
189 public void Dispose()
191 //Throw excpetion if Dispose() is called in separate thread.
192 if (!Window.IsInstalled())
194 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
199 Dispose(DisposeTypes.Implicit);
203 Dispose(DisposeTypes.Explicit);
204 System.GC.SuppressFinalize(this);
208 protected virtual void Dispose(DisposeTypes type)
215 if (type == DisposeTypes.Explicit)
218 //Release your own managed resources here.
219 //You should release all of your own disposable objects here.
223 //Release your own unmanaged resources here.
224 //You should not access any managed member here except static instance.
225 //because the execution order of Finalizes is non-deterministic.
227 if (swigCPtr.Handle != global::System.IntPtr.Zero)
232 NDalicPINVOKE.delete_ScrollView_SnapEvent(swigCPtr);
234 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
240 public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr)
242 SnapEvent ret = new SnapEvent(cPtr, false);
243 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
247 internal SnapType type
251 NDalicPINVOKE.ScrollView_SnapEvent_type_set(swigCPtr, (int)value);
252 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
256 SnapType ret = (SnapType)NDalicPINVOKE.ScrollView_SnapEvent_type_get(swigCPtr);
257 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
262 public Vector2 position
266 NDalicPINVOKE.ScrollView_SnapEvent_position_set(swigCPtr, Vector2.getCPtr(value));
267 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
271 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_SnapEvent_position_get(swigCPtr);
272 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
273 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
278 public float duration
282 NDalicPINVOKE.ScrollView_SnapEvent_duration_set(swigCPtr, value);
283 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
287 float ret = NDalicPINVOKE.ScrollView_SnapEvent_duration_get(swigCPtr);
288 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
293 public SnapEvent() : this(NDalicPINVOKE.new_ScrollView_SnapEvent(), true)
295 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
300 public new class Property
302 public static readonly int WRAP_ENABLED = NDalicPINVOKE.ScrollView_Property_WRAP_ENABLED_get();
303 public static readonly int PANNING_ENABLED = NDalicPINVOKE.ScrollView_Property_PANNING_ENABLED_get();
304 public static readonly int AXIS_AUTO_LOCK_ENABLED = NDalicPINVOKE.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get();
305 public static readonly int WHEEL_SCROLL_DISTANCE_STEP = NDalicPINVOKE.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
306 public static readonly int SCROLL_MODE = NDalicPINVOKE.ScrollView_Property_SCROLL_MODE_get();
307 public static readonly int SCROLL_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get();
308 public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get();
309 public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
310 public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
311 public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
312 public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
313 public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
314 public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get();
315 public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get();
316 public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get();
317 public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get();
318 public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get();
319 public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get();
320 public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get();
321 public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get();
322 public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
323 public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
324 public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
325 public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
326 public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get();
327 public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get();
331 public ScrollView() : this(NDalicPINVOKE.ScrollView_New(), true)
333 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
337 public AlphaFunction GetScrollSnapAlphaFunction()
339 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
340 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
344 public void SetScrollSnapAlphaFunction(AlphaFunction alpha)
346 NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
347 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
350 public AlphaFunction GetScrollFlickAlphaFunction()
352 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
353 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
357 public void SetScrollFlickAlphaFunction(AlphaFunction alpha)
359 NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
360 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
363 public float GetScrollSnapDuration()
365 float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr);
366 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
370 public void SetScrollSnapDuration(float time)
372 NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time);
373 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
376 public float GetScrollFlickDuration()
378 float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr);
379 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
383 public void SetScrollFlickDuration(float time)
385 NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time);
386 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
390 public void SetScrollSensitive(bool sensitive)
392 NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
393 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
396 public void SetMaxOvershoot(float overshootX, float overshootY)
398 NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
399 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
402 public void SetSnapOvershootAlphaFunction(AlphaFunction alpha)
404 NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
405 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
408 public void SetSnapOvershootDuration(float duration)
410 NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
411 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
414 public void SetViewAutoSnap(bool enable)
416 NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable);
417 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
420 public void SetWrapMode(bool enable)
422 NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable);
423 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
426 public int GetScrollUpdateDistance()
428 int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr);
429 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
433 public void SetScrollUpdateDistance(int distance)
435 NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
436 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
439 public bool GetAxisAutoLock()
441 bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr);
442 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
446 public void SetAxisAutoLock(bool enable)
448 NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable);
449 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
452 public float GetAxisAutoLockGradient()
454 float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr);
455 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
459 public void SetAxisAutoLockGradient(float gradient)
461 NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
462 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
465 public float GetFrictionCoefficient()
467 float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr);
468 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
472 public void SetFrictionCoefficient(float friction)
474 NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
475 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
478 public float GetFlickSpeedCoefficient()
480 float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
481 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
485 public void SetFlickSpeedCoefficient(float speed)
487 NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
488 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
491 public Vector2 GetMinimumDistanceForFlick()
493 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
494 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
498 public void SetMinimumDistanceForFlick(Vector2 distance)
500 NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
501 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
504 public float GetMinimumSpeedForFlick()
506 float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
507 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
511 public void SetMinimumSpeedForFlick(float speed)
513 NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
514 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
517 public float GetMaxFlickSpeed()
519 float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr);
520 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
524 public void SetMaxFlickSpeed(float speed)
526 NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
527 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
530 public Vector2 GetWheelScrollDistanceStep()
532 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
533 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
537 public void SetWheelScrollDistanceStep(Vector2 step)
539 NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
540 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
543 public Vector2 GetCurrentScrollPosition()
545 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
546 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
550 public uint GetCurrentPage()
552 uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr);
553 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
557 public void ScrollTo(Vector2 position)
559 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
560 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
563 public void ScrollTo(Vector2 position, float duration)
565 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
566 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
569 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha)
571 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
572 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
575 public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias)
577 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
578 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
581 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias)
583 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
584 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
587 public void ScrollTo(uint page)
589 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
590 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
593 public void ScrollTo(uint page, float duration)
595 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
596 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
599 public void ScrollTo(uint page, float duration, DirectionBias bias)
601 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
602 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
605 public void ScrollTo(View view)
607 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
608 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
611 public void ScrollTo(View view, float duration)
613 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
614 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
617 public bool ScrollToSnapPoint()
619 bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr);
620 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
624 internal void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint)
626 NDalicPINVOKE.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
627 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
630 public void ApplyEffect(ScrollViewEffect effect)
632 NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
633 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
636 public void RemoveEffect(ScrollViewEffect effect)
638 NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
639 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
642 public void RemoveAllEffects()
644 NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr);
645 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
648 public void BindView(View child)
650 NDalicPINVOKE.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
651 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
654 public void UnbindView(View child)
656 NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
657 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
660 public void SetScrollingDirection(Radian direction, Radian threshold)
662 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
663 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
666 public void SetScrollingDirection(Radian direction)
668 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
669 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
672 public void RemoveScrollingDirection(Radian direction)
674 NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
675 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
678 internal ScrollViewSnapStartedSignal SnapStartedSignal()
680 ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(NDalicPINVOKE.ScrollView_SnapStartedSignal(swigCPtr), false);
681 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
685 public bool WrapEnabled
690 GetProperty(ScrollView.Property.WRAP_ENABLED).Get(out temp);
695 SetProperty(ScrollView.Property.WRAP_ENABLED, new Tizen.NUI.PropertyValue(value));
698 public bool PanningEnabled
703 GetProperty(ScrollView.Property.PANNING_ENABLED).Get(out temp);
708 SetProperty(ScrollView.Property.PANNING_ENABLED, new Tizen.NUI.PropertyValue(value));
711 public bool AxisAutoLockEnabled
716 GetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get(out temp);
721 SetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Tizen.NUI.PropertyValue(value));
724 public Vector2 WheelScrollDistanceStep
728 Vector2 temp = new Vector2(0.0f, 0.0f);
729 GetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get(temp);
734 SetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Tizen.NUI.PropertyValue(value));
737 public Vector2 ScrollPosition
741 Vector2 temp = new Vector2(0.0f, 0.0f);
742 GetProperty(ScrollView.Property.SCROLL_POSITION).Get(temp);
747 SetProperty(ScrollView.Property.SCROLL_POSITION, new Tizen.NUI.PropertyValue(value));
750 public Vector2 ScrollPrePosition
754 Vector2 temp = new Vector2(0.0f, 0.0f);
755 GetProperty(ScrollView.Property.SCROLL_PRE_POSITION).Get(temp);
760 SetProperty(ScrollView.Property.SCROLL_PRE_POSITION, new Tizen.NUI.PropertyValue(value));
763 public Vector2 ScrollPrePositionMax
767 Vector2 temp = new Vector2(0.0f, 0.0f);
768 GetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get(temp);
773 SetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Tizen.NUI.PropertyValue(value));
776 public float OvershootX
781 GetProperty(ScrollView.Property.OVERSHOOT_X).Get(out temp);
786 SetProperty(ScrollView.Property.OVERSHOOT_X, new Tizen.NUI.PropertyValue(value));
789 public float OvershootY
794 GetProperty(ScrollView.Property.OVERSHOOT_Y).Get(out temp);
799 SetProperty(ScrollView.Property.OVERSHOOT_Y, new Tizen.NUI.PropertyValue(value));
802 public Vector2 ScrollFinal
806 Vector2 temp = new Vector2(0.0f, 0.0f);
807 GetProperty(ScrollView.Property.SCROLL_FINAL).Get(temp);
812 SetProperty(ScrollView.Property.SCROLL_FINAL, new Tizen.NUI.PropertyValue(value));
820 GetProperty(ScrollView.Property.WRAP).Get(out temp);
825 SetProperty(ScrollView.Property.WRAP, new Tizen.NUI.PropertyValue(value));
833 GetProperty(ScrollView.Property.PANNING).Get(out temp);
838 SetProperty(ScrollView.Property.PANNING, new Tizen.NUI.PropertyValue(value));
841 public bool Scrolling
846 GetProperty(ScrollView.Property.SCROLLING).Get(out temp);
851 SetProperty(ScrollView.Property.SCROLLING, new Tizen.NUI.PropertyValue(value));
854 public Vector2 ScrollDomainSize
858 Vector2 temp = new Vector2(0.0f, 0.0f);
859 GetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE).Get(temp);
864 SetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE, new Tizen.NUI.PropertyValue(value));
867 public Vector2 ScrollDomainOffset
871 Vector2 temp = new Vector2(0.0f, 0.0f);
872 GetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get(temp);
877 SetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Tizen.NUI.PropertyValue(value));
880 public Vector2 ScrollPositionDelta
884 Vector2 temp = new Vector2(0.0f, 0.0f);
885 GetProperty(ScrollView.Property.SCROLL_POSITION_DELTA).Get(temp);
890 SetProperty(ScrollView.Property.SCROLL_POSITION_DELTA, new Tizen.NUI.PropertyValue(value));
893 public Vector3 StartPagePosition
897 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
898 GetProperty(ScrollView.Property.START_PAGE_POSITION).Get(temp);
903 SetProperty(ScrollView.Property.START_PAGE_POSITION, new Tizen.NUI.PropertyValue(value));
907 public PropertyMap ScrollMode
911 PropertyValue value = GetProperty( ScrollView.Property.SCROLL_MODE );
912 PropertyMap map = new PropertyMap();
918 SetProperty( ScrollView.Property.SCROLL_MODE, new PropertyValue( value ) );