-/** Copyright (c) 2017 Samsung Electronics Co., Ltd.
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*
-*/
+/*
+ * Copyright(c) 2019 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+using System;
+using System.ComponentModel;
+using System.Diagnostics.CodeAnalysis;
+using Tizen.NUI.BaseComponents;
namespace Tizen.NUI
{
-
- using System;
- using System.Runtime.InteropServices;
- using Tizen.NUI.BaseComponents;
-
- public class ScrollView : Scrollable
+ /// <summary>
+ /// ScrollView contains views that can be scrolled manually (via touch).
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public partial class ScrollView : Scrollable
{
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- internal ScrollView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ScrollView_SWIGUpcast(cPtr), cMemoryOwn)
+ /// <summary>
+ /// Create an instance of ScrollView.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public ScrollView() : this(Interop.ScrollView.New(), true)
{
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ScrollView obj)
+ internal ScrollView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
{
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- protected override void Dispose(DisposeTypes type)
+ /// <summary>
+ /// Sets and Gets WrapEnabled property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool WrapEnabled
{
- if (disposed)
+ get
{
- return;
+ return (bool)GetValue(WrapEnabledProperty);
}
-
- if (type == DisposeTypes.Explicit)
+ set
{
- //Called by User
- //Release your own managed resources here.
- //You should release all of your own disposable objects here.
-
+ SetValue(WrapEnabledProperty, value);
}
+ }
- //Release your own unmanaged resources here.
- //You should not access any managed member here except static instance.
- //because the execution order of Finalizes is non-deterministic.
-
- if (_scrollViewSnapStartedCallbackDelegate != null)
+ /// <summary>
+ /// Sets and Gets PanningEnabled property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool PanningEnabled
+ {
+ get
{
- this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
+ return (bool)GetValue(PanningEnabledProperty);
}
-
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
+ set
{
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_ScrollView(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ SetValue(PanningEnabledProperty, value);
}
-
- base.Dispose(type);
}
- /**
- * @brief Event arguments that passed via SnapStarted signal
- *
- */
- public class SnapStartedEventArgs : EventArgs
+ /// <summary>
+ /// Sets and Gets AxisAutoLockEnabled property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool AxisAutoLockEnabled
{
- private Tizen.NUI.ScrollView.SnapEvent _snapEvent;
-
- /**
- * @brief SnapEvent - is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick).
- *
- */
- public Tizen.NUI.ScrollView.SnapEvent SnapEventInfo
+ get
{
- get
- {
- return _snapEvent;
- }
- set
- {
- _snapEvent = value;
- }
+ return (bool)GetValue(AxisAutoLockEnabledProperty);
+ }
+ set
+ {
+ SetValue(AxisAutoLockEnabledProperty, value);
}
}
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void SnapStartedCallbackDelegate(IntPtr data);
- private DaliEventHandler<object, SnapStartedEventArgs> _scrollViewSnapStartedEventHandler;
- private SnapStartedCallbackDelegate _scrollViewSnapStartedCallbackDelegate;
-
- /**
- * @brief Event for SnapStarted signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of SnapStartedEventHandler-DaliEventHandler<object,SnapStartedEventArgs>) provided by the user.
- * SnapStarted signal is emitted hen the ScrollView has started to snap or flick (it tells the target
- * position, scale, rotation for the snap or flick).
- *
- */
- public event DaliEventHandler<object, SnapStartedEventArgs> SnapStarted
+ /// <summary>
+ /// Sets and Gets WheelScrollDistanceStep property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Vector2 WheelScrollDistanceStep
{
- add
+ get
{
- lock (this)
- {
- // Restricted to only one listener
- if (_scrollViewSnapStartedEventHandler == null)
- {
- _scrollViewSnapStartedEventHandler += value;
-
- _scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted);
- this.SnapStartedSignal().Connect(_scrollViewSnapStartedCallbackDelegate);
- }
- }
+ return (Vector2)GetValue(WheelScrollDistanceStepProperty);
}
-
- remove
+ set
{
- lock (this)
- {
- if (_scrollViewSnapStartedEventHandler != null)
- {
- this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate);
- }
-
- _scrollViewSnapStartedEventHandler -= value;
- }
+ SetValue(WheelScrollDistanceStepProperty, value);
}
}
- // Callback for ScrollView SnapStarted signal
- private void OnSnapStarted(IntPtr data)
+ /// <summary>
+ /// Sets and Gets ScrollPosition property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Vector2 ScrollPosition
{
- SnapStartedEventArgs e = new SnapStartedEventArgs();
-
- // Populate all members of "e" (SnapStartedEventArgs) with real data
- e.SnapEventInfo = SnapEvent.GetSnapEventFromPtr(data);
-
- if (_scrollViewSnapStartedEventHandler != null)
+ get
{
- //here we send all data to user event handlers
- _scrollViewSnapStartedEventHandler(this, e);
+ return (Vector2)GetValue(ScrollPositionProperty);
+ }
+ set
+ {
+ SetValue(ScrollPositionProperty, value);
}
}
- public class SnapEvent : global::System.IDisposable
+ /// <summary>
+ /// Sets and Gets ScrollPrePosition property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Vector2 ScrollPrePosition
{
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn)
+ get
{
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+ return (Vector2)GetValue(ScrollPrePositionProperty);
}
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SnapEvent obj)
+ set
{
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
+ SetValue(ScrollPrePositionProperty, value);
}
+ }
- //A Flag to check who called Dispose(). (By User or DisposeQueue)
- private bool isDisposeQueued = false;
- //A Flat to check if it is already disposed.
- protected bool disposed = false;
-
-
- ~SnapEvent()
+ /// <summary>
+ /// Sets and Gets ScrollPrePositionMax property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Vector2 ScrollPrePositionMax
+ {
+ get
{
- if (!isDisposeQueued)
- {
- isDisposeQueued = true;
- DisposeQueue.Instance.Add(this);
- }
+ return (Vector2)GetValue(ScrollPrePositionMaxProperty);
}
-
- public void Dispose()
+ set
{
- //Throw excpetion if Dispose() is called in separate thread.
- if (!Window.IsInstalled())
- {
- throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
- }
-
- if (isDisposeQueued)
- {
- Dispose(DisposeTypes.Implicit);
- }
- else
- {
- Dispose(DisposeTypes.Explicit);
- System.GC.SuppressFinalize(this);
- }
+ SetValue(ScrollPrePositionMaxProperty, value);
}
+ }
- protected virtual void Dispose(DisposeTypes type)
+ /// <summary>
+ /// Sets and Gets OvershootX property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float OvershootX
+ {
+ get
{
- if (disposed)
- {
- return;
- }
-
- if (type == DisposeTypes.Explicit)
- {
- //Called by User
- //Release your own managed resources here.
- //You should release all of your own disposable objects here.
-
- }
-
- //Release your own unmanaged resources here.
- //You should not access any managed member here except static instance.
- //because the execution order of Finalizes is non-deterministic.
-
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
- {
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_ScrollView_SnapEvent(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
-
- disposed = true;
+ return (float)GetValue(OvershootXProperty);
}
+ set
+ {
+ SetValue(OvershootXProperty, value);
+ }
+ }
- public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr)
+ /// <summary>
+ /// Sets and Gets OvershootY property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float OvershootY
+ {
+ get
+ {
+ return (float)GetValue(OvershootYProperty);
+ }
+ set
{
- SnapEvent ret = new SnapEvent(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
+ SetValue(OvershootYProperty, value);
}
+ }
- internal SnapType type
+ /// <summary>
+ /// Sets and Gets ScrollFinal property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Vector2 ScrollFinal
+ {
+ get
+ {
+ return (Vector2)GetValue(ScrollFinalProperty);
+ }
+ set
{
- set
- {
- NDalicPINVOKE.ScrollView_SnapEvent_type_set(swigCPtr, (int)value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- SnapType ret = (SnapType)NDalicPINVOKE.ScrollView_SnapEvent_type_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
+ SetValue(ScrollFinalProperty, value);
}
+ }
- public Vector2 position
+ /// <summary>
+ /// Sets and Gets Wrap property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool Wrap
+ {
+ get
{
- set
- {
- NDalicPINVOKE.ScrollView_SnapEvent_position_set(swigCPtr, Vector2.getCPtr(value));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ScrollView_SnapEvent_position_get(swigCPtr);
- Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
+ return (bool)GetValue(WrapProperty);
}
+ set
+ {
+ SetValue(WrapProperty, value);
+ }
+ }
- public float duration
+ /// <summary>
+ /// Sets and Gets Panning property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool Panning
+ {
+ get
+ {
+ return (bool)GetValue(PanningProperty);
+ }
+ set
{
- set
- {
- NDalicPINVOKE.ScrollView_SnapEvent_duration_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- float ret = NDalicPINVOKE.ScrollView_SnapEvent_duration_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
+ SetValue(PanningProperty, value);
}
+ }
- public SnapEvent() : this(NDalicPINVOKE.new_ScrollView_SnapEvent(), true)
+ /// <summary>
+ /// Sets and Gets Scrolling property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool Scrolling
+ {
+ get
{
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return (bool)GetValue(ScrollingProperty);
}
+ set
+ {
+ SetValue(ScrollingProperty, value);
+ }
+ }
+ /// <summary>
+ /// Sets and Gets ScrollDomainSize property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Vector2 ScrollDomainSize
+ {
+ get
+ {
+ return (Vector2)GetValue(ScrollDomainSizeProperty);
+ }
+ set
+ {
+ SetValue(ScrollDomainSizeProperty, value);
+ }
}
- public class Property
+ /// <summary>
+ /// Sets and Gets ScrollDomainOffset property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Vector2 ScrollDomainOffset
{
- public static readonly int WRAP_ENABLED = NDalicPINVOKE.ScrollView_Property_WRAP_ENABLED_get();
- public static readonly int PANNING_ENABLED = NDalicPINVOKE.ScrollView_Property_PANNING_ENABLED_get();
- public static readonly int AXIS_AUTO_LOCK_ENABLED = NDalicPINVOKE.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get();
- public static readonly int WHEEL_SCROLL_DISTANCE_STEP = NDalicPINVOKE.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
- public static readonly int SCROLL_MODE = NDalicPINVOKE.ScrollView_Property_SCROLL_MODE_get();
- public static readonly int SCROLL_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get();
- public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get();
- public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get();
- public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get();
- public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get();
- public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get();
- public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get();
- public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get();
- public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get();
- public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get();
- public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get();
- public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get();
- public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get();
- public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get();
- public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get();
- public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get();
- public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get();
- public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get();
- public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get();
- public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get();
- public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get();
+ get
+ {
+ return (Vector2)GetValue(ScrollDomainOffsetProperty);
+ }
+ set
+ {
+ SetValue(ScrollDomainOffsetProperty, value);
+ }
+ }
+ /// <summary>
+ /// Sets and Gets ScrollPositionDelta property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Vector2 ScrollPositionDelta
+ {
+ get
+ {
+ return (Vector2)GetValue(ScrollPositionDeltaProperty);
+ }
+ set
+ {
+ SetValue(ScrollPositionDeltaProperty, value);
+ }
}
- public ScrollView() : this(NDalicPINVOKE.ScrollView_New(), true)
+ /// <summary>
+ /// Sets and Gets StartPagePosition property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Vector3 StartPagePosition
{
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ get
+ {
+ return (Vector3)GetValue(StartPagePositionProperty);
+ }
+ set
+ {
+ SetValue(StartPagePositionProperty, value);
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets ScrollMode property.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public PropertyMap ScrollMode
+ {
+ get
+ {
+ return (PropertyMap)GetValue(ScrollModeProperty);
+ }
+ set
+ {
+ SetValue(ScrollModeProperty, value);
+ }
}
+ /// <summary>
+ /// Gets snap-animation's AlphaFunction.
+ /// </summary>
+ /// <returns>Current easing alpha function of the snap animation.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public AlphaFunction GetScrollSnapAlphaFunction()
{
- AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true);
+ AlphaFunction ret = new AlphaFunction(Interop.ScrollView.GetScrollSnapAlphaFunction(SwigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ /// <summary>
+ /// Sets snap-animation's AlphaFunction.
+ /// </summary>
+ /// <param name="alpha">Easing alpha function of the snap animation.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetScrollSnapAlphaFunction(AlphaFunction alpha)
{
- NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
+ Interop.ScrollView.SetScrollSnapAlphaFunction(SwigCPtr, AlphaFunction.getCPtr(alpha));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Gets flick-animation's AlphaFunction.
+ /// </summary>
+ /// <returns>Current easing alpha function of the flick animation.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public AlphaFunction GetScrollFlickAlphaFunction()
{
- AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true);
+ AlphaFunction ret = new AlphaFunction(Interop.ScrollView.GetScrollFlickAlphaFunction(SwigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ /// <summary>
+ /// Sets flick-animation's AlphaFunction.
+ /// </summary>
+ /// <param name="alpha">Easing alpha function of the flick animation.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetScrollFlickAlphaFunction(AlphaFunction alpha)
{
- NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
+ Interop.ScrollView.SetScrollFlickAlphaFunction(SwigCPtr, AlphaFunction.getCPtr(alpha));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Gets the time for the scroll snap-animation.
+ /// </summary>
+ /// <returns>The time in seconds for the animation to take.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public float GetScrollSnapDuration()
{
- float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr);
+ float ret = Interop.ScrollView.GetScrollSnapDuration(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ /// <summary>
+ /// Sets the time for the scroll snap-animation.
+ /// </summary>
+ /// <param name="time">The time in seconds for the animation to take.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetScrollSnapDuration(float time)
{
- NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time);
+ Interop.ScrollView.SetScrollSnapDuration(SwigCPtr, time);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Gets the time for the scroll flick-animation.
+ /// </summary>
+ /// <returns>The time in seconds for the animation to take.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public float GetScrollFlickDuration()
{
- float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr);
+ float ret = Interop.ScrollView.GetScrollFlickDuration(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ /// <summary>
+ /// Sets the time for the scroll snap-animation.
+ /// </summary>
+ /// <param name="time">The time in seconds for the animation to take.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetScrollFlickDuration(float time)
{
- NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time);
+ Interop.ScrollView.SetScrollFlickDuration(SwigCPtr, time);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
-
+ /// <summary>
+ /// Sets scroll sensibility of pan gesture.
+ /// </summary>
+ /// <param name="sensitive">True to enable scroll, false to disable scrolling.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetScrollSensitive(bool sensitive)
{
- NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive);
+ Interop.ScrollView.SetScrollSensitive(SwigCPtr, sensitive);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Sets maximum overshoot amount.
+ /// </summary>
+ /// <param name="overshootX">The maximum number of horizontally scrolled pixels before overshoot X reaches 1.0f.</param>
+ /// <param name="overshootY">The maximum number of vertically scrolled pixels before overshoot X reaches 1.0f.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetMaxOvershoot(float overshootX, float overshootY)
{
- NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY);
+ Interop.ScrollView.SetMaxOvershoot(SwigCPtr, overshootX, overshootY);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Sets Snap Overshoot animation's AlphaFunction.
+ /// </summary>
+ /// <param name="alpha">Easing alpha function of the overshoot snap animation.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetSnapOvershootAlphaFunction(AlphaFunction alpha)
{
- NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha));
+ Interop.ScrollView.SetSnapOvershootAlphaFunction(SwigCPtr, AlphaFunction.getCPtr(alpha));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Sets Snap Overshoot animation's Duration.
+ /// </summary>
+ /// <param name="duration">duration The duration of the overshoot snap animation.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetSnapOvershootDuration(float duration)
{
- NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration);
+ Interop.ScrollView.SetSnapOvershootDuration(SwigCPtr, duration);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Enables or Disables Actor Auto-Snap mode.<br />
+ /// When Actor Auto-Snap mode has been enabled, ScrollView will automatically,
+ /// snap to the closest actor (The closest actor will appear in the center of the ScrollView).
+ /// </summary>
+ /// <param name="enable">Enables (true), or disables (false) Actor AutoSnap.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetViewAutoSnap(bool enable)
{
- NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable);
+ Interop.ScrollView.SetActorAutoSnap(SwigCPtr, enable);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Enables or Disables Wrap mode for ScrollView contents.<br />
+ /// When enabled, the ScrollView contents are wrapped over the X/Y Domain.
+ /// </summary>
+ /// <param name="enable">Enables (true), or disables (false) Wrap Mode.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetWrapMode(bool enable)
{
- NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable);
+ Interop.ScrollView.SetWrapMode(SwigCPtr, enable);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Gets the current distance needed to scroll for ScrollUpdatedSignal to be emitted.
+ /// </summary>
+ /// <returns>Current scroll update distance.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public int GetScrollUpdateDistance()
{
- int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr);
+ int ret = Interop.ScrollView.GetScrollUpdateDistance(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ /// <summary>
+ /// Sets the distance needed to scroll for ScrollUpdatedSignal to be emitted.<br />
+ /// The scroll update distance tells ScrollView how far to move before ScrollUpdatedSignal the informs application.<br />
+ /// Each time the ScrollView crosses this distance the signal will be emitted.<br />
+ /// </summary>
+ /// <param name="distance">The distance for ScrollView to move before emitting update signal.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetScrollUpdateDistance(int distance)
{
- NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance);
+ Interop.ScrollView.SetScrollUpdateDistance(SwigCPtr, distance);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Returns state of Axis Auto Lock mode.
+ /// </summary>
+ /// <returns>Whether Axis Auto Lock mode has been enabled or not.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public bool GetAxisAutoLock()
{
- bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr);
+ bool ret = Interop.ScrollView.GetAxisAutoLock(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ /// <summary>
+ /// Enables or Disables Axis Auto Lock mode for panning within the ScrollView.<br />
+ /// When enabled, any pan gesture that appears mostly horizontal or mostly
+ /// vertical, will be automatically restricted to horizontal only or vertical
+ /// only panning, until the pan gesture has completed.
+ /// </summary>
+ /// <param name="enable">Enables (true), or disables (false) AxisAutoLock mode.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetAxisAutoLock(bool enable)
{
- NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable);
+ Interop.ScrollView.SetAxisAutoLock(SwigCPtr, enable);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Gets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.
+ /// </summary>
+ /// <returns>The gradient, a value between 0.0 and 1.0f.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public float GetAxisAutoLockGradient()
{
- float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr);
+ float ret = Interop.ScrollView.GetAxisAutoLockGradient(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ /// <summary>
+ /// Sets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.<br />
+ /// By default, this is 0.36 (0.36:1) which means angles less than 20 degrees to an axis will lock to that axis.<br />
+ /// </summary>
+ /// <param name="gradient">gradient A value between 0.0 and 1.0 (auto-lock for all angles).</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetAxisAutoLockGradient(float gradient)
{
- NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient);
+ Interop.ScrollView.SetAxisAutoLockGradient(SwigCPtr, gradient);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Gets the friction coefficient setting for ScrollView when flicking in free panning mode.
+ /// This is a value in stage-diagonals per second^2, stage-diagonal = Length( stage.width, stage.height )
+ /// </summary>
+ /// <returns>Friction coefficient is returned.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public float GetFrictionCoefficient()
{
- float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr);
+ float ret = Interop.ScrollView.GetFrictionCoefficient(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ /// <summary>
+ /// Sets the friction coefficient for ScrollView when flicking.<br />
+ /// </summary>
+ /// <param name="friction">Friction coefficient must be greater than 0.0 (default = 1.0).</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetFrictionCoefficient(float friction)
{
- NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction);
+ Interop.ScrollView.SetFrictionCoefficient(SwigCPtr, friction);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Gets the flick speed coefficient for ScrollView when flicking in free panning mode.<br />
+ /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at which to move the scrolling area.
+ /// </summary>
+ /// <returns>The flick speed coefficient is returned.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public float GetFlickSpeedCoefficient()
{
- float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr);
+ float ret = Interop.ScrollView.GetFlickSpeedCoefficient(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ /// <summary>
+ /// Sets the flick speed coefficient for ScrollView when flicking in free panning mode.<br />
+ /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at
+ /// which to move the scrolling area.<br />
+ /// </summary>
+ /// <param name="speed">The flick speed coefficient (default = 1.0).</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetFlickSpeedCoefficient(float speed)
{
- NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed);
+ Interop.ScrollView.SetFlickSpeedCoefficient(SwigCPtr, speed);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Gets the minimum pan distance required for a flick gesture in pixels.<br />
+ /// </summary>
+ /// <returns>Minimum pan distance vector with separate x and y distance.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public Vector2 GetMinimumDistanceForFlick()
{
- Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true);
+ Vector2 ret = new Vector2(Interop.ScrollView.GetMinimumDistanceForFlick(SwigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ /// <summary>
+ /// Sets the minimum pan distance required for a flick in pixels.<br />
+ /// Takes a Vector2 containing separate x and y values. As long as the pan distance exceeds one of these axes, a flick will be allowed.
+ /// </summary>
+ /// <param name="distance">The flick speed coefficient (default = 1.0).</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetMinimumDistanceForFlick(Vector2 distance)
{
- NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance));
+ Interop.ScrollView.SetMinimumDistanceForFlick(SwigCPtr, Vector2.getCPtr(distance));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Returns the minimum pan speed required for a flick gesture in pixels per second.
+ /// </summary>
+ /// <returns>Minimum pan speed.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public float GetMinimumSpeedForFlick()
{
- float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr);
+ float ret = Interop.ScrollView.GetMinimumSpeedForFlick(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ /// <summary>
+ /// Sets the minimum pan speed required for a flick in pixels per second.<br />
+ /// </summary>
+ /// <param name="speed">The minimum pan speed for a flick.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetMinimumSpeedForFlick(float speed)
{
- NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed);
+ Interop.ScrollView.SetMinimumSpeedForFlick(SwigCPtr, speed);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Gets the maximum flick speed setting for ScrollView when flicking in free panning mode.<br />
+ /// This is a value in stage-diagonals per second.
+ /// </summary>
+ /// <returns>Maximum flick speed is returned.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public float GetMaxFlickSpeed()
{
- float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr);
+ float ret = Interop.ScrollView.GetMaxFlickSpeed(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ /// <summary>
+ /// Sets the maximum flick speed for the ScrollView when flicking in free panning mode.<br />
+ /// This is a value in stage-diagonals per second. stage-diagonal = Length( stage.width, stage.height ).<br />
+ /// </summary>
+ /// <param name="speed">Maximum flick speed (default = 3.0).</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetMaxFlickSpeed(float speed)
{
- NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed);
+ Interop.ScrollView.SetMaxFlickSpeed(SwigCPtr, speed);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Gets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.<br />
+ /// </summary>
+ /// <returns>The step of scroll distance(pixel) in X and Y axes.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public Vector2 GetWheelScrollDistanceStep()
{
- Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true);
+ Vector2 ret = new Vector2(Interop.ScrollView.GetWheelScrollDistanceStep(SwigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ /// <summary>
+ /// Sets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.<br />
+ /// </summary>
+ /// <param name="step">step The step of scroll distance(pixel) in X and Y axes.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetWheelScrollDistanceStep(Vector2 step)
{
- NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step));
+ Interop.ScrollView.SetWheelScrollDistanceStep(SwigCPtr, Vector2.getCPtr(step));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Retrieves current scroll position.<br />
+ /// </summary>
+ /// <returns>The current scroll position.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public Vector2 GetCurrentScrollPosition()
{
- Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true);
+ Vector2 ret = new Vector2(Interop.ScrollView.GetCurrentScrollPosition(SwigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ /// <summary>
+ /// Retrieves current scroll page based on ScrollView dimensions being the size of one page, and all pages laid out in<br />
+ /// a grid fashion, increasing from left to right until the end of the X-domain.
+ /// </summary>
+ /// <returns>The current scroll position.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public uint GetCurrentPage()
{
- uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr);
+ uint ret = Interop.ScrollView.GetCurrentPage(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="position">The position to scroll to.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void ScrollTo(Vector2 position)
{
- NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position));
+ Interop.ScrollView.ScrollToVector2(SwigCPtr, Vector2.getCPtr(position));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="position">The position to scroll to.</param>
+ /// <param name="duration">The duration of the animation in seconds.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void ScrollTo(Vector2 position, float duration)
{
- NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration);
+ Interop.ScrollView.ScrollTo(SwigCPtr, Vector2.getCPtr(position), duration);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="position">The position to scroll to.</param>
+ /// <param name="duration">The duration of the animation in seconds.</param>
+ /// <param name="alpha">The alpha function to use.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha)
{
- NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
+ Interop.ScrollView.ScrollTo(SwigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="position">The position to scroll to.</param>
+ /// <param name="duration">The duration of the animation in seconds.</param>
+ /// <param name="horizontalBias">Whether to bias scrolling to left or right.</param>
+ /// <param name="verticalBias">Whether to bias scrolling to top or bottom.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias)
{
- NDalicPINVOKE.ScrollView_ScrollTo__SWIG_3(swigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
+ Interop.ScrollView.ScrollTo(SwigCPtr, Vector2.getCPtr(position), duration, (int)horizontalBias, (int)verticalBias);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="position">The position to scroll to.</param>
+ /// <param name="duration">The duration of the animation in seconds.</param>
+ /// <param name="alpha">Alpha function to use.</param>
+ /// <param name="horizontalBias">Whether to bias scrolling to left or right.</param>
+ /// <param name="verticalBias">Whether to bias scrolling to top or bottom.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias)
{
- NDalicPINVOKE.ScrollView_ScrollTo__SWIG_4(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
+ Interop.ScrollView.ScrollTo(SwigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha), (int)horizontalBias, (int)verticalBias);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="page">The page to scroll to.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void ScrollTo(uint page)
{
- NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page);
+ Interop.ScrollView.ScrollTo(SwigCPtr, page);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="page">The page to scroll to.</param>
+ /// <param name="duration">The duration of the animation in seconds.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void ScrollTo(uint page, float duration)
{
- NDalicPINVOKE.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration);
+ Interop.ScrollView.ScrollTo(SwigCPtr, page, duration);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="page">The page to scroll to.</param>
+ /// <param name="duration">The duration of the animation in seconds.</param>
+ /// <param name="bias">Whether to bias scrolling to left or right.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void ScrollTo(uint page, float duration, DirectionBias bias)
{
- NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias);
+ Interop.ScrollView.ScrollTo(SwigCPtr, page, duration, (int)bias);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="view">The view to center in on (via Scrolling).</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void ScrollTo(View view)
{
- NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view));
+ Interop.ScrollView.ScrollToView(SwigCPtr, View.getCPtr(view));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="view">The view to center in on (via Scrolling).</param>
+ /// <param name="duration">The duration of the animation in seconds.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void ScrollTo(View view, float duration)
{
- NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration);
+ Interop.ScrollView.ScrollToViewDuration(SwigCPtr, View.getCPtr(view), duration);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Scrolls View to the nearest snap points as specified by the Rulers.<br />
+ /// If already at snap points, then will return false, and not scroll.<br />
+ /// </summary>
+ /// <returns>True if Snapping necessary.</returns>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public bool ScrollToSnapPoint()
{
- bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr);
+ bool ret = Interop.ScrollView.ScrollToSnapPoint(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
- internal void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint)
- {
- NDalicPINVOKE.ScrollView_ApplyConstraintToChildren(swigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
+ /// <summary>
+ /// Applies Effect to ScrollView.
+ /// </summary>
+ /// <param name="effect">The effect to apply to scroll view.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void ApplyEffect(ScrollViewEffect effect)
{
- NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
+ Interop.ScrollView.ApplyEffect(SwigCPtr, ScrollViewEffect.getCPtr(effect));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Removes Effect from ScrollView.
+ /// </summary>
+ /// <param name="effect">The effect to remove.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void RemoveEffect(ScrollViewEffect effect)
{
- NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect));
+ Interop.ScrollView.RemoveEffect(SwigCPtr, ScrollViewEffect.getCPtr(effect));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Remove All Effects from ScrollView.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void RemoveAllEffects()
{
- NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr);
+ Interop.ScrollView.RemoveAllEffects(SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Binds view to this ScrollView.
+ /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
+ /// </summary>
+ /// <param name="child">The view to add to this ScrollView.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void BindView(View child)
{
- NDalicPINVOKE.ScrollView_BindActor(swigCPtr, View.getCPtr(child));
+ Interop.ScrollView.BindActor(SwigCPtr, View.getCPtr(child));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Unbinds view to this ScrollView.
+ /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
+ /// </summary>
+ /// <param name="child">The view to remove to this ScrollView.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void UnbindView(View child)
{
- NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child));
+ Interop.ScrollView.UnbindActor(SwigCPtr, View.getCPtr(child));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Allows the user to constrain the scroll view in a particular direction.
+ /// </summary>
+ /// <param name="direction">The axis to constrain the scroll-view to.</param>
+ /// <param name="threshold">The threshold to apply around the axis.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetScrollingDirection(Radian direction, Radian threshold)
{
- NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
+ Interop.ScrollView.SetScrollingDirection(SwigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Allows the user to constrain the scroll view in a particular direction.
+ /// </summary>
+ /// <param name="direction">The axis to constrain the scroll-view to.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void SetScrollingDirection(Radian direction)
{
- NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction));
+ Interop.ScrollView.SetScrollingDirection(SwigCPtr, Radian.getCPtr(direction));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Removes a direction constraint from the scroll view.
+ /// </summary>
+ /// <param name="direction">The axis to constrain the scroll-view to.</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
public void RemoveScrollingDirection(Radian direction)
{
- NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction));
+ Interop.ScrollView.RemoveScrollingDirection(SwigCPtr, Radian.getCPtr(direction));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal ScrollViewSnapStartedSignal SnapStartedSignal()
+ /// <summary>
+ /// Set ruler X
+ /// </summary>
+ /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetRulerX(RulerPtr ruler)
{
- ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(NDalicPINVOKE.ScrollView_SnapStartedSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
+ Interop.ScrollView.SetRulerX(SwigCPtr, RulerPtr.getCPtr(ruler));
}
- public bool WrapEnabled
+ /// <summary>
+ /// Set ruler Y
+ /// </summary>
+ /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetRulerY(RulerPtr ruler)
{
- get
- {
- bool temp = false;
- GetProperty(ScrollView.Property.WRAP_ENABLED).Get(out temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.WRAP_ENABLED, new Tizen.NUI.PropertyValue(value));
- }
+ Interop.ScrollView.SetRulerY(SwigCPtr, RulerPtr.getCPtr(ruler));
}
- public bool PanningEnabled
- {
- get
- {
- bool temp = false;
- GetProperty(ScrollView.Property.PANNING_ENABLED).Get(out temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.PANNING_ENABLED, new Tizen.NUI.PropertyValue(value));
- }
- }
- public bool AxisAutoLockEnabled
- {
- get
- {
- bool temp = false;
- GetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get(out temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Tizen.NUI.PropertyValue(value));
- }
- }
- public Vector2 WheelScrollDistanceStep
- {
- get
- {
- Vector2 temp = new Vector2(0.0f, 0.0f);
- GetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get(temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Tizen.NUI.PropertyValue(value));
- }
- }
- public Vector2 ScrollPosition
- {
- get
- {
- Vector2 temp = new Vector2(0.0f, 0.0f);
- GetProperty(ScrollView.Property.SCROLL_POSITION).Get(temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.SCROLL_POSITION, new Tizen.NUI.PropertyValue(value));
- }
- }
- public Vector2 ScrollPrePosition
- {
- get
- {
- Vector2 temp = new Vector2(0.0f, 0.0f);
- GetProperty(ScrollView.Property.SCROLL_PRE_POSITION).Get(temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.SCROLL_PRE_POSITION, new Tizen.NUI.PropertyValue(value));
- }
- }
- public Vector2 ScrollPrePositionMax
- {
- get
- {
- Vector2 temp = new Vector2(0.0f, 0.0f);
- GetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get(temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Tizen.NUI.PropertyValue(value));
- }
- }
- public float OvershootX
- {
- get
- {
- float temp = 0.0f;
- GetProperty(ScrollView.Property.OVERSHOOT_X).Get(out temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.OVERSHOOT_X, new Tizen.NUI.PropertyValue(value));
- }
- }
- public float OvershootY
- {
- get
- {
- float temp = 0.0f;
- GetProperty(ScrollView.Property.OVERSHOOT_Y).Get(out temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.OVERSHOOT_Y, new Tizen.NUI.PropertyValue(value));
- }
- }
- public Vector2 ScrollFinal
- {
- get
- {
- Vector2 temp = new Vector2(0.0f, 0.0f);
- GetProperty(ScrollView.Property.SCROLL_FINAL).Get(temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.SCROLL_FINAL, new Tizen.NUI.PropertyValue(value));
- }
- }
- public bool Wrap
- {
- get
- {
- bool temp = false;
- GetProperty(ScrollView.Property.WRAP).Get(out temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.WRAP, new Tizen.NUI.PropertyValue(value));
- }
- }
- public bool Panning
- {
- get
- {
- bool temp = false;
- GetProperty(ScrollView.Property.PANNING).Get(out temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.PANNING, new Tizen.NUI.PropertyValue(value));
- }
- }
- public bool Scrolling
- {
- get
- {
- bool temp = false;
- GetProperty(ScrollView.Property.SCROLLING).Get(out temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.SCROLLING, new Tizen.NUI.PropertyValue(value));
- }
- }
- public Vector2 ScrollDomainSize
- {
- get
- {
- Vector2 temp = new Vector2(0.0f, 0.0f);
- GetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE).Get(temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE, new Tizen.NUI.PropertyValue(value));
- }
- }
- public Vector2 ScrollDomainOffset
- {
- get
- {
- Vector2 temp = new Vector2(0.0f, 0.0f);
- GetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get(temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Tizen.NUI.PropertyValue(value));
- }
- }
- public Vector2 ScrollPositionDelta
- {
- get
- {
- Vector2 temp = new Vector2(0.0f, 0.0f);
- GetProperty(ScrollView.Property.SCROLL_POSITION_DELTA).Get(temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.SCROLL_POSITION_DELTA, new Tizen.NUI.PropertyValue(value));
- }
- }
- public Vector3 StartPagePosition
+
+ internal void ApplyConstraintToChildren(SWIGTYPE_p_Dali__Constraint constraint)
{
- get
- {
- Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
- GetProperty(ScrollView.Property.START_PAGE_POSITION).Get(temp);
- return temp;
- }
- set
- {
- SetProperty(ScrollView.Property.START_PAGE_POSITION, new Tizen.NUI.PropertyValue(value));
- }
+ Interop.ScrollView.ApplyConstraintToChildren(SwigCPtr, SWIGTYPE_p_Dali__Constraint.getCPtr(constraint));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- public PropertyMap ScrollMode
+ /// <summary>
+ /// Dispose
+ /// </summary>
+ /// <param name="type">the dispose type</param>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override void Dispose(DisposeTypes type)
{
- get
+ if (disposed)
{
- PropertyValue value = GetProperty( ScrollView.Property.SCROLL_MODE );
- PropertyMap map = new PropertyMap();
- value.Get( map );
- return map;
+ return;
}
- set
+
+ //Release your own unmanaged resources here.
+ //You should not access any managed member here except static instance.
+ //because the execution order of Finalizes is non-deterministic.
+
+ if (this != null && _scrollViewSnapStartedCallbackDelegate != null)
{
- SetProperty( ScrollView.Property.SCROLL_MODE, new PropertyValue( value ) );
+ ScrollViewSnapStartedSignal snapStarted = this.SnapStartedSignal();
+ snapStarted?.Disconnect(_scrollViewSnapStartedCallbackDelegate);
+ snapStarted?.Dispose();
}
+
+ base.Dispose(type);
}
+ /// This will not be public opened.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
+ {
+ Interop.ScrollView.DeleteScrollView(swigCPtr);
+ }
+
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#pragma warning disable CA1716, CA1052, CA1034 // Identifiers should not match keywords
+ public new class Property
+#pragma warning restore CA1716, CA1052, CA1034 // Identifiers should not match keywords
+ {
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int WrapEnabled = Interop.ScrollView.WrapEnabledGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int PanningEnabled = Interop.ScrollView.PanningEnabledGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int AxisAutoLockEnabled = Interop.ScrollView.AxisAutoLockEnabledGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int WheelScrollDistanceStep = Interop.ScrollView.WheelScrollDistanceStepGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollMode = Interop.ScrollView.ScrollModeGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollPosition = Interop.ScrollView.ScrollPositionGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollPrePosition = Interop.ScrollView.ScrollPrePositionGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollPrePositionX = Interop.ScrollView.ScrollPrePositionXGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollPrePositionY = Interop.ScrollView.ScrollPrePositionYGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollPrePositionMax = Interop.ScrollView.ScrollPrePositionMaxGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollPrePositionMaxX = Interop.ScrollView.ScrollPrePositionMaxXGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollPrePositionMaxY = Interop.ScrollView.ScrollPrePositionMaxYGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int OvershootX = Interop.ScrollView.OvershootXGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int OvershootY = Interop.ScrollView.OvershootYGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollFinal = Interop.ScrollView.ScrollFinalGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollFinalX = Interop.ScrollView.ScrollFinalXGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollFinalY = Interop.ScrollView.ScrollFinalYGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int WRAP = Interop.ScrollView.WrapGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int PANNING = Interop.ScrollView.PanningGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int SCROLLING = Interop.ScrollView.ScrollingGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollDomainSize = Interop.ScrollView.ScrollDomainSizeGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollDomainSizeX = Interop.ScrollView.ScrollDomainSizeXGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollDomainSizeY = Interop.ScrollView.ScrollDomainSizeYGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollDomainOffset = Interop.ScrollView.ScrollDomainOffsetGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollPositionDelta = Interop.ScrollView.ScrollPositionDeltaGet();
+ /// <summary>
+ /// This should be internal, please do not use.
+ /// </summary>
+ /// <since_tizen> 3 </since_tizen>
+ /// This will be deprecated
+ [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int StartPagePosition = Interop.ScrollView.StartPagePositionGet();
+ }
}
-
}
+