1 /** Copyright (c) 2016 Samsung Electronics Co., Ltd.
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
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
20 // This file was automatically generated by SWIG (http://www.swig.org).
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
30 using System.Runtime.InteropServices;
33 public class ScrollView : Scrollable {
34 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
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);
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;
48 public override void Dispose() {
50 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
53 NDalicPINVOKE.delete_ScrollView(swigCPtr);
55 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
57 global::System.GC.SuppressFinalize(this);
64 * @brief Event arguments that passed via SnapStarted signal
67 public class SnapStartedEventArgs : EventArgs
69 private Dali.ScrollView.SnapEvent _snapEvent;
72 * @brief SnapEvent - is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick).
75 public Dali.ScrollView.SnapEvent SnapEventInfo
88 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
89 private delegate void SnapStartedCallbackDelegate(IntPtr data);
90 private DaliEventHandler<object,SnapStartedEventArgs> _scrollViewSnapStartedEventHandler;
91 private SnapStartedCallbackDelegate _scrollViewSnapStartedCallbackDelegate;
94 * @brief Event for SnapStarted signal which can be used to subscribe/unsubscribe the event handler
95 * (in the type of SnapStartedEventHandler-DaliEventHandler<object,SnapStartedEventArgs>) provided by the user.
96 * SnapStarted signal is emitted hen the ScrollView has started to snap or flick (it tells the target
97 * position, scale, rotation for the snap or flick).
100 public event DaliEventHandler<object,SnapStartedEventArgs> SnapStarted
106 // Restricted to only one listener
107 if (_scrollViewSnapStartedEventHandler == null)
109 _scrollViewSnapStartedEventHandler += value;
111 _scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted);
112 this.SnapStartedSignal().Connect(_scrollViewSnapStartedCallbackDelegate);
121 if (_scrollViewSnapStartedEventHandler != null)
123 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
126 _scrollViewSnapStartedEventHandler -= value;
131 // Callback for ScrollView SnapStarted signal
132 private void OnSnapStarted(IntPtr data)
134 SnapStartedEventArgs e = new SnapStartedEventArgs();
136 // Populate all members of "e" (SnapStartedEventArgs) with real data
137 e.SnapEventInfo = SnapEvent.GetSnapEventFromPtr( data );
139 if (_scrollViewSnapStartedEventHandler != null)
141 //here we send all data to user event handlers
142 _scrollViewSnapStartedEventHandler(this, e);
147 public class ClampEvent : global::System.IDisposable {
148 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
149 protected bool swigCMemOwn;
151 internal ClampEvent(global::System.IntPtr cPtr, bool cMemoryOwn) {
152 swigCMemOwn = cMemoryOwn;
153 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
156 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ClampEvent obj) {
157 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
164 public virtual void Dispose() {
166 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
169 NDalicPINVOKE.delete_ScrollView_ClampEvent(swigCPtr);
171 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
173 global::System.GC.SuppressFinalize(this);
177 public ClampState2D scale {
179 NDalicPINVOKE.ScrollView_ClampEvent_scale_set(swigCPtr, ClampState2D.getCPtr(value));
180 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
183 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_ClampEvent_scale_get(swigCPtr);
184 ClampState2D ret = (cPtr == global::System.IntPtr.Zero) ? null : new ClampState2D(cPtr, false);
185 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
190 public ClampState2D position {
192 NDalicPINVOKE.ScrollView_ClampEvent_position_set(swigCPtr, ClampState2D.getCPtr(value));
193 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
196 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_ClampEvent_position_get(swigCPtr);
197 ClampState2D ret = (cPtr == global::System.IntPtr.Zero) ? null : new ClampState2D(cPtr, false);
198 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
203 public ClampState rotation {
205 NDalicPINVOKE.ScrollView_ClampEvent_rotation_set(swigCPtr, (int)value);
206 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
209 ClampState ret = (ClampState)NDalicPINVOKE.ScrollView_ClampEvent_rotation_get(swigCPtr);
210 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
215 public ClampEvent() : this(NDalicPINVOKE.new_ScrollView_ClampEvent(), true) {
216 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
221 public class SnapEvent : global::System.IDisposable {
222 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
223 protected bool swigCMemOwn;
225 internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn) {
226 swigCMemOwn = cMemoryOwn;
227 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
230 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj) {
231 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
238 public virtual void Dispose() {
240 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
243 NDalicPINVOKE.delete_ScrollView_SnapEvent(swigCPtr);
245 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
247 global::System.GC.SuppressFinalize(this);
251 public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr) {
252 SnapEvent ret = new SnapEvent(cPtr, false);
253 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
257 public SnapType type {
259 NDalicPINVOKE.ScrollView_SnapEvent_type_set(swigCPtr, (int)value);
260 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
263 SnapType ret = (SnapType)NDalicPINVOKE.ScrollView_SnapEvent_type_get(swigCPtr);
264 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
269 public Vector2 position {
271 NDalicPINVOKE.ScrollView_SnapEvent_position_set(swigCPtr, Vector2.getCPtr(value));
272 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
275 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_SnapEvent_position_get(swigCPtr);
276 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
277 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
282 public float duration {
284 NDalicPINVOKE.ScrollView_SnapEvent_duration_set(swigCPtr, value);
285 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
288 float ret = NDalicPINVOKE.ScrollView_SnapEvent_duration_get(swigCPtr);
289 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
294 public SnapEvent() : this(NDalicPINVOKE.new_ScrollView_SnapEvent(), true) {
295 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
300 public class Property : global::System.IDisposable {
301 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
302 protected bool swigCMemOwn;
304 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
305 swigCMemOwn = cMemoryOwn;
306 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
309 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) {
310 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
317 public virtual void Dispose() {
319 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
322 NDalicPINVOKE.delete_ScrollView_Property(swigCPtr);
324 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
326 global::System.GC.SuppressFinalize(this);
330 public Property() : this(NDalicPINVOKE.new_ScrollView_Property(), true) {
331 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
334 public static readonly int WRAP_ENABLED = NDalicPINVOKE.ScrollView_Property_WRAP_ENABLED_get();
335 public static readonly int PANNING_ENABLED = NDalicPINVOKE.ScrollView_Property_PANNING_ENABLED_get();
336 public static readonly int AXIS_AUTO_LOCK_ENABLED = NDalicPINVOKE.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get();
337 public static readonly int WHEEL_SCROLL_DISTANCE_STEP = NDalicPINVOKE.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
338 public static readonly int SCROLL_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get();
339 public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get();
340 public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
341 public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
342 public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
343 public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
344 public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
345 public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get();
346 public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get();
347 public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get();
348 public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get();
349 public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get();
350 public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get();
351 public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get();
352 public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get();
353 public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
354 public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
355 public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
356 public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
357 public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get();
358 public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get();
362 public ScrollView () : this (NDalicPINVOKE.ScrollView_New(), true) {
363 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
366 public ScrollView(ScrollView handle) : this(NDalicPINVOKE.new_ScrollView__SWIG_1(ScrollView.getCPtr(handle)), true) {
367 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
370 public ScrollView Assign(ScrollView handle) {
371 ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_Assign(swigCPtr, ScrollView.getCPtr(handle)), false);
372 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
376 public new static ScrollView DownCast(BaseHandle handle) {
377 ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_DownCast(BaseHandle.getCPtr(handle)), true);
378 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
382 public AlphaFunction GetScrollSnapAlphaFunction() {
383 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
384 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
388 public void SetScrollSnapAlphaFunction(AlphaFunction alpha) {
389 NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
390 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
393 public AlphaFunction GetScrollFlickAlphaFunction() {
394 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
395 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
399 public void SetScrollFlickAlphaFunction(AlphaFunction alpha) {
400 NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
401 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
404 public float GetScrollSnapDuration() {
405 float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr);
406 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
410 public void SetScrollSnapDuration(float time) {
411 NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time);
412 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
415 public float GetScrollFlickDuration() {
416 float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr);
417 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
421 public void SetScrollFlickDuration(float time) {
422 NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time);
423 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
426 public void SetRulerX(RulerPtr ruler) {
427 NDalicPINVOKE.ScrollView_SetRulerX(swigCPtr, RulerPtr.getCPtr(ruler));
428 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
431 public void SetRulerY(RulerPtr ruler) {
432 NDalicPINVOKE.ScrollView_SetRulerY(swigCPtr, RulerPtr.getCPtr(ruler));
433 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
436 public void SetScrollSensitive(bool sensitive) {
437 NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
438 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
441 public void SetMaxOvershoot(float overshootX, float overshootY) {
442 NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
443 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
446 public void SetSnapOvershootAlphaFunction(AlphaFunction alpha) {
447 NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
448 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
451 public void SetSnapOvershootDuration(float duration) {
452 NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
453 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
456 public void SetActorAutoSnap(bool enable) {
457 NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable);
458 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
461 public void SetWrapMode(bool enable) {
462 NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable);
463 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
466 public int GetScrollUpdateDistance() {
467 int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr);
468 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
472 public void SetScrollUpdateDistance(int distance) {
473 NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
474 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
477 public bool GetAxisAutoLock() {
478 bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr);
479 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
483 public void SetAxisAutoLock(bool enable) {
484 NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable);
485 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
488 public float GetAxisAutoLockGradient() {
489 float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr);
490 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
494 public void SetAxisAutoLockGradient(float gradient) {
495 NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
496 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
499 public float GetFrictionCoefficient() {
500 float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr);
501 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
505 public void SetFrictionCoefficient(float friction) {
506 NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
507 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
510 public float GetFlickSpeedCoefficient() {
511 float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
512 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
516 public void SetFlickSpeedCoefficient(float speed) {
517 NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
518 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
521 public Vector2 GetMinimumDistanceForFlick() {
522 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
523 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
527 public void SetMinimumDistanceForFlick(Vector2 distance) {
528 NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
529 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
532 public float GetMinimumSpeedForFlick() {
533 float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
534 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
538 public void SetMinimumSpeedForFlick(float speed) {
539 NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
540 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
543 public float GetMaxFlickSpeed() {
544 float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr);
545 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
549 public void SetMaxFlickSpeed(float speed) {
550 NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
551 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
554 public Vector2 GetWheelScrollDistanceStep() {
555 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
556 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
560 public void SetWheelScrollDistanceStep(Vector2 step) {
561 NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
562 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
565 public Vector2 GetCurrentScrollPosition() {
566 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
567 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
571 public uint GetCurrentPage() {
572 uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr);
573 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
577 public void ScrollTo(Vector2 position) {
578 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
579 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
582 public void ScrollTo(Vector2 position, float duration) {
583 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
584 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
587 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha) {
588 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
589 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
592 public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias) {
593 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
594 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
597 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias) {
598 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
599 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
602 public void ScrollTo(uint page) {
603 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
604 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
607 public void ScrollTo(uint page, float duration) {
608 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
609 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
612 public void ScrollTo(uint page, float duration, DirectionBias bias) {
613 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
614 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
617 public void ScrollTo(Actor actor) {
618 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, Actor.getCPtr(actor));
619 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
622 public void ScrollTo(Actor actor, float duration) {
623 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, Actor.getCPtr(actor), duration);
624 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
627 public bool ScrollToSnapPoint() {
628 bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr);
629 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
633 public void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint) {
634 NDalicPINVOKE.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
635 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
638 public void RemoveConstraintsFromChildren() {
639 NDalicPINVOKE.ScrollView_RemoveConstraintsFromChildren(swigCPtr);
640 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
643 public void ApplyEffect(ScrollViewEffect effect) {
644 NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
645 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
648 public void RemoveEffect(ScrollViewEffect effect) {
649 NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
650 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
653 public void RemoveAllEffects() {
654 NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr);
655 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
658 public void BindActor(Actor child) {
659 NDalicPINVOKE.ScrollView_BindActor(swigCPtr, Actor.getCPtr(child));
660 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
663 public void UnbindActor(Actor child) {
664 NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, Actor.getCPtr(child));
665 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
668 public void SetScrollingDirection(Radian direction, Radian threshold) {
669 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
670 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
673 public void SetScrollingDirection(Radian direction) {
674 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
675 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
678 public void RemoveScrollingDirection(Radian direction) {
679 NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
680 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
683 public ScrollViewSnapStartedSignal SnapStartedSignal() {
684 ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(NDalicPINVOKE.ScrollView_SnapStartedSignal(swigCPtr), false);
685 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
689 public enum PropertyRange {
690 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
691 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX+1000,
692 ANIMATABLE_PROPERTY_START_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX,
693 ANIMATABLE_PROPERTY_END_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX+1000
696 public bool WrapEnabled
701 GetProperty( ScrollView.Property.WRAP_ENABLED).Get( ref temp );
706 SetProperty( ScrollView.Property.WRAP_ENABLED, new Dali.Property.Value( value ) );
709 public bool PanningEnabled
714 GetProperty( ScrollView.Property.PANNING_ENABLED).Get( ref temp );
719 SetProperty( ScrollView.Property.PANNING_ENABLED, new Dali.Property.Value( value ) );
722 public bool AxisAutoLockEnabled
727 GetProperty( ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get( ref temp );
732 SetProperty( ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Dali.Property.Value( value ) );
735 public Vector2 WheelScrollDistanceStep
739 Vector2 temp = new Vector2(0.0f,0.0f);
740 GetProperty( ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get( temp );
745 SetProperty( ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Dali.Property.Value( value ) );
748 public Vector2 ScrollPosition
752 Vector2 temp = new Vector2(0.0f,0.0f);
753 GetProperty( ScrollView.Property.SCROLL_POSITION).Get( temp );
758 SetProperty( ScrollView.Property.SCROLL_POSITION, new Dali.Property.Value( value ) );
761 public Vector2 ScrollPrePosition
765 Vector2 temp = new Vector2(0.0f,0.0f);
766 GetProperty( ScrollView.Property.SCROLL_PRE_POSITION).Get( temp );
771 SetProperty( ScrollView.Property.SCROLL_PRE_POSITION, new Dali.Property.Value( value ) );
774 public Vector2 ScrollPrePositionMax
778 Vector2 temp = new Vector2(0.0f,0.0f);
779 GetProperty( ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get( temp );
784 SetProperty( ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Dali.Property.Value( value ) );
787 public float OvershootX
792 GetProperty( ScrollView.Property.OVERSHOOT_X).Get( ref temp );
797 SetProperty( ScrollView.Property.OVERSHOOT_X, new Dali.Property.Value( value ) );
800 public float OvershootY
805 GetProperty( ScrollView.Property.OVERSHOOT_Y).Get( ref temp );
810 SetProperty( ScrollView.Property.OVERSHOOT_Y, new Dali.Property.Value( value ) );
813 public Vector2 ScrollFinal
817 Vector2 temp = new Vector2(0.0f,0.0f);
818 GetProperty( ScrollView.Property.SCROLL_FINAL).Get( temp );
823 SetProperty( ScrollView.Property.SCROLL_FINAL, new Dali.Property.Value( value ) );
831 GetProperty( ScrollView.Property.WRAP).Get( ref temp );
836 SetProperty( ScrollView.Property.WRAP, new Dali.Property.Value( value ) );
844 GetProperty( ScrollView.Property.PANNING).Get( ref temp );
849 SetProperty( ScrollView.Property.PANNING, new Dali.Property.Value( value ) );
852 public bool Scrolling
857 GetProperty( ScrollView.Property.SCROLLING).Get( ref temp );
862 SetProperty( ScrollView.Property.SCROLLING, new Dali.Property.Value( value ) );
865 public Vector2 ScrollDomainSize
869 Vector2 temp = new Vector2(0.0f,0.0f);
870 GetProperty( ScrollView.Property.SCROLL_DOMAIN_SIZE).Get( temp );
875 SetProperty( ScrollView.Property.SCROLL_DOMAIN_SIZE, new Dali.Property.Value( value ) );
878 public Vector2 ScrollDomainOffset
882 Vector2 temp = new Vector2(0.0f,0.0f);
883 GetProperty( ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get( temp );
888 SetProperty( ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Dali.Property.Value( value ) );
891 public Vector2 ScrollPositionDelta
895 Vector2 temp = new Vector2(0.0f,0.0f);
896 GetProperty( ScrollView.Property.SCROLL_POSITION_DELTA).Get( temp );
901 SetProperty( ScrollView.Property.SCROLL_POSITION_DELTA, new Dali.Property.Value( value ) );
904 public Vector3 StartPagePosition
908 Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
909 GetProperty( ScrollView.Property.START_PAGE_POSITION).Get( temp );
914 SetProperty( ScrollView.Property.START_PAGE_POSITION, new Dali.Property.Value( value ) );