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)
62 NDalicPINVOKE.delete_ScrollView(swigCPtr);
64 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
71 * @brief Event arguments that passed via SnapStarted signal
74 public class SnapStartedEventArgs : EventArgs
76 private Tizen.NUI.ScrollView.SnapEvent _snapEvent;
79 * @brief SnapEvent - is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick).
82 public Tizen.NUI.ScrollView.SnapEvent SnapEventInfo
95 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
96 private delegate void SnapStartedCallbackDelegate(IntPtr data);
97 private DaliEventHandler<object, SnapStartedEventArgs> _scrollViewSnapStartedEventHandler;
98 private SnapStartedCallbackDelegate _scrollViewSnapStartedCallbackDelegate;
101 * @brief Event for SnapStarted signal which can be used to subscribe/unsubscribe the event handler
102 * (in the type of SnapStartedEventHandler-DaliEventHandler<object,SnapStartedEventArgs>) provided by the user.
103 * SnapStarted signal is emitted hen the ScrollView has started to snap or flick (it tells the target
104 * position, scale, rotation for the snap or flick).
107 public event DaliEventHandler<object, SnapStartedEventArgs> SnapStarted
113 // Restricted to only one listener
114 if (_scrollViewSnapStartedEventHandler == null)
116 _scrollViewSnapStartedEventHandler += value;
118 _scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted);
119 this.SnapStartedSignal().Connect(_scrollViewSnapStartedCallbackDelegate);
128 if (_scrollViewSnapStartedEventHandler != null)
130 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
133 _scrollViewSnapStartedEventHandler -= value;
138 // Callback for ScrollView SnapStarted signal
139 private void OnSnapStarted(IntPtr data)
141 SnapStartedEventArgs e = new SnapStartedEventArgs();
143 // Populate all members of "e" (SnapStartedEventArgs) with real data
144 e.SnapEventInfo = SnapEvent.GetSnapEventFromPtr(data);
146 if (_scrollViewSnapStartedEventHandler != null)
148 //here we send all data to user event handlers
149 _scrollViewSnapStartedEventHandler(this, e);
153 public class SnapEvent : global::System.IDisposable
155 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
156 protected bool swigCMemOwn;
158 internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn)
160 swigCMemOwn = cMemoryOwn;
161 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
164 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj)
166 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
169 //A Flag to check who called Dispose(). (By User or DisposeQueue)
170 private bool isDisposeQueued = false;
171 //A Flat to check if it is already disposed.
172 protected bool disposed = false;
177 if (!isDisposeQueued)
179 isDisposeQueued = true;
180 DisposeQueue.Instance.Add(this);
184 public void Dispose()
186 //Throw excpetion if Dispose() is called in separate thread.
187 if (!Window.IsInstalled())
189 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
194 Dispose(DisposeTypes.Implicit);
198 Dispose(DisposeTypes.Explicit);
199 System.GC.SuppressFinalize(this);
203 protected virtual void Dispose(DisposeTypes type)
210 if (type == DisposeTypes.Explicit)
213 //Release your own managed resources here.
214 //You should release all of your own disposable objects here.
218 //Release your own unmanaged resources here.
219 //You should not access any managed member here except static instance.
220 //because the execution order of Finalizes is non-deterministic.
222 if (swigCPtr.Handle != global::System.IntPtr.Zero)
227 NDalicPINVOKE.delete_ScrollView_SnapEvent(swigCPtr);
229 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
235 public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr)
237 SnapEvent ret = new SnapEvent(cPtr, false);
238 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
242 internal SnapType type
246 NDalicPINVOKE.ScrollView_SnapEvent_type_set(swigCPtr, (int)value);
247 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
251 SnapType ret = (SnapType)NDalicPINVOKE.ScrollView_SnapEvent_type_get(swigCPtr);
252 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
257 public Vector2 position
261 NDalicPINVOKE.ScrollView_SnapEvent_position_set(swigCPtr, Vector2.getCPtr(value));
262 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
266 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_SnapEvent_position_get(swigCPtr);
267 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
268 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
273 public float duration
277 NDalicPINVOKE.ScrollView_SnapEvent_duration_set(swigCPtr, value);
278 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
282 float ret = NDalicPINVOKE.ScrollView_SnapEvent_duration_get(swigCPtr);
283 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
288 public SnapEvent() : this(NDalicPINVOKE.new_ScrollView_SnapEvent(), true)
290 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
295 public class Property
297 public static readonly int WRAP_ENABLED = NDalicPINVOKE.ScrollView_Property_WRAP_ENABLED_get();
298 public static readonly int PANNING_ENABLED = NDalicPINVOKE.ScrollView_Property_PANNING_ENABLED_get();
299 public static readonly int AXIS_AUTO_LOCK_ENABLED = NDalicPINVOKE.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get();
300 public static readonly int WHEEL_SCROLL_DISTANCE_STEP = NDalicPINVOKE.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
301 public static readonly int SCROLL_MODE = NDalicPINVOKE.ScrollView_Property_SCROLL_MODE_get();
302 public static readonly int SCROLL_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get();
303 public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get();
304 public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
305 public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
306 public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
307 public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
308 public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
309 public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get();
310 public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get();
311 public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get();
312 public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get();
313 public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get();
314 public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get();
315 public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get();
316 public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get();
317 public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
318 public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
319 public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
320 public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
321 public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get();
322 public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get();
326 public ScrollView() : this(NDalicPINVOKE.ScrollView_New(), true)
328 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
332 public AlphaFunction GetScrollSnapAlphaFunction()
334 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
335 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
339 public void SetScrollSnapAlphaFunction(AlphaFunction alpha)
341 NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
342 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
345 public AlphaFunction GetScrollFlickAlphaFunction()
347 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
348 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
352 public void SetScrollFlickAlphaFunction(AlphaFunction alpha)
354 NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
355 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
358 public float GetScrollSnapDuration()
360 float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr);
361 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
365 public void SetScrollSnapDuration(float time)
367 NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time);
368 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
371 public float GetScrollFlickDuration()
373 float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr);
374 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
378 public void SetScrollFlickDuration(float time)
380 NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time);
381 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
385 public void SetScrollSensitive(bool sensitive)
387 NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
388 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
391 public void SetMaxOvershoot(float overshootX, float overshootY)
393 NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
394 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
397 public void SetSnapOvershootAlphaFunction(AlphaFunction alpha)
399 NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
400 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
403 public void SetSnapOvershootDuration(float duration)
405 NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
406 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
409 public void SetViewAutoSnap(bool enable)
411 NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable);
412 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
415 public void SetWrapMode(bool enable)
417 NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable);
418 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
421 public int GetScrollUpdateDistance()
423 int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr);
424 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
428 public void SetScrollUpdateDistance(int distance)
430 NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
431 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
434 public bool GetAxisAutoLock()
436 bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr);
437 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
441 public void SetAxisAutoLock(bool enable)
443 NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable);
444 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
447 public float GetAxisAutoLockGradient()
449 float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr);
450 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
454 public void SetAxisAutoLockGradient(float gradient)
456 NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
457 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
460 public float GetFrictionCoefficient()
462 float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr);
463 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
467 public void SetFrictionCoefficient(float friction)
469 NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
470 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
473 public float GetFlickSpeedCoefficient()
475 float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
476 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
480 public void SetFlickSpeedCoefficient(float speed)
482 NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
483 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
486 public Vector2 GetMinimumDistanceForFlick()
488 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
489 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
493 public void SetMinimumDistanceForFlick(Vector2 distance)
495 NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
496 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
499 public float GetMinimumSpeedForFlick()
501 float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
502 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
506 public void SetMinimumSpeedForFlick(float speed)
508 NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
509 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
512 public float GetMaxFlickSpeed()
514 float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr);
515 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
519 public void SetMaxFlickSpeed(float speed)
521 NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
522 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
525 public Vector2 GetWheelScrollDistanceStep()
527 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
528 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
532 public void SetWheelScrollDistanceStep(Vector2 step)
534 NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
535 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
538 public Vector2 GetCurrentScrollPosition()
540 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
541 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
545 public uint GetCurrentPage()
547 uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr);
548 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
552 public void ScrollTo(Vector2 position)
554 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
555 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
558 public void ScrollTo(Vector2 position, float duration)
560 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
561 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
564 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha)
566 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
567 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
570 public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias)
572 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
573 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
576 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias)
578 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
579 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
582 public void ScrollTo(uint page)
584 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
585 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
588 public void ScrollTo(uint page, float duration)
590 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
591 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
594 public void ScrollTo(uint page, float duration, DirectionBias bias)
596 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
597 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
600 public void ScrollTo(View view)
602 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
603 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
606 public void ScrollTo(View view, float duration)
608 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
609 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
612 public bool ScrollToSnapPoint()
614 bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr);
615 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
619 internal void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint)
621 NDalicPINVOKE.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
622 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
625 public void ApplyEffect(ScrollViewEffect effect)
627 NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
628 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
631 public void RemoveEffect(ScrollViewEffect effect)
633 NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
634 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
637 public void RemoveAllEffects()
639 NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr);
640 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
643 public void BindView(View child)
645 NDalicPINVOKE.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
646 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
649 public void UnbindView(View child)
651 NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
652 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
655 public void SetScrollingDirection(Radian direction, Radian threshold)
657 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
658 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
661 public void SetScrollingDirection(Radian direction)
663 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
664 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
667 public void RemoveScrollingDirection(Radian direction)
669 NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
670 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
673 internal ScrollViewSnapStartedSignal SnapStartedSignal()
675 ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(NDalicPINVOKE.ScrollView_SnapStartedSignal(swigCPtr), false);
676 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
680 public bool WrapEnabled
685 GetProperty(ScrollView.Property.WRAP_ENABLED).Get(out temp);
690 SetProperty(ScrollView.Property.WRAP_ENABLED, new Tizen.NUI.PropertyValue(value));
693 public bool PanningEnabled
698 GetProperty(ScrollView.Property.PANNING_ENABLED).Get(out temp);
703 SetProperty(ScrollView.Property.PANNING_ENABLED, new Tizen.NUI.PropertyValue(value));
706 public bool AxisAutoLockEnabled
711 GetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get(out temp);
716 SetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Tizen.NUI.PropertyValue(value));
719 public Vector2 WheelScrollDistanceStep
723 Vector2 temp = new Vector2(0.0f, 0.0f);
724 GetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get(temp);
729 SetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Tizen.NUI.PropertyValue(value));
732 public Vector2 ScrollPosition
736 Vector2 temp = new Vector2(0.0f, 0.0f);
737 GetProperty(ScrollView.Property.SCROLL_POSITION).Get(temp);
742 SetProperty(ScrollView.Property.SCROLL_POSITION, new Tizen.NUI.PropertyValue(value));
745 public Vector2 ScrollPrePosition
749 Vector2 temp = new Vector2(0.0f, 0.0f);
750 GetProperty(ScrollView.Property.SCROLL_PRE_POSITION).Get(temp);
755 SetProperty(ScrollView.Property.SCROLL_PRE_POSITION, new Tizen.NUI.PropertyValue(value));
758 public Vector2 ScrollPrePositionMax
762 Vector2 temp = new Vector2(0.0f, 0.0f);
763 GetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get(temp);
768 SetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Tizen.NUI.PropertyValue(value));
771 public float OvershootX
776 GetProperty(ScrollView.Property.OVERSHOOT_X).Get(out temp);
781 SetProperty(ScrollView.Property.OVERSHOOT_X, new Tizen.NUI.PropertyValue(value));
784 public float OvershootY
789 GetProperty(ScrollView.Property.OVERSHOOT_Y).Get(out temp);
794 SetProperty(ScrollView.Property.OVERSHOOT_Y, new Tizen.NUI.PropertyValue(value));
797 public Vector2 ScrollFinal
801 Vector2 temp = new Vector2(0.0f, 0.0f);
802 GetProperty(ScrollView.Property.SCROLL_FINAL).Get(temp);
807 SetProperty(ScrollView.Property.SCROLL_FINAL, new Tizen.NUI.PropertyValue(value));
815 GetProperty(ScrollView.Property.WRAP).Get(out temp);
820 SetProperty(ScrollView.Property.WRAP, new Tizen.NUI.PropertyValue(value));
828 GetProperty(ScrollView.Property.PANNING).Get(out temp);
833 SetProperty(ScrollView.Property.PANNING, new Tizen.NUI.PropertyValue(value));
836 public bool Scrolling
841 GetProperty(ScrollView.Property.SCROLLING).Get(out temp);
846 SetProperty(ScrollView.Property.SCROLLING, new Tizen.NUI.PropertyValue(value));
849 public Vector2 ScrollDomainSize
853 Vector2 temp = new Vector2(0.0f, 0.0f);
854 GetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE).Get(temp);
859 SetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE, new Tizen.NUI.PropertyValue(value));
862 public Vector2 ScrollDomainOffset
866 Vector2 temp = new Vector2(0.0f, 0.0f);
867 GetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get(temp);
872 SetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Tizen.NUI.PropertyValue(value));
875 public Vector2 ScrollPositionDelta
879 Vector2 temp = new Vector2(0.0f, 0.0f);
880 GetProperty(ScrollView.Property.SCROLL_POSITION_DELTA).Get(temp);
885 SetProperty(ScrollView.Property.SCROLL_POSITION_DELTA, new Tizen.NUI.PropertyValue(value));
888 public Vector3 StartPagePosition
892 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
893 GetProperty(ScrollView.Property.START_PAGE_POSITION).Get(temp);
898 SetProperty(ScrollView.Property.START_PAGE_POSITION, new Tizen.NUI.PropertyValue(value));
902 public PropertyMap ScrollMode
906 PropertyValue value = GetProperty( ScrollView.Property.SCROLL_MODE );
907 PropertyMap map = new PropertyMap();
913 SetProperty( ScrollView.Property.SCROLL_MODE, new PropertyValue( value ) );