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 (swigCPtr.Handle != global::System.IntPtr.Zero)
63 //Unreference this instance from Registry.
64 Registry.Unregister(this);
66 NDalicPINVOKE.delete_ScrollView(swigCPtr);
68 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
75 * @brief Event arguments that passed via SnapStarted signal
78 public class SnapStartedEventArgs : EventArgs
80 private Tizen.NUI.ScrollView.SnapEvent _snapEvent;
83 * @brief SnapEvent - is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick).
86 public Tizen.NUI.ScrollView.SnapEvent SnapEventInfo
99 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
100 private delegate void SnapStartedCallbackDelegate(IntPtr data);
101 private DaliEventHandler<object, SnapStartedEventArgs> _scrollViewSnapStartedEventHandler;
102 private SnapStartedCallbackDelegate _scrollViewSnapStartedCallbackDelegate;
105 * @brief Event for SnapStarted signal which can be used to subscribe/unsubscribe the event handler
106 * (in the type of SnapStartedEventHandler-DaliEventHandler<object,SnapStartedEventArgs>) provided by the user.
107 * SnapStarted signal is emitted hen the ScrollView has started to snap or flick (it tells the target
108 * position, scale, rotation for the snap or flick).
111 public event DaliEventHandler<object, SnapStartedEventArgs> SnapStarted
117 // Restricted to only one listener
118 if (_scrollViewSnapStartedEventHandler == null)
120 _scrollViewSnapStartedEventHandler += value;
122 _scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted);
123 this.SnapStartedSignal().Connect(_scrollViewSnapStartedCallbackDelegate);
132 if (_scrollViewSnapStartedEventHandler != null)
134 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
137 _scrollViewSnapStartedEventHandler -= value;
142 // Callback for ScrollView SnapStarted signal
143 private void OnSnapStarted(IntPtr data)
145 SnapStartedEventArgs e = new SnapStartedEventArgs();
147 // Populate all members of "e" (SnapStartedEventArgs) with real data
148 e.SnapEventInfo = SnapEvent.GetSnapEventFromPtr(data);
150 if (_scrollViewSnapStartedEventHandler != null)
152 //here we send all data to user event handlers
153 _scrollViewSnapStartedEventHandler(this, e);
157 public class SnapEvent : global::System.IDisposable
159 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
160 protected bool swigCMemOwn;
162 internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn)
164 swigCMemOwn = cMemoryOwn;
165 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
168 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj)
170 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
173 //A Flag to check who called Dispose(). (By User or DisposeQueue)
174 private bool isDisposeQueued = false;
175 //A Flat to check if it is already disposed.
176 protected bool disposed = false;
181 if (!isDisposeQueued)
183 isDisposeQueued = true;
184 DisposeQueue.Instance.Add(this);
188 public void Dispose()
190 //Throw excpetion if Dispose() is called in separate thread.
191 if (!Window.IsInstalled())
193 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
198 Dispose(DisposeTypes.Implicit);
202 Dispose(DisposeTypes.Explicit);
203 System.GC.SuppressFinalize(this);
207 protected virtual void Dispose(DisposeTypes type)
214 if (type == DisposeTypes.Explicit)
217 //Release your own managed resources here.
218 //You should release all of your own disposable objects here.
222 //Release your own unmanaged resources here.
223 //You should not access any managed member here except static instance.
224 //because the execution order of Finalizes is non-deterministic.
226 if (swigCPtr.Handle != global::System.IntPtr.Zero)
231 NDalicPINVOKE.delete_ScrollView_SnapEvent(swigCPtr);
233 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
239 public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr)
241 SnapEvent ret = new SnapEvent(cPtr, false);
242 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
246 internal SnapType type
250 NDalicPINVOKE.ScrollView_SnapEvent_type_set(swigCPtr, (int)value);
251 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
255 SnapType ret = (SnapType)NDalicPINVOKE.ScrollView_SnapEvent_type_get(swigCPtr);
256 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
261 public Vector2 position
265 NDalicPINVOKE.ScrollView_SnapEvent_position_set(swigCPtr, Vector2.getCPtr(value));
266 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
270 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_SnapEvent_position_get(swigCPtr);
271 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
272 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
277 public float duration
281 NDalicPINVOKE.ScrollView_SnapEvent_duration_set(swigCPtr, value);
282 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
286 float ret = NDalicPINVOKE.ScrollView_SnapEvent_duration_get(swigCPtr);
287 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
292 public SnapEvent() : this(NDalicPINVOKE.new_ScrollView_SnapEvent(), true)
294 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
299 public class Property
301 public static readonly int WRAP_ENABLED = NDalicPINVOKE.ScrollView_Property_WRAP_ENABLED_get();
302 public static readonly int PANNING_ENABLED = NDalicPINVOKE.ScrollView_Property_PANNING_ENABLED_get();
303 public static readonly int AXIS_AUTO_LOCK_ENABLED = NDalicPINVOKE.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get();
304 public static readonly int WHEEL_SCROLL_DISTANCE_STEP = NDalicPINVOKE.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
305 public static readonly int SCROLL_MODE = NDalicPINVOKE.ScrollView_Property_SCROLL_MODE_get();
306 public static readonly int SCROLL_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get();
307 public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get();
308 public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
309 public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
310 public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
311 public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
312 public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
313 public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get();
314 public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get();
315 public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get();
316 public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get();
317 public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get();
318 public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get();
319 public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get();
320 public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get();
321 public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
322 public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
323 public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
324 public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
325 public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get();
326 public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get();
330 public ScrollView() : this(NDalicPINVOKE.ScrollView_New(), true)
332 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
336 public AlphaFunction GetScrollSnapAlphaFunction()
338 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
339 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
343 public void SetScrollSnapAlphaFunction(AlphaFunction alpha)
345 NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
346 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
349 public AlphaFunction GetScrollFlickAlphaFunction()
351 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
352 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
356 public void SetScrollFlickAlphaFunction(AlphaFunction alpha)
358 NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
359 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
362 public float GetScrollSnapDuration()
364 float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr);
365 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
369 public void SetScrollSnapDuration(float time)
371 NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time);
372 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
375 public float GetScrollFlickDuration()
377 float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr);
378 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
382 public void SetScrollFlickDuration(float time)
384 NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time);
385 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
389 public void SetScrollSensitive(bool sensitive)
391 NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
392 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
395 public void SetMaxOvershoot(float overshootX, float overshootY)
397 NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
398 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
401 public void SetSnapOvershootAlphaFunction(AlphaFunction alpha)
403 NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
404 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
407 public void SetSnapOvershootDuration(float duration)
409 NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
410 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
413 public void SetViewAutoSnap(bool enable)
415 NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable);
416 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
419 public void SetWrapMode(bool enable)
421 NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable);
422 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
425 public int GetScrollUpdateDistance()
427 int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr);
428 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
432 public void SetScrollUpdateDistance(int distance)
434 NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
435 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
438 public bool GetAxisAutoLock()
440 bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr);
441 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
445 public void SetAxisAutoLock(bool enable)
447 NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable);
448 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
451 public float GetAxisAutoLockGradient()
453 float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr);
454 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
458 public void SetAxisAutoLockGradient(float gradient)
460 NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
461 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
464 public float GetFrictionCoefficient()
466 float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr);
467 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
471 public void SetFrictionCoefficient(float friction)
473 NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
474 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
477 public float GetFlickSpeedCoefficient()
479 float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
480 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
484 public void SetFlickSpeedCoefficient(float speed)
486 NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
487 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
490 public Vector2 GetMinimumDistanceForFlick()
492 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
493 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
497 public void SetMinimumDistanceForFlick(Vector2 distance)
499 NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
500 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
503 public float GetMinimumSpeedForFlick()
505 float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
506 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
510 public void SetMinimumSpeedForFlick(float speed)
512 NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
513 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
516 public float GetMaxFlickSpeed()
518 float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr);
519 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
523 public void SetMaxFlickSpeed(float speed)
525 NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
526 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
529 public Vector2 GetWheelScrollDistanceStep()
531 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
532 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
536 public void SetWheelScrollDistanceStep(Vector2 step)
538 NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
539 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
542 public Vector2 GetCurrentScrollPosition()
544 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
545 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
549 public uint GetCurrentPage()
551 uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr);
552 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
556 public void ScrollTo(Vector2 position)
558 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
559 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
562 public void ScrollTo(Vector2 position, float duration)
564 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
565 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
568 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha)
570 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
571 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
574 public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias)
576 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
577 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
580 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias)
582 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
583 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
586 public void ScrollTo(uint page)
588 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
589 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
592 public void ScrollTo(uint page, float duration)
594 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
595 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
598 public void ScrollTo(uint page, float duration, DirectionBias bias)
600 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
601 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
604 public void ScrollTo(View view)
606 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
607 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
610 public void ScrollTo(View view, float duration)
612 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
613 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
616 public bool ScrollToSnapPoint()
618 bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr);
619 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
623 internal void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint)
625 NDalicPINVOKE.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
626 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
629 public void ApplyEffect(ScrollViewEffect effect)
631 NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
632 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
635 public void RemoveEffect(ScrollViewEffect effect)
637 NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
638 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
641 public void RemoveAllEffects()
643 NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr);
644 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
647 public void BindView(View child)
649 NDalicPINVOKE.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
650 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
653 public void UnbindView(View child)
655 NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
656 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
659 public void SetScrollingDirection(Radian direction, Radian threshold)
661 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
662 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
665 public void SetScrollingDirection(Radian direction)
667 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
668 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
671 public void RemoveScrollingDirection(Radian direction)
673 NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
674 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
677 internal ScrollViewSnapStartedSignal SnapStartedSignal()
679 ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(NDalicPINVOKE.ScrollView_SnapStartedSignal(swigCPtr), false);
680 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
684 public bool WrapEnabled
689 GetProperty(ScrollView.Property.WRAP_ENABLED).Get(out temp);
694 SetProperty(ScrollView.Property.WRAP_ENABLED, new Tizen.NUI.PropertyValue(value));
697 public bool PanningEnabled
702 GetProperty(ScrollView.Property.PANNING_ENABLED).Get(out temp);
707 SetProperty(ScrollView.Property.PANNING_ENABLED, new Tizen.NUI.PropertyValue(value));
710 public bool AxisAutoLockEnabled
715 GetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get(out temp);
720 SetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Tizen.NUI.PropertyValue(value));
723 public Vector2 WheelScrollDistanceStep
727 Vector2 temp = new Vector2(0.0f, 0.0f);
728 GetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get(temp);
733 SetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Tizen.NUI.PropertyValue(value));
736 public Vector2 ScrollPosition
740 Vector2 temp = new Vector2(0.0f, 0.0f);
741 GetProperty(ScrollView.Property.SCROLL_POSITION).Get(temp);
746 SetProperty(ScrollView.Property.SCROLL_POSITION, new Tizen.NUI.PropertyValue(value));
749 public Vector2 ScrollPrePosition
753 Vector2 temp = new Vector2(0.0f, 0.0f);
754 GetProperty(ScrollView.Property.SCROLL_PRE_POSITION).Get(temp);
759 SetProperty(ScrollView.Property.SCROLL_PRE_POSITION, new Tizen.NUI.PropertyValue(value));
762 public Vector2 ScrollPrePositionMax
766 Vector2 temp = new Vector2(0.0f, 0.0f);
767 GetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get(temp);
772 SetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Tizen.NUI.PropertyValue(value));
775 public float OvershootX
780 GetProperty(ScrollView.Property.OVERSHOOT_X).Get(out temp);
785 SetProperty(ScrollView.Property.OVERSHOOT_X, new Tizen.NUI.PropertyValue(value));
788 public float OvershootY
793 GetProperty(ScrollView.Property.OVERSHOOT_Y).Get(out temp);
798 SetProperty(ScrollView.Property.OVERSHOOT_Y, new Tizen.NUI.PropertyValue(value));
801 public Vector2 ScrollFinal
805 Vector2 temp = new Vector2(0.0f, 0.0f);
806 GetProperty(ScrollView.Property.SCROLL_FINAL).Get(temp);
811 SetProperty(ScrollView.Property.SCROLL_FINAL, new Tizen.NUI.PropertyValue(value));
819 GetProperty(ScrollView.Property.WRAP).Get(out temp);
824 SetProperty(ScrollView.Property.WRAP, new Tizen.NUI.PropertyValue(value));
832 GetProperty(ScrollView.Property.PANNING).Get(out temp);
837 SetProperty(ScrollView.Property.PANNING, new Tizen.NUI.PropertyValue(value));
840 public bool Scrolling
845 GetProperty(ScrollView.Property.SCROLLING).Get(out temp);
850 SetProperty(ScrollView.Property.SCROLLING, new Tizen.NUI.PropertyValue(value));
853 public Vector2 ScrollDomainSize
857 Vector2 temp = new Vector2(0.0f, 0.0f);
858 GetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE).Get(temp);
863 SetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE, new Tizen.NUI.PropertyValue(value));
866 public Vector2 ScrollDomainOffset
870 Vector2 temp = new Vector2(0.0f, 0.0f);
871 GetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get(temp);
876 SetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Tizen.NUI.PropertyValue(value));
879 public Vector2 ScrollPositionDelta
883 Vector2 temp = new Vector2(0.0f, 0.0f);
884 GetProperty(ScrollView.Property.SCROLL_POSITION_DELTA).Get(temp);
889 SetProperty(ScrollView.Property.SCROLL_POSITION_DELTA, new Tizen.NUI.PropertyValue(value));
892 public Vector3 StartPagePosition
896 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
897 GetProperty(ScrollView.Property.START_PAGE_POSITION).Get(temp);
902 SetProperty(ScrollView.Property.START_PAGE_POSITION, new Tizen.NUI.PropertyValue(value));
906 public PropertyMap ScrollMode
910 PropertyValue value = GetProperty( ScrollView.Property.SCROLL_MODE );
911 PropertyMap map = new PropertyMap();
917 SetProperty( ScrollView.Property.SCROLL_MODE, new PropertyValue( value ) );