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_MODE = NDalicPINVOKE.ScrollView_Property_SCROLL_MODE_get();
346 public static readonly int SCROLL_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get();
347 public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get();
348 public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
349 public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
350 public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
351 public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
352 public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
353 public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get();
354 public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get();
355 public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get();
356 public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get();
357 public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get();
358 public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get();
359 public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get();
360 public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get();
361 public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
362 public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
363 public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
364 public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
365 public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get();
366 public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get();
370 public ScrollView () : this (NDalicPINVOKE.ScrollView_New(), true) {
371 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
374 public ScrollView(ScrollView handle) : this(NDalicPINVOKE.new_ScrollView__SWIG_1(ScrollView.getCPtr(handle)), true) {
375 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
378 public ScrollView Assign(ScrollView handle) {
379 ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_Assign(swigCPtr, ScrollView.getCPtr(handle)), false);
380 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
384 public new static ScrollView DownCast(BaseHandle handle) {
385 ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_DownCast(BaseHandle.getCPtr(handle)), true);
386 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
390 public AlphaFunction GetScrollSnapAlphaFunction() {
391 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
392 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
396 public void SetScrollSnapAlphaFunction(AlphaFunction alpha) {
397 NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
398 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
401 public AlphaFunction GetScrollFlickAlphaFunction() {
402 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
403 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
407 public void SetScrollFlickAlphaFunction(AlphaFunction alpha) {
408 NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
409 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
412 public float GetScrollSnapDuration() {
413 float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr);
414 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
418 public void SetScrollSnapDuration(float time) {
419 NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time);
420 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
423 public float GetScrollFlickDuration() {
424 float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr);
425 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
429 public void SetScrollFlickDuration(float time) {
430 NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time);
431 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
434 public void SetRulerX(RulerPtr ruler) {
435 NDalicPINVOKE.ScrollView_SetRulerX(swigCPtr, RulerPtr.getCPtr(ruler));
436 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
439 public void SetRulerY(RulerPtr ruler) {
440 NDalicPINVOKE.ScrollView_SetRulerY(swigCPtr, RulerPtr.getCPtr(ruler));
441 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
444 public void SetScrollSensitive(bool sensitive) {
445 NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
446 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
449 public void SetMaxOvershoot(float overshootX, float overshootY) {
450 NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
451 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
454 public void SetSnapOvershootAlphaFunction(AlphaFunction alpha) {
455 NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
456 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
459 public void SetSnapOvershootDuration(float duration) {
460 NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
461 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
464 public void SetViewAutoSnap(bool enable) {
465 NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable);
466 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
469 public void SetWrapMode(bool enable) {
470 NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable);
471 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
474 public int GetScrollUpdateDistance() {
475 int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr);
476 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
480 public void SetScrollUpdateDistance(int distance) {
481 NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
482 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
485 public bool GetAxisAutoLock() {
486 bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr);
487 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
491 public void SetAxisAutoLock(bool enable) {
492 NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable);
493 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
496 public float GetAxisAutoLockGradient() {
497 float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr);
498 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
502 public void SetAxisAutoLockGradient(float gradient) {
503 NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
504 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
507 public float GetFrictionCoefficient() {
508 float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr);
509 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
513 public void SetFrictionCoefficient(float friction) {
514 NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
515 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
518 public float GetFlickSpeedCoefficient() {
519 float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
520 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
524 public void SetFlickSpeedCoefficient(float speed) {
525 NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
526 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
529 public Vector2 GetMinimumDistanceForFlick() {
530 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
531 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
535 public void SetMinimumDistanceForFlick(Vector2 distance) {
536 NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
537 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
540 public float GetMinimumSpeedForFlick() {
541 float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
542 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
546 public void SetMinimumSpeedForFlick(float speed) {
547 NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
548 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
551 public float GetMaxFlickSpeed() {
552 float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr);
553 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
557 public void SetMaxFlickSpeed(float speed) {
558 NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
559 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
562 public Vector2 GetWheelScrollDistanceStep() {
563 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
564 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
568 public void SetWheelScrollDistanceStep(Vector2 step) {
569 NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
570 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
573 public Vector2 GetCurrentScrollPosition() {
574 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
575 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
579 public uint GetCurrentPage() {
580 uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr);
581 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
585 public void ScrollTo(Vector2 position) {
586 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
587 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
590 public void ScrollTo(Vector2 position, float duration) {
591 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
592 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
595 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha) {
596 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
597 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
600 public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias) {
601 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
602 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
605 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias) {
606 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
607 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
610 public void ScrollTo(uint page) {
611 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
612 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
615 public void ScrollTo(uint page, float duration) {
616 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
617 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
620 public void ScrollTo(uint page, float duration, DirectionBias bias) {
621 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
622 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
625 public void ScrollTo(View view) {
626 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
627 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
630 public void ScrollTo(View view, float duration) {
631 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
632 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
635 public bool ScrollToSnapPoint() {
636 bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr);
637 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
641 public void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint) {
642 NDalicPINVOKE.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
643 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
646 public void RemoveConstraintsFromChildren() {
647 NDalicPINVOKE.ScrollView_RemoveConstraintsFromChildren(swigCPtr);
648 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
651 public void ApplyEffect(ScrollViewEffect effect) {
652 NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
653 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
656 public void RemoveEffect(ScrollViewEffect effect) {
657 NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
658 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
661 public void RemoveAllEffects() {
662 NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr);
663 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
666 public void BindView(View child) {
667 NDalicPINVOKE.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
668 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
671 public void UnbindView(View child) {
672 NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
673 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
676 public void SetScrollingDirection(Radian direction, Radian threshold) {
677 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
678 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
681 public void SetScrollingDirection(Radian direction) {
682 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
683 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
686 public void RemoveScrollingDirection(Radian direction) {
687 NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
688 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
691 public ScrollViewSnapStartedSignal SnapStartedSignal() {
692 ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(NDalicPINVOKE.ScrollView_SnapStartedSignal(swigCPtr), false);
693 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
697 public enum PropertyRange {
698 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
699 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX+1000,
700 ANIMATABLE_PROPERTY_START_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX,
701 ANIMATABLE_PROPERTY_END_INDEX = PropertyRanges.ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX+1000
704 public bool WrapEnabled
709 GetProperty( ScrollView.Property.WRAP_ENABLED).Get( ref temp );
714 SetProperty( ScrollView.Property.WRAP_ENABLED, new Dali.Property.Value( value ) );
717 public bool PanningEnabled
722 GetProperty( ScrollView.Property.PANNING_ENABLED).Get( ref temp );
727 SetProperty( ScrollView.Property.PANNING_ENABLED, new Dali.Property.Value( value ) );
730 public bool AxisAutoLockEnabled
735 GetProperty( ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get( ref temp );
740 SetProperty( ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Dali.Property.Value( value ) );
743 public Vector2 WheelScrollDistanceStep
747 Vector2 temp = new Vector2(0.0f,0.0f);
748 GetProperty( ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get( temp );
753 SetProperty( ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Dali.Property.Value( value ) );
756 public Vector2 ScrollPosition
760 Vector2 temp = new Vector2(0.0f,0.0f);
761 GetProperty( ScrollView.Property.SCROLL_POSITION).Get( temp );
766 SetProperty( ScrollView.Property.SCROLL_POSITION, new Dali.Property.Value( value ) );
769 public Vector2 ScrollPrePosition
773 Vector2 temp = new Vector2(0.0f,0.0f);
774 GetProperty( ScrollView.Property.SCROLL_PRE_POSITION).Get( temp );
779 SetProperty( ScrollView.Property.SCROLL_PRE_POSITION, new Dali.Property.Value( value ) );
782 public Vector2 ScrollPrePositionMax
786 Vector2 temp = new Vector2(0.0f,0.0f);
787 GetProperty( ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get( temp );
792 SetProperty( ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Dali.Property.Value( value ) );
795 public float OvershootX
800 GetProperty( ScrollView.Property.OVERSHOOT_X).Get( ref temp );
805 SetProperty( ScrollView.Property.OVERSHOOT_X, new Dali.Property.Value( value ) );
808 public float OvershootY
813 GetProperty( ScrollView.Property.OVERSHOOT_Y).Get( ref temp );
818 SetProperty( ScrollView.Property.OVERSHOOT_Y, new Dali.Property.Value( value ) );
821 public Vector2 ScrollFinal
825 Vector2 temp = new Vector2(0.0f,0.0f);
826 GetProperty( ScrollView.Property.SCROLL_FINAL).Get( temp );
831 SetProperty( ScrollView.Property.SCROLL_FINAL, new Dali.Property.Value( value ) );
839 GetProperty( ScrollView.Property.WRAP).Get( ref temp );
844 SetProperty( ScrollView.Property.WRAP, new Dali.Property.Value( value ) );
852 GetProperty( ScrollView.Property.PANNING).Get( ref temp );
857 SetProperty( ScrollView.Property.PANNING, new Dali.Property.Value( value ) );
860 public bool Scrolling
865 GetProperty( ScrollView.Property.SCROLLING).Get( ref temp );
870 SetProperty( ScrollView.Property.SCROLLING, new Dali.Property.Value( value ) );
873 public Vector2 ScrollDomainSize
877 Vector2 temp = new Vector2(0.0f,0.0f);
878 GetProperty( ScrollView.Property.SCROLL_DOMAIN_SIZE).Get( temp );
883 SetProperty( ScrollView.Property.SCROLL_DOMAIN_SIZE, new Dali.Property.Value( value ) );
886 public Vector2 ScrollDomainOffset
890 Vector2 temp = new Vector2(0.0f,0.0f);
891 GetProperty( ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get( temp );
896 SetProperty( ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Dali.Property.Value( value ) );
899 public Vector2 ScrollPositionDelta
903 Vector2 temp = new Vector2(0.0f,0.0f);
904 GetProperty( ScrollView.Property.SCROLL_POSITION_DELTA).Get( temp );
909 SetProperty( ScrollView.Property.SCROLL_POSITION_DELTA, new Dali.Property.Value( value ) );
912 public Vector3 StartPagePosition
916 Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
917 GetProperty( ScrollView.Property.START_PAGE_POSITION).Get( temp );
922 SetProperty( ScrollView.Property.START_PAGE_POSITION, new Dali.Property.Value( value ) );
926 public Dali.Property.Map ScrollMode
930 Dali.Property.Value value = GetProperty( ScrollView.Property.SCROLL_MODE );
931 Dali.Property.Map map = new Dali.Property.Map();
937 SetProperty( ScrollView.Property.SCROLL_MODE, new Dali.Property.Value( value ) );