Separate C# classes into Internal and Public
[platform/core/uifw/dali-toolkit.git] / plugins / dali-sharp / sharp / public / 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   
154   
155   
156   
157   
158   
159   
160   
161   public class SnapEvent : global::System.IDisposable {
162     private global::System.Runtime.InteropServices.HandleRef swigCPtr;
163     protected bool swigCMemOwn;
164
165     internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn) {
166       swigCMemOwn = cMemoryOwn;
167       swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
168     }
169
170     internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj) {
171       return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
172     }
173
174     ~SnapEvent() {
175       Dispose();
176     }
177
178     public virtual void Dispose() {
179       lock(this) {
180         if (swigCPtr.Handle != global::System.IntPtr.Zero) {
181           if (swigCMemOwn) {
182             swigCMemOwn = false;
183             NDalicPINVOKE.delete_ScrollView_SnapEvent(swigCPtr);
184           }
185           swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
186         }
187         global::System.GC.SuppressFinalize(this);
188       }
189     }
190
191    public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr) {
192       SnapEvent ret = new SnapEvent(cPtr, false);
193         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
194       return ret;
195     }
196
197     public SnapType type {
198       set {
199         NDalicPINVOKE.ScrollView_SnapEvent_type_set(swigCPtr, (int)value);
200         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
201       }
202       get {
203         SnapType ret = (SnapType)NDalicPINVOKE.ScrollView_SnapEvent_type_get(swigCPtr);
204         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
205         return ret;
206       }
207     }
208
209     public Vector2 position {
210       set {
211         NDalicPINVOKE.ScrollView_SnapEvent_position_set(swigCPtr, Vector2.getCPtr(value));
212         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
213       }
214       get {
215         global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_SnapEvent_position_get(swigCPtr);
216         Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
217         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
218         return ret;
219       }
220     }
221
222     public float duration {
223       set {
224         NDalicPINVOKE.ScrollView_SnapEvent_duration_set(swigCPtr, value);
225         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
226       }
227       get {
228         float ret = NDalicPINVOKE.ScrollView_SnapEvent_duration_get(swigCPtr);
229         if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
230         return ret;
231       }
232     }
233
234     public SnapEvent() : this(NDalicPINVOKE.new_ScrollView_SnapEvent(), true) {
235       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
236     }
237
238   }
239
240   
241   
242   
243   
244   public class Property
245   {
246   
247   
248     public static readonly int WRAP_ENABLED = NDalicPINVOKE.ScrollView_Property_WRAP_ENABLED_get();
249     public static readonly int PANNING_ENABLED = NDalicPINVOKE.ScrollView_Property_PANNING_ENABLED_get();
250     public static readonly int AXIS_AUTO_LOCK_ENABLED = NDalicPINVOKE.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get();
251     public static readonly int WHEEL_SCROLL_DISTANCE_STEP = NDalicPINVOKE.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
252     public static readonly int SCROLL_MODE = NDalicPINVOKE.ScrollView_Property_SCROLL_MODE_get();
253
254     public static readonly int SCROLL_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get();
255     public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get();
256     public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
257     public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
258     public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
259     public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
260     public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
261     public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get();
262     public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get();
263     public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get();
264     public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get();
265     public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get();
266     public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get();
267     public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get();
268     public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get();
269     public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
270     public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
271     public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
272     public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
273     public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get();
274     public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get();
275   
276   }
277
278   public ScrollView () : this (NDalicPINVOKE.ScrollView_New(), true) {
279       if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
280
281   }
282
283   internal new static ScrollView DownCast(BaseHandle handle) {
284     ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_DownCast(BaseHandle.getCPtr(handle)), true);
285     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
286     return ret;
287   }
288
289   public AlphaFunction GetScrollSnapAlphaFunction() {
290     AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
291     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
292     return ret;
293   }
294
295   public void SetScrollSnapAlphaFunction(AlphaFunction alpha) {
296     NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
297     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
298   }
299
300   public AlphaFunction GetScrollFlickAlphaFunction() {
301     AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
302     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
303     return ret;
304   }
305
306   public void SetScrollFlickAlphaFunction(AlphaFunction alpha) {
307     NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
308     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
309   }
310
311   public float GetScrollSnapDuration() {
312     float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr);
313     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
314     return ret;
315   }
316
317   public void SetScrollSnapDuration(float time) {
318     NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time);
319     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
320   }
321
322   public float GetScrollFlickDuration() {
323     float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr);
324     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
325     return ret;
326   }
327
328   public void SetScrollFlickDuration(float time) {
329     NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time);
330     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
331   }
332
333   public void SetScrollSensitive(bool sensitive) {
334     NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
335     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
336   }
337
338   public void SetMaxOvershoot(float overshootX, float overshootY) {
339     NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
340     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
341   }
342
343   public void SetSnapOvershootAlphaFunction(AlphaFunction alpha) {
344     NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
345     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
346   }
347
348   public void SetSnapOvershootDuration(float duration) {
349     NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
350     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
351   }
352
353   public void SetViewAutoSnap(bool enable) {
354     NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable);
355     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
356   }
357
358   public void SetWrapMode(bool enable) {
359     NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable);
360     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
361   }
362
363   public int GetScrollUpdateDistance() {
364     int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr);
365     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
366     return ret;
367   }
368
369   public void SetScrollUpdateDistance(int distance) {
370     NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
371     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
372   }
373
374   public bool GetAxisAutoLock() {
375     bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr);
376     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
377     return ret;
378   }
379
380   public void SetAxisAutoLock(bool enable) {
381     NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable);
382     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
383   }
384
385   public float GetAxisAutoLockGradient() {
386     float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr);
387     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
388     return ret;
389   }
390
391   public void SetAxisAutoLockGradient(float gradient) {
392     NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
393     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
394   }
395
396   public float GetFrictionCoefficient() {
397     float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr);
398     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
399     return ret;
400   }
401
402   public void SetFrictionCoefficient(float friction) {
403     NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
404     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
405   }
406
407   public float GetFlickSpeedCoefficient() {
408     float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
409     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
410     return ret;
411   }
412
413   public void SetFlickSpeedCoefficient(float speed) {
414     NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
415     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
416   }
417
418   public Vector2 GetMinimumDistanceForFlick() {
419     Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
420     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
421     return ret;
422   }
423
424   public void SetMinimumDistanceForFlick(Vector2 distance) {
425     NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
426     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
427   }
428
429   public float GetMinimumSpeedForFlick() {
430     float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
431     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
432     return ret;
433   }
434
435   public void SetMinimumSpeedForFlick(float speed) {
436     NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
437     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
438   }
439
440   public float GetMaxFlickSpeed() {
441     float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr);
442     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
443     return ret;
444   }
445
446   public void SetMaxFlickSpeed(float speed) {
447     NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
448     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
449   }
450
451   public Vector2 GetWheelScrollDistanceStep() {
452     Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
453     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
454     return ret;
455   }
456
457   public void SetWheelScrollDistanceStep(Vector2 step) {
458     NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
459     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
460   }
461
462   public Vector2 GetCurrentScrollPosition() {
463     Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
464     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
465     return ret;
466   }
467
468   public uint GetCurrentPage() {
469     uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr);
470     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
471     return ret;
472   }
473
474   public void ScrollTo(Vector2 position) {
475     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
476     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
477   }
478
479   public void ScrollTo(Vector2 position, float duration) {
480     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
481     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
482   }
483
484   public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha) {
485     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
486     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
487   }
488
489   public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias) {
490     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
491     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
492   }
493
494   public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias) {
495     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
496     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
497   }
498
499   public void ScrollTo(uint page) {
500     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
501     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
502   }
503
504   public void ScrollTo(uint page, float duration) {
505     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
506     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
507   }
508
509   public void ScrollTo(uint page, float duration, DirectionBias bias) {
510     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
511     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
512   }
513
514   public void ScrollTo(View view) {
515     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
516     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
517   }
518
519   public void ScrollTo(View view, float duration) {
520     NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
521     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
522   }
523
524   public bool ScrollToSnapPoint() {
525     bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr);
526     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
527     return ret;
528   }
529
530   internal void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint) {
531     NDalicPINVOKE.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
532     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
533   }
534
535   public void ApplyEffect(ScrollViewEffect effect) {
536     NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
537     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
538   }
539
540   public void RemoveEffect(ScrollViewEffect effect) {
541     NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
542     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
543   }
544
545   public void RemoveAllEffects() {
546     NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr);
547     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
548   }
549
550   public void BindView(View child) {
551     NDalicPINVOKE.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
552     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
553   }
554
555   public void UnbindView(View child) {
556     NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
557     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
558   }
559
560   public void SetScrollingDirection(Radian direction, Radian threshold) {
561     NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
562     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
563   }
564
565   public void SetScrollingDirection(Radian direction) {
566     NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
567     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
568   }
569
570   public void RemoveScrollingDirection(Radian direction) {
571     NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
572     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
573   }
574
575   internal ScrollViewSnapStartedSignal SnapStartedSignal() {
576     ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(NDalicPINVOKE.ScrollView_SnapStartedSignal(swigCPtr), false);
577     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
578     return ret;
579   }
580
581   public bool WrapEnabled
582   {
583     get
584     {
585       bool temp = false;
586       GetProperty( ScrollView.Property.WRAP_ENABLED).Get( out temp );
587       return temp;
588     }
589     set
590     {
591       SetProperty( ScrollView.Property.WRAP_ENABLED, new Dali.Property.Value( value ) );
592     }
593   }
594   public bool PanningEnabled
595   {
596     get
597     {
598       bool temp = false;
599       GetProperty( ScrollView.Property.PANNING_ENABLED).Get( out temp );
600       return temp;
601     }
602     set
603     {
604       SetProperty( ScrollView.Property.PANNING_ENABLED, new Dali.Property.Value( value ) );
605     }
606   }
607   public bool AxisAutoLockEnabled
608   {
609     get
610     {
611       bool temp = false;
612       GetProperty( ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get( out temp );
613       return temp;
614     }
615     set
616     {
617       SetProperty( ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Dali.Property.Value( value ) );
618     }
619   }
620   public Vector2 WheelScrollDistanceStep
621   {
622     get
623     {
624       Vector2 temp = new Vector2(0.0f,0.0f);
625       GetProperty( ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get(  temp );
626       return temp;
627     }
628     set
629     {
630       SetProperty( ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Dali.Property.Value( value ) );
631     }
632   }
633   public Vector2 ScrollPosition
634   {
635     get
636     {
637       Vector2 temp = new Vector2(0.0f,0.0f);
638       GetProperty( ScrollView.Property.SCROLL_POSITION).Get(  temp );
639       return temp;
640     }
641     set
642     {
643       SetProperty( ScrollView.Property.SCROLL_POSITION, new Dali.Property.Value( value ) );
644     }
645   }
646   public Vector2 ScrollPrePosition
647   {
648     get
649     {
650       Vector2 temp = new Vector2(0.0f,0.0f);
651       GetProperty( ScrollView.Property.SCROLL_PRE_POSITION).Get(  temp );
652       return temp;
653     }
654     set
655     {
656       SetProperty( ScrollView.Property.SCROLL_PRE_POSITION, new Dali.Property.Value( value ) );
657     }
658   }
659   public Vector2 ScrollPrePositionMax
660   {
661     get
662     {
663       Vector2 temp = new Vector2(0.0f,0.0f);
664       GetProperty( ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get(  temp );
665       return temp;
666     }
667     set
668     {
669       SetProperty( ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Dali.Property.Value( value ) );
670     }
671   }
672   public float OvershootX
673   {
674     get
675     {
676       float temp = 0.0f;
677       GetProperty( ScrollView.Property.OVERSHOOT_X).Get( out temp );
678       return temp;
679     }
680     set
681     {
682       SetProperty( ScrollView.Property.OVERSHOOT_X, new Dali.Property.Value( value ) );
683     }
684   }
685   public float OvershootY
686   {
687     get
688     {
689       float temp = 0.0f;
690       GetProperty( ScrollView.Property.OVERSHOOT_Y).Get( out temp );
691       return temp;
692     }
693     set
694     {
695       SetProperty( ScrollView.Property.OVERSHOOT_Y, new Dali.Property.Value( value ) );
696     }
697   }
698   public Vector2 ScrollFinal
699   {
700     get
701     {
702       Vector2 temp = new Vector2(0.0f,0.0f);
703       GetProperty( ScrollView.Property.SCROLL_FINAL).Get(  temp );
704       return temp;
705     }
706     set
707     {
708       SetProperty( ScrollView.Property.SCROLL_FINAL, new Dali.Property.Value( value ) );
709     }
710   }
711   public bool Wrap
712   {
713     get
714     {
715       bool temp = false;
716       GetProperty( ScrollView.Property.WRAP).Get( out temp );
717       return temp;
718     }
719     set
720     {
721       SetProperty( ScrollView.Property.WRAP, new Dali.Property.Value( value ) );
722     }
723   }
724   public bool Panning
725   {
726     get
727     {
728       bool temp = false;
729       GetProperty( ScrollView.Property.PANNING).Get( out temp );
730       return temp;
731     }
732     set
733     {
734       SetProperty( ScrollView.Property.PANNING, new Dali.Property.Value( value ) );
735     }
736   }
737   public bool Scrolling
738   {
739     get
740     {
741       bool temp = false;
742       GetProperty( ScrollView.Property.SCROLLING).Get( out temp );
743       return temp;
744     }
745     set
746     {
747       SetProperty( ScrollView.Property.SCROLLING, new Dali.Property.Value( value ) );
748     }
749   }
750   public Vector2 ScrollDomainSize
751   {
752     get
753     {
754       Vector2 temp = new Vector2(0.0f,0.0f);
755       GetProperty( ScrollView.Property.SCROLL_DOMAIN_SIZE).Get(  temp );
756       return temp;
757     }
758     set
759     {
760       SetProperty( ScrollView.Property.SCROLL_DOMAIN_SIZE, new Dali.Property.Value( value ) );
761     }
762   }
763   public Vector2 ScrollDomainOffset
764   {
765     get
766     {
767       Vector2 temp = new Vector2(0.0f,0.0f);
768       GetProperty( ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get(  temp );
769       return temp;
770     }
771     set
772     {
773       SetProperty( ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Dali.Property.Value( value ) );
774     }
775   }
776   public Vector2 ScrollPositionDelta
777   {
778     get
779     {
780       Vector2 temp = new Vector2(0.0f,0.0f);
781       GetProperty( ScrollView.Property.SCROLL_POSITION_DELTA).Get(  temp );
782       return temp;
783     }
784     set
785     {
786       SetProperty( ScrollView.Property.SCROLL_POSITION_DELTA, new Dali.Property.Value( value ) );
787     }
788   }
789   public Vector3 StartPagePosition
790   {
791     get
792     {
793       Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
794       GetProperty( ScrollView.Property.START_PAGE_POSITION).Get(  temp );
795       return temp;
796     }
797     set
798     {
799       SetProperty( ScrollView.Property.START_PAGE_POSITION, new Dali.Property.Value( value ) );
800     }
801   }
802
803   public Dali.Property.Map ScrollMode
804   {
805     get
806     {
807       Dali.Property.Value value = GetProperty( ScrollView.Property.SCROLL_MODE );
808       Dali.Property.Map map = new Dali.Property.Map();
809       value.Get( map );
810       return map;
811     }
812     set
813     {
814       SetProperty( ScrollView.Property.SCROLL_MODE, new Dali.Property.Value( value ) );
815     }
816   }
817 }
818
819 }