1 /** Copyright (c) 2017 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;
45 DisposeQueue.Instance.Add(this);
48 public override void Dispose() {
49 if (!Window.IsInstalled()) {
50 DisposeQueue.Instance.Add(this);
55 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
58 NDalicPINVOKE.delete_ScrollView(swigCPtr);
60 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
62 global::System.GC.SuppressFinalize(this);
70 * @brief Event arguments that passed via SnapStarted signal
73 public class SnapStartedEventArgs : EventArgs
75 private Dali.ScrollView.SnapEvent _snapEvent;
78 * @brief SnapEvent - is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick).
81 public Dali.ScrollView.SnapEvent SnapEventInfo
94 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
95 private delegate void SnapStartedCallbackDelegate(IntPtr data);
96 private DaliEventHandler<object,SnapStartedEventArgs> _scrollViewSnapStartedEventHandler;
97 private SnapStartedCallbackDelegate _scrollViewSnapStartedCallbackDelegate;
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).
106 public event DaliEventHandler<object,SnapStartedEventArgs> SnapStarted
112 // Restricted to only one listener
113 if (_scrollViewSnapStartedEventHandler == null)
115 _scrollViewSnapStartedEventHandler += value;
117 _scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted);
118 this.SnapStartedSignal().Connect(_scrollViewSnapStartedCallbackDelegate);
127 if (_scrollViewSnapStartedEventHandler != null)
129 this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
132 _scrollViewSnapStartedEventHandler -= value;
137 // Callback for ScrollView SnapStarted signal
138 private void OnSnapStarted(IntPtr data)
140 SnapStartedEventArgs e = new SnapStartedEventArgs();
142 // Populate all members of "e" (SnapStartedEventArgs) with real data
143 e.SnapEventInfo = SnapEvent.GetSnapEventFromPtr( data );
145 if (_scrollViewSnapStartedEventHandler != null)
147 //here we send all data to user event handlers
148 _scrollViewSnapStartedEventHandler(this, e);
153 public class ClampEvent : global::System.IDisposable {
154 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
155 protected bool swigCMemOwn;
157 internal ClampEvent(global::System.IntPtr cPtr, bool cMemoryOwn) {
158 swigCMemOwn = cMemoryOwn;
159 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
162 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ClampEvent obj) {
163 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
170 public virtual void Dispose() {
172 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
175 NDalicPINVOKE.delete_ScrollView_ClampEvent(swigCPtr);
177 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
179 global::System.GC.SuppressFinalize(this);
183 public ClampState2D scale {
185 NDalicPINVOKE.ScrollView_ClampEvent_scale_set(swigCPtr, ClampState2D.getCPtr(value));
186 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
189 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_ClampEvent_scale_get(swigCPtr);
190 ClampState2D ret = (cPtr == global::System.IntPtr.Zero) ? null : new ClampState2D(cPtr, false);
191 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
196 public ClampState2D position {
198 NDalicPINVOKE.ScrollView_ClampEvent_position_set(swigCPtr, ClampState2D.getCPtr(value));
199 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
202 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_ClampEvent_position_get(swigCPtr);
203 ClampState2D ret = (cPtr == global::System.IntPtr.Zero) ? null : new ClampState2D(cPtr, false);
204 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
209 public ClampState rotation {
211 NDalicPINVOKE.ScrollView_ClampEvent_rotation_set(swigCPtr, (int)value);
212 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
215 ClampState ret = (ClampState)NDalicPINVOKE.ScrollView_ClampEvent_rotation_get(swigCPtr);
216 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
221 public ClampEvent() : this(NDalicPINVOKE.new_ScrollView_ClampEvent(), true) {
222 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
227 public class SnapEvent : global::System.IDisposable {
228 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
229 protected bool swigCMemOwn;
231 internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn) {
232 swigCMemOwn = cMemoryOwn;
233 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
236 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj) {
237 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
244 public virtual void Dispose() {
246 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
249 NDalicPINVOKE.delete_ScrollView_SnapEvent(swigCPtr);
251 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
253 global::System.GC.SuppressFinalize(this);
257 public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr) {
258 SnapEvent ret = new SnapEvent(cPtr, false);
259 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
263 public SnapType type {
265 NDalicPINVOKE.ScrollView_SnapEvent_type_set(swigCPtr, (int)value);
266 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
269 SnapType ret = (SnapType)NDalicPINVOKE.ScrollView_SnapEvent_type_get(swigCPtr);
270 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
275 public Vector2 position {
277 NDalicPINVOKE.ScrollView_SnapEvent_position_set(swigCPtr, Vector2.getCPtr(value));
278 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
281 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_SnapEvent_position_get(swigCPtr);
282 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
283 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
288 public float duration {
290 NDalicPINVOKE.ScrollView_SnapEvent_duration_set(swigCPtr, value);
291 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
294 float ret = NDalicPINVOKE.ScrollView_SnapEvent_duration_get(swigCPtr);
295 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
300 public SnapEvent() : this(NDalicPINVOKE.new_ScrollView_SnapEvent(), true) {
301 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
306 public class Property : global::System.IDisposable {
307 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
308 protected bool swigCMemOwn;
310 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
311 swigCMemOwn = cMemoryOwn;
312 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
315 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) {
316 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
323 public virtual void Dispose() {
325 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
328 NDalicPINVOKE.delete_ScrollView_Property(swigCPtr);
330 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
332 global::System.GC.SuppressFinalize(this);
336 public Property() : this(NDalicPINVOKE.new_ScrollView_Property(), true) {
337 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
340 public static readonly int WRAP_ENABLED = NDalicPINVOKE.ScrollView_Property_WRAP_ENABLED_get();
341 public static readonly int PANNING_ENABLED = NDalicPINVOKE.ScrollView_Property_PANNING_ENABLED_get();
342 public static readonly int AXIS_AUTO_LOCK_ENABLED = NDalicPINVOKE.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get();
343 public static readonly int WHEEL_SCROLL_DISTANCE_STEP = NDalicPINVOKE.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
344 public static readonly int SCROLL_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get();
345 public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get();
346 public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
347 public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
348 public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
349 public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
350 public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
351 public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get();
352 public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get();
353 public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get();
354 public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get();
355 public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get();
356 public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get();
357 public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get();
358 public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get();
359 public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
360 public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
361 public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
362 public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
363 public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get();
364 public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get();
368 public ScrollView () : this (NDalicPINVOKE.ScrollView_New(), true) {
369 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
372 public ScrollView(ScrollView handle) : this(NDalicPINVOKE.new_ScrollView__SWIG_1(ScrollView.getCPtr(handle)), true) {
373 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
376 public ScrollView Assign(ScrollView handle) {
377 ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_Assign(swigCPtr, ScrollView.getCPtr(handle)), false);
378 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
382 public new static ScrollView DownCast(BaseHandle handle) {
383 ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_DownCast(BaseHandle.getCPtr(handle)), true);
384 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
388 public AlphaFunction GetScrollSnapAlphaFunction() {
389 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
390 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
394 public void SetScrollSnapAlphaFunction(AlphaFunction alpha) {
395 NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
396 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
399 public AlphaFunction GetScrollFlickAlphaFunction() {
400 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
401 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
405 public void SetScrollFlickAlphaFunction(AlphaFunction alpha) {
406 NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
407 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
410 public float GetScrollSnapDuration() {
411 float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr);
412 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
416 public void SetScrollSnapDuration(float time) {
417 NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time);
418 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
421 public float GetScrollFlickDuration() {
422 float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr);
423 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
427 public void SetScrollFlickDuration(float time) {
428 NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time);
429 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
432 public void SetRulerX(RulerPtr ruler) {
433 NDalicPINVOKE.ScrollView_SetRulerX(swigCPtr, RulerPtr.getCPtr(ruler));
434 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
437 public void SetRulerY(RulerPtr ruler) {
438 NDalicPINVOKE.ScrollView_SetRulerY(swigCPtr, RulerPtr.getCPtr(ruler));
439 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
442 public void SetScrollSensitive(bool sensitive) {
443 NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
444 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
447 public void SetMaxOvershoot(float overshootX, float overshootY) {
448 NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
449 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
452 public void SetSnapOvershootAlphaFunction(AlphaFunction alpha) {
453 NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
454 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
457 public void SetSnapOvershootDuration(float duration) {
458 NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
459 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
462 public void SetViewAutoSnap(bool enable) {
463 NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable);
464 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
467 public void SetWrapMode(bool enable) {
468 NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable);
469 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
472 public int GetScrollUpdateDistance() {
473 int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr);
474 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
478 public void SetScrollUpdateDistance(int distance) {
479 NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
480 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
483 public bool GetAxisAutoLock() {
484 bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr);
485 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
489 public void SetAxisAutoLock(bool enable) {
490 NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable);
491 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
494 public float GetAxisAutoLockGradient() {
495 float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr);
496 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
500 public void SetAxisAutoLockGradient(float gradient) {
501 NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
502 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
505 public float GetFrictionCoefficient() {
506 float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr);
507 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
511 public void SetFrictionCoefficient(float friction) {
512 NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
513 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
516 public float GetFlickSpeedCoefficient() {
517 float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
518 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
522 public void SetFlickSpeedCoefficient(float speed) {
523 NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
524 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
527 public Vector2 GetMinimumDistanceForFlick() {
528 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
529 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
533 public void SetMinimumDistanceForFlick(Vector2 distance) {
534 NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
535 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
538 public float GetMinimumSpeedForFlick() {
539 float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
540 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
544 public void SetMinimumSpeedForFlick(float speed) {
545 NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
546 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
549 public float GetMaxFlickSpeed() {
550 float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr);
551 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
555 public void SetMaxFlickSpeed(float speed) {
556 NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
557 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
560 public Vector2 GetWheelScrollDistanceStep() {
561 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
562 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
566 public void SetWheelScrollDistanceStep(Vector2 step) {
567 NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
568 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
571 public Vector2 GetCurrentScrollPosition() {
572 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
573 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
577 public uint GetCurrentPage() {
578 uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr);
579 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
583 public void ScrollTo(Vector2 position) {
584 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
585 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
588 public void ScrollTo(Vector2 position, float duration) {
589 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
590 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
593 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha) {
594 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
595 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
598 public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias) {
599 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
600 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
603 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias) {
604 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
605 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
608 public void ScrollTo(uint page) {
609 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
610 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
613 public void ScrollTo(uint page, float duration) {
614 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
615 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
618 public void ScrollTo(uint page, float duration, DirectionBias bias) {
619 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
620 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
623 public void ScrollTo(View view) {
624 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
625 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
628 public void ScrollTo(View view, float duration) {
629 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
630 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
633 public bool ScrollToSnapPoint() {
634 bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr);
635 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
639 public void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint) {
640 NDalicPINVOKE.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
641 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
644 public void RemoveConstraintsFromChildren() {
645 NDalicPINVOKE.ScrollView_RemoveConstraintsFromChildren(swigCPtr);
646 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
649 public void ApplyEffect(ScrollViewEffect effect) {
650 NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
651 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
654 public void RemoveEffect(ScrollViewEffect effect) {
655 NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
656 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
659 public void RemoveAllEffects() {
660 NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr);
661 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
664 public void BindView(View child) {
665 NDalicPINVOKE.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
666 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
669 public void UnbindView(View child) {
670 NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
671 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
674 public void SetScrollingDirection(Radian direction, Radian threshold) {
675 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
676 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
679 public void SetScrollingDirection(Radian direction) {
680 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
681 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
684 public void RemoveScrollingDirection(Radian direction) {
685 NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
686 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
689 public ScrollViewSnapStartedSignal SnapStartedSignal() {
690 ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(NDalicPINVOKE.ScrollView_SnapStartedSignal(swigCPtr), false);
691 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
695 public enum PropertyRange {
696 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
697 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX+1000,
698 ANIMATABLE_PROPERTY_START_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX,
699 ANIMATABLE_PROPERTY_END_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX+1000
702 public bool WrapEnabled
707 GetProperty( ScrollView.Property.WRAP_ENABLED).Get( ref temp );
712 SetProperty( ScrollView.Property.WRAP_ENABLED, new Dali.Property.Value( value ) );
715 public bool PanningEnabled
720 GetProperty( ScrollView.Property.PANNING_ENABLED).Get( ref temp );
725 SetProperty( ScrollView.Property.PANNING_ENABLED, new Dali.Property.Value( value ) );
728 public bool AxisAutoLockEnabled
733 GetProperty( ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get( ref temp );
738 SetProperty( ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Dali.Property.Value( value ) );
741 public Vector2 WheelScrollDistanceStep
745 Vector2 temp = new Vector2(0.0f,0.0f);
746 GetProperty( ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get( temp );
751 SetProperty( ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Dali.Property.Value( value ) );
754 public Vector2 ScrollPosition
758 Vector2 temp = new Vector2(0.0f,0.0f);
759 GetProperty( ScrollView.Property.SCROLL_POSITION).Get( temp );
764 SetProperty( ScrollView.Property.SCROLL_POSITION, new Dali.Property.Value( value ) );
767 public Vector2 ScrollPrePosition
771 Vector2 temp = new Vector2(0.0f,0.0f);
772 GetProperty( ScrollView.Property.SCROLL_PRE_POSITION).Get( temp );
777 SetProperty( ScrollView.Property.SCROLL_PRE_POSITION, new Dali.Property.Value( value ) );
780 public Vector2 ScrollPrePositionMax
784 Vector2 temp = new Vector2(0.0f,0.0f);
785 GetProperty( ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get( temp );
790 SetProperty( ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Dali.Property.Value( value ) );
793 public float OvershootX
798 GetProperty( ScrollView.Property.OVERSHOOT_X).Get( ref temp );
803 SetProperty( ScrollView.Property.OVERSHOOT_X, new Dali.Property.Value( value ) );
806 public float OvershootY
811 GetProperty( ScrollView.Property.OVERSHOOT_Y).Get( ref temp );
816 SetProperty( ScrollView.Property.OVERSHOOT_Y, new Dali.Property.Value( value ) );
819 public Vector2 ScrollFinal
823 Vector2 temp = new Vector2(0.0f,0.0f);
824 GetProperty( ScrollView.Property.SCROLL_FINAL).Get( temp );
829 SetProperty( ScrollView.Property.SCROLL_FINAL, new Dali.Property.Value( value ) );
837 GetProperty( ScrollView.Property.WRAP).Get( ref temp );
842 SetProperty( ScrollView.Property.WRAP, new Dali.Property.Value( value ) );
850 GetProperty( ScrollView.Property.PANNING).Get( ref temp );
855 SetProperty( ScrollView.Property.PANNING, new Dali.Property.Value( value ) );
858 public bool Scrolling
863 GetProperty( ScrollView.Property.SCROLLING).Get( ref temp );
868 SetProperty( ScrollView.Property.SCROLLING, new Dali.Property.Value( value ) );
871 public Vector2 ScrollDomainSize
875 Vector2 temp = new Vector2(0.0f,0.0f);
876 GetProperty( ScrollView.Property.SCROLL_DOMAIN_SIZE).Get( temp );
881 SetProperty( ScrollView.Property.SCROLL_DOMAIN_SIZE, new Dali.Property.Value( value ) );
884 public Vector2 ScrollDomainOffset
888 Vector2 temp = new Vector2(0.0f,0.0f);
889 GetProperty( ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get( temp );
894 SetProperty( ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Dali.Property.Value( value ) );
897 public Vector2 ScrollPositionDelta
901 Vector2 temp = new Vector2(0.0f,0.0f);
902 GetProperty( ScrollView.Property.SCROLL_POSITION_DELTA).Get( temp );
907 SetProperty( ScrollView.Property.SCROLL_POSITION_DELTA, new Dali.Property.Value( value ) );
910 public Vector3 StartPagePosition
914 Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
915 GetProperty( ScrollView.Property.START_PAGE_POSITION).Get( temp );
920 SetProperty( ScrollView.Property.START_PAGE_POSITION, new Dali.Property.Value( value ) );