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);
161 public class SnapEvent : global::System.IDisposable {
162 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
163 protected bool swigCMemOwn;
165 internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn) {
166 swigCMemOwn = cMemoryOwn;
167 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
170 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj) {
171 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
178 public virtual void Dispose() {
180 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
183 NDalicPINVOKE.delete_ScrollView_SnapEvent(swigCPtr);
185 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
187 global::System.GC.SuppressFinalize(this);
191 public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr) {
192 SnapEvent ret = new SnapEvent(cPtr, false);
193 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
197 public SnapType type {
199 NDalicPINVOKE.ScrollView_SnapEvent_type_set(swigCPtr, (int)value);
200 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
203 SnapType ret = (SnapType)NDalicPINVOKE.ScrollView_SnapEvent_type_get(swigCPtr);
204 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
209 public Vector2 position {
211 NDalicPINVOKE.ScrollView_SnapEvent_position_set(swigCPtr, Vector2.getCPtr(value));
212 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
215 global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_SnapEvent_position_get(swigCPtr);
216 Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
217 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
222 public float duration {
224 NDalicPINVOKE.ScrollView_SnapEvent_duration_set(swigCPtr, value);
225 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
228 float ret = NDalicPINVOKE.ScrollView_SnapEvent_duration_get(swigCPtr);
229 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
234 public SnapEvent() : this(NDalicPINVOKE.new_ScrollView_SnapEvent(), true) {
235 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
244 public class Property
248 public static readonly int WRAP_ENABLED = NDalicPINVOKE.ScrollView_Property_WRAP_ENABLED_get();
249 public static readonly int PANNING_ENABLED = NDalicPINVOKE.ScrollView_Property_PANNING_ENABLED_get();
250 public static readonly int AXIS_AUTO_LOCK_ENABLED = NDalicPINVOKE.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get();
251 public static readonly int WHEEL_SCROLL_DISTANCE_STEP = NDalicPINVOKE.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
252 public static readonly int SCROLL_MODE = NDalicPINVOKE.ScrollView_Property_SCROLL_MODE_get();
254 public static readonly int SCROLL_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get();
255 public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get();
256 public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
257 public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
258 public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
259 public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
260 public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
261 public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get();
262 public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get();
263 public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get();
264 public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get();
265 public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get();
266 public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get();
267 public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get();
268 public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get();
269 public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
270 public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
271 public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
272 public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
273 public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get();
274 public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get();
278 public ScrollView () : this (NDalicPINVOKE.ScrollView_New(), true) {
279 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
283 internal new static ScrollView DownCast(BaseHandle handle) {
284 ScrollView ret = new ScrollView(NDalicPINVOKE.ScrollView_DownCast(BaseHandle.getCPtr(handle)), true);
285 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
289 public AlphaFunction GetScrollSnapAlphaFunction() {
290 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
291 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
295 public void SetScrollSnapAlphaFunction(AlphaFunction alpha) {
296 NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
297 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
300 public AlphaFunction GetScrollFlickAlphaFunction() {
301 AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
302 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
306 public void SetScrollFlickAlphaFunction(AlphaFunction alpha) {
307 NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
308 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
311 public float GetScrollSnapDuration() {
312 float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr);
313 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
317 public void SetScrollSnapDuration(float time) {
318 NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time);
319 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
322 public float GetScrollFlickDuration() {
323 float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr);
324 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
328 public void SetScrollFlickDuration(float time) {
329 NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time);
330 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
333 public void SetScrollSensitive(bool sensitive) {
334 NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
335 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
338 public void SetMaxOvershoot(float overshootX, float overshootY) {
339 NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
340 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
343 public void SetSnapOvershootAlphaFunction(AlphaFunction alpha) {
344 NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
345 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
348 public void SetSnapOvershootDuration(float duration) {
349 NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
350 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
353 public void SetViewAutoSnap(bool enable) {
354 NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable);
355 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
358 public void SetWrapMode(bool enable) {
359 NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable);
360 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
363 public int GetScrollUpdateDistance() {
364 int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr);
365 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
369 public void SetScrollUpdateDistance(int distance) {
370 NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
371 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
374 public bool GetAxisAutoLock() {
375 bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr);
376 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
380 public void SetAxisAutoLock(bool enable) {
381 NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable);
382 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
385 public float GetAxisAutoLockGradient() {
386 float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr);
387 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
391 public void SetAxisAutoLockGradient(float gradient) {
392 NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
393 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
396 public float GetFrictionCoefficient() {
397 float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr);
398 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
402 public void SetFrictionCoefficient(float friction) {
403 NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
404 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
407 public float GetFlickSpeedCoefficient() {
408 float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
409 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
413 public void SetFlickSpeedCoefficient(float speed) {
414 NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
415 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
418 public Vector2 GetMinimumDistanceForFlick() {
419 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
420 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
424 public void SetMinimumDistanceForFlick(Vector2 distance) {
425 NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
426 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
429 public float GetMinimumSpeedForFlick() {
430 float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
431 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
435 public void SetMinimumSpeedForFlick(float speed) {
436 NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
437 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
440 public float GetMaxFlickSpeed() {
441 float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr);
442 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
446 public void SetMaxFlickSpeed(float speed) {
447 NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
448 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
451 public Vector2 GetWheelScrollDistanceStep() {
452 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
453 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
457 public void SetWheelScrollDistanceStep(Vector2 step) {
458 NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
459 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
462 public Vector2 GetCurrentScrollPosition() {
463 Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
464 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
468 public uint GetCurrentPage() {
469 uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr);
470 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
474 public void ScrollTo(Vector2 position) {
475 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
476 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
479 public void ScrollTo(Vector2 position, float duration) {
480 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
481 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
484 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha) {
485 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
486 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
489 public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias) {
490 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
491 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
494 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias) {
495 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
496 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
499 public void ScrollTo(uint page) {
500 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
501 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
504 public void ScrollTo(uint page, float duration) {
505 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
506 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
509 public void ScrollTo(uint page, float duration, DirectionBias bias) {
510 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
511 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
514 public void ScrollTo(View view) {
515 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
516 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
519 public void ScrollTo(View view, float duration) {
520 NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
521 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
524 public bool ScrollToSnapPoint() {
525 bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr);
526 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
530 internal void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint) {
531 NDalicPINVOKE.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
532 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
535 public void ApplyEffect(ScrollViewEffect effect) {
536 NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
537 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
540 public void RemoveEffect(ScrollViewEffect effect) {
541 NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
542 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
545 public void RemoveAllEffects() {
546 NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr);
547 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
550 public void BindView(View child) {
551 NDalicPINVOKE.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
552 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
555 public void UnbindView(View child) {
556 NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
557 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
560 public void SetScrollingDirection(Radian direction, Radian threshold) {
561 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
562 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
565 public void SetScrollingDirection(Radian direction) {
566 NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
567 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
570 public void RemoveScrollingDirection(Radian direction) {
571 NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
572 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
575 internal ScrollViewSnapStartedSignal SnapStartedSignal() {
576 ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(NDalicPINVOKE.ScrollView_SnapStartedSignal(swigCPtr), false);
577 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
581 public bool WrapEnabled
586 GetProperty( ScrollView.Property.WRAP_ENABLED).Get( out temp );
591 SetProperty( ScrollView.Property.WRAP_ENABLED, new Dali.Property.Value( value ) );
594 public bool PanningEnabled
599 GetProperty( ScrollView.Property.PANNING_ENABLED).Get( out temp );
604 SetProperty( ScrollView.Property.PANNING_ENABLED, new Dali.Property.Value( value ) );
607 public bool AxisAutoLockEnabled
612 GetProperty( ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get( out temp );
617 SetProperty( ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Dali.Property.Value( value ) );
620 public Vector2 WheelScrollDistanceStep
624 Vector2 temp = new Vector2(0.0f,0.0f);
625 GetProperty( ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get( temp );
630 SetProperty( ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Dali.Property.Value( value ) );
633 public Vector2 ScrollPosition
637 Vector2 temp = new Vector2(0.0f,0.0f);
638 GetProperty( ScrollView.Property.SCROLL_POSITION).Get( temp );
643 SetProperty( ScrollView.Property.SCROLL_POSITION, new Dali.Property.Value( value ) );
646 public Vector2 ScrollPrePosition
650 Vector2 temp = new Vector2(0.0f,0.0f);
651 GetProperty( ScrollView.Property.SCROLL_PRE_POSITION).Get( temp );
656 SetProperty( ScrollView.Property.SCROLL_PRE_POSITION, new Dali.Property.Value( value ) );
659 public Vector2 ScrollPrePositionMax
663 Vector2 temp = new Vector2(0.0f,0.0f);
664 GetProperty( ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get( temp );
669 SetProperty( ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Dali.Property.Value( value ) );
672 public float OvershootX
677 GetProperty( ScrollView.Property.OVERSHOOT_X).Get( out temp );
682 SetProperty( ScrollView.Property.OVERSHOOT_X, new Dali.Property.Value( value ) );
685 public float OvershootY
690 GetProperty( ScrollView.Property.OVERSHOOT_Y).Get( out temp );
695 SetProperty( ScrollView.Property.OVERSHOOT_Y, new Dali.Property.Value( value ) );
698 public Vector2 ScrollFinal
702 Vector2 temp = new Vector2(0.0f,0.0f);
703 GetProperty( ScrollView.Property.SCROLL_FINAL).Get( temp );
708 SetProperty( ScrollView.Property.SCROLL_FINAL, new Dali.Property.Value( value ) );
716 GetProperty( ScrollView.Property.WRAP).Get( out temp );
721 SetProperty( ScrollView.Property.WRAP, new Dali.Property.Value( value ) );
729 GetProperty( ScrollView.Property.PANNING).Get( out temp );
734 SetProperty( ScrollView.Property.PANNING, new Dali.Property.Value( value ) );
737 public bool Scrolling
742 GetProperty( ScrollView.Property.SCROLLING).Get( out temp );
747 SetProperty( ScrollView.Property.SCROLLING, new Dali.Property.Value( value ) );
750 public Vector2 ScrollDomainSize
754 Vector2 temp = new Vector2(0.0f,0.0f);
755 GetProperty( ScrollView.Property.SCROLL_DOMAIN_SIZE).Get( temp );
760 SetProperty( ScrollView.Property.SCROLL_DOMAIN_SIZE, new Dali.Property.Value( value ) );
763 public Vector2 ScrollDomainOffset
767 Vector2 temp = new Vector2(0.0f,0.0f);
768 GetProperty( ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get( temp );
773 SetProperty( ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Dali.Property.Value( value ) );
776 public Vector2 ScrollPositionDelta
780 Vector2 temp = new Vector2(0.0f,0.0f);
781 GetProperty( ScrollView.Property.SCROLL_POSITION_DELTA).Get( temp );
786 SetProperty( ScrollView.Property.SCROLL_POSITION_DELTA, new Dali.Property.Value( value ) );
789 public Vector3 StartPagePosition
793 Vector3 temp = new Vector3(0.0f,0.0f,0.0f);
794 GetProperty( ScrollView.Property.START_PAGE_POSITION).Get( temp );
799 SetProperty( ScrollView.Property.START_PAGE_POSITION, new Dali.Property.Value( value ) );
803 public Dali.Property.Map ScrollMode
807 Dali.Property.Value value = GetProperty( ScrollView.Property.SCROLL_MODE );
808 Dali.Property.Map map = new Dali.Property.Map();
814 SetProperty( ScrollView.Property.SCROLL_MODE, new Dali.Property.Value( value ) );