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