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 //------------------------------------------------------------------------------
30 using System.Runtime.InteropServices;
33 public class ScrollView : Scrollable {
34 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
36 internal ScrollView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ScrollView_SWIGUpcast(cPtr), cMemoryOwn) {
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
40 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ScrollView obj) {
41 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
45 DisposeQueue.Instance.Add(this);
48 public override void Dispose() {
49 if (!Stage.IsInstalled()) {
50 DisposeQueue.Instance.Add(this);
55 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
58 NDalicPINVOKE.delete_ScrollView(swigCPtr);
60 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
62 global::System.GC.SuppressFinalize(this);
68 * @brief Event arguments that passed via SnapStarted signal
71 public class SnapStartedEventArgs : EventArgs
73 private Tizen.NUI.ScrollView.SnapEvent _snapEvent;
76 * @brief SnapEvent - is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick).
79 public Tizen.NUI.ScrollView.SnapEvent SnapEventInfo
92 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
93 private delegate void SnapStartedCallbackDelegate(IntPtr data);
94 private DaliEventHandler<object,SnapStartedEventArgs> _scrollViewSnapStartedEventHandler;
95 private SnapStartedCallbackDelegate _scrollViewSnapStartedCallbackDelegate;
98 * @brief Event for SnapStarted signal which can be used to subscribe/unsubscribe the event handler
99 * (in the type of SnapStartedEventHandler-DaliEventHandler<object,SnapStartedEventArgs>) provided by the user.
100 * SnapStarted signal is emitted hen the ScrollView has started to snap or flick (it tells the target
101 * position, scale, rotation for the snap or flick).
104 public event DaliEventHandler<object,SnapStartedEventArgs> SnapStarted
110 // Restricted to only one listener
111 if (_scrollViewSnapStartedEventHandler == null)
113 _scrollViewSnapStartedEventHandler += value;
115 _scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted);
116 this.SnapStartedSignal().Connect(_scrollViewSnapStartedCallbackDelegate);
125 if (_scrollViewSnapStartedEventHandler != null)
127 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
130 _scrollViewSnapStartedEventHandler -= value;
135 // Callback for ScrollView SnapStarted signal
136 private void OnSnapStarted(IntPtr data)
138 SnapStartedEventArgs e = new SnapStartedEventArgs();
140 // Populate all members of "e" (SnapStartedEventArgs) with real data
141 e.SnapEventInfo = SnapEvent.GetSnapEventFromPtr( data );
143 if (_scrollViewSnapStartedEventHandler != null)
145 //here we send all data to user event handlers
146 _scrollViewSnapStartedEventHandler(this, e);
151 public class ClampEvent : global::System.IDisposable {
152 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
153 protected bool swigCMemOwn;
155 internal ClampEvent(global::System.IntPtr cPtr, bool cMemoryOwn) {
156 swigCMemOwn = cMemoryOwn;
157 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
160 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ClampEvent obj) {
161 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
168 public virtual void Dispose() {
170 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
173 NDalicPINVOKE.delete_ScrollView_ClampEvent(swigCPtr);
175 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
177 global::System.GC.SuppressFinalize(this);
181 internal ClampState2D scale {
183 NDalicPINVOKE.ScrollView_ClampEvent_scale_set(swigCPtr, ClampState2D.getCPtr(value));
184 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
187 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_ClampEvent_scale_get(swigCPtr);
188 ClampState2D ret = (cPtr == global::System.IntPtr.Zero) ? null : new ClampState2D(cPtr, false);
189 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
194 internal ClampState2D position {
196 NDalicPINVOKE.ScrollView_ClampEvent_position_set(swigCPtr, ClampState2D.getCPtr(value));
197 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
200 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_ClampEvent_position_get(swigCPtr);
201 ClampState2D ret = (cPtr == global::System.IntPtr.Zero) ? null : new ClampState2D(cPtr, false);
202 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
207 internal ClampState rotation {
209 NDalicPINVOKE.ScrollView_ClampEvent_rotation_set(swigCPtr, (int)value);
210 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
213 ClampState ret = (ClampState)NDalicPINVOKE.ScrollView_ClampEvent_rotation_get(swigCPtr);
214 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
219 public ClampEvent() : this(NDalicPINVOKE.new_ScrollView_ClampEvent(), true) {
220 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
225 public class SnapEvent : global::System.IDisposable {
226 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
227 protected bool swigCMemOwn;
229 internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn) {
230 swigCMemOwn = cMemoryOwn;
231 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
234 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj) {
235 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
242 public virtual void Dispose() {
244 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
247 NDalicPINVOKE.delete_ScrollView_SnapEvent(swigCPtr);
249 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
251 global::System.GC.SuppressFinalize(this);
255 public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr) {
256 SnapEvent ret = new SnapEvent(cPtr, false);
257 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
261 internal SnapType type {
263 NDalicPINVOKE.ScrollView_SnapEvent_type_set(swigCPtr, (int)value);
264 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
267 SnapType ret = (SnapType)NDalicPINVOKE.ScrollView_SnapEvent_type_get(swigCPtr);
268 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
273 public Vector2 position {
275 NDalicPINVOKE.ScrollView_SnapEvent_position_set(swigCPtr, Vector2.getCPtr(value));
276 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
279 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_SnapEvent_position_get(swigCPtr);
280 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
281 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
286 public float duration {
288 NDalicPINVOKE.ScrollView_SnapEvent_duration_set(swigCPtr, value);
289 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
292 float ret = NDalicPINVOKE.ScrollView_SnapEvent_duration_get(swigCPtr);
293 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
298 public SnapEvent() : this(NDalicPINVOKE.new_ScrollView_SnapEvent(), true) {
299 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
304 public class Property : global::System.IDisposable {
305 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
306 protected bool swigCMemOwn;
308 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
309 swigCMemOwn = cMemoryOwn;
310 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
313 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) {
314 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
321 public virtual void Dispose() {
323 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
326 NDalicPINVOKE.delete_ScrollView_Property(swigCPtr);
328 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
330 global::System.GC.SuppressFinalize(this);
334 public Property() : this(NDalicPINVOKE.new_ScrollView_Property(), true) {
335 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
338 public static readonly int WRAP_ENABLED = NDalicPINVOKE.ScrollView_Property_WRAP_ENABLED_get();
339 public static readonly int PANNING_ENABLED = NDalicPINVOKE.ScrollView_Property_PANNING_ENABLED_get();
340 public static readonly int AXIS_AUTO_LOCK_ENABLED = NDalicPINVOKE.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get();
341 public static readonly int WHEEL_SCROLL_DISTANCE_STEP = NDalicPINVOKE.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
342 public static readonly int SCROLL_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get();
343 public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get();
344 public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
345 public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
346 public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
347 public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
348 public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
349 public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get();
350 public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get();
351 public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get();
352 public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get();
353 public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get();
354 public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get();
355 public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get();
356 public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get();
357 public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
358 public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
359 public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
360 public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
361 public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get();
362 public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get();
366 public ScrollView () : this (NDalicPINVOKE.ScrollView_New(), true) {
367 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
370 public ScrollView(ScrollView handle) : this(NDalicPINVOKE.new_ScrollView__SWIG_1(ScrollView.getCPtr(handle)), true) {
371 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
374 public ScrollView Assign(ScrollView handle) {
375 ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_Assign(swigCPtr, ScrollView.getCPtr(handle)), false);
376 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
380 public new static ScrollView DownCast(BaseHandle handle) {
381 ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_DownCast(BaseHandle.getCPtr(handle)), true);
382 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
386 public AlphaFunction GetScrollSnapAlphaFunction() {
387 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
388 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
392 public void SetScrollSnapAlphaFunction(AlphaFunction alpha) {
393 NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
394 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
397 public AlphaFunction GetScrollFlickAlphaFunction() {
398 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
399 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
403 public void SetScrollFlickAlphaFunction(AlphaFunction alpha) {
404 NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
405 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
408 public float GetScrollSnapDuration() {
409 float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr);
410 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
414 public void SetScrollSnapDuration(float time) {
415 NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time);
416 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
419 public float GetScrollFlickDuration() {
420 float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr);
421 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
425 public void SetScrollFlickDuration(float time) {
426 NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time);
427 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
430 public void SetRulerX(RulerPtr ruler) {
431 NDalicPINVOKE.ScrollView_SetRulerX(swigCPtr, RulerPtr.getCPtr(ruler));
432 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
435 public void SetRulerY(RulerPtr ruler) {
436 NDalicPINVOKE.ScrollView_SetRulerY(swigCPtr, RulerPtr.getCPtr(ruler));
437 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
440 public void SetScrollSensitive(bool sensitive) {
441 NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
442 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
445 public void SetMaxOvershoot(float overshootX, float overshootY) {
446 NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
447 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
450 public void SetSnapOvershootAlphaFunction(AlphaFunction alpha) {
451 NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
452 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
455 public void SetSnapOvershootDuration(float duration) {
456 NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
457 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
460 public void SetActorAutoSnap(bool enable) {
461 NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable);
462 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
465 public void SetWrapMode(bool enable) {
466 NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable);
467 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
470 public int GetScrollUpdateDistance() {
471 int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr);
472 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
476 public void SetScrollUpdateDistance(int distance) {
477 NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
478 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
481 public bool GetAxisAutoLock() {
482 bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr);
483 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
487 public void SetAxisAutoLock(bool enable) {
488 NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable);
489 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
492 public float GetAxisAutoLockGradient() {
493 float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr);
494 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
498 public void SetAxisAutoLockGradient(float gradient) {
499 NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
500 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
503 public float GetFrictionCoefficient() {
504 float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr);
505 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
509 public void SetFrictionCoefficient(float friction) {
510 NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
511 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
514 public float GetFlickSpeedCoefficient() {
515 float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
516 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
520 public void SetFlickSpeedCoefficient(float speed) {
521 NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
522 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
525 public Vector2 GetMinimumDistanceForFlick() {
526 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
527 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
531 public void SetMinimumDistanceForFlick(Vector2 distance) {
532 NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
533 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
536 public float GetMinimumSpeedForFlick() {
537 float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
538 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
542 public void SetMinimumSpeedForFlick(float speed) {
543 NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
544 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
547 public float GetMaxFlickSpeed() {
548 float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr);
549 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
553 public void SetMaxFlickSpeed(float speed) {
554 NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
555 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
558 public Vector2 GetWheelScrollDistanceStep() {
559 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
560 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
564 public void SetWheelScrollDistanceStep(Vector2 step) {
565 NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
566 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
569 public Vector2 GetCurrentScrollPosition() {
570 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
571 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
575 public uint GetCurrentPage() {
576 uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr);
577 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
581 public void ScrollTo(Vector2 position) {
582 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
583 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
586 public void ScrollTo(Vector2 position, float duration) {
587 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
588 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
591 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha) {
592 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
593 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
596 public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias) {
597 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
598 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
601 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias) {
602 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
603 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
606 public void ScrollTo(uint page) {
607 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
608 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
611 public void ScrollTo(uint page, float duration) {
612 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
613 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
616 public void ScrollTo(uint page, float duration, DirectionBias bias) {
617 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
618 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
621 public void ScrollTo(Actor actor) {
622 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, Actor.getCPtr(actor));
623 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
626 public void ScrollTo(Actor actor, float duration) {
627 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, Actor.getCPtr(actor), duration);
628 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
631 public bool ScrollToSnapPoint() {
632 bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr);
633 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
637 internal void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint) {
638 NDalicPINVOKE.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
639 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
642 public void RemoveConstraintsFromChildren() {
643 NDalicPINVOKE.ScrollView_RemoveConstraintsFromChildren(swigCPtr);
644 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
647 public void ApplyEffect(ScrollViewEffect effect) {
648 NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
649 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
652 public void RemoveEffect(ScrollViewEffect effect) {
653 NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
654 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
657 public void RemoveAllEffects() {
658 NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr);
659 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
662 public void BindActor(Actor child) {
663 NDalicPINVOKE.ScrollView_BindActor(swigCPtr, Actor.getCPtr(child));
664 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
667 public void UnbindActor(Actor child) {
668 NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, Actor.getCPtr(child));
669 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
672 public void SetScrollingDirection(Radian direction, Radian threshold) {
673 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
674 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
677 public void SetScrollingDirection(Radian direction) {
678 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
679 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
682 public void RemoveScrollingDirection(Radian direction) {
683 NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
684 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
687 internal ScrollViewSnapStartedSignal SnapStartedSignal() {
688 ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(NDalicPINVOKE.ScrollView_SnapStartedSignal(swigCPtr), false);
689 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
693 public enum PropertyRange {
694 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
695 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX+1000,
696 ANIMATABLE_PROPERTY_START_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX,
697 ANIMATABLE_PROPERTY_END_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX+1000
700 public bool WrapEnabled
705 GetProperty( ScrollView.Property.WRAP_ENABLED).Get( ref temp );
710 SetProperty( ScrollView.Property.WRAP_ENABLED, new Tizen.NUI.PropertyValue( value ) );
713 public bool PanningEnabled
718 GetProperty( ScrollView.Property.PANNING_ENABLED).Get( ref temp );
723 SetProperty( ScrollView.Property.PANNING_ENABLED, new Tizen.NUI.PropertyValue( value ) );
726 public bool AxisAutoLockEnabled
731 GetProperty( ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get( ref temp );
736 SetProperty( ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Tizen.NUI.PropertyValue( value ) );
739 public Vector2 WheelScrollDistanceStep
743 Vector2 temp = new Vector2(0.0f,0.0f);
744 GetProperty( ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get( temp );
749 SetProperty( ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Tizen.NUI.PropertyValue( value ) );
752 public Vector2 ScrollPosition
756 Vector2 temp = new Vector2(0.0f,0.0f);
757 GetProperty( ScrollView.Property.SCROLL_POSITION).Get( temp );
762 SetProperty( ScrollView.Property.SCROLL_POSITION, new Tizen.NUI.PropertyValue( value ) );
765 public Vector2 ScrollPrePosition
769 Vector2 temp = new Vector2(0.0f,0.0f);
770 GetProperty( ScrollView.Property.SCROLL_PRE_POSITION).Get( temp );
775 SetProperty( ScrollView.Property.SCROLL_PRE_POSITION, new Tizen.NUI.PropertyValue( value ) );
778 public Vector2 ScrollPrePositionMax
782 Vector2 temp = new Vector2(0.0f,0.0f);
783 GetProperty( ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get( temp );
788 SetProperty( ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Tizen.NUI.PropertyValue( value ) );
791 public float OvershootX
796 GetProperty( ScrollView.Property.OVERSHOOT_X).Get( ref temp );
801 SetProperty( ScrollView.Property.OVERSHOOT_X, new Tizen.NUI.PropertyValue( value ) );
804 public float OvershootY
809 GetProperty( ScrollView.Property.OVERSHOOT_Y).Get( ref temp );
814 SetProperty( ScrollView.Property.OVERSHOOT_Y, new Tizen.NUI.PropertyValue( value ) );
817 public Vector2 ScrollFinal
821 Vector2 temp = new Vector2(0.0f,0.0f);
822 GetProperty( ScrollView.Property.SCROLL_FINAL).Get( temp );
827 SetProperty( ScrollView.Property.SCROLL_FINAL, new Tizen.NUI.PropertyValue( value ) );
835 GetProperty( ScrollView.Property.WRAP).Get( ref temp );
840 SetProperty( ScrollView.Property.WRAP, new Tizen.NUI.PropertyValue( value ) );
848 GetProperty( ScrollView.Property.PANNING).Get( ref temp );
853 SetProperty( ScrollView.Property.PANNING, new Tizen.NUI.PropertyValue( value ) );
856 public bool Scrolling
861 GetProperty( ScrollView.Property.SCROLLING).Get( ref temp );
866 SetProperty( ScrollView.Property.SCROLLING, new Tizen.NUI.PropertyValue( value ) );
869 public Vector2 ScrollDomainSize
873 Vector2 temp = new Vector2(0.0f,0.0f);
874 GetProperty( ScrollView.Property.SCROLL_DOMAIN_SIZE).Get( temp );
879 SetProperty( ScrollView.Property.SCROLL_DOMAIN_SIZE, new Tizen.NUI.PropertyValue( value ) );
882 public Vector2 ScrollDomainOffset
886 Vector2 temp = new Vector2(0.0f,0.0f);
887 GetProperty( ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get( temp );
892 SetProperty( ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Tizen.NUI.PropertyValue( value ) );
895 public Vector2 ScrollPositionDelta
899 Vector2 temp = new Vector2(0.0f,0.0f);
900 GetProperty( ScrollView.Property.SCROLL_POSITION_DELTA).Get( temp );
905 SetProperty( ScrollView.Property.SCROLL_POSITION_DELTA, new Tizen.NUI.PropertyValue( value ) );
908 public Vector3 StartPagePosition
912 Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
913 GetProperty( ScrollView.Property.START_PAGE_POSITION).Get( temp );
918 SetProperty( ScrollView.Property.START_PAGE_POSITION, new Tizen.NUI.PropertyValue( value ) );