Added scrollMode property to ScrollView to simplify Rulers
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / internal / ScrollView.cs
1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
2 *
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
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
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.
14 *
15 */
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
18 // <auto-generated />
19 //
20 // This file was automatically generated by SWIG (http://www.swig.org).
21 // Version 3.0.10
22 //
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
26
27 namespace Dali {
28
29 using System;
30 using System.Runtime.InteropServices;
31
32
33 public class ScrollView : Scrollable {
34   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
35
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);
38   }
39
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;
42   }
43
44   ~ScrollView() {
45     DisposeQueue.Instance.Add(this);
46   }
47
48   public override void Dispose() {
49     if (!Window.IsInstalled()) {
50       DisposeQueue.Instance.Add(this);
51       return;
52     }
53
54     lock(this) {
55       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
56         if (swigCMemOwn) {
57           swigCMemOwn = false;
58           NDalicPINVOKE.delete_ScrollView(swigCPtr);
59         }
60         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
61       }
62       global::System.GC.SuppressFinalize(this);
63       base.Dispose();
64     }
65   }
66
67
68
69 /**
70   * @brief Event arguments that passed via SnapStarted signal
71   *
72   */
73 public class SnapStartedEventArgs : EventArgs
74 {
75    private Dali.ScrollView.SnapEvent _snapEvent;
76
77    /**
78      * @brief SnapEvent - is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick).
79      *
80      */
81    public Dali.ScrollView.SnapEvent SnapEventInfo
82    {
83       get
84       {
85          return _snapEvent;
86       }
87       set
88       {
89          _snapEvent = value;
90       }
91    }
92 }
93
94   [UnmanagedFunctionPointer(CallingConvention.StdCall)]
95   private delegate void SnapStartedCallbackDelegate(IntPtr data);
96   private DaliEventHandler<object,SnapStartedEventArgs> _scrollViewSnapStartedEventHandler;
97   private SnapStartedCallbackDelegate _scrollViewSnapStartedCallbackDelegate;
98
99   /**
100     * @brief Event for SnapStarted signal which can be used to subscribe/unsubscribe the event handler
101     * (in the type of SnapStartedEventHandler-DaliEventHandler<object,SnapStartedEventArgs>) provided by the user.
102     * SnapStarted signal is emitted hen the ScrollView has started to snap or flick (it tells the target
103     * position, scale, rotation for the snap or flick).
104     *
105     */
106  public event DaliEventHandler<object,SnapStartedEventArgs> SnapStarted
107   {
108      add
109      {
110         lock(this)
111         {
112            // Restricted to only one listener
113            if (_scrollViewSnapStartedEventHandler == null)
114            {
115               _scrollViewSnapStartedEventHandler += value;
116
117               _scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted);
118               this.SnapStartedSignal().Connect(_scrollViewSnapStartedCallbackDelegate);
119            }
120         }
121      }
122
123      remove
124      {
125         lock(this)
126         {
127            if (_scrollViewSnapStartedEventHandler != null)
128            {
129               this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
130            }
131
132            _scrollViewSnapStartedEventHandler -= value;
133         }
134      }
135   }
136
137   // Callback for ScrollView SnapStarted signal
138   private void OnSnapStarted(IntPtr data)
139   {
140      SnapStartedEventArgs e = new SnapStartedEventArgs();
141
142      // Populate all members of "e" (SnapStartedEventArgs) with real data
143      e.SnapEventInfo = SnapEvent.GetSnapEventFromPtr( data );
144
145      if (_scrollViewSnapStartedEventHandler != null)
146      {
147         //here we send all data to user event handlers
148         _scrollViewSnapStartedEventHandler(this, e);
149      }
150   }
151
152
153   public class ClampEvent : global::System.IDisposable {
154     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
155     protected bool swigCMemOwn;
156
157     internal ClampEvent(global::System.IntPtr cPtr, bool cMemoryOwn) {
158       swigCMemOwn = cMemoryOwn;
159       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
160     }
161
162     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ClampEvent obj) {
163       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
164     }
165
166     ~ClampEvent() {
167       Dispose();
168     }
169
170     public virtual void Dispose() {
171       lock(this) {
172         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
173           if (swigCMemOwn) {
174             swigCMemOwn = false;
175             NDalicPINVOKE.delete_ScrollView_ClampEvent(swigCPtr);
176           }
177           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
178         }
179         global::System.GC.SuppressFinalize(this);
180       }
181     }
182
183     public ClampState2D scale {
184       set {
185         NDalicPINVOKE.ScrollView_ClampEvent_scale_set(swigCPtr, ClampState2D.getCPtr(value));
186         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
187       }
188       get {
189         global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_ClampEvent_scale_get(swigCPtr);
190         ClampState2D ret = (cPtr == global::System.IntPtr.Zero) ? null : new ClampState2D(cPtr, false);
191         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
192         return ret;
193       }
194     }
195
196     public ClampState2D position {
197       set {
198         NDalicPINVOKE.ScrollView_ClampEvent_position_set(swigCPtr, ClampState2D.getCPtr(value));
199         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
200       }
201       get {
202         global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_ClampEvent_position_get(swigCPtr);
203         ClampState2D ret = (cPtr == global::System.IntPtr.Zero) ? null : new ClampState2D(cPtr, false);
204         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
205         return ret;
206       }
207     }
208
209     public ClampState rotation {
210       set {
211         NDalicPINVOKE.ScrollView_ClampEvent_rotation_set(swigCPtr, (int)value);
212         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
213       }
214       get {
215         ClampState ret = (ClampState)NDalicPINVOKE.ScrollView_ClampEvent_rotation_get(swigCPtr);
216         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
217         return ret;
218       }
219     }
220
221     public ClampEvent() : this(NDalicPINVOKE.new_ScrollView_ClampEvent(), true) {
222       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
223     }
224
225   }
226
227   public class SnapEvent : global::System.IDisposable {
228     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
229     protected bool swigCMemOwn;
230
231     internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn) {
232       swigCMemOwn = cMemoryOwn;
233       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
234     }
235
236     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj) {
237       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
238     }
239
240     ~SnapEvent() {
241       Dispose();
242     }
243
244     public virtual void Dispose() {
245       lock(this) {
246         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
247           if (swigCMemOwn) {
248             swigCMemOwn = false;
249             NDalicPINVOKE.delete_ScrollView_SnapEvent(swigCPtr);
250           }
251           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
252         }
253         global::System.GC.SuppressFinalize(this);
254       }
255     }
256
257    public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr) {
258       SnapEvent ret = new SnapEvent(cPtr, false);
259         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
260       return ret;
261     }
262
263     public SnapType type {
264       set {
265         NDalicPINVOKE.ScrollView_SnapEvent_type_set(swigCPtr, (int)value);
266         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
267       }
268       get {
269         SnapType ret = (SnapType)NDalicPINVOKE.ScrollView_SnapEvent_type_get(swigCPtr);
270         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
271         return ret;
272       }
273     }
274
275     public Vector2 position {
276       set {
277         NDalicPINVOKE.ScrollView_SnapEvent_position_set(swigCPtr, Vector2.getCPtr(value));
278         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
279       }
280       get {
281         global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_SnapEvent_position_get(swigCPtr);
282         Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
283         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
284         return ret;
285       }
286     }
287
288     public float duration {
289       set {
290         NDalicPINVOKE.ScrollView_SnapEvent_duration_set(swigCPtr, value);
291         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
292       }
293       get {
294         float ret = NDalicPINVOKE.ScrollView_SnapEvent_duration_get(swigCPtr);
295         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
296         return ret;
297       }
298     }
299
300     public SnapEvent() : this(NDalicPINVOKE.new_ScrollView_SnapEvent(), true) {
301       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
302     }
303
304   }
305
306   public class Property : global::System.IDisposable {
307     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
308     protected bool swigCMemOwn;
309
310     internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
311       swigCMemOwn = cMemoryOwn;
312       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
313     }
314
315     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) {
316       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
317     }
318
319     ~Property() {
320       Dispose();
321     }
322
323     public virtual void Dispose() {
324       lock(this) {
325         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
326           if (swigCMemOwn) {
327             swigCMemOwn = false;
328             NDalicPINVOKE.delete_ScrollView_Property(swigCPtr);
329           }
330           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
331         }
332         global::System.GC.SuppressFinalize(this);
333       }
334     }
335
336     public Property() : this(NDalicPINVOKE.new_ScrollView_Property(), true) {
337       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
338     }
339
340     public static readonly int WRAP_ENABLED = NDalicPINVOKE.ScrollView_Property_WRAP_ENABLED_get();
341     public static readonly int PANNING_ENABLED = NDalicPINVOKE.ScrollView_Property_PANNING_ENABLED_get();
342     public static readonly int AXIS_AUTO_LOCK_ENABLED = NDalicPINVOKE.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get();
343     public static readonly int WHEEL_SCROLL_DISTANCE_STEP = NDalicPINVOKE.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
344     public static readonly int SCROLL_MODE = NDalicPINVOKE.ScrollView_Property_SCROLL_MODE_get();
345
346     public static readonly int SCROLL_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get();
347     public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get();
348     public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
349     public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
350     public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
351     public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
352     public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
353     public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get();
354     public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get();
355     public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get();
356     public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get();
357     public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get();
358     public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get();
359     public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get();
360     public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get();
361     public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
362     public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
363     public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
364     public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
365     public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get();
366     public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get();
367
368   }
369
370   public ScrollView () : this (NDalicPINVOKE.ScrollView_New(), true) {
371       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
372
373   }
374   public ScrollView(ScrollView handle) : this(NDalicPINVOKE.new_ScrollView__SWIG_1(ScrollView.getCPtr(handle)), true) {
375     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
376   }
377
378   public ScrollView Assign(ScrollView handle) {
379     ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_Assign(swigCPtr, ScrollView.getCPtr(handle)), false);
380     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
381     return ret;
382   }
383
384   public new static ScrollView DownCast(BaseHandle handle) {
385     ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_DownCast(BaseHandle.getCPtr(handle)), true);
386     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
387     return ret;
388   }
389
390   public AlphaFunction GetScrollSnapAlphaFunction() {
391     AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
392     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
393     return ret;
394   }
395
396   public void SetScrollSnapAlphaFunction(AlphaFunction alpha) {
397     NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
398     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
399   }
400
401   public AlphaFunction GetScrollFlickAlphaFunction() {
402     AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
403     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
404     return ret;
405   }
406
407   public void SetScrollFlickAlphaFunction(AlphaFunction alpha) {
408     NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
409     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
410   }
411
412   public float GetScrollSnapDuration() {
413     float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr);
414     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
415     return ret;
416   }
417
418   public void SetScrollSnapDuration(float time) {
419     NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time);
420     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
421   }
422
423   public float GetScrollFlickDuration() {
424     float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr);
425     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
426     return ret;
427   }
428
429   public void SetScrollFlickDuration(float time) {
430     NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time);
431     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
432   }
433
434   public void SetRulerX(RulerPtr ruler) {
435     NDalicPINVOKE.ScrollView_SetRulerX(swigCPtr, RulerPtr.getCPtr(ruler));
436     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
437   }
438
439   public void SetRulerY(RulerPtr ruler) {
440     NDalicPINVOKE.ScrollView_SetRulerY(swigCPtr, RulerPtr.getCPtr(ruler));
441     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
442   }
443
444   public void SetScrollSensitive(bool sensitive) {
445     NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
446     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
447   }
448
449   public void SetMaxOvershoot(float overshootX, float overshootY) {
450     NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
451     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
452   }
453
454   public void SetSnapOvershootAlphaFunction(AlphaFunction alpha) {
455     NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
456     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
457   }
458
459   public void SetSnapOvershootDuration(float duration) {
460     NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
461     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
462   }
463
464   public void SetViewAutoSnap(bool enable) {
465     NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable);
466     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
467   }
468
469   public void SetWrapMode(bool enable) {
470     NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable);
471     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
472   }
473
474   public int GetScrollUpdateDistance() {
475     int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr);
476     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
477     return ret;
478   }
479
480   public void SetScrollUpdateDistance(int distance) {
481     NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
482     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
483   }
484
485   public bool GetAxisAutoLock() {
486     bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr);
487     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
488     return ret;
489   }
490
491   public void SetAxisAutoLock(bool enable) {
492     NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable);
493     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
494   }
495
496   public float GetAxisAutoLockGradient() {
497     float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr);
498     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
499     return ret;
500   }
501
502   public void SetAxisAutoLockGradient(float gradient) {
503     NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
504     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
505   }
506
507   public float GetFrictionCoefficient() {
508     float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr);
509     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
510     return ret;
511   }
512
513   public void SetFrictionCoefficient(float friction) {
514     NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
515     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
516   }
517
518   public float GetFlickSpeedCoefficient() {
519     float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
520     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
521     return ret;
522   }
523
524   public void SetFlickSpeedCoefficient(float speed) {
525     NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
526     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
527   }
528
529   public Vector2 GetMinimumDistanceForFlick() {
530     Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
531     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
532     return ret;
533   }
534
535   public void SetMinimumDistanceForFlick(Vector2 distance) {
536     NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
537     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
538   }
539
540   public float GetMinimumSpeedForFlick() {
541     float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
542     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
543     return ret;
544   }
545
546   public void SetMinimumSpeedForFlick(float speed) {
547     NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
548     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
549   }
550
551   public float GetMaxFlickSpeed() {
552     float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr);
553     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
554     return ret;
555   }
556
557   public void SetMaxFlickSpeed(float speed) {
558     NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
559     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
560   }
561
562   public Vector2 GetWheelScrollDistanceStep() {
563     Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
564     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
565     return ret;
566   }
567
568   public void SetWheelScrollDistanceStep(Vector2 step) {
569     NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
570     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
571   }
572
573   public Vector2 GetCurrentScrollPosition() {
574     Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
575     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
576     return ret;
577   }
578
579   public uint GetCurrentPage() {
580     uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr);
581     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
582     return ret;
583   }
584
585   public void ScrollTo(Vector2 position) {
586     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
587     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
588   }
589
590   public void ScrollTo(Vector2 position, float duration) {
591     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
592     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
593   }
594
595   public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha) {
596     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
597     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
598   }
599
600   public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias) {
601     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
602     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
603   }
604
605   public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias) {
606     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
607     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
608   }
609
610   public void ScrollTo(uint page) {
611     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
612     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
613   }
614
615   public void ScrollTo(uint page, float duration) {
616     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
617     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
618   }
619
620   public void ScrollTo(uint page, float duration, DirectionBias bias) {
621     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
622     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
623   }
624
625   public void ScrollTo(View view) {
626     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
627     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
628   }
629
630   public void ScrollTo(View view, float duration) {
631     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
632     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
633   }
634
635   public bool ScrollToSnapPoint() {
636     bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr);
637     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
638     return ret;
639   }
640
641   public void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint) {
642     NDalicPINVOKE.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
643     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
644   }
645
646   public void RemoveConstraintsFromChildren() {
647     NDalicPINVOKE.ScrollView_RemoveConstraintsFromChildren(swigCPtr);
648     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
649   }
650
651   public void ApplyEffect(ScrollViewEffect effect) {
652     NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
653     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
654   }
655
656   public void RemoveEffect(ScrollViewEffect effect) {
657     NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
658     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
659   }
660
661   public void RemoveAllEffects() {
662     NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr);
663     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
664   }
665
666   public void BindView(View child) {
667     NDalicPINVOKE.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
668     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
669   }
670
671   public void UnbindView(View child) {
672     NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
673     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
674   }
675
676   public void SetScrollingDirection(Radian direction, Radian threshold) {
677     NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
678     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
679   }
680
681   public void SetScrollingDirection(Radian direction) {
682     NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
683     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
684   }
685
686   public void RemoveScrollingDirection(Radian direction) {
687     NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
688     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
689   }
690
691   public ScrollViewSnapStartedSignal SnapStartedSignal() {
692     ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(NDalicPINVOKE.ScrollView_SnapStartedSignal(swigCPtr), false);
693     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
694     return ret;
695   }
696
697   public enum PropertyRange {
698     PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
699     PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX+1000,
700     ANIMATABLE_PROPERTY_START_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX,
701     ANIMATABLE_PROPERTY_END_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX+1000
702   }
703
704   public bool WrapEnabled
705   {
706     get
707     {
708       bool temp = false;
709       GetProperty( ScrollView.Property.WRAP_ENABLED).Get( ref temp );
710       return temp;
711     }
712     set
713     {
714       SetProperty( ScrollView.Property.WRAP_ENABLED, new Dali.Property.Value( value ) );
715     }
716   }
717   public bool PanningEnabled
718   {
719     get
720     {
721       bool temp = false;
722       GetProperty( ScrollView.Property.PANNING_ENABLED).Get( ref temp );
723       return temp;
724     }
725     set
726     {
727       SetProperty( ScrollView.Property.PANNING_ENABLED, new Dali.Property.Value( value ) );
728     }
729   }
730   public bool AxisAutoLockEnabled
731   {
732     get
733     {
734       bool temp = false;
735       GetProperty( ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get( ref temp );
736       return temp;
737     }
738     set
739     {
740       SetProperty( ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Dali.Property.Value( value ) );
741     }
742   }
743   public Vector2 WheelScrollDistanceStep
744   {
745     get
746     {
747       Vector2 temp = new Vector2(0.0f,0.0f);
748       GetProperty( ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get(  temp );
749       return temp;
750     }
751     set
752     {
753       SetProperty( ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Dali.Property.Value( value ) );
754     }
755   }
756   public Vector2 ScrollPosition
757   {
758     get
759     {
760       Vector2 temp = new Vector2(0.0f,0.0f);
761       GetProperty( ScrollView.Property.SCROLL_POSITION).Get(  temp );
762       return temp;
763     }
764     set
765     {
766       SetProperty( ScrollView.Property.SCROLL_POSITION, new Dali.Property.Value( value ) );
767     }
768   }
769   public Vector2 ScrollPrePosition
770   {
771     get
772     {
773       Vector2 temp = new Vector2(0.0f,0.0f);
774       GetProperty( ScrollView.Property.SCROLL_PRE_POSITION).Get(  temp );
775       return temp;
776     }
777     set
778     {
779       SetProperty( ScrollView.Property.SCROLL_PRE_POSITION, new Dali.Property.Value( value ) );
780     }
781   }
782   public Vector2 ScrollPrePositionMax
783   {
784     get
785     {
786       Vector2 temp = new Vector2(0.0f,0.0f);
787       GetProperty( ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get(  temp );
788       return temp;
789     }
790     set
791     {
792       SetProperty( ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Dali.Property.Value( value ) );
793     }
794   }
795   public float OvershootX
796   {
797     get
798     {
799       float temp = 0.0f;
800       GetProperty( ScrollView.Property.OVERSHOOT_X).Get( ref temp );
801       return temp;
802     }
803     set
804     {
805       SetProperty( ScrollView.Property.OVERSHOOT_X, new Dali.Property.Value( value ) );
806     }
807   }
808   public float OvershootY
809   {
810     get
811     {
812       float temp = 0.0f;
813       GetProperty( ScrollView.Property.OVERSHOOT_Y).Get( ref temp );
814       return temp;
815     }
816     set
817     {
818       SetProperty( ScrollView.Property.OVERSHOOT_Y, new Dali.Property.Value( value ) );
819     }
820   }
821   public Vector2 ScrollFinal
822   {
823     get
824     {
825       Vector2 temp = new Vector2(0.0f,0.0f);
826       GetProperty( ScrollView.Property.SCROLL_FINAL).Get(  temp );
827       return temp;
828     }
829     set
830     {
831       SetProperty( ScrollView.Property.SCROLL_FINAL, new Dali.Property.Value( value ) );
832     }
833   }
834   public bool Wrap
835   {
836     get
837     {
838       bool temp = false;
839       GetProperty( ScrollView.Property.WRAP).Get( ref temp );
840       return temp;
841     }
842     set
843     {
844       SetProperty( ScrollView.Property.WRAP, new Dali.Property.Value( value ) );
845     }
846   }
847   public bool Panning
848   {
849     get
850     {
851       bool temp = false;
852       GetProperty( ScrollView.Property.PANNING).Get( ref temp );
853       return temp;
854     }
855     set
856     {
857       SetProperty( ScrollView.Property.PANNING, new Dali.Property.Value( value ) );
858     }
859   }
860   public bool Scrolling
861   {
862     get
863     {
864       bool temp = false;
865       GetProperty( ScrollView.Property.SCROLLING).Get( ref temp );
866       return temp;
867     }
868     set
869     {
870       SetProperty( ScrollView.Property.SCROLLING, new Dali.Property.Value( value ) );
871     }
872   }
873   public Vector2 ScrollDomainSize
874   {
875     get
876     {
877       Vector2 temp = new Vector2(0.0f,0.0f);
878       GetProperty( ScrollView.Property.SCROLL_DOMAIN_SIZE).Get(  temp );
879       return temp;
880     }
881     set
882     {
883       SetProperty( ScrollView.Property.SCROLL_DOMAIN_SIZE, new Dali.Property.Value( value ) );
884     }
885   }
886   public Vector2 ScrollDomainOffset
887   {
888     get
889     {
890       Vector2 temp = new Vector2(0.0f,0.0f);
891       GetProperty( ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get(  temp );
892       return temp;
893     }
894     set
895     {
896       SetProperty( ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Dali.Property.Value( value ) );
897     }
898   }
899   public Vector2 ScrollPositionDelta
900   {
901     get
902     {
903       Vector2 temp = new Vector2(0.0f,0.0f);
904       GetProperty( ScrollView.Property.SCROLL_POSITION_DELTA).Get(  temp );
905       return temp;
906     }
907     set
908     {
909       SetProperty( ScrollView.Property.SCROLL_POSITION_DELTA, new Dali.Property.Value( value ) );
910     }
911   }
912   public Vector3 StartPagePosition
913   {
914     get
915     {
916       Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
917       GetProperty( ScrollView.Property.START_PAGE_POSITION).Get(  temp );
918       return temp;
919     }
920     set
921     {
922       SetProperty( ScrollView.Property.START_PAGE_POSITION, new Dali.Property.Value( value ) );
923     }
924   }
925
926   public Dali.Property.Map ScrollMode
927   {
928     get
929     {
930       Dali.Property.Value value = GetProperty( ScrollView.Property.SCROLL_MODE );
931       Dali.Property.Map map = new Dali.Property.Map();
932       value.Get( map );
933       return map;
934     }
935     set
936     {
937       SetProperty( ScrollView.Property.SCROLL_MODE, new Dali.Property.Value( value ) );
938     }
939   }
940 }
941
942 }