X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.NUI%2Fsrc%2Fpublic%2FUIComponents%2FScrollView.cs;h=e9908d363c880d9df3dbc76d3ee8f72196f64348;hb=559c2b0d1033befc2cafa42fab05c116aa3732f6;hp=b9bb7eab82256765d1b80d0cd7609b3a3a291d3f;hpb=0782e9f2d86ea4c50cb93f451faf5a5113b0db06;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/Tizen.NUI/src/public/UIComponents/ScrollView.cs b/src/Tizen.NUI/src/public/UIComponents/ScrollView.cs index b9bb7ea..e9908d3 100755 --- a/src/Tizen.NUI/src/public/UIComponents/ScrollView.cs +++ b/src/Tizen.NUI/src/public/UIComponents/ScrollView.cs @@ -1,28 +1,341 @@ -/** 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) 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. + * + */ +using System; +using System.ComponentModel; +using System.Runtime.InteropServices; +using Tizen.NUI.BaseComponents; +using Tizen.NUI.Binding; namespace Tizen.NUI { - - using System; - using System.Runtime.InteropServices; - using Tizen.NUI.BaseComponents; - + /// + /// ScrollView contains views that can be scrolled manually (via touch). + /// + /// 3 public class ScrollView : Scrollable { + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty WrapEnabledProperty = BindableProperty.Create("WrapEnabled", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.WRAP_ENABLED, new Tizen.NUI.PropertyValue((bool)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + bool temp = false; + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.WRAP_ENABLED).Get(out temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty PanningEnabledProperty = BindableProperty.Create("PanningEnabled", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.PANNING_ENABLED, new Tizen.NUI.PropertyValue((bool)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + bool temp = false; + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.PANNING_ENABLED).Get(out temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty AxisAutoLockEnabledProperty = BindableProperty.Create("AxisAutoLockEnabled", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Tizen.NUI.PropertyValue((bool)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + bool temp = false; + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get(out temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty WheelScrollDistanceStepProperty = BindableProperty.Create("WheelScrollDistanceStep", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Tizen.NUI.PropertyValue((Vector2)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + Vector2 temp = new Vector2(0.0f, 0.0f); + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get(temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollPositionProperty = BindableProperty.Create("ScrollPosition", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_POSITION, new Tizen.NUI.PropertyValue((Vector2)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + Vector2 temp = new Vector2(0.0f, 0.0f); + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_POSITION).Get(temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollPrePositionProperty = BindableProperty.Create("ScrollPrePosition", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_PRE_POSITION, new Tizen.NUI.PropertyValue((Vector2)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + Vector2 temp = new Vector2(0.0f, 0.0f); + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_PRE_POSITION).Get(temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollPrePositionMaxProperty = BindableProperty.Create("ScrollPrePositionMax", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Tizen.NUI.PropertyValue((Vector2)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + Vector2 temp = new Vector2(0.0f, 0.0f); + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get(temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty OvershootXProperty = BindableProperty.Create("OvershootX", typeof(float), typeof(ScrollView), default(float), propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.OVERSHOOT_X, new Tizen.NUI.PropertyValue((float)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + float temp = 0.0f; + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.OVERSHOOT_X).Get(out temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty OvershootYProperty = BindableProperty.Create("OvershootY", typeof(float), typeof(ScrollView), default(float), propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.OVERSHOOT_Y, new Tizen.NUI.PropertyValue((float)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + float temp = 0.0f; + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.OVERSHOOT_Y).Get(out temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollFinalProperty = BindableProperty.Create("ScrollFinal", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_FINAL, new Tizen.NUI.PropertyValue((Vector2)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + Vector2 temp = new Vector2(0.0f, 0.0f); + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_FINAL).Get(temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty WrapProperty = BindableProperty.Create("Wrap", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.WRAP, new Tizen.NUI.PropertyValue((bool)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + bool temp = false; + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.WRAP).Get(out temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty PanningProperty = BindableProperty.Create("Panning", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.PANNING, new Tizen.NUI.PropertyValue((bool)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + bool temp = false; + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.PANNING).Get(out temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollingProperty = BindableProperty.Create("Scrolling", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLLING, new Tizen.NUI.PropertyValue((bool)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + bool temp = false; + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLLING).Get(out temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollDomainSizeProperty = BindableProperty.Create("ScrollDomainSize", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_DOMAIN_SIZE, new Tizen.NUI.PropertyValue((Vector2)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + Vector2 temp = new Vector2(0.0f, 0.0f); + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_DOMAIN_SIZE).Get(temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollDomainOffsetProperty = BindableProperty.Create("ScrollDomainOffset", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Tizen.NUI.PropertyValue((Vector2)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + Vector2 temp = new Vector2(0.0f, 0.0f); + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get(temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollPositionDeltaProperty = BindableProperty.Create("ScrollPositionDelta", typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_POSITION_DELTA, new Tizen.NUI.PropertyValue((Vector2)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + Vector2 temp = new Vector2(0.0f, 0.0f); + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_POSITION_DELTA).Get(temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty StartPagePositionProperty = BindableProperty.Create("StartPagePosition", typeof(Vector3), typeof(ScrollView), Vector3.Zero, propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.START_PAGE_POSITION, new Tizen.NUI.PropertyValue((Vector3)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f); + Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.START_PAGE_POSITION).Get(temp); + return temp; + }); + /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollModeProperty = BindableProperty.Create("ScrollMode", typeof(PropertyMap), typeof(ScrollView), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_MODE, new Tizen.NUI.PropertyValue((PropertyMap)newValue)); + } + }, + defaultValueCreator:(bindable) => + { + var scrollView = (ScrollView)bindable; + PropertyValue value = Tizen.NUI.Object.GetProperty(scrollView.swigCPtr, ScrollView.Property.SCROLL_MODE ); + PropertyMap map = new PropertyMap(); + value.Get( map ); + return map; + }); + private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal ScrollView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ScrollView_SWIGUpcast(cPtr), cMemoryOwn) @@ -35,6 +348,11 @@ namespace Tizen.NUI return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } + /// + /// Dispose + /// + /// the dispose type + /// 3 protected override void Dispose(DisposeTypes type) { if (disposed) @@ -54,6 +372,11 @@ namespace Tizen.NUI //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) + { + this.SnapStartedSignal().Disconnect(_scrollViewSnapStartedCallbackDelegate); + } + if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) @@ -67,18 +390,18 @@ namespace Tizen.NUI base.Dispose(type); } - /** - * @brief Event arguments that passed via SnapStarted signal - * - */ + /// + /// Event arguments that passed via the SnapStarted signal. + /// + /// 3 public class SnapStartedEventArgs : EventArgs { 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). - * - */ + /// + /// SnapEventInfo is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick). + /// + /// 3 public Tizen.NUI.ScrollView.SnapEvent SnapEventInfo { get @@ -97,13 +420,12 @@ namespace Tizen.NUI private DaliEventHandler _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) 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). - * - */ + /// + /// SnapStarted can be used to subscribe or unsubscribe the event handler + /// The SnapStarted signal is emitted when the ScrollView has started to snap or flick (it tells the target + /// position, scale, rotation for the snap or flick). + /// + /// 3 public event DaliEventHandler SnapStarted { add @@ -150,9 +472,17 @@ namespace Tizen.NUI } } + /// + /// Snaps signal event's data. + /// + /// 3 public class SnapEvent : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; + /// + /// swigCMemOwn + /// + /// 3 protected bool swigCMemOwn; internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn) @@ -168,10 +498,17 @@ namespace Tizen.NUI //A Flag to check who called Dispose(). (By User or DisposeQueue) private bool isDisposeQueued = false; - //A Flat to check if it is already disposed. + /// + /// A Flat to check if it is already disposed. + /// + /// swigCMemOwn + /// 3 protected bool disposed = false; - + /// + /// Dispose + /// + /// 3 ~SnapEvent() { if (!isDisposeQueued) @@ -181,6 +518,10 @@ namespace Tizen.NUI } } + /// + /// Dispose. + /// + /// 3 public void Dispose() { //Throw excpetion if Dispose() is called in separate thread. @@ -200,6 +541,11 @@ namespace Tizen.NUI } } + /// + /// Dispose + /// + /// the dispose type + /// 3 protected virtual void Dispose(DisposeTypes type) { if (disposed) @@ -232,6 +578,10 @@ namespace Tizen.NUI disposed = true; } + /// + /// Get SnapEvent From Ptr + /// + /// 3 public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr) { SnapEvent ret = new SnapEvent(cPtr, false); @@ -254,6 +604,10 @@ namespace Tizen.NUI } } + /// + /// Scroll position. + /// + /// 3 public Vector2 position { set @@ -270,6 +624,10 @@ namespace Tizen.NUI } } + /// + /// Scroll duration. + /// + /// 3 public float duration { set @@ -285,6 +643,10 @@ namespace Tizen.NUI } } + /// + /// Create an instance of SnapEvent. + /// + /// 3 public SnapEvent() : this(NDalicPINVOKE.new_ScrollView_SnapEvent(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -292,43 +654,160 @@ namespace Tizen.NUI } - public class Property + /// + /// This should be internal, please do not use. + /// + /// 3 + public new class Property { + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int WRAP_ENABLED = NDalicPINVOKE.ScrollView_Property_WRAP_ENABLED_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int PANNING_ENABLED = NDalicPINVOKE.ScrollView_Property_PANNING_ENABLED_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int AXIS_AUTO_LOCK_ENABLED = NDalicPINVOKE.ScrollView_Property_AXIS_AUTO_LOCK_ENABLED_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int WHEEL_SCROLL_DISTANCE_STEP = NDalicPINVOKE.ScrollView_Property_WHEEL_SCROLL_DISTANCE_STEP_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLL_MODE = NDalicPINVOKE.ScrollView_Property_SCROLL_MODE_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLL_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLL_PRE_POSITION = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLL_PRE_POSITION_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_X_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLL_PRE_POSITION_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_Y_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLL_PRE_POSITION_MAX = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLL_PRE_POSITION_MAX_X = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_X_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLL_PRE_POSITION_MAX_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_PRE_POSITION_MAX_Y_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int OVERSHOOT_X = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_X_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int OVERSHOOT_Y = NDalicPINVOKE.ScrollView_Property_OVERSHOOT_Y_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLL_FINAL = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLL_FINAL_X = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_X_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLL_FINAL_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_FINAL_Y_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int WRAP = NDalicPINVOKE.ScrollView_Property_WRAP_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int PANNING = NDalicPINVOKE.ScrollView_Property_PANNING_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLLING = NDalicPINVOKE.ScrollView_Property_SCROLLING_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLL_DOMAIN_SIZE = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLL_DOMAIN_SIZE_X = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_X_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLL_DOMAIN_SIZE_Y = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_SIZE_Y_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLL_DOMAIN_OFFSET = NDalicPINVOKE.ScrollView_Property_SCROLL_DOMAIN_OFFSET_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int SCROLL_POSITION_DELTA = NDalicPINVOKE.ScrollView_Property_SCROLL_POSITION_DELTA_get(); + /// + /// This should be internal, please do not use. + /// + /// 3 public static readonly int START_PAGE_POSITION = NDalicPINVOKE.ScrollView_Property_START_PAGE_POSITION_get(); } + /// + /// Create an instance of ScrollView. + /// + /// 3 public ScrollView() : this(NDalicPINVOKE.ScrollView_New(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Gets snap-animation's AlphaFunction. + /// + /// Current easing alpha function of the snap animation. + /// 3 public AlphaFunction GetScrollSnapAlphaFunction() { AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollSnapAlphaFunction(swigCPtr), true); @@ -336,12 +815,22 @@ namespace Tizen.NUI return ret; } + /// + /// Sets snap-animation's AlphaFunction. + /// + /// Easing alpha function of the snap animation. + /// 3 public void SetScrollSnapAlphaFunction(AlphaFunction alpha) { NDalicPINVOKE.ScrollView_SetScrollSnapAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Gets flick-animation's AlphaFunction. + /// + /// Current easing alpha function of the flick animation. + /// 3 public AlphaFunction GetScrollFlickAlphaFunction() { AlphaFunction ret = new AlphaFunction(NDalicPINVOKE.ScrollView_GetScrollFlickAlphaFunction(swigCPtr), true); @@ -349,12 +838,22 @@ namespace Tizen.NUI return ret; } + /// + /// Sets flick-animation's AlphaFunction. + /// + /// Easing alpha function of the flick animation. + /// 3 public void SetScrollFlickAlphaFunction(AlphaFunction alpha) { NDalicPINVOKE.ScrollView_SetScrollFlickAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Gets the time for the scroll snap-animation. + /// + /// The time in seconds for the animation to take. + /// 3 public float GetScrollSnapDuration() { float ret = NDalicPINVOKE.ScrollView_GetScrollSnapDuration(swigCPtr); @@ -362,12 +861,22 @@ namespace Tizen.NUI return ret; } + /// + /// Sets the time for the scroll snap-animation. + /// + /// The time in seconds for the animation to take. + /// 3 public void SetScrollSnapDuration(float time) { NDalicPINVOKE.ScrollView_SetScrollSnapDuration(swigCPtr, time); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Gets the time for the scroll flick-animation. + /// + /// The time in seconds for the animation to take. + /// 3 public float GetScrollFlickDuration() { float ret = NDalicPINVOKE.ScrollView_GetScrollFlickDuration(swigCPtr); @@ -375,49 +884,92 @@ namespace Tizen.NUI return ret; } + /// + /// Sets the time for the scroll snap-animation. + /// + /// The time in seconds for the animation to take. + /// 3 public void SetScrollFlickDuration(float time) { NDalicPINVOKE.ScrollView_SetScrollFlickDuration(swigCPtr, time); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } - + /// + /// Sets scroll sensibility of pan gesture. + /// + /// True to enable scroll, false to disable scrolling. + /// 3 public void SetScrollSensitive(bool sensitive) { NDalicPINVOKE.ScrollView_SetScrollSensitive(swigCPtr, sensitive); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Sets maximum overshoot amount. + /// + /// The maximum number of horizontally scrolled pixels before overshoot X reaches 1.0f. + /// The maximum number of vertically scrolled pixels before overshoot X reaches 1.0f. + /// 3 public void SetMaxOvershoot(float overshootX, float overshootY) { NDalicPINVOKE.ScrollView_SetMaxOvershoot(swigCPtr, overshootX, overshootY); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Sets Snap Overshoot animation's AlphaFunction. + /// + /// Easing alpha function of the overshoot snap animation. + /// 3 public void SetSnapOvershootAlphaFunction(AlphaFunction alpha) { NDalicPINVOKE.ScrollView_SetSnapOvershootAlphaFunction(swigCPtr, AlphaFunction.getCPtr(alpha)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Sets Snap Overshoot animation's Duration. + /// + /// duration The duration of the overshoot snap animation. + /// 3 public void SetSnapOvershootDuration(float duration) { NDalicPINVOKE.ScrollView_SetSnapOvershootDuration(swigCPtr, duration); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Enables or Disables Actor Auto-Snap mode.
+ /// 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). + ///
+ /// Enables (true), or disables (false) Actor AutoSnap. + /// 3 public void SetViewAutoSnap(bool enable) { NDalicPINVOKE.ScrollView_SetActorAutoSnap(swigCPtr, enable); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Enables or Disables Wrap mode for ScrollView contents.
+ /// When enabled, the ScrollView contents are wrapped over the X/Y Domain. + ///
+ /// Enables (true), or disables (false) Wrap Mode. + /// 3 public void SetWrapMode(bool enable) { NDalicPINVOKE.ScrollView_SetWrapMode(swigCPtr, enable); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Gets the current distance needed to scroll for ScrollUpdatedSignal to be emitted. + /// + /// Current scroll update distance. + /// 3 public int GetScrollUpdateDistance() { int ret = NDalicPINVOKE.ScrollView_GetScrollUpdateDistance(swigCPtr); @@ -425,12 +977,24 @@ namespace Tizen.NUI return ret; } + /// + /// Sets the distance needed to scroll for ScrollUpdatedSignal to be emitted.
+ /// The scroll update distance tells ScrollView how far to move before ScrollUpdatedSignal the informs application.
+ /// Each time the ScrollView crosses this distance the signal will be emitted.
+ ///
+ /// The distance for ScrollView to move before emitting update signal. + /// 3 public void SetScrollUpdateDistance(int distance) { NDalicPINVOKE.ScrollView_SetScrollUpdateDistance(swigCPtr, distance); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Returns state of Axis Auto Lock mode. + /// + /// Whether Axis Auto Lock mode has been enabled or not. + /// 3 public bool GetAxisAutoLock() { bool ret = NDalicPINVOKE.ScrollView_GetAxisAutoLock(swigCPtr); @@ -438,12 +1002,25 @@ namespace Tizen.NUI return ret; } + /// + /// Enables or Disables Axis Auto Lock mode for panning within the ScrollView.
+ /// 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. + ///
+ /// Enables (true), or disables (false) AxisAutoLock mode. + /// 3 public void SetAxisAutoLock(bool enable) { NDalicPINVOKE.ScrollView_SetAxisAutoLock(swigCPtr, enable); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Gets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis. + /// + /// The gradient, a value between 0.0 and 1.0f. + /// 3 public float GetAxisAutoLockGradient() { float ret = NDalicPINVOKE.ScrollView_GetAxisAutoLockGradient(swigCPtr); @@ -451,12 +1028,24 @@ namespace Tizen.NUI return ret; } + /// + /// Sets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.
+ /// By default, this is 0.36 (0.36:1) which means angles less than 20 degrees to an axis will lock to that axis.
+ ///
+ /// gradient A value between 0.0 and 1.0 (auto-lock for all angles). + /// 3 public void SetAxisAutoLockGradient(float gradient) { NDalicPINVOKE.ScrollView_SetAxisAutoLockGradient(swigCPtr, gradient); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// 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 ) + /// + /// Friction coefficient is returned. + /// 3 public float GetFrictionCoefficient() { float ret = NDalicPINVOKE.ScrollView_GetFrictionCoefficient(swigCPtr); @@ -464,12 +1053,23 @@ namespace Tizen.NUI return ret; } + /// + /// Sets the friction coefficient for ScrollView when flicking.
+ ///
+ /// Friction coefficient must be greater than 0.0 (default = 1.0). + /// 3 public void SetFrictionCoefficient(float friction) { NDalicPINVOKE.ScrollView_SetFrictionCoefficient(swigCPtr, friction); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Gets the flick speed coefficient for ScrollView when flicking in free panning mode.
+ /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at which to move the scrolling area. + ///
+ /// The flick speed coefficient is returned. + /// 3 public float GetFlickSpeedCoefficient() { float ret = NDalicPINVOKE.ScrollView_GetFlickSpeedCoefficient(swigCPtr); @@ -477,12 +1077,24 @@ namespace Tizen.NUI return ret; } + /// + /// Sets the flick speed coefficient for ScrollView when flicking in free panning mode.
+ /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at + /// which to move the scrolling area.
+ ///
+ /// The flick speed coefficient (default = 1.0). + /// 3 public void SetFlickSpeedCoefficient(float speed) { NDalicPINVOKE.ScrollView_SetFlickSpeedCoefficient(swigCPtr, speed); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Gets the minimum pan distance required for a flick gesture in pixels.
+ ///
+ /// Minimum pan distance vector with separate x and y distance. + /// 3 public Vector2 GetMinimumDistanceForFlick() { Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetMinimumDistanceForFlick(swigCPtr), true); @@ -490,12 +1102,23 @@ namespace Tizen.NUI return ret; } + /// + /// Sets the minimum pan distance required for a flick in pixels.
+ /// 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. + ///
+ /// The flick speed coefficient (default = 1.0). + /// 3 public void SetMinimumDistanceForFlick(Vector2 distance) { NDalicPINVOKE.ScrollView_SetMinimumDistanceForFlick(swigCPtr, Vector2.getCPtr(distance)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Returns the minimum pan speed required for a flick gesture in pixels per second. + /// + /// Minimum pan speed. + /// 3 public float GetMinimumSpeedForFlick() { float ret = NDalicPINVOKE.ScrollView_GetMinimumSpeedForFlick(swigCPtr); @@ -503,12 +1126,23 @@ namespace Tizen.NUI return ret; } + /// + /// Sets the minimum pan speed required for a flick in pixels per second.
+ ///
+ /// The minimum pan speed for a flick. + /// 3 public void SetMinimumSpeedForFlick(float speed) { NDalicPINVOKE.ScrollView_SetMinimumSpeedForFlick(swigCPtr, speed); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Gets the maximum flick speed setting for ScrollView when flicking in free panning mode.
+ /// This is a value in stage-diagonals per second. + ///
+ /// Maximum flick speed is returned. + /// 3 public float GetMaxFlickSpeed() { float ret = NDalicPINVOKE.ScrollView_GetMaxFlickSpeed(swigCPtr); @@ -516,12 +1150,23 @@ namespace Tizen.NUI return ret; } + /// + /// Sets the maximum flick speed for the ScrollView when flicking in free panning mode.
+ /// This is a value in stage-diagonals per second. stage-diagonal = Length( stage.width, stage.height ).
+ ///
+ /// Maximum flick speed (default = 3.0). + /// 3 public void SetMaxFlickSpeed(float speed) { NDalicPINVOKE.ScrollView_SetMaxFlickSpeed(swigCPtr, speed); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Gets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.
+ ///
+ /// The step of scroll distance(pixel) in X and Y axes. + /// 3 public Vector2 GetWheelScrollDistanceStep() { Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetWheelScrollDistanceStep(swigCPtr), true); @@ -529,12 +1174,22 @@ namespace Tizen.NUI return ret; } + /// + /// Sets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.
+ ///
+ /// step The step of scroll distance(pixel) in X and Y axes. + /// 3 public void SetWheelScrollDistanceStep(Vector2 step) { NDalicPINVOKE.ScrollView_SetWheelScrollDistanceStep(swigCPtr, Vector2.getCPtr(step)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Retrieves current scroll position.
+ ///
+ /// The current scroll position. + /// 3 public Vector2 GetCurrentScrollPosition() { Vector2 ret = new Vector2(NDalicPINVOKE.ScrollView_GetCurrentScrollPosition(swigCPtr), true); @@ -542,6 +1197,12 @@ namespace Tizen.NUI return ret; } + /// + /// Retrieves current scroll page based on ScrollView dimensions being the size of one page, and all pages laid out in
+ /// a grid fashion, increasing from left to right until the end of the X-domain. + ///
+ /// The current scroll position. + /// 3 public uint GetCurrentPage() { uint ret = NDalicPINVOKE.ScrollView_GetCurrentPage(swigCPtr); @@ -549,66 +1210,136 @@ namespace Tizen.NUI return ret; } + /// + /// Scrolls View to position specified (contents will scroll to this position). + /// + /// The position to scroll to. + /// 3 public void ScrollTo(Vector2 position) { NDalicPINVOKE.ScrollView_ScrollTo__SWIG_0(swigCPtr, Vector2.getCPtr(position)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Scrolls View to position specified (contents will scroll to this position). + /// + /// The position to scroll to. + /// The duration of the animation in seconds. + /// 3 public void ScrollTo(Vector2 position, float duration) { NDalicPINVOKE.ScrollView_ScrollTo__SWIG_1(swigCPtr, Vector2.getCPtr(position), duration); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Scrolls View to position specified (contents will scroll to this position). + /// + /// The position to scroll to. + /// The duration of the animation in seconds. + /// The alpha function to use. + /// 3 public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha) { NDalicPINVOKE.ScrollView_ScrollTo__SWIG_2(swigCPtr, Vector2.getCPtr(position), duration, AlphaFunction.getCPtr(alpha)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Scrolls View to position specified (contents will scroll to this position). + /// + /// The position to scroll to. + /// The duration of the animation in seconds. + /// Whether to bias scrolling to left or right. + /// Whether to bias scrolling to top or bottom. + /// 3 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); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Scrolls View to position specified (contents will scroll to this position). + /// + /// The position to scroll to. + /// The duration of the animation in seconds. + /// Alpha function to use. + /// Whether to bias scrolling to left or right. + /// Whether to bias scrolling to top or bottom. + /// 3 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); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Scrolls View to position specified (contents will scroll to this position). + /// + /// The page to scroll to. + /// 3 public void ScrollTo(uint page) { NDalicPINVOKE.ScrollView_ScrollTo__SWIG_5(swigCPtr, page); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Scrolls View to position specified (contents will scroll to this position). + /// + /// The page to scroll to. + /// The duration of the animation in seconds. + /// 3 public void ScrollTo(uint page, float duration) { NDalicPINVOKE.ScrollView_ScrollTo__SWIG_6(swigCPtr, page, duration); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Scrolls View to position specified (contents will scroll to this position). + /// + /// The page to scroll to. + /// The duration of the animation in seconds. + /// Whether to bias scrolling to left or right. + /// 3 public void ScrollTo(uint page, float duration, DirectionBias bias) { NDalicPINVOKE.ScrollView_ScrollTo__SWIG_7(swigCPtr, page, duration, (int)bias); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Scrolls View to position specified (contents will scroll to this position). + /// + /// The view to center in on (via Scrolling). + /// 3 public void ScrollTo(View view) { NDalicPINVOKE.ScrollView_ScrollTo__SWIG_8(swigCPtr, View.getCPtr(view)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Scrolls View to position specified (contents will scroll to this position). + /// + /// The view to center in on (via Scrolling). + /// The duration of the animation in seconds. + /// 3 public void ScrollTo(View view, float duration) { NDalicPINVOKE.ScrollView_ScrollTo__SWIG_9(swigCPtr, View.getCPtr(view), duration); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Scrolls View to the nearest snap points as specified by the Rulers.
+ /// If already at snap points, then will return false, and not scroll.
+ ///
+ /// True if Snapping necessary. + /// 3 public bool ScrollToSnapPoint() { bool ret = NDalicPINVOKE.ScrollView_ScrollToSnapPoint(swigCPtr); @@ -622,48 +1353,90 @@ namespace Tizen.NUI if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Applies Effect to ScrollView. + /// + /// The effect to apply to scroll view. + /// 3 public void ApplyEffect(ScrollViewEffect effect) { NDalicPINVOKE.ScrollView_ApplyEffect(swigCPtr, ScrollViewEffect.getCPtr(effect)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Removes Effect from ScrollView. + /// + /// The effect to remove. + /// 3 public void RemoveEffect(ScrollViewEffect effect) { NDalicPINVOKE.ScrollView_RemoveEffect(swigCPtr, ScrollViewEffect.getCPtr(effect)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Remove All Effects from ScrollView. + /// + /// 3 public void RemoveAllEffects() { NDalicPINVOKE.ScrollView_RemoveAllEffects(swigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Binds view to this ScrollView. + /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties. + /// + /// The view to add to this ScrollView. + /// 3 public void BindView(View child) { NDalicPINVOKE.ScrollView_BindActor(swigCPtr, View.getCPtr(child)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Unbinds view to this ScrollView. + /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties. + /// + /// The view to remove to this ScrollView. + /// 3 public void UnbindView(View child) { NDalicPINVOKE.ScrollView_UnbindActor(swigCPtr, View.getCPtr(child)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Allows the user to constrain the scroll view in a particular direction. + /// + /// The axis to constrain the scroll-view to. + /// The threshold to apply around the axis. + /// 3 public void SetScrollingDirection(Radian direction, Radian threshold) { NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_0(swigCPtr, Radian.getCPtr(direction), Radian.getCPtr(threshold)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Allows the user to constrain the scroll view in a particular direction. + /// + /// The axis to constrain the scroll-view to. + /// 3 public void SetScrollingDirection(Radian direction) { NDalicPINVOKE.ScrollView_SetScrollingDirection__SWIG_1(swigCPtr, Radian.getCPtr(direction)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Removes a direction constraint from the scroll view. + /// + /// The axis to constrain the scroll-view to. + /// 3 public void RemoveScrollingDirection(Radian direction) { NDalicPINVOKE.ScrollView_RemoveScrollingDirection(swigCPtr, Radian.getCPtr(direction)); @@ -677,240 +1450,292 @@ namespace Tizen.NUI return ret; } + /// + /// Sets and Gets WrapEnabled property. + /// + /// 3 public bool WrapEnabled { get { - bool temp = false; - GetProperty(ScrollView.Property.WRAP_ENABLED).Get(out temp); - return temp; + return (bool)GetValue(WrapEnabledProperty); } set { - SetProperty(ScrollView.Property.WRAP_ENABLED, new Tizen.NUI.PropertyValue(value)); + SetValue(WrapEnabledProperty, value); } } + + /// + /// Sets and Gets PanningEnabled property. + /// + /// 3 public bool PanningEnabled { get { - bool temp = false; - GetProperty(ScrollView.Property.PANNING_ENABLED).Get(out temp); - return temp; + return (bool)GetValue(PanningEnabledProperty); } set { - SetProperty(ScrollView.Property.PANNING_ENABLED, new Tizen.NUI.PropertyValue(value)); + SetValue(PanningEnabledProperty, value); } } + + /// + /// Sets and Gets AxisAutoLockEnabled property. + /// + /// 3 public bool AxisAutoLockEnabled { get { - bool temp = false; - GetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED).Get(out temp); - return temp; + return (bool)GetValue(AxisAutoLockEnabledProperty); } set { - SetProperty(ScrollView.Property.AXIS_AUTO_LOCK_ENABLED, new Tizen.NUI.PropertyValue(value)); + SetValue(AxisAutoLockEnabledProperty, value); } } + + /// + /// Sets and Gets WheelScrollDistanceStep property. + /// + /// 3 public Vector2 WheelScrollDistanceStep { get { - Vector2 temp = new Vector2(0.0f, 0.0f); - GetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get(temp); - return temp; + return (Vector2)GetValue(WheelScrollDistanceStepProperty); } set { - SetProperty(ScrollView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Tizen.NUI.PropertyValue(value)); + SetValue(WheelScrollDistanceStepProperty, value); } } + + /// + /// Sets and Gets ScrollPosition property. + /// + /// 3 public Vector2 ScrollPosition { get { - Vector2 temp = new Vector2(0.0f, 0.0f); - GetProperty(ScrollView.Property.SCROLL_POSITION).Get(temp); - return temp; + return (Vector2)GetValue(ScrollPositionProperty); } set { - SetProperty(ScrollView.Property.SCROLL_POSITION, new Tizen.NUI.PropertyValue(value)); + SetValue(ScrollPositionProperty, value); } } + + /// + /// Sets and Gets ScrollPrePosition property. + /// + /// 3 public Vector2 ScrollPrePosition { get { - Vector2 temp = new Vector2(0.0f, 0.0f); - GetProperty(ScrollView.Property.SCROLL_PRE_POSITION).Get(temp); - return temp; + return (Vector2)GetValue(ScrollPrePositionProperty); } set { - SetProperty(ScrollView.Property.SCROLL_PRE_POSITION, new Tizen.NUI.PropertyValue(value)); + SetValue(ScrollPrePositionProperty, value); } } + + /// + /// Sets and Gets ScrollPrePositionMax property. + /// + /// 3 public Vector2 ScrollPrePositionMax { get { - Vector2 temp = new Vector2(0.0f, 0.0f); - GetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX).Get(temp); - return temp; + return (Vector2)GetValue(ScrollPrePositionMaxProperty); } set { - SetProperty(ScrollView.Property.SCROLL_PRE_POSITION_MAX, new Tizen.NUI.PropertyValue(value)); + SetValue(ScrollPrePositionMaxProperty, value); } } + + /// + /// Sets and Gets OvershootX property. + /// + /// 3 public float OvershootX { get { - float temp = 0.0f; - GetProperty(ScrollView.Property.OVERSHOOT_X).Get(out temp); - return temp; + return (float)GetValue(OvershootXProperty); } set { - SetProperty(ScrollView.Property.OVERSHOOT_X, new Tizen.NUI.PropertyValue(value)); + SetValue(OvershootXProperty, value); } } + + /// + /// Sets and Gets OvershootY property. + /// + /// 3 public float OvershootY { get { - float temp = 0.0f; - GetProperty(ScrollView.Property.OVERSHOOT_Y).Get(out temp); - return temp; + return (float)GetValue(OvershootYProperty); } set { - SetProperty(ScrollView.Property.OVERSHOOT_Y, new Tizen.NUI.PropertyValue(value)); + SetValue(OvershootYProperty, value); } } + + /// + /// Sets and Gets ScrollFinal property. + /// + /// 3 public Vector2 ScrollFinal { get { - Vector2 temp = new Vector2(0.0f, 0.0f); - GetProperty(ScrollView.Property.SCROLL_FINAL).Get(temp); - return temp; + return (Vector2)GetValue(ScrollFinalProperty); } set { - SetProperty(ScrollView.Property.SCROLL_FINAL, new Tizen.NUI.PropertyValue(value)); + SetValue(ScrollFinalProperty, value); } } + + /// + /// Sets and Gets Wrap property. + /// + /// 3 public bool Wrap { get { - bool temp = false; - GetProperty(ScrollView.Property.WRAP).Get(out temp); - return temp; + return (bool)GetValue(WrapProperty); } set { - SetProperty(ScrollView.Property.WRAP, new Tizen.NUI.PropertyValue(value)); + SetValue(WrapProperty, value); } } + + /// + /// Sets and Gets Panning property. + /// + /// 3 public bool Panning { get { - bool temp = false; - GetProperty(ScrollView.Property.PANNING).Get(out temp); - return temp; + return (bool)GetValue(PanningProperty); } set { - SetProperty(ScrollView.Property.PANNING, new Tizen.NUI.PropertyValue(value)); + SetValue(PanningProperty, value); } } + + /// + /// Sets and Gets Scrolling property. + /// + /// 3 public bool Scrolling { get { - bool temp = false; - GetProperty(ScrollView.Property.SCROLLING).Get(out temp); - return temp; + return (bool)GetValue(ScrollingProperty); } set { - SetProperty(ScrollView.Property.SCROLLING, new Tizen.NUI.PropertyValue(value)); + SetValue(ScrollingProperty, value); } } + + /// + /// Sets and Gets ScrollDomainSize property. + /// + /// 3 public Vector2 ScrollDomainSize { get { - Vector2 temp = new Vector2(0.0f, 0.0f); - GetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE).Get(temp); - return temp; + return (Vector2)GetValue(ScrollDomainSizeProperty); } set { - SetProperty(ScrollView.Property.SCROLL_DOMAIN_SIZE, new Tizen.NUI.PropertyValue(value)); + SetValue(ScrollDomainSizeProperty, value); } } + + /// + /// Sets and Gets ScrollDomainOffset property. + /// + /// 3 public Vector2 ScrollDomainOffset { get { - Vector2 temp = new Vector2(0.0f, 0.0f); - GetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET).Get(temp); - return temp; + return (Vector2)GetValue(ScrollDomainOffsetProperty); } set { - SetProperty(ScrollView.Property.SCROLL_DOMAIN_OFFSET, new Tizen.NUI.PropertyValue(value)); + SetValue(ScrollDomainOffsetProperty, value); } } + + /// + /// Sets and Gets ScrollPositionDelta property. + /// + /// 3 public Vector2 ScrollPositionDelta { get { - Vector2 temp = new Vector2(0.0f, 0.0f); - GetProperty(ScrollView.Property.SCROLL_POSITION_DELTA).Get(temp); - return temp; + return (Vector2)GetValue(ScrollPositionDeltaProperty); } set { - SetProperty(ScrollView.Property.SCROLL_POSITION_DELTA, new Tizen.NUI.PropertyValue(value)); + SetValue(ScrollPositionDeltaProperty, value); } } + + /// + /// Sets and Gets StartPagePosition property. + /// + /// 3 public Vector3 StartPagePosition { get { - Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f); - GetProperty(ScrollView.Property.START_PAGE_POSITION).Get(temp); - return temp; + return (Vector3)GetValue(StartPagePositionProperty); } set { - SetProperty(ScrollView.Property.START_PAGE_POSITION, new Tizen.NUI.PropertyValue(value)); + SetValue(StartPagePositionProperty, value); } } + + /// + /// Sets and Gets ScrollMode property. + /// + /// 3 public PropertyMap ScrollMode { get { - PropertyValue value = GetProperty( ScrollView.Property.SCROLL_MODE ); - PropertyMap map = new PropertyMap(); - value.Get( map ); - return map; + return (PropertyMap)GetValue(ScrollModeProperty); } set { - SetProperty( ScrollView.Property.SCROLL_MODE, new PropertyValue( value ) ); + SetValue(ScrollModeProperty, value); } }