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 public ClampEvent() : this(NDalicPINVOKE.new_ScrollView_ClampEvent(), true)
251 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
256 public class SnapEvent : global::System.IDisposable
258 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
259 protected bool swigCMemOwn;
261 internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn)
263 swigCMemOwn = cMemoryOwn;
264 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
267 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj)
269 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
272 //A Flag to check who called Dispose(). (By User or DisposeQueue)
273 private bool isDisposeQueued = false;
274 //A Flat to check if it is already disposed.
275 protected bool disposed = false;
280 if (!isDisposeQueued)
282 isDisposeQueued = true;
283 DisposeQueue.Instance.Add(this);
287 public void Dispose()
289 //Throw excpetion if Dispose() is called in separate thread.
290 if (!Window.IsInstalled())
292 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
297 Dispose(DisposeTypes.Implicit);
301 Dispose(DisposeTypes.Explicit);
302 System.GC.SuppressFinalize(this);
306 protected virtual void Dispose(DisposeTypes type)
313 if (type == DisposeTypes.Explicit)
316 //Release your own managed resources here.
317 //You should release all of your own disposable objects here.
321 //Release your own unmanaged resources here.
322 //You should not access any managed member here except static instance.
323 //because the execution order of Finalizes is non-deterministic.
325 if (swigCPtr.Handle != global::System.IntPtr.Zero)
330 NDalicPINVOKE.delete_ScrollView_SnapEvent(swigCPtr);
332 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
338 public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr)
340 SnapEvent ret = new SnapEvent(cPtr, false);
341 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
345 internal SnapType type
349 NDalicPINVOKE.ScrollView_SnapEvent_type_set(swigCPtr, (int)value);
350 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
354 SnapType ret = (SnapType)NDalicPINVOKE.ScrollView_SnapEvent_type_get(swigCPtr);
355 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
360 public Vector2 position
364 NDalicPINVOKE.ScrollView_SnapEvent_position_set(swigCPtr, Vector2.getCPtr(value));
365 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
369 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_SnapEvent_position_get(swigCPtr);
370 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
371 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
376 public float duration
380 NDalicPINVOKE.ScrollView_SnapEvent_duration_set(swigCPtr, value);
381 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
385 float ret = NDalicPINVOKE.ScrollView_SnapEvent_duration_get(swigCPtr);
386 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
391 public SnapEvent() : this(NDalicPINVOKE.new_ScrollView_SnapEvent(), true)
393 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
398 public class Property : global::System.IDisposable
400 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
401 protected bool swigCMemOwn;
403 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
405 swigCMemOwn = cMemoryOwn;
406 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
409 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
411 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
414 //A Flag to check who called Dispose(). (By User or DisposeQueue)
415 private bool isDisposeQueued = false;
416 //A Flat to check if it is already disposed.
417 protected bool disposed = false;
422 if (!isDisposeQueued)
424 isDisposeQueued = true;
425 DisposeQueue.Instance.Add(this);
429 public void Dispose()
431 //Throw excpetion if Dispose() is called in separate thread.
432 if (!Window.IsInstalled())
434 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
439 Dispose(DisposeTypes.Implicit);
443 Dispose(DisposeTypes.Explicit);
444 System.GC.SuppressFinalize(this);
448 protected virtual void Dispose(DisposeTypes type)
455 if (type == DisposeTypes.Explicit)
458 //Release your own managed resources here.
459 //You should release all of your own disposable objects here.
463 //Release your own unmanaged resources here.
464 //You should not access any managed member here except static instance.
465 //because the execution order of Finalizes is non-deterministic.
467 if (swigCPtr.Handle != global::System.IntPtr.Zero)
472 NDalicPINVOKE.delete_ScrollView_Property(swigCPtr);
474 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
480 public Property() : this(NDalicPINVOKE.new_ScrollView_Property(), true)
482 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
485 public static readonly int WRAP_ENABLED = NDalicPINVOKE.ScrollView_Property_WRAP_ENABLED_get();
486 public static readonly int PANNING_ENABLED = NDalicPINVOKE.ScrollView_Property_PANNING_ENABLED_get();
487 public static readonly int AXIS_AUTO_LOCK_ENABLED = NDalicPINVOKE.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get();
488 public static readonly int WHEEL_SCROLL_DISTANCE_STEP = NDalicPINVOKE.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
489 public static readonly int SCROLL_MODE = NDalicPINVOKE.ScrollView_Property_SCROLL_MODE_get();
490 public static readonly int SCROLL_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get();
491 public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get();
492 public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
493 public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
494 public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
495 public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
496 public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
497 public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get();
498 public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get();
499 public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get();
500 public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get();
501 public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get();
502 public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get();
503 public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get();
504 public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get();
505 public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
506 public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
507 public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
508 public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
509 public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get();
510 public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get();
514 public ScrollView() : this(NDalicPINVOKE.ScrollView_New(), true)
516 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
519 public ScrollView(ScrollView handle) : this(NDalicPINVOKE.new_ScrollView__SWIG_1(ScrollView.getCPtr(handle)), true)
521 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
524 public ScrollView Assign(ScrollView handle)
526 ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_Assign(swigCPtr, ScrollView.getCPtr(handle)), false);
527 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
531 public new static ScrollView DownCast(BaseHandle handle)
533 ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_DownCast(BaseHandle.getCPtr(handle)), true);
534 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
538 public AlphaFunction GetScrollSnapAlphaFunction()
540 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
541 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
545 public void SetScrollSnapAlphaFunction(AlphaFunction alpha)
547 NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
548 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
551 public AlphaFunction GetScrollFlickAlphaFunction()
553 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
554 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
558 public void SetScrollFlickAlphaFunction(AlphaFunction alpha)
560 NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
561 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
564 public float GetScrollSnapDuration()
566 float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr);
567 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
571 public void SetScrollSnapDuration(float time)
573 NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time);
574 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
577 public float GetScrollFlickDuration()
579 float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr);
580 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
584 public void SetScrollFlickDuration(float time)
586 NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time);
587 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
591 public void SetScrollSensitive(bool sensitive)
593 NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
594 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
597 public void SetMaxOvershoot(float overshootX, float overshootY)
599 NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
600 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
603 public void SetSnapOvershootAlphaFunction(AlphaFunction alpha)
605 NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
606 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
609 public void SetSnapOvershootDuration(float duration)
611 NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
612 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
615 public void SetViewAutoSnap(bool enable)
617 NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable);
618 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
621 public void SetWrapMode(bool enable)
623 NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable);
624 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
627 public int GetScrollUpdateDistance()
629 int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr);
630 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
634 public void SetScrollUpdateDistance(int distance)
636 NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
637 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
640 public bool GetAxisAutoLock()
642 bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr);
643 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
647 public void SetAxisAutoLock(bool enable)
649 NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable);
650 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
653 public float GetAxisAutoLockGradient()
655 float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr);
656 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
660 public void SetAxisAutoLockGradient(float gradient)
662 NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
663 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
666 public float GetFrictionCoefficient()
668 float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr);
669 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
673 public void SetFrictionCoefficient(float friction)
675 NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
676 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
679 public float GetFlickSpeedCoefficient()
681 float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
682 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
686 public void SetFlickSpeedCoefficient(float speed)
688 NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
689 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
692 public Vector2 GetMinimumDistanceForFlick()
694 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
695 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
699 public void SetMinimumDistanceForFlick(Vector2 distance)
701 NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
702 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
705 public float GetMinimumSpeedForFlick()
707 float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
708 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
712 public void SetMinimumSpeedForFlick(float speed)
714 NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
715 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
718 public float GetMaxFlickSpeed()
720 float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr);
721 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
725 public void SetMaxFlickSpeed(float speed)
727 NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
728 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
731 public Vector2 GetWheelScrollDistanceStep()
733 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
734 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
738 public void SetWheelScrollDistanceStep(Vector2 step)
740 NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
741 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
744 public Vector2 GetCurrentScrollPosition()
746 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
747 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
751 public uint GetCurrentPage()
753 uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr);
754 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
758 public void ScrollTo(Vector2 position)
760 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
761 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
764 public void ScrollTo(Vector2 position, float duration)
766 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
767 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
770 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha)
772 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
773 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
776 public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias)
778 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
779 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
782 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias)
784 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
785 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
788 public void ScrollTo(uint page)
790 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
791 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
794 public void ScrollTo(uint page, float duration)
796 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
797 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
800 public void ScrollTo(uint page, float duration, DirectionBias bias)
802 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
803 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
806 public void ScrollTo(View view)
808 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
809 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
812 public void ScrollTo(View view, float duration)
814 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
815 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
818 public bool ScrollToSnapPoint()
820 bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr);
821 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
825 internal void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint)
827 NDalicPINVOKE.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
828 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
831 public void RemoveConstraintsFromChildren()
833 NDalicPINVOKE.ScrollView_RemoveConstraintsFromChildren(swigCPtr);
834 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
837 public void ApplyEffect(ScrollViewEffect effect)
839 NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
840 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
843 public void RemoveEffect(ScrollViewEffect effect)
845 NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
846 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
849 public void RemoveAllEffects()
851 NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr);
852 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
855 public void BindView(View child)
857 NDalicPINVOKE.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
858 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
861 public void UnbindView(View child)
863 NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
864 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
867 public void SetScrollingDirection(Radian direction, Radian threshold)
869 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
870 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
873 public void SetScrollingDirection(Radian direction)
875 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
876 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
879 public void RemoveScrollingDirection(Radian direction)
881 NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
882 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
885 internal ScrollViewSnapStartedSignal SnapStartedSignal()
887 ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(NDalicPINVOKE.ScrollView_SnapStartedSignal(swigCPtr), false);
888 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
892 public enum PropertyRange
894 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
895 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000,
896 ANIMATABLE_PROPERTY_START_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX,
897 ANIMATABLE_PROPERTY_END_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX + 1000
900 public bool WrapEnabled
905 GetProperty(ScrollView.Property.WRAP_ENABLED).Get(ref temp);
910 SetProperty(ScrollView.Property.WRAP_ENABLED, new Tizen.NUI.PropertyValue(value));
913 public bool PanningEnabled
918 GetProperty(ScrollView.Property.PANNING_ENABLED).Get(ref temp);
923 SetProperty(ScrollView.Property.PANNING_ENABLED, new Tizen.NUI.PropertyValue(value));
926 public bool AxisAutoLockEnabled
931 GetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get(ref temp);
936 SetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Tizen.NUI.PropertyValue(value));
939 public Vector2 WheelScrollDistanceStep
943 Vector2 temp = new Vector2(0.0f, 0.0f);
944 GetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get(temp);
949 SetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Tizen.NUI.PropertyValue(value));
952 public Vector2 ScrollPosition
956 Vector2 temp = new Vector2(0.0f, 0.0f);
957 GetProperty(ScrollView.Property.SCROLL_POSITION).Get(temp);
962 SetProperty(ScrollView.Property.SCROLL_POSITION, new Tizen.NUI.PropertyValue(value));
965 public Vector2 ScrollPrePosition
969 Vector2 temp = new Vector2(0.0f, 0.0f);
970 GetProperty(ScrollView.Property.SCROLL_PRE_POSITION).Get(temp);
975 SetProperty(ScrollView.Property.SCROLL_PRE_POSITION, new Tizen.NUI.PropertyValue(value));
978 public Vector2 ScrollPrePositionMax
982 Vector2 temp = new Vector2(0.0f, 0.0f);
983 GetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get(temp);
988 SetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Tizen.NUI.PropertyValue(value));
991 public float OvershootX
996 GetProperty(ScrollView.Property.OVERSHOOT_X).Get(ref temp);
1001 SetProperty(ScrollView.Property.OVERSHOOT_X, new Tizen.NUI.PropertyValue(value));
1004 public float OvershootY
1009 GetProperty(ScrollView.Property.OVERSHOOT_Y).Get(ref temp);
1014 SetProperty(ScrollView.Property.OVERSHOOT_Y, new Tizen.NUI.PropertyValue(value));
1017 public Vector2 ScrollFinal
1021 Vector2 temp = new Vector2(0.0f, 0.0f);
1022 GetProperty(ScrollView.Property.SCROLL_FINAL).Get(temp);
1027 SetProperty(ScrollView.Property.SCROLL_FINAL, new Tizen.NUI.PropertyValue(value));
1035 GetProperty(ScrollView.Property.WRAP).Get(ref temp);
1040 SetProperty(ScrollView.Property.WRAP, new Tizen.NUI.PropertyValue(value));
1048 GetProperty(ScrollView.Property.PANNING).Get(ref temp);
1053 SetProperty(ScrollView.Property.PANNING, new Tizen.NUI.PropertyValue(value));
1056 public bool Scrolling
1061 GetProperty(ScrollView.Property.SCROLLING).Get(ref temp);
1066 SetProperty(ScrollView.Property.SCROLLING, new Tizen.NUI.PropertyValue(value));
1069 public Vector2 ScrollDomainSize
1073 Vector2 temp = new Vector2(0.0f, 0.0f);
1074 GetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE).Get(temp);
1079 SetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE, new Tizen.NUI.PropertyValue(value));
1082 public Vector2 ScrollDomainOffset
1086 Vector2 temp = new Vector2(0.0f, 0.0f);
1087 GetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get(temp);
1092 SetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Tizen.NUI.PropertyValue(value));
1095 public Vector2 ScrollPositionDelta
1099 Vector2 temp = new Vector2(0.0f, 0.0f);
1100 GetProperty(ScrollView.Property.SCROLL_POSITION_DELTA).Get(temp);
1105 SetProperty(ScrollView.Property.SCROLL_POSITION_DELTA, new Tizen.NUI.PropertyValue(value));
1108 public Vector3 StartPagePosition
1112 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1113 GetProperty(ScrollView.Property.START_PAGE_POSITION).Get(temp);
1118 SetProperty(ScrollView.Property.START_PAGE_POSITION, new Tizen.NUI.PropertyValue(value));
1122 public PropertyMap ScrollMode
1126 PropertyValue value = GetProperty( ScrollView.Property.SCROLL_MODE );
1127 PropertyMap map = new PropertyMap();
1133 SetProperty( ScrollView.Property.SCROLL_MODE, new PropertyValue( value ) );