Combined Stage and Window class, and removed Stage class
[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_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get();
345     public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get();
346     public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
347     public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
348     public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
349     public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
350     public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
351     public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get();
352     public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get();
353     public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get();
354     public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get();
355     public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get();
356     public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get();
357     public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get();
358     public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get();
359     public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
360     public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
361     public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
362     public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
363     public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get();
364     public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get();
365   
366   }
367
368   public ScrollView () : this (NDalicPINVOKE.ScrollView_New(), true) {
369       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
370
371   }
372   public ScrollView(ScrollView handle) : this(NDalicPINVOKE.new_ScrollView__SWIG_1(ScrollView.getCPtr(handle)), true) {
373     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
374   }
375
376   public ScrollView Assign(ScrollView handle) {
377     ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_Assign(swigCPtr, ScrollView.getCPtr(handle)), false);
378     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
379     return ret;
380   }
381
382   public new static ScrollView DownCast(BaseHandle handle) {
383     ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_DownCast(BaseHandle.getCPtr(handle)), true);
384     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
385     return ret;
386   }
387
388   public AlphaFunction GetScrollSnapAlphaFunction() {
389     AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
390     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
391     return ret;
392   }
393
394   public void SetScrollSnapAlphaFunction(AlphaFunction alpha) {
395     NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
396     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
397   }
398
399   public AlphaFunction GetScrollFlickAlphaFunction() {
400     AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
401     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
402     return ret;
403   }
404
405   public void SetScrollFlickAlphaFunction(AlphaFunction alpha) {
406     NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
407     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
408   }
409
410   public float GetScrollSnapDuration() {
411     float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr);
412     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
413     return ret;
414   }
415
416   public void SetScrollSnapDuration(float time) {
417     NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time);
418     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
419   }
420
421   public float GetScrollFlickDuration() {
422     float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr);
423     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
424     return ret;
425   }
426
427   public void SetScrollFlickDuration(float time) {
428     NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time);
429     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
430   }
431
432   public void SetRulerX(RulerPtr ruler) {
433     NDalicPINVOKE.ScrollView_SetRulerX(swigCPtr, RulerPtr.getCPtr(ruler));
434     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
435   }
436
437   public void SetRulerY(RulerPtr ruler) {
438     NDalicPINVOKE.ScrollView_SetRulerY(swigCPtr, RulerPtr.getCPtr(ruler));
439     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
440   }
441
442   public void SetScrollSensitive(bool sensitive) {
443     NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
444     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
445   }
446
447   public void SetMaxOvershoot(float overshootX, float overshootY) {
448     NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
449     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
450   }
451
452   public void SetSnapOvershootAlphaFunction(AlphaFunction alpha) {
453     NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
454     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
455   }
456
457   public void SetSnapOvershootDuration(float duration) {
458     NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
459     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
460   }
461
462   public void SetViewAutoSnap(bool enable) {
463     NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable);
464     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
465   }
466
467   public void SetWrapMode(bool enable) {
468     NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable);
469     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
470   }
471
472   public int GetScrollUpdateDistance() {
473     int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr);
474     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
475     return ret;
476   }
477
478   public void SetScrollUpdateDistance(int distance) {
479     NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
480     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
481   }
482
483   public bool GetAxisAutoLock() {
484     bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr);
485     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
486     return ret;
487   }
488
489   public void SetAxisAutoLock(bool enable) {
490     NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable);
491     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
492   }
493
494   public float GetAxisAutoLockGradient() {
495     float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr);
496     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
497     return ret;
498   }
499
500   public void SetAxisAutoLockGradient(float gradient) {
501     NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
502     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
503   }
504
505   public float GetFrictionCoefficient() {
506     float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr);
507     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
508     return ret;
509   }
510
511   public void SetFrictionCoefficient(float friction) {
512     NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
513     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
514   }
515
516   public float GetFlickSpeedCoefficient() {
517     float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
518     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
519     return ret;
520   }
521
522   public void SetFlickSpeedCoefficient(float speed) {
523     NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
524     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
525   }
526
527   public Vector2 GetMinimumDistanceForFlick() {
528     Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
529     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
530     return ret;
531   }
532
533   public void SetMinimumDistanceForFlick(Vector2 distance) {
534     NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
535     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
536   }
537
538   public float GetMinimumSpeedForFlick() {
539     float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
540     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
541     return ret;
542   }
543
544   public void SetMinimumSpeedForFlick(float speed) {
545     NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
546     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
547   }
548
549   public float GetMaxFlickSpeed() {
550     float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr);
551     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
552     return ret;
553   }
554
555   public void SetMaxFlickSpeed(float speed) {
556     NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
557     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
558   }
559
560   public Vector2 GetWheelScrollDistanceStep() {
561     Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
562     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
563     return ret;
564   }
565
566   public void SetWheelScrollDistanceStep(Vector2 step) {
567     NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
568     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
569   }
570
571   public Vector2 GetCurrentScrollPosition() {
572     Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
573     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
574     return ret;
575   }
576
577   public uint GetCurrentPage() {
578     uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr);
579     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
580     return ret;
581   }
582
583   public void ScrollTo(Vector2 position) {
584     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
585     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
586   }
587
588   public void ScrollTo(Vector2 position, float duration) {
589     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
590     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
591   }
592
593   public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha) {
594     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
595     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
596   }
597
598   public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias) {
599     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
600     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
601   }
602
603   public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias) {
604     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
605     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
606   }
607
608   public void ScrollTo(uint page) {
609     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
610     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
611   }
612
613   public void ScrollTo(uint page, float duration) {
614     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
615     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
616   }
617
618   public void ScrollTo(uint page, float duration, DirectionBias bias) {
619     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
620     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
621   }
622
623   public void ScrollTo(View view) {
624     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
625     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
626   }
627
628   public void ScrollTo(View view, float duration) {
629     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
630     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
631   }
632
633   public bool ScrollToSnapPoint() {
634     bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr);
635     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
636     return ret;
637   }
638
639   public void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint) {
640     NDalicPINVOKE.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
641     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
642   }
643
644   public void RemoveConstraintsFromChildren() {
645     NDalicPINVOKE.ScrollView_RemoveConstraintsFromChildren(swigCPtr);
646     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
647   }
648
649   public void ApplyEffect(ScrollViewEffect effect) {
650     NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
651     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
652   }
653
654   public void RemoveEffect(ScrollViewEffect effect) {
655     NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
656     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
657   }
658
659   public void RemoveAllEffects() {
660     NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr);
661     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
662   }
663
664   public void BindView(View child) {
665     NDalicPINVOKE.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
666     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
667   }
668
669   public void UnbindView(View child) {
670     NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
671     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
672   }
673
674   public void SetScrollingDirection(Radian direction, Radian threshold) {
675     NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
676     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
677   }
678
679   public void SetScrollingDirection(Radian direction) {
680     NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
681     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
682   }
683
684   public void RemoveScrollingDirection(Radian direction) {
685     NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
686     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
687   }
688
689   public ScrollViewSnapStartedSignal SnapStartedSignal() {
690     ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(NDalicPINVOKE.ScrollView_SnapStartedSignal(swigCPtr), false);
691     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
692     return ret;
693   }
694
695   public enum PropertyRange {
696     PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
697     PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX+1000,
698     ANIMATABLE_PROPERTY_START_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX,
699     ANIMATABLE_PROPERTY_END_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX+1000
700   }
701
702   public bool WrapEnabled
703   {
704     get
705     {
706       bool temp = false;
707       GetProperty( ScrollView.Property.WRAP_ENABLED).Get( ref temp );
708       return temp;
709     }
710     set
711     {
712       SetProperty( ScrollView.Property.WRAP_ENABLED, new Dali.Property.Value( value ) );
713     }
714   }
715   public bool PanningEnabled
716   {
717     get
718     {
719       bool temp = false;
720       GetProperty( ScrollView.Property.PANNING_ENABLED).Get( ref temp );
721       return temp;
722     }
723     set
724     {
725       SetProperty( ScrollView.Property.PANNING_ENABLED, new Dali.Property.Value( value ) );
726     }
727   }
728   public bool AxisAutoLockEnabled
729   {
730     get
731     {
732       bool temp = false;
733       GetProperty( ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get( ref temp );
734       return temp;
735     }
736     set
737     {
738       SetProperty( ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Dali.Property.Value( value ) );
739     }
740   }
741   public Vector2 WheelScrollDistanceStep
742   {
743     get
744     {
745       Vector2 temp = new Vector2(0.0f,0.0f);
746       GetProperty( ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get(  temp );
747       return temp;
748     }
749     set
750     {
751       SetProperty( ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Dali.Property.Value( value ) );
752     }
753   }
754   public Vector2 ScrollPosition
755   {
756     get
757     {
758       Vector2 temp = new Vector2(0.0f,0.0f);
759       GetProperty( ScrollView.Property.SCROLL_POSITION).Get(  temp );
760       return temp;
761     }
762     set
763     {
764       SetProperty( ScrollView.Property.SCROLL_POSITION, new Dali.Property.Value( value ) );
765     }
766   }
767   public Vector2 ScrollPrePosition
768   {
769     get
770     {
771       Vector2 temp = new Vector2(0.0f,0.0f);
772       GetProperty( ScrollView.Property.SCROLL_PRE_POSITION).Get(  temp );
773       return temp;
774     }
775     set
776     {
777       SetProperty( ScrollView.Property.SCROLL_PRE_POSITION, new Dali.Property.Value( value ) );
778     }
779   }
780   public Vector2 ScrollPrePositionMax
781   {
782     get
783     {
784       Vector2 temp = new Vector2(0.0f,0.0f);
785       GetProperty( ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get(  temp );
786       return temp;
787     }
788     set
789     {
790       SetProperty( ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Dali.Property.Value( value ) );
791     }
792   }
793   public float OvershootX
794   {
795     get
796     {
797       float temp = 0.0f;
798       GetProperty( ScrollView.Property.OVERSHOOT_X).Get( ref temp );
799       return temp;
800     }
801     set
802     {
803       SetProperty( ScrollView.Property.OVERSHOOT_X, new Dali.Property.Value( value ) );
804     }
805   }
806   public float OvershootY
807   {
808     get
809     {
810       float temp = 0.0f;
811       GetProperty( ScrollView.Property.OVERSHOOT_Y).Get( ref temp );
812       return temp;
813     }
814     set
815     {
816       SetProperty( ScrollView.Property.OVERSHOOT_Y, new Dali.Property.Value( value ) );
817     }
818   }
819   public Vector2 ScrollFinal
820   {
821     get
822     {
823       Vector2 temp = new Vector2(0.0f,0.0f);
824       GetProperty( ScrollView.Property.SCROLL_FINAL).Get(  temp );
825       return temp;
826     }
827     set
828     {
829       SetProperty( ScrollView.Property.SCROLL_FINAL, new Dali.Property.Value( value ) );
830     }
831   }
832   public bool Wrap
833   {
834     get
835     {
836       bool temp = false;
837       GetProperty( ScrollView.Property.WRAP).Get( ref temp );
838       return temp;
839     }
840     set
841     {
842       SetProperty( ScrollView.Property.WRAP, new Dali.Property.Value( value ) );
843     }
844   }
845   public bool Panning
846   {
847     get
848     {
849       bool temp = false;
850       GetProperty( ScrollView.Property.PANNING).Get( ref temp );
851       return temp;
852     }
853     set
854     {
855       SetProperty( ScrollView.Property.PANNING, new Dali.Property.Value( value ) );
856     }
857   }
858   public bool Scrolling
859   {
860     get
861     {
862       bool temp = false;
863       GetProperty( ScrollView.Property.SCROLLING).Get( ref temp );
864       return temp;
865     }
866     set
867     {
868       SetProperty( ScrollView.Property.SCROLLING, new Dali.Property.Value( value ) );
869     }
870   }
871   public Vector2 ScrollDomainSize
872   {
873     get
874     {
875       Vector2 temp = new Vector2(0.0f,0.0f);
876       GetProperty( ScrollView.Property.SCROLL_DOMAIN_SIZE).Get(  temp );
877       return temp;
878     }
879     set
880     {
881       SetProperty( ScrollView.Property.SCROLL_DOMAIN_SIZE, new Dali.Property.Value( value ) );
882     }
883   }
884   public Vector2 ScrollDomainOffset
885   {
886     get
887     {
888       Vector2 temp = new Vector2(0.0f,0.0f);
889       GetProperty( ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get(  temp );
890       return temp;
891     }
892     set
893     {
894       SetProperty( ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Dali.Property.Value( value ) );
895     }
896   }
897   public Vector2 ScrollPositionDelta
898   {
899     get
900     {
901       Vector2 temp = new Vector2(0.0f,0.0f);
902       GetProperty( ScrollView.Property.SCROLL_POSITION_DELTA).Get(  temp );
903       return temp;
904     }
905     set
906     {
907       SetProperty( ScrollView.Property.SCROLL_POSITION_DELTA, new Dali.Property.Value( value ) );
908     }
909   }
910   public Vector3 StartPagePosition
911   {
912     get
913     {
914       Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
915       GetProperty( ScrollView.Property.START_PAGE_POSITION).Get(  temp );
916       return temp;
917     }
918     set
919     {
920       SetProperty( ScrollView.Property.START_PAGE_POSITION, new Dali.Property.Value( value ) );
921     }
922   }
923
924 }
925
926 }