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.
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
20 // This file was automatically generated by SWIG (http://www.swig.org).
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
31 using System.Runtime.InteropServices;
32 using Tizen.NUI.BaseComponents;
34 public class ScrollView : Scrollable
36 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
38 internal ScrollView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ScrollView_SWIGUpcast(cPtr), cMemoryOwn)
40 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
43 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ScrollView obj)
45 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
48 protected override void Dispose(DisposeTypes type)
55 if (type == DisposeTypes.Explicit)
58 //Release your own managed resources here.
59 //You should release all of your own disposable objects here.
63 //Release your own unmanaged resources here.
64 //You should not access any managed member here except static instance.
65 //because the execution order of Finalizes is non-deterministic.
67 //Unreference this from if a static instance refer to this.
68 ViewRegistry.UnregisterView(this);
70 if (swigCPtr.Handle != global::System.IntPtr.Zero)
75 NDalicPINVOKE.delete_ScrollView(swigCPtr);
77 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
84 * @brief Event arguments that passed via SnapStarted signal
87 public class SnapStartedEventArgs : EventArgs
89 private Tizen.NUI.ScrollView.SnapEvent _snapEvent;
92 * @brief SnapEvent - is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick).
95 public Tizen.NUI.ScrollView.SnapEvent SnapEventInfo
108 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
109 private delegate void SnapStartedCallbackDelegate(IntPtr data);
110 private DaliEventHandler<object, SnapStartedEventArgs> _scrollViewSnapStartedEventHandler;
111 private SnapStartedCallbackDelegate _scrollViewSnapStartedCallbackDelegate;
114 * @brief Event for SnapStarted signal which can be used to subscribe/unsubscribe the event handler
115 * (in the type of SnapStartedEventHandler-DaliEventHandler<object,SnapStartedEventArgs>) provided by the user.
116 * SnapStarted signal is emitted hen the ScrollView has started to snap or flick (it tells the target
117 * position, scale, rotation for the snap or flick).
120 public event DaliEventHandler<object, SnapStartedEventArgs> SnapStarted
126 // Restricted to only one listener
127 if (_scrollViewSnapStartedEventHandler == null)
129 _scrollViewSnapStartedEventHandler += value;
131 _scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted);
132 this.SnapStartedSignal().Connect(_scrollViewSnapStartedCallbackDelegate);
141 if (_scrollViewSnapStartedEventHandler != null)
143 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
146 _scrollViewSnapStartedEventHandler -= value;
151 // Callback for ScrollView SnapStarted signal
152 private void OnSnapStarted(IntPtr data)
154 SnapStartedEventArgs e = new SnapStartedEventArgs();
156 // Populate all members of "e" (SnapStartedEventArgs) with real data
157 e.SnapEventInfo = SnapEvent.GetSnapEventFromPtr(data);
159 if (_scrollViewSnapStartedEventHandler != null)
161 //here we send all data to user event handlers
162 _scrollViewSnapStartedEventHandler(this, e);
167 public class ClampEvent : global::System.IDisposable
169 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
170 protected bool swigCMemOwn;
172 internal ClampEvent(global::System.IntPtr cPtr, bool cMemoryOwn)
174 swigCMemOwn = cMemoryOwn;
175 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
178 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ClampEvent obj)
180 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
183 //A Flag to check who called Dispose(). (By User or DisposeQueue)
184 private bool isDisposeQueued = false;
185 //A Flat to check if it is already disposed.
186 protected bool disposed = false;
191 if (!isDisposeQueued)
193 isDisposeQueued = true;
194 DisposeQueue.Instance.Add(this);
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_ClampEvent(swigCPtr);
243 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
249 internal ClampState2D scale
253 NDalicPINVOKE.ScrollView_ClampEvent_scale_set(swigCPtr, ClampState2D.getCPtr(value));
254 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
258 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_ClampEvent_scale_get(swigCPtr);
259 ClampState2D ret = (cPtr == global::System.IntPtr.Zero) ? null : new ClampState2D(cPtr, false);
260 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
265 internal ClampState2D position
269 NDalicPINVOKE.ScrollView_ClampEvent_position_set(swigCPtr, ClampState2D.getCPtr(value));
270 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
274 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_ClampEvent_position_get(swigCPtr);
275 ClampState2D ret = (cPtr == global::System.IntPtr.Zero) ? null : new ClampState2D(cPtr, false);
276 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
281 internal ClampState rotation
285 NDalicPINVOKE.ScrollView_ClampEvent_rotation_set(swigCPtr, (int)value);
286 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
290 ClampState ret = (ClampState)NDalicPINVOKE.ScrollView_ClampEvent_rotation_get(swigCPtr);
291 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
296 public ClampEvent() : this(NDalicPINVOKE.new_ScrollView_ClampEvent(), true)
298 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
303 public class SnapEvent : global::System.IDisposable
305 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
306 protected bool swigCMemOwn;
308 internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn)
310 swigCMemOwn = cMemoryOwn;
311 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
314 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj)
316 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
319 //A Flag to check who called Dispose(). (By User or DisposeQueue)
320 private bool isDisposeQueued = false;
321 //A Flat to check if it is already disposed.
322 protected bool disposed = false;
327 if (!isDisposeQueued)
329 isDisposeQueued = true;
330 DisposeQueue.Instance.Add(this);
334 public void Dispose()
336 //Throw excpetion if Dispose() is called in separate thread.
337 if (!Window.IsInstalled())
339 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
344 Dispose(DisposeTypes.Implicit);
348 Dispose(DisposeTypes.Explicit);
349 System.GC.SuppressFinalize(this);
353 protected virtual void Dispose(DisposeTypes type)
360 if (type == DisposeTypes.Explicit)
363 //Release your own managed resources here.
364 //You should release all of your own disposable objects here.
368 //Release your own unmanaged resources here.
369 //You should not access any managed member here except static instance.
370 //because the execution order of Finalizes is non-deterministic.
372 if (swigCPtr.Handle != global::System.IntPtr.Zero)
377 NDalicPINVOKE.delete_ScrollView_SnapEvent(swigCPtr);
379 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
385 public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr)
387 SnapEvent ret = new SnapEvent(cPtr, false);
388 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
392 internal SnapType type
396 NDalicPINVOKE.ScrollView_SnapEvent_type_set(swigCPtr, (int)value);
397 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
401 SnapType ret = (SnapType)NDalicPINVOKE.ScrollView_SnapEvent_type_get(swigCPtr);
402 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
407 public Vector2 position
411 NDalicPINVOKE.ScrollView_SnapEvent_position_set(swigCPtr, Vector2.getCPtr(value));
412 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
416 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_SnapEvent_position_get(swigCPtr);
417 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
418 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
423 public float duration
427 NDalicPINVOKE.ScrollView_SnapEvent_duration_set(swigCPtr, value);
428 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
432 float ret = NDalicPINVOKE.ScrollView_SnapEvent_duration_get(swigCPtr);
433 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
438 public SnapEvent() : this(NDalicPINVOKE.new_ScrollView_SnapEvent(), true)
440 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
445 public class Property : global::System.IDisposable
447 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
448 protected bool swigCMemOwn;
450 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
452 swigCMemOwn = cMemoryOwn;
453 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
456 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
458 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
461 //A Flag to check who called Dispose(). (By User or DisposeQueue)
462 private bool isDisposeQueued = false;
463 //A Flat to check if it is already disposed.
464 protected bool disposed = false;
469 if (!isDisposeQueued)
471 isDisposeQueued = true;
472 DisposeQueue.Instance.Add(this);
476 public void Dispose()
478 //Throw excpetion if Dispose() is called in separate thread.
479 if (!Window.IsInstalled())
481 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
486 Dispose(DisposeTypes.Implicit);
490 Dispose(DisposeTypes.Explicit);
491 System.GC.SuppressFinalize(this);
495 protected virtual void Dispose(DisposeTypes type)
502 if (type == DisposeTypes.Explicit)
505 //Release your own managed resources here.
506 //You should release all of your own disposable objects here.
510 //Release your own unmanaged resources here.
511 //You should not access any managed member here except static instance.
512 //because the execution order of Finalizes is non-deterministic.
514 if (swigCPtr.Handle != global::System.IntPtr.Zero)
519 NDalicPINVOKE.delete_ScrollView_Property(swigCPtr);
521 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
527 public Property() : this(NDalicPINVOKE.new_ScrollView_Property(), true)
529 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
532 public static readonly int WRAP_ENABLED = NDalicPINVOKE.ScrollView_Property_WRAP_ENABLED_get();
533 public static readonly int PANNING_ENABLED = NDalicPINVOKE.ScrollView_Property_PANNING_ENABLED_get();
534 public static readonly int AXIS_AUTO_LOCK_ENABLED = NDalicPINVOKE.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get();
535 public static readonly int WHEEL_SCROLL_DISTANCE_STEP = NDalicPINVOKE.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
536 public static readonly int SCROLL_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get();
537 public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get();
538 public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
539 public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
540 public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
541 public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
542 public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
543 public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get();
544 public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get();
545 public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get();
546 public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get();
547 public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get();
548 public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get();
549 public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get();
550 public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get();
551 public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
552 public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
553 public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
554 public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
555 public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get();
556 public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get();
560 public ScrollView() : this(NDalicPINVOKE.ScrollView_New(), true)
562 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
565 public ScrollView(ScrollView handle) : this(NDalicPINVOKE.new_ScrollView__SWIG_1(ScrollView.getCPtr(handle)), true)
567 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
570 public ScrollView Assign(ScrollView handle)
572 ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_Assign(swigCPtr, ScrollView.getCPtr(handle)), false);
573 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
577 public new static ScrollView DownCast(BaseHandle handle)
579 ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_DownCast(BaseHandle.getCPtr(handle)), true);
580 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
584 public AlphaFunction GetScrollSnapAlphaFunction()
586 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
587 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
591 public void SetScrollSnapAlphaFunction(AlphaFunction alpha)
593 NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
594 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
597 public AlphaFunction GetScrollFlickAlphaFunction()
599 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
600 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
604 public void SetScrollFlickAlphaFunction(AlphaFunction alpha)
606 NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
607 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
610 public float GetScrollSnapDuration()
612 float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr);
613 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
617 public void SetScrollSnapDuration(float time)
619 NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time);
620 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
623 public float GetScrollFlickDuration()
625 float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr);
626 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
630 public void SetScrollFlickDuration(float time)
632 NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time);
633 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
636 public void SetRulerX(RulerPtr ruler)
638 NDalicPINVOKE.ScrollView_SetRulerX(swigCPtr, RulerPtr.getCPtr(ruler));
639 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
642 public void SetRulerY(RulerPtr ruler)
644 NDalicPINVOKE.ScrollView_SetRulerY(swigCPtr, RulerPtr.getCPtr(ruler));
645 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
648 public void SetScrollSensitive(bool sensitive)
650 NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
651 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
654 public void SetMaxOvershoot(float overshootX, float overshootY)
656 NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
657 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
660 public void SetSnapOvershootAlphaFunction(AlphaFunction alpha)
662 NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
663 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
666 public void SetSnapOvershootDuration(float duration)
668 NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
669 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
672 public void SetViewAutoSnap(bool enable)
674 NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable);
675 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
678 public void SetWrapMode(bool enable)
680 NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable);
681 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
684 public int GetScrollUpdateDistance()
686 int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr);
687 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
691 public void SetScrollUpdateDistance(int distance)
693 NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
694 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
697 public bool GetAxisAutoLock()
699 bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr);
700 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
704 public void SetAxisAutoLock(bool enable)
706 NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable);
707 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
710 public float GetAxisAutoLockGradient()
712 float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr);
713 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
717 public void SetAxisAutoLockGradient(float gradient)
719 NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
720 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
723 public float GetFrictionCoefficient()
725 float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr);
726 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
730 public void SetFrictionCoefficient(float friction)
732 NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
733 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
736 public float GetFlickSpeedCoefficient()
738 float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
739 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
743 public void SetFlickSpeedCoefficient(float speed)
745 NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
746 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
749 public Vector2 GetMinimumDistanceForFlick()
751 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
752 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
756 public void SetMinimumDistanceForFlick(Vector2 distance)
758 NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
759 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
762 public float GetMinimumSpeedForFlick()
764 float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
765 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
769 public void SetMinimumSpeedForFlick(float speed)
771 NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
772 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
775 public float GetMaxFlickSpeed()
777 float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr);
778 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
782 public void SetMaxFlickSpeed(float speed)
784 NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
785 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
788 public Vector2 GetWheelScrollDistanceStep()
790 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
791 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
795 public void SetWheelScrollDistanceStep(Vector2 step)
797 NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
798 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
801 public Vector2 GetCurrentScrollPosition()
803 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
804 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
808 public uint GetCurrentPage()
810 uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr);
811 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
815 public void ScrollTo(Vector2 position)
817 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
818 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
821 public void ScrollTo(Vector2 position, float duration)
823 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
824 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
827 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha)
829 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
830 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
833 public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias)
835 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
836 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
839 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias)
841 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
842 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
845 public void ScrollTo(uint page)
847 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
848 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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();
857 public void ScrollTo(uint page, float duration, DirectionBias bias)
859 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
860 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
863 public void ScrollTo(View view)
865 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
866 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
869 public void ScrollTo(View view, float duration)
871 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
872 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
875 public bool ScrollToSnapPoint()
877 bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr);
878 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
882 internal void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint)
884 NDalicPINVOKE.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
885 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
888 public void RemoveConstraintsFromChildren()
890 NDalicPINVOKE.ScrollView_RemoveConstraintsFromChildren(swigCPtr);
891 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
894 public void ApplyEffect(ScrollViewEffect effect)
896 NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
897 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
900 public void RemoveEffect(ScrollViewEffect effect)
902 NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
903 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
906 public void RemoveAllEffects()
908 NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr);
909 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
912 public void BindView(View child)
914 NDalicPINVOKE.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
915 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
918 public void UnbindView(View child)
920 NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
921 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
924 public void SetScrollingDirection(Radian direction, Radian threshold)
926 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
927 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
930 public void SetScrollingDirection(Radian direction)
932 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
933 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
936 public void RemoveScrollingDirection(Radian direction)
938 NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
939 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
942 internal ScrollViewSnapStartedSignal SnapStartedSignal()
944 ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(NDalicPINVOKE.ScrollView_SnapStartedSignal(swigCPtr), false);
945 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
949 public enum PropertyRange
951 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
952 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000,
953 ANIMATABLE_PROPERTY_START_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX,
954 ANIMATABLE_PROPERTY_END_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX + 1000
957 public bool WrapEnabled
962 GetProperty(ScrollView.Property.WRAP_ENABLED).Get(ref temp);
967 SetProperty(ScrollView.Property.WRAP_ENABLED, new Tizen.NUI.PropertyValue(value));
970 public bool PanningEnabled
975 GetProperty(ScrollView.Property.PANNING_ENABLED).Get(ref temp);
980 SetProperty(ScrollView.Property.PANNING_ENABLED, new Tizen.NUI.PropertyValue(value));
983 public bool AxisAutoLockEnabled
988 GetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get(ref temp);
993 SetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Tizen.NUI.PropertyValue(value));
996 public Vector2 WheelScrollDistanceStep
1000 Vector2 temp = new Vector2(0.0f, 0.0f);
1001 GetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get(temp);
1006 SetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Tizen.NUI.PropertyValue(value));
1009 public Vector2 ScrollPosition
1013 Vector2 temp = new Vector2(0.0f, 0.0f);
1014 GetProperty(ScrollView.Property.SCROLL_POSITION).Get(temp);
1019 SetProperty(ScrollView.Property.SCROLL_POSITION, new Tizen.NUI.PropertyValue(value));
1022 public Vector2 ScrollPrePosition
1026 Vector2 temp = new Vector2(0.0f, 0.0f);
1027 GetProperty(ScrollView.Property.SCROLL_PRE_POSITION).Get(temp);
1032 SetProperty(ScrollView.Property.SCROLL_PRE_POSITION, new Tizen.NUI.PropertyValue(value));
1035 public Vector2 ScrollPrePositionMax
1039 Vector2 temp = new Vector2(0.0f, 0.0f);
1040 GetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get(temp);
1045 SetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Tizen.NUI.PropertyValue(value));
1048 public float OvershootX
1053 GetProperty(ScrollView.Property.OVERSHOOT_X).Get(ref temp);
1058 SetProperty(ScrollView.Property.OVERSHOOT_X, new Tizen.NUI.PropertyValue(value));
1061 public float OvershootY
1066 GetProperty(ScrollView.Property.OVERSHOOT_Y).Get(ref temp);
1071 SetProperty(ScrollView.Property.OVERSHOOT_Y, new Tizen.NUI.PropertyValue(value));
1074 public Vector2 ScrollFinal
1078 Vector2 temp = new Vector2(0.0f, 0.0f);
1079 GetProperty(ScrollView.Property.SCROLL_FINAL).Get(temp);
1084 SetProperty(ScrollView.Property.SCROLL_FINAL, new Tizen.NUI.PropertyValue(value));
1092 GetProperty(ScrollView.Property.WRAP).Get(ref temp);
1097 SetProperty(ScrollView.Property.WRAP, new Tizen.NUI.PropertyValue(value));
1105 GetProperty(ScrollView.Property.PANNING).Get(ref temp);
1110 SetProperty(ScrollView.Property.PANNING, new Tizen.NUI.PropertyValue(value));
1113 public bool Scrolling
1118 GetProperty(ScrollView.Property.SCROLLING).Get(ref temp);
1123 SetProperty(ScrollView.Property.SCROLLING, new Tizen.NUI.PropertyValue(value));
1126 public Vector2 ScrollDomainSize
1130 Vector2 temp = new Vector2(0.0f, 0.0f);
1131 GetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE).Get(temp);
1136 SetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE, new Tizen.NUI.PropertyValue(value));
1139 public Vector2 ScrollDomainOffset
1143 Vector2 temp = new Vector2(0.0f, 0.0f);
1144 GetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get(temp);
1149 SetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Tizen.NUI.PropertyValue(value));
1152 public Vector2 ScrollPositionDelta
1156 Vector2 temp = new Vector2(0.0f, 0.0f);
1157 GetProperty(ScrollView.Property.SCROLL_POSITION_DELTA).Get(temp);
1162 SetProperty(ScrollView.Property.SCROLL_POSITION_DELTA, new Tizen.NUI.PropertyValue(value));
1165 public Vector3 StartPagePosition
1169 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1170 GetProperty(ScrollView.Property.START_PAGE_POSITION).Get(temp);
1175 SetProperty(ScrollView.Property.START_PAGE_POSITION, new Tizen.NUI.PropertyValue(value));