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