From: dongsug.song Date: Tue, 13 Aug 2024 11:43:01 +0000 (+0900) Subject: [NUI] Deprecate Scrollable and ScrollViewEffect classes X-Git-Tag: submit/tizen/20240827.074151~1^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5df739825a85163ef5ea532bcb11c32d106783e;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Deprecate Scrollable and ScrollViewEffect classes --- diff --git a/src/Tizen.NUI/src/internal/Common/ScrollViewSnapStartedSignal.cs b/src/Tizen.NUI/src/internal/Common/ScrollViewSnapStartedSignal.cs deleted file mode 100644 index f33a4afde..000000000 --- a/src/Tizen.NUI/src/internal/Common/ScrollViewSnapStartedSignal.cs +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright(c) 2021 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. - * - */ - -namespace Tizen.NUI -{ - internal class ScrollViewSnapStartedSignal : Disposable - { - internal ScrollViewSnapStartedSignal(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) - { - } - - protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) - { - Interop.ScrollView.DeleteScrollViewSnapStartedSignal(swigCPtr); - } - - public bool Empty() - { - bool ret = Interop.ScrollView.ScrollViewSnapStartedSignalEmpty(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public uint GetConnectionCount() - { - uint ret = Interop.ScrollView.ScrollViewSnapStartedSignalGetConnectionCount(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public void Connect(System.Delegate func) - { - System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); - { - Interop.ScrollView.ScrollViewSnapStartedSignalConnect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } - - public void Disconnect(System.Delegate func) - { - System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); - { - Interop.ScrollView.ScrollViewSnapStartedSignalDisconnect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } - - public void Emit(ScrollView.SnapEvent arg) - { - Interop.ScrollView.ScrollViewSnapStartedSignalEmit(SwigCPtr, ScrollView.SnapEvent.getCPtr(arg)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public ScrollViewSnapStartedSignal() : this(Interop.ScrollView.NewScrollViewSnapStartedSignal(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } -} diff --git a/src/Tizen.NUI/src/internal/Common/SnapType.cs b/src/Tizen.NUI/src/internal/Common/SnapType.cs deleted file mode 100755 index 9ecf44d95..000000000 --- a/src/Tizen.NUI/src/internal/Common/SnapType.cs +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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. - * - */ - -namespace Tizen.NUI -{ - internal enum SnapType - { - Snap, - Flick - } -} diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.CubeTransitionEffect.cs b/src/Tizen.NUI/src/internal/Interop/Interop.CubeTransitionEffect.cs deleted file mode 100755 index da41cc548..000000000 --- a/src/Tizen.NUI/src/internal/Interop/Interop.CubeTransitionEffect.cs +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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. - * - */ - -namespace Tizen.NUI -{ - internal static partial class Interop - { - internal static partial class CubeTransitionEffect - { - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_CubeTransitionEffect")] - public static extern global::System.IntPtr NewCubeTransitionEffect(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_CubeTransitionEffect")] - public static extern void DeleteCubeTransitionEffect(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_SetTransitionDuration")] - public static extern void SetTransitionDuration(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_GetTransitionDuration")] - public static extern float GetTransitionDuration(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_SetCubeDisplacement")] - public static extern void SetCubeDisplacement(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_GetCubeDisplacement")] - public static extern float GetCubeDisplacement(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_IsTransitioning")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool IsTransitioning(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_SetCurrentTexture")] - public static extern void SetCurrentTexture(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_SetTargetTexture")] - public static extern void SetTargetTexture(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_StartTransition__SWIG1")] - public static extern void StartTransitionSwig1(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_StartTransition__SWIG2")] - public static extern void StartTransitionSwig2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_PauseTransition")] - public static extern void PauseTransition(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_ResumeTransition")] - public static extern void ResumeTransition(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_StopTransition")] - public static extern void StopTransition(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_TransitionCompletedSignal")] - public static extern global::System.IntPtr TransitionCompletedSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffectSignal_Empty")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool CubeTransitionEffectSignalEmpty(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffectSignal_GetConnectionCount")] - public static extern uint CubeTransitionEffectSignalGetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffectSignal_Connect")] - public static extern void CubeTransitionEffectSignalConnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffectSignal_Disconnect")] - public static extern void CubeTransitionEffectSignalDisconnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_CubeTransitionEffectSignal")] - public static extern global::System.IntPtr NewCubeTransitionEffectSignal(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_CubeTransitionEffectSignal")] - public static extern void DeleteCubeTransitionEffectSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - } - - internal static partial class CubeTransitionWaveEffect - { - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionWaveEffect_New")] - public static extern global::System.IntPtr New(uint numRows, uint numColumns); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_CubeTransitionWaveEffect")] - public static extern void DeleteCubeTransitionWaveEffect(global::System.Runtime.InteropServices.HandleRef jarg1); - } - - internal static partial class CubeTransitionCrossEffect - { - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionCrossEffect_New")] - public static extern global::System.IntPtr New(uint numRows, uint numColumns); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_CubeTransitionCrossEffect")] - public static extern void DeleteCubeTransitionCrossEffect(global::System.Runtime.InteropServices.HandleRef jarg1); - } - internal static partial class CubeTransitionFoldEffect - { - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionFoldEffect_New")] - public static extern global::System.IntPtr New(uint numRows, uint numColumns); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_CubeTransitionFoldEffect")] - public static extern void DeleteCubeTransitionFoldEffect(global::System.Runtime.InteropServices.HandleRef jarg1); - } - } -} diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.ItemView.cs b/src/Tizen.NUI/src/internal/Interop/Interop.ItemView.cs deleted file mode 100755 index 542ab651c..000000000 --- a/src/Tizen.NUI/src/internal/Interop/Interop.ItemView.cs +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright(c) 2021 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. - * - */ - -namespace Tizen.NUI -{ - internal static partial class Interop - { - internal static partial class ItemView - { - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_MINIMUM_SWIPE_SPEED_get")] - public static extern int MinimumSwipeSpeedGet(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_MINIMUM_SWIPE_DISTANCE_get")] - public static extern int MinimumSwipeDistanceGet(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_WHEEL_SCROLL_DISTANCE_STEP_get")] - public static extern int WheelScrollDistanceStepGet(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_SNAP_TO_ITEM_ENABLED_get")] - public static extern int SnapToItemEnabledGet(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_REFRESH_INTERVAL_get")] - public static extern int RefreshIntervalGet(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_LAYOUT_POSITION_get")] - public static extern int LayoutPositionGet(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_SCROLL_SPEED_get")] - public static extern int ScrollSpeedGet(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_OVERSHOOT_get")] - public static extern int OvershootGet(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_SCROLL_DIRECTION_get")] - public static extern int ScrollDirectionGet(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_LAYOUT_ORIENTATION_get")] - public static extern int LayoutOrientationGet(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_SCROLL_CONTENT_SIZE_get")] - public static extern int ScrollContentSizeGet(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_ItemView")] - public static extern void DeleteItemView(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_New")] - public static extern global::System.IntPtr New(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetLayoutCount")] - public static extern uint GetLayoutCount(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_AddLayout")] - public static extern void AddLayout(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_RemoveLayout")] - public static extern void RemoveLayout(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetLayout")] - public static extern global::System.IntPtr GetLayout(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetActiveLayout")] - public static extern global::System.IntPtr GetActiveLayout(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetCurrentLayoutPosition")] - public static extern float GetCurrentLayoutPosition(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_ActivateLayout")] - public static extern void ActivateLayout(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, float jarg4); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_DeactivateCurrentLayout")] - public static extern void DeactivateCurrentLayout(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_SetAnchoring")] - public static extern void SetAnchoring(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetAnchoring")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool GetAnchoring(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_SetAnchoringDuration")] - public static extern void SetAnchoringDuration(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetAnchoringDuration")] - public static extern float GetAnchoringDuration(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_ScrollToItem")] - public static extern void ScrollToItem(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, float jarg3); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Refresh")] - public static extern void Refresh(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetItem")] - public static extern global::System.IntPtr GetItem(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetItemId")] - public static extern uint GetItemId(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_InsertItem")] - public static extern void InsertItem(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, float jarg3); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_InsertItems")] - public static extern void InsertItems(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, float jarg3); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_RemoveItem")] - public static extern void RemoveItem(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, float jarg3); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_RemoveItems")] - public static extern void RemoveItems(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, float jarg3); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_ReplaceItem")] - public static extern void ReplaceItem(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, float jarg3); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_ReplaceItems")] - public static extern void ReplaceItems(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, float jarg3); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_SetItemsParentOrigin")] - public static extern void SetItemsParentOrigin(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetItemsParentOrigin")] - public static extern global::System.IntPtr GetItemsParentOrigin(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_SetItemsAnchorPoint")] - public static extern void SetItemsAnchorPoint(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetItemsAnchorPoint")] - public static extern global::System.IntPtr GetItemsAnchorPoint(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetItemsRange")] - public static extern void GetItemsRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_LayoutActivatedSignal")] - public static extern global::System.IntPtr LayoutActivatedSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_ItemView_Property_LAYOUT_get")] - public static extern int LayoutGet(); - } - } -} diff --git a/src/Tizen.NUI/src/internal/Utility/ItemView.cs b/src/Tizen.NUI/src/internal/Utility/ItemView.cs deleted file mode 100755 index 4226c0442..000000000 --- a/src/Tizen.NUI/src/internal/Utility/ItemView.cs +++ /dev/null @@ -1,921 +0,0 @@ -/* - * Copyright(c) 2018 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.Diagnostics.CodeAnalysis; -using System.Runtime.InteropServices; -using Tizen.NUI.BaseComponents; -using System.ComponentModel; -using Tizen.NUI.Binding; - -namespace Tizen.NUI -{ - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public partial class ItemView : Scrollable - { - static ItemView() - { - if (NUIApplication.IsUsingXaml) - { - LayoutProperty = BindableProperty.Create(nameof(Layout), typeof(Tizen.NUI.PropertyArray), typeof(ItemView), null, - propertyChanged: SetInternalLayoutProperty, defaultValueCreator: GetInternalLayoutProperty); - - MinimumSwipeSpeedProperty = BindableProperty.Create(nameof(MinimumSwipeSpeed), typeof(float), typeof(ItemView), default(float), - propertyChanged: SetInternalMinimumSwipeSpeedProperty, defaultValueCreator: GetInternalMinimumSwipeSpeedProperty); - - MinimumSwipeDistanceProperty = BindableProperty.Create(nameof(MinimumSwipeDistance), typeof(float), typeof(ItemView), default(float), - propertyChanged: SetInternalMinimumSwipeDistanceProperty, defaultValueCreator: GetInternalMinimumSwipeDistanceProperty); - - WheelScrollDistanceStepProperty = BindableProperty.Create(nameof(WheelScrollDistanceStep), typeof(float), typeof(ItemView), default(float), - propertyChanged: SetInternalWheelScrollDistanceStepProperty, defaultValueCreator: GetInternalWheelScrollDistanceStepProperty); - - SnapToItemEnabledProperty = BindableProperty.Create(nameof(SnapToItemEnabled), typeof(bool), typeof(ItemView), true, - propertyChanged: SetInternalSnapToItemEnabledProperty, defaultValueCreator: GetInternalSnapToItemEnabledProperty); - - RefreshIntervalProperty = BindableProperty.Create(nameof(RefreshInterval), typeof(float), typeof(ItemView), default(float), - propertyChanged: SetInternalRefreshIntervalProperty, defaultValueCreator: GetInternalRefreshIntervalProperty); - - LayoutPositionProperty = BindableProperty.Create(nameof(LayoutPosition), typeof(float), typeof(ItemView), default(float), - propertyChanged: SetInternalLayoutPositionProperty, defaultValueCreator: GetInternalLayoutPositionProperty); - - ScrollSpeedProperty = BindableProperty.Create(nameof(ScrollSpeed), typeof(float), typeof(ItemView), default(float), - propertyChanged: SetInternalScrollSpeedProperty, defaultValueCreator: GetInternalScrollSpeedProperty); - - OvershootProperty = BindableProperty.Create(nameof(Overshoot), typeof(float), typeof(ItemView), default(float), - propertyChanged: SetInternalOvershootProperty, defaultValueCreator: GetInternalOvershootProperty); - - ScrollDirectionProperty = BindableProperty.Create(nameof(ScrollDirection), typeof(Tizen.NUI.Vector2), typeof(ItemView), null, - propertyChanged: SetInternalScrollDirectionProperty, defaultValueCreator: GetInternalScrollDirectionProperty); - - LayoutOrientationProperty = BindableProperty.Create(nameof(LayoutOrientation), typeof(int), typeof(ItemView), 0, - propertyChanged: SetInternalLayoutOrientationProperty, defaultValueCreator: GetInternalLayoutOrientationProperty); - - ScrollContentSizeProperty = BindableProperty.Create(nameof(ScrollContentSize), typeof(float), typeof(ItemView), default(float), - propertyChanged: SetInternalScrollContentSizeProperty, defaultValueCreator: GetInternalScrollContentSizeProperty); - } - } - - internal ItemView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) - { - } - - - /// This will be public opened. - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) - { - Interop.ItemView.DeleteItemView(swigCPtr); - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public new Tizen.NUI.PropertyArray Layout - { - get - { - if (NUIApplication.IsUsingXaml) - { - return GetValue(LayoutProperty) as PropertyArray; - } - else - { - return GetInternalLayoutProperty(this) as PropertyArray; - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(LayoutProperty, value); - } - else - { - SetInternalLayoutProperty(this, null, value); - } - NotifyPropertyChanged(); - } - } - - private Tizen.NUI.PropertyArray InternalLayout - { - get - { - Tizen.NUI.PropertyArray temp = new Tizen.NUI.PropertyArray(); - PropertyValue layout = GetProperty(ItemView.Property.LAYOUT); - layout?.Get(temp); - layout?.Dispose(); - return temp; - } - set - { - PropertyValue setValue = new Tizen.NUI.PropertyValue(value); - SetProperty(ItemView.Property.LAYOUT, setValue); - setValue.Dispose(); - } - } - - /// - /// Property for ItemView. This is internal use only, so not recommended to use. Need to use ItemView's properties. - /// - internal new class Property - { - internal static readonly int LAYOUT = Interop.ItemView.LayoutGet(); - internal static readonly int MinimumSwipeSpeed = Interop.ItemView.MinimumSwipeSpeedGet(); - internal static readonly int MinimumSwipeDistance = Interop.ItemView.MinimumSwipeDistanceGet(); - internal static readonly int WheelScrollDistanceStep = Interop.ItemView.WheelScrollDistanceStepGet(); - internal static readonly int SnapToItemEnabled = Interop.ItemView.SnapToItemEnabledGet(); - internal static readonly int RefreshInterval = Interop.ItemView.RefreshIntervalGet(); - internal static readonly int LayoutPosition = Interop.ItemView.LayoutPositionGet(); - internal static readonly int ScrollSpeed = Interop.ItemView.ScrollSpeedGet(); - internal static readonly int OVERSHOOT = Interop.ItemView.OvershootGet(); - internal static readonly int ScrollDirection = Interop.ItemView.ScrollDirectionGet(); - internal static readonly int LayoutOrientation = Interop.ItemView.LayoutOrientationGet(); - internal static readonly int ScrollContentSize = Interop.ItemView.ScrollContentSizeGet(); - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public ItemView(ItemFactory factory) : this(Interop.ItemView.New(ItemFactory.getCPtr(factory)), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal static ItemView DownCast(BaseHandle handle) - { - ItemView ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as ItemView; - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public uint GetLayoutCount() - { - uint ret = Interop.ItemView.GetLayoutCount(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// 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 AddLayout(ItemLayout layout) - { - Interop.ItemView.AddLayout(SwigCPtr, ItemLayout.getCPtr(layout)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// 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 RemoveLayout(uint layoutIndex) - { - Interop.ItemView.RemoveLayout(SwigCPtr, layoutIndex); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public new View GetChildAt(uint index) - { - View ret = new View(Interop.ActorInternal.GetChildAt(SwigCPtr, index), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t GetLayout(uint layoutIndex) - { - SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t ret = new SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t(Interop.ItemView.GetLayout(SwigCPtr, layoutIndex)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t GetActiveLayout() - { - SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t ret = new SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t(Interop.ItemView.GetActiveLayout(SwigCPtr)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetCurrentLayoutPosition(uint itemId) - { - float ret = Interop.ItemView.GetCurrentLayoutPosition(SwigCPtr, itemId); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// 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 ActivateLayout(uint layoutIndex, Vector3 targetSize, float durationSeconds) - { - Interop.ItemView.ActivateLayout(SwigCPtr, layoutIndex, Vector3.getCPtr(targetSize), durationSeconds); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// 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 DeactivateCurrentLayout() - { - Interop.ItemView.DeactivateCurrentLayout(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// 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 SetAnchoring(bool enabled) - { - Interop.ItemView.SetAnchoring(SwigCPtr, enabled); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool GetAnchoring() - { - bool ret = Interop.ItemView.GetAnchoring(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// 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 SetAnchoringDuration(float durationSeconds) - { - Interop.ItemView.SetAnchoringDuration(SwigCPtr, durationSeconds); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetAnchoringDuration() - { - float ret = Interop.ItemView.GetAnchoringDuration(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// 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 ScrollToItem(uint itemId, float durationSeconds) - { - Interop.ItemView.ScrollToItem(SwigCPtr, itemId, durationSeconds); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// 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 Refresh() - { - Interop.ItemView.Refresh(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View GetItem(uint itemId) - { - View ret = new View(Interop.ItemView.GetItem(SwigCPtr, itemId), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public uint GetItemId(View view) - { - uint ret = Interop.ItemView.GetItemId(SwigCPtr, View.getCPtr(view)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// 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 InsertItem(Item newItem, float durationSeconds) - { - Interop.ItemView.InsertItem(SwigCPtr, Item.getCPtr(newItem), durationSeconds); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// 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 InsertItems(ItemCollection newItems, float durationSeconds) - { - Interop.ItemView.InsertItems(SwigCPtr, ItemCollection.getCPtr(newItems), durationSeconds); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// 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 RemoveItem(uint itemId, float durationSeconds) - { - Interop.ItemView.RemoveItem(SwigCPtr, itemId, durationSeconds); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// 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 RemoveItems(ItemIdCollection itemIds, float durationSeconds) - { - Interop.ItemView.RemoveItems(SwigCPtr, ItemIdCollection.getCPtr(itemIds), durationSeconds); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// 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 ReplaceItem(Item replacementItem, float durationSeconds) - { - Interop.ItemView.ReplaceItem(SwigCPtr, Item.getCPtr(replacementItem), durationSeconds); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// 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 ReplaceItems(ItemCollection replacementItems, float durationSeconds) - { - Interop.ItemView.ReplaceItems(SwigCPtr, ItemCollection.getCPtr(replacementItems), durationSeconds); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// 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 SetItemsParentOrigin(Vector3 parentOrigin) - { - Interop.ItemView.SetItemsParentOrigin(SwigCPtr, Vector3.getCPtr(parentOrigin)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector3 GetItemsParentOrigin() - { - Vector3 ret = new Vector3(Interop.ItemView.GetItemsParentOrigin(SwigCPtr), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// 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 SetItemsAnchorPoint(Vector3 anchorPoint) - { - Interop.ItemView.SetItemsAnchorPoint(SwigCPtr, Vector3.getCPtr(anchorPoint)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector3 GetItemsAnchorPoint() - { - Vector3 ret = new Vector3(Interop.ItemView.GetItemsAnchorPoint(SwigCPtr), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// 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 GetItemsRange(ItemRange range) - { - Interop.ItemView.GetItemsRange(SwigCPtr, ItemRange.getCPtr(range)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal VoidSignal LayoutActivatedSignal() - { - VoidSignal ret = new VoidSignal(Interop.ItemView.LayoutActivatedSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float MinimumSwipeSpeed - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (float)GetValue(MinimumSwipeSpeedProperty); - } - else - { - return (float)GetInternalMinimumSwipeSpeedProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(MinimumSwipeSpeedProperty, value); - } - else - { - SetInternalMinimumSwipeSpeedProperty(this, null, value); - } - NotifyPropertyChanged(); - } - } - - private float InternalMinimumSwipeSpeed - { - get - { - float returnValue = 0.0f; - PropertyValue minimumSwipeSpeed = GetProperty(ItemView.Property.MinimumSwipeSpeed); - minimumSwipeSpeed?.Get(out returnValue); - minimumSwipeSpeed?.Dispose(); - return returnValue; - } - set - { - PropertyValue setValue = new Tizen.NUI.PropertyValue(value); - SetProperty(ItemView.Property.MinimumSwipeSpeed, setValue); - setValue.Dispose(); - } - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float MinimumSwipeDistance - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (float)GetValue(MinimumSwipeDistanceProperty); - } - else - { - return (float)GetInternalMinimumSwipeDistanceProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(MinimumSwipeDistanceProperty, value); - } - else - { - SetInternalMinimumSwipeDistanceProperty(this, null, value); - } - NotifyPropertyChanged(); - } - } - - private float InternalMinimumSwipeDistance - { - get - { - float returnValue = 0.0f; - PropertyValue minimumSwipDistance = GetProperty(ItemView.Property.MinimumSwipeDistance); - minimumSwipDistance?.Get(out returnValue); - minimumSwipDistance?.Dispose(); - return returnValue; - } - set - { - PropertyValue setValue = new Tizen.NUI.PropertyValue(value); - SetProperty(ItemView.Property.MinimumSwipeDistance, setValue); - setValue.Dispose(); - } - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float WheelScrollDistanceStep - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (float)GetValue(WheelScrollDistanceStepProperty); - } - else - { - return (float)GetInternalWheelScrollDistanceStepProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(WheelScrollDistanceStepProperty, value); - } - else - { - SetInternalWheelScrollDistanceStepProperty(this, null, value); - } - NotifyPropertyChanged(); - } - } - - private float InternalWheelScrollDistanceStep - { - get - { - float returnValue = 0.0f; - PropertyValue wheelScrollDistanceStep = GetProperty(ItemView.Property.WheelScrollDistanceStep); - wheelScrollDistanceStep?.Get(out returnValue); - wheelScrollDistanceStep?.Dispose(); - return returnValue; - } - set - { - PropertyValue setValue = new Tizen.NUI.PropertyValue(value); - SetProperty(ItemView.Property.WheelScrollDistanceStep, setValue); - setValue.Dispose(); - } - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool SnapToItemEnabled - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (bool)GetValue(SnapToItemEnabledProperty); - } - else - { - return (bool)GetInternalSnapToItemEnabledProperty(this); - } - - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(SnapToItemEnabledProperty, value); - } - else - { - SetInternalSnapToItemEnabledProperty(this, null, value); - } - NotifyPropertyChanged(); - } - } - - private bool InternalSnapToItemEnabled - { - get - { - bool returnValue = false; - PropertyValue snapToItemEnabled = GetProperty(ItemView.Property.SnapToItemEnabled); - snapToItemEnabled?.Get(out returnValue); - snapToItemEnabled?.Dispose(); - return returnValue; - } - set - { - PropertyValue setValue = new Tizen.NUI.PropertyValue(value); - SetProperty(ItemView.Property.SnapToItemEnabled, setValue); - setValue.Dispose(); - } - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float RefreshInterval - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (float)GetValue(RefreshIntervalProperty); - } - else - { - return (float)GetInternalRefreshIntervalProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(RefreshIntervalProperty, value); - } - else - { - SetInternalRefreshIntervalProperty(this, null, value); - } - NotifyPropertyChanged(); - } - } - - private float InternalRefreshInterval - { - get - { - float returnValue = 0.0f; - PropertyValue refreshIntervalu = GetProperty(ItemView.Property.RefreshInterval); - refreshIntervalu?.Get(out returnValue); - refreshIntervalu?.Dispose(); - return returnValue; - } - set - { - PropertyValue setValue = new Tizen.NUI.PropertyValue(value); - SetProperty(ItemView.Property.RefreshInterval, setValue); - setValue.Dispose(); - } - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float LayoutPosition - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (float)GetValue(LayoutPositionProperty); - } - else - { - return (float)GetInternalLayoutPositionProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(LayoutPositionProperty, value); - } - else - { - SetInternalLayoutPositionProperty(this, null, value); - } - NotifyPropertyChanged(); - } - } - - private float InternalLayoutPosition - { - get - { - float returnValue = 0.0f; - PropertyValue layoutPosition = GetProperty(ItemView.Property.LayoutPosition); - layoutPosition?.Get(out returnValue); - layoutPosition?.Dispose(); - return returnValue; - } - set - { - PropertyValue setValue = new Tizen.NUI.PropertyValue(value); - SetProperty(ItemView.Property.LayoutPosition, setValue); - setValue.Dispose(); - } - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float ScrollSpeed - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (float)GetValue(ScrollSpeedProperty); - } - else - { - return (float)GetInternalScrollSpeedProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(ScrollSpeedProperty, value); - } - else - { - SetInternalScrollSpeedProperty(this, null, value); - } - NotifyPropertyChanged(); - } - } - - private float InternalScrollSpeed - { - get - { - float returnValue = 0.0f; - PropertyValue scrollSpeed = GetProperty(ItemView.Property.ScrollSpeed); - scrollSpeed?.Get(out returnValue); - scrollSpeed?.Dispose(); - return returnValue; - } - set - { - PropertyValue setValue = new Tizen.NUI.PropertyValue(value); - SetProperty(ItemView.Property.ScrollSpeed, setValue); - setValue.Dispose(); - } - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float Overshoot - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (float)GetValue(OvershootProperty); - } - else - { - return (float)GetInternalOvershootProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(OvershootProperty, value); - } - else - { - SetInternalOvershootProperty(this, null, value); - } - NotifyPropertyChanged(); - } - } - - private float InternalOvershoot - { - get - { - float returnValue = 0.0f; - PropertyValue overShoot = GetProperty(ItemView.Property.OVERSHOOT); - overShoot?.Get(out returnValue); - overShoot?.Dispose(); - return returnValue; - } - set - { - PropertyValue setValue = new Tizen.NUI.PropertyValue(value); - SetProperty(ItemView.Property.OVERSHOOT, setValue); - setValue.Dispose(); - } - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollDirection - { - get - { - if (NUIApplication.IsUsingXaml) - { - return GetValue(ScrollDirectionProperty) as Vector2; - } - else - { - return GetInternalScrollDirectionProperty(this) as Vector2; - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(ScrollDirectionProperty, value); - } - else - { - SetInternalScrollDirectionProperty(this, null, value); - } - NotifyPropertyChanged(); - } - } - - private Vector2 InternalScrollDirection - { - get - { - Vector2 returnValue = new Vector2(0.0f, 0.0f); - PropertyValue scrollDirection = GetProperty(ItemView.Property.ScrollDirection); - scrollDirection?.Get(returnValue); - scrollDirection?.Dispose(); - return returnValue; - } - set - { - PropertyValue setValue = new Tizen.NUI.PropertyValue(value); - SetProperty(ItemView.Property.ScrollDirection, setValue); - setValue.Dispose(); - } - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int LayoutOrientation - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (int)GetValue(LayoutOrientationProperty); - } - else - { - return (int)GetInternalLayoutOrientationProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(LayoutOrientationProperty, value); - } - else - { - SetInternalLayoutOrientationProperty(this, null, value); - } - NotifyPropertyChanged(); - } - } - - private int InternalLayoutOrientation - { - get - { - int returnValue = 0; - PropertyValue layoutOrientation = GetProperty(ItemView.Property.LayoutOrientation); - layoutOrientation?.Get(out returnValue); - layoutOrientation?.Dispose(); - return returnValue; - } - set - { - PropertyValue setValue = new Tizen.NUI.PropertyValue(value); - SetProperty(ItemView.Property.LayoutOrientation, setValue); - setValue.Dispose(); - } - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float ScrollContentSize - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (float)GetValue(ScrollContentSizeProperty); - } - else - { - return (float)GetInternalScrollContentSizeProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(ScrollContentSizeProperty, value); - } - else - { - SetInternalScrollContentSizeProperty(this, null, value); - } - NotifyPropertyChanged(); - } - } - - private float InternalScrollContentSize - { - get - { - float returnValue = 0.0f; - PropertyValue scrollContentSize = GetProperty(ItemView.Property.ScrollContentSize); - scrollContentSize?.Get(out returnValue); - scrollContentSize?.Dispose(); - return returnValue; - } - set - { - PropertyValue setValue = new Tizen.NUI.PropertyValue(value); - SetProperty(ItemView.Property.ScrollContentSize, setValue); - setValue.Dispose(); - } - } - } -} diff --git a/src/Tizen.NUI/src/internal/Utility/ItemViewBindableProperty.cs b/src/Tizen.NUI/src/internal/Utility/ItemViewBindableProperty.cs deleted file mode 100755 index 9694f73fd..000000000 --- a/src/Tizen.NUI/src/internal/Utility/ItemViewBindableProperty.cs +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Copyright(c) 2021 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.ComponentModel; -using Tizen.NUI.Binding; - -namespace Tizen.NUI -{ - public partial class ItemView - { - /// - /// LayoutProperty - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static new BindableProperty LayoutProperty = null; - internal static new void SetInternalLayoutProperty(BindableObject bindable, object oldValue, object newValue) - { - var instance = (Tizen.NUI.ItemView)bindable; - if (newValue != null) - { - instance.InternalLayout = (Tizen.NUI.PropertyArray)newValue; - } - } - internal static new object GetInternalLayoutProperty(BindableObject bindable) - { - var instance = (Tizen.NUI.ItemView)bindable; - return instance.InternalLayout; - } - - /// - /// MinimumSwipeSpeedProperty - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static BindableProperty MinimumSwipeSpeedProperty = null; - internal static void SetInternalMinimumSwipeSpeedProperty(BindableObject bindable, object oldValue, object newValue) - { - var instance = (Tizen.NUI.ItemView)bindable; - if (newValue != null) - { - instance.InternalMinimumSwipeSpeed = (float)newValue; - } - } - internal static object GetInternalMinimumSwipeSpeedProperty(BindableObject bindable) - { - var instance = (Tizen.NUI.ItemView)bindable; - return instance.InternalMinimumSwipeSpeed; - } - - /// - /// MinimumSwipeDistanceProperty - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static BindableProperty MinimumSwipeDistanceProperty = null; - internal static void SetInternalMinimumSwipeDistanceProperty(BindableObject bindable, object oldValue, object newValue) - { - var instance = (Tizen.NUI.ItemView)bindable; - if (newValue != null) - { - instance.InternalMinimumSwipeDistance = (float)newValue; - } - } - internal static object GetInternalMinimumSwipeDistanceProperty(BindableObject bindable) - { - var instance = (Tizen.NUI.ItemView)bindable; - return instance.InternalMinimumSwipeDistance; - } - - /// - /// WheelScrollDistanceStepProperty - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static BindableProperty WheelScrollDistanceStepProperty = null; - internal static void SetInternalWheelScrollDistanceStepProperty(BindableObject bindable, object oldValue, object newValue) - { - var instance = (Tizen.NUI.ItemView)bindable; - if (newValue != null) - { - instance.InternalWheelScrollDistanceStep = (float)newValue; - } - } - internal static object GetInternalWheelScrollDistanceStepProperty(BindableObject bindable) - { - var instance = (Tizen.NUI.ItemView)bindable; - return instance.InternalWheelScrollDistanceStep; - } - - /// - /// SnapToItemEnabledProperty - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static BindableProperty SnapToItemEnabledProperty = null; - internal static void SetInternalSnapToItemEnabledProperty(BindableObject bindable, object oldValue, object newValue) - { - var instance = (Tizen.NUI.ItemView)bindable; - if (newValue != null) - { - instance.InternalSnapToItemEnabled = (bool)newValue; - } - } - internal static object GetInternalSnapToItemEnabledProperty(BindableObject bindable) - { - var instance = (Tizen.NUI.ItemView)bindable; - return instance.InternalSnapToItemEnabled; - } - - /// - /// RefreshIntervalProperty - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static BindableProperty RefreshIntervalProperty = null; - internal static void SetInternalRefreshIntervalProperty(BindableObject bindable, object oldValue, object newValue) - { - var instance = (Tizen.NUI.ItemView)bindable; - if (newValue != null) - { - instance.InternalRefreshInterval = (float)newValue; - } - } - internal static object GetInternalRefreshIntervalProperty(BindableObject bindable) - { - var instance = (Tizen.NUI.ItemView)bindable; - return instance.InternalRefreshInterval; - } - - /// - /// LayoutPositionProperty - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static BindableProperty LayoutPositionProperty = null; - internal static void SetInternalLayoutPositionProperty(BindableObject bindable, object oldValue, object newValue) - { - var instance = (Tizen.NUI.ItemView)bindable; - if (newValue != null) - { - instance.InternalLayoutPosition = (float)newValue; - } - } - internal static object GetInternalLayoutPositionProperty(BindableObject bindable) - { - var instance = (Tizen.NUI.ItemView)bindable; - return instance.InternalLayoutPosition; - } - - /// - /// ScrollSpeedProperty - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static BindableProperty ScrollSpeedProperty = null; - internal static void SetInternalScrollSpeedProperty(BindableObject bindable, object oldValue, object newValue) - { - var instance = (Tizen.NUI.ItemView)bindable; - if (newValue != null) - { - instance.InternalScrollSpeed = (float)newValue; - } - } - internal static object GetInternalScrollSpeedProperty(BindableObject bindable) - { - var instance = (Tizen.NUI.ItemView)bindable; - return instance.InternalScrollSpeed; - } - - /// - /// OvershootProperty - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static BindableProperty OvershootProperty = null; - internal static void SetInternalOvershootProperty(BindableObject bindable, object oldValue, object newValue) - { - var instance = (Tizen.NUI.ItemView)bindable; - if (newValue != null) - { - instance.InternalOvershoot = (float)newValue; - } - } - internal static object GetInternalOvershootProperty(BindableObject bindable) - { - var instance = (Tizen.NUI.ItemView)bindable; - return instance.InternalOvershoot; - } - - /// - /// ScrollDirectionProperty - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static BindableProperty ScrollDirectionProperty = null; - internal static void SetInternalScrollDirectionProperty(BindableObject bindable, object oldValue, object newValue) - { - var instance = (Tizen.NUI.ItemView)bindable; - if (newValue != null) - { - instance.InternalScrollDirection = (Tizen.NUI.Vector2)newValue; - } - } - internal static object GetInternalScrollDirectionProperty(BindableObject bindable) - { - var instance = (Tizen.NUI.ItemView)bindable; - return instance.InternalScrollDirection; - } - - /// - /// LayoutOrientationProperty - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static BindableProperty LayoutOrientationProperty = null; - internal static void SetInternalLayoutOrientationProperty(BindableObject bindable, object oldValue, object newValue) - { - var instance = (Tizen.NUI.ItemView)bindable; - if (newValue != null) - { - instance.InternalLayoutOrientation = (int)newValue; - } - } - internal static object GetInternalLayoutOrientationProperty(BindableObject bindable) - { - var instance = (Tizen.NUI.ItemView)bindable; - return instance.InternalLayoutOrientation; - } - - /// - /// ScrollContentSizeProperty - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static BindableProperty ScrollContentSizeProperty = null; - internal static void SetInternalScrollContentSizeProperty(BindableObject bindable, object oldValue, object newValue) - { - var instance = (Tizen.NUI.ItemView)bindable; - if (newValue != null) - { - instance.InternalScrollContentSize = (float)newValue; - } - } - internal static object GetInternalScrollContentSizeProperty(BindableObject bindable) - { - var instance = (Tizen.NUI.ItemView)bindable; - return instance.InternalScrollContentSize; - } - } -} diff --git a/src/Tizen.NUI/src/public/BaseComponents/Scrollable.cs b/src/Tizen.NUI/src/public/BaseComponents/Scrollable.cs index 26156b44b..046cd90f9 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/Scrollable.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/Scrollable.cs @@ -27,6 +27,7 @@ namespace Tizen.NUI.BaseComponents /// (via touch) or automatically. /// /// 3 + [Obsolete("This has been deprecated in API12")] public class Scrollable : View { static Scrollable() @@ -58,6 +59,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This has been deprecated in API12")] public static readonly BindableProperty OvershootEffectColorProperty = null; internal static void SetInternalOvershootEffectColorProperty(BindableObject bindable, object oldValue, object newValue) @@ -79,6 +81,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This has been deprecated in API12")] public static readonly BindableProperty OvershootAnimationSpeedProperty = null; internal static void SetInternalOvershootAnimationSpeedProperty(BindableObject bindable, object oldValue, object newValue) @@ -100,6 +103,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This has been deprecated in API12")] public static readonly BindableProperty OvershootEnabledProperty = null; internal static void SetInternalOvershootEnabledProperty(BindableObject bindable, object oldValue, object newValue) @@ -121,6 +125,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This has been deprecated in API12")] public static readonly BindableProperty OvershootSizeProperty = null; internal static void SetInternalOvershootSizeProperty(BindableObject bindable, object oldValue, object newValue) @@ -142,6 +147,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This has been deprecated in API12")] public static readonly BindableProperty ScrollToAlphaFunctionProperty = null; internal static void SetInternalScrollToAlphaFunctionProperty(BindableObject bindable, object oldValue, object newValue) @@ -163,6 +169,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This has been deprecated in API12")] public static readonly BindableProperty ScrollRelativePositionProperty = null; internal static void SetInternalScrollRelativePositionProperty(BindableObject bindable, object oldValue, object newValue) @@ -184,6 +191,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This has been deprecated in API12")] public static readonly BindableProperty ScrollPositionMinProperty = null; internal static void SetInternalScrollPositionMinProperty(BindableObject bindable, object oldValue, object newValue) @@ -205,6 +213,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This has been deprecated in API12")] public static readonly BindableProperty ScrollPositionMaxProperty = null; internal static void SetInternalScrollPositionMaxProperty(BindableObject bindable, object oldValue, object newValue) @@ -226,6 +235,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This has been deprecated in API12")] public static readonly BindableProperty CanScrollVerticalProperty = null; internal static void SetInternalCanScrollVerticalProperty(BindableObject bindable, object oldValue, object newValue) @@ -247,6 +257,7 @@ namespace Tizen.NUI.BaseComponents /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This has been deprecated in API12")] public static readonly BindableProperty CanScrollHorizontalProperty = null; internal static void SetInternalCanScrollHorizontalProperty(BindableObject bindable, object oldValue, object newValue) @@ -277,6 +288,7 @@ namespace Tizen.NUI.BaseComponents /// Create an instance of scrollable. /// /// 3 + [Obsolete("This has been deprecated in API12")] public Scrollable() : this(Interop.Scrollable.NewScrollable(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -299,6 +311,7 @@ namespace Tizen.NUI.BaseComponents /// The ScrollStarted event emitted when the Scrollable has moved (whether by touch or animation). /// /// 3 + [Obsolete("This has been deprecated in API12")] public event DaliEventHandler ScrollStarted { add @@ -328,6 +341,7 @@ namespace Tizen.NUI.BaseComponents /// The ScrollUpdated event emitted when the Scrollable has moved (whether by touch or animation). /// /// 3 + [Obsolete("This has been deprecated in API12")] public event DaliEventHandler ScrollUpdated { add @@ -358,6 +372,7 @@ namespace Tizen.NUI.BaseComponents /// (whether by touch or animation). /// /// 3 + [Obsolete("This has been deprecated in API12")] public event DaliEventHandler ScrollCompleted { add @@ -387,6 +402,7 @@ namespace Tizen.NUI.BaseComponents /// Sets and Gets the color of the overshoot effect. /// /// 3 + [Obsolete("This has been deprecated in API12")] public Vector4 OvershootEffectColor { get @@ -418,6 +434,7 @@ namespace Tizen.NUI.BaseComponents /// Sets and Gets the speed of overshoot animation in pixels per second. /// /// 3 + [Obsolete("This has been deprecated in API12")] public float OvershootAnimationSpeed { get @@ -449,6 +466,7 @@ namespace Tizen.NUI.BaseComponents /// Checks if scroll overshoot has been enabled or not. /// /// 3 + [Obsolete("This has been deprecated in API12")] public bool OvershootEnabled { get @@ -480,6 +498,7 @@ namespace Tizen.NUI.BaseComponents /// Gets and Sets OvershootSize property. /// /// 3 + [Obsolete("This has been deprecated in API12")] public Vector2 OvershootSize { get @@ -511,6 +530,7 @@ namespace Tizen.NUI.BaseComponents /// Gets and Sets ScrollToAlphaFunction property. /// /// 3 + [Obsolete("This has been deprecated in API12")] public int ScrollToAlphaFunction { get @@ -542,6 +562,7 @@ namespace Tizen.NUI.BaseComponents /// Gets and Sets ScrollRelativePosition property. /// /// 3 + [Obsolete("This has been deprecated in API12")] public Vector2 ScrollRelativePosition { get @@ -573,6 +594,7 @@ namespace Tizen.NUI.BaseComponents /// Gets and Sets ScrollPositionMin property. /// /// 3 + [Obsolete("This has been deprecated in API12")] public Vector2 ScrollPositionMin { get @@ -604,6 +626,7 @@ namespace Tizen.NUI.BaseComponents /// Gets and Sets ScrollPositionMax property. /// /// 3 + [Obsolete("This has been deprecated in API12")] public Vector2 ScrollPositionMax { get @@ -635,6 +658,7 @@ namespace Tizen.NUI.BaseComponents /// Gets and Sets CanScrollVertical property. /// /// 3 + [Obsolete("This has been deprecated in API12")] public bool CanScrollVertical { get @@ -666,6 +690,7 @@ namespace Tizen.NUI.BaseComponents /// Gets and Sets CanScrollHorizontal property. /// /// 3 + [Obsolete("This has been deprecated in API12")] public bool CanScrollHorizontal { get @@ -719,6 +744,7 @@ namespace Tizen.NUI.BaseComponents /// /// DisposeTypes /// 3 + [Obsolete("This has been deprecated in API12")] protected override void Dispose(DisposeTypes type) { if (disposed) @@ -739,6 +765,7 @@ namespace Tizen.NUI.BaseComponents /// This will not be public opened. [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This has been deprecated in API12")] protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) { Interop.Scrollable.DeleteScrollable(swigCPtr); @@ -853,6 +880,7 @@ namespace Tizen.NUI.BaseComponents /// The scroll animation started event arguments. /// /// 3 + [Obsolete("This has been deprecated in API12")] public class StartedEventArgs : EventArgs { private Vector2 vector2; @@ -878,6 +906,7 @@ namespace Tizen.NUI.BaseComponents /// The scrollable updated event arguments. /// /// 3 + [Obsolete("This has been deprecated in API12")] public class UpdatedEventArgs : EventArgs { private Vector2 vector2; @@ -903,6 +932,7 @@ namespace Tizen.NUI.BaseComponents /// The scroll animation completed event arguments. /// /// 3 + [Obsolete("This has been deprecated in API12")] public class CompletedEventArgs : EventArgs { private Vector2 vector2; diff --git a/src/Tizen.NUI/src/public/Utility/CubeTransitionEffect.cs b/src/Tizen.NUI/src/public/Utility/CubeTransitionEffect.cs deleted file mode 100755 index d0949ac40..000000000 --- a/src/Tizen.NUI/src/public/Utility/CubeTransitionEffect.cs +++ /dev/null @@ -1,400 +0,0 @@ -/* - * Copyright(c) 2021 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.Runtime.InteropServices; -using Tizen.NUI.BaseComponents; -using System.ComponentModel; - -namespace Tizen.NUI -{ - /// - /// Cube Transition Effect base class, used to apply custom effects to a - /// Cube Transition instance. - /// - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class CubeTransitionEffect : View - { - private EventHandler transitionCompletedEventHandler; - private TransitionCompletedCallbackDelegate _transitionCompletedCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate void TransitionCompletedCallbackDelegate(IntPtr cubeTransition, IntPtr cubeTexture); - - /// - /// The constructor. - /// - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public CubeTransitionEffect() : this(Interop.CubeTransitionEffect.NewCubeTransitionEffect(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal CubeTransitionEffect(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) - { - } - - /// 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 SetTransitionDuration(float duration) - { - Interop.CubeTransitionEffect.SetTransitionDuration(SwigCPtr, duration); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetTransitionDuration() - { - float result = Interop.CubeTransitionEffect.GetTransitionDuration(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return result; - } - - /// 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 SetCubeDisplacement(float displacement) - { - Interop.CubeTransitionEffect.SetCubeDisplacement(SwigCPtr, displacement); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetCubeDisplacement() - { - float result = Interop.CubeTransitionEffect.GetCubeDisplacement(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return result; - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool IsTransitioning() - { - bool result = Interop.CubeTransitionEffect.IsTransitioning(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return result; - } - - /// 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 SetCurrentTexture(Texture texture) - { - Interop.CubeTransitionEffect.SetCurrentTexture(SwigCPtr, Texture.getCPtr(texture)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// 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 SetTargetTexture(Texture texture) - { - Interop.CubeTransitionEffect.SetTargetTexture(SwigCPtr, Texture.getCPtr(texture)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// 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 StartTransition(bool toNextImage = true) - { - Interop.CubeTransitionEffect.StartTransitionSwig1(SwigCPtr, toNextImage); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// 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 StartTransition(Vector2 panPosition, Vector2 panDisplacement) - { - Interop.CubeTransitionEffect.StartTransitionSwig2(SwigCPtr, Vector2.getCPtr(panPosition), Vector2.getCPtr(panDisplacement)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// 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 PauseTransition() - { - Interop.CubeTransitionEffect.PauseTransition(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// 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 ResumeTransition() - { - Interop.CubeTransitionEffect.ResumeTransition(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// 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 StopTransition() - { - Interop.CubeTransitionEffect.StopTransition(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - CubeTransitionEffectSignal TransitionCompletedSignal() - { - CubeTransitionEffectSignal ret = new CubeTransitionEffectSignal(Interop.CubeTransitionEffect.TransitionCompletedSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// The TransitionCompleted event. - /// - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler TransitionCompleted - { - add - { - if (transitionCompletedEventHandler == null) - { - _transitionCompletedCallbackDelegate = (OnTransitionCompleted); - TransitionCompletedSignal().Connect(_transitionCompletedCallbackDelegate); - } - transitionCompletedEventHandler += value; - } - remove - { - transitionCompletedEventHandler -= value; - if (transitionCompletedEventHandler == null && TransitionCompletedSignal().Empty() == false) - { - TransitionCompletedSignal().Disconnect(_transitionCompletedCallbackDelegate); - } - } - } - - private void OnTransitionCompleted(IntPtr cubeTransition, IntPtr cubeTexture) - { - TransitionCompletedEventArgs e = new TransitionCompletedEventArgs(); - - // Populate all members of "e" (TransitionCompletedEventArgs) with real data - //e.CubeTransitionEffect = Registry.GetManagedBaseHandleFromNativePtr(cubeTransition) as CubeTransitionEffect; - - if (transitionCompletedEventHandler != null) - { - //here we send all data to user event handlers - transitionCompletedEventHandler(this, e); - } - } - - /// This will not be public opened. - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) - { - Interop.CubeTransitionEffect.DeleteCubeTransitionEffect(swigCPtr); - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class TransitionCompletedEventArgs : EventArgs - { - private CubeTransitionEffect cubeTransitionEffect; - private Texture cubeTransitonTexture; - - /// - /// CubeTransitionEffect. - /// - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public CubeTransitionEffect CubeTransitionEffect - { - get - { - return cubeTransitionEffect; - } - set - { - cubeTransitionEffect = value; - } - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Texture CubeTransitonTexture - { - get - { - return cubeTransitonTexture; - } - set - { - cubeTransitonTexture = value; - } - } - } - } - - internal class CubeTransitionEffectSignal : Disposable - { - - internal CubeTransitionEffectSignal(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) - { - } - - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Empty() - { - bool ret = Interop.CubeTransitionEffect.CubeTransitionEffectSignalEmpty(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public uint GetConnectionCount() - { - uint ret = Interop.CubeTransitionEffect.CubeTransitionEffectSignalGetConnectionCount(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// 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 Connect(System.Delegate func) - { - System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); - { - Interop.CubeTransitionEffect.CubeTransitionEffectSignalConnect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } - - /// 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 Disconnect(System.Delegate func) - { - System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); - { - Interop.CubeTransitionEffect.CubeTransitionEffectSignalDisconnect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } - - /// 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 Emit(CubeTransitionEffect arg) - { - Interop.TextField.TextFieldSignalEmit(SwigCPtr, CubeTransitionEffect.getCPtr(arg)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public CubeTransitionEffectSignal() : this(Interop.CubeTransitionEffect.NewCubeTransitionEffectSignal(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// This will be public opened. - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) - { - Interop.CubeTransitionEffect.DeleteCubeTransitionEffectSignal(swigCPtr); - } - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class CubeTransitionWaveEffect : CubeTransitionEffect - { - - /// - /// The constructor. - /// - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public CubeTransitionWaveEffect(uint numRows, uint numColumns) : this(Interop.CubeTransitionWaveEffect.New(numRows, numColumns), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - - internal CubeTransitionWaveEffect(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) - { - } - - /// This will be public opened. - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) - { - Interop.CubeTransitionWaveEffect.DeleteCubeTransitionWaveEffect(swigCPtr); - } - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class CubeTransitionCrossEffect : CubeTransitionEffect - { - - /// - /// The constructor. - /// - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public CubeTransitionCrossEffect(uint numRows, uint numColumns) : this(Interop.CubeTransitionCrossEffect.New(numRows, numColumns), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - - internal CubeTransitionCrossEffect(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) - { - } - - /// This will not be public opened. - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) - { - Interop.CubeTransitionCrossEffect.DeleteCubeTransitionCrossEffect(swigCPtr); - } - } - - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class CubeTransitionFoldEffect : CubeTransitionEffect - { - - /// - /// The constructor. - /// - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public CubeTransitionFoldEffect(uint numRows, uint numColumns) : this(Interop.CubeTransitionFoldEffect.New(numRows, numColumns), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - - internal CubeTransitionFoldEffect(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) - { - } - - /// This will not be public opened. - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) - { - Interop.CubeTransitionFoldEffect.DeleteCubeTransitionFoldEffect(swigCPtr); - } - } -} diff --git a/src/Tizen.NUI/src/public/Utility/ScrollView.cs b/src/Tizen.NUI/src/public/Utility/ScrollView.cs deleted file mode 100755 index 05a6395af..000000000 --- a/src/Tizen.NUI/src/public/Utility/ScrollView.cs +++ /dev/null @@ -1,1441 +0,0 @@ -/* - * Copyright(c) 2021 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.ComponentModel; -using Tizen.NUI.BaseComponents; -using Tizen.NUI; -using Tizen.NUI.Binding; - -namespace Tizen.NUI -{ - /// - /// ScrollView contains views that can be scrolled manually (via touch). - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public partial class ScrollView : Scrollable - { - - static ScrollView() - { - if(NUIApplication.IsUsingXaml) - { - WrapEnabledProperty = BindableProperty.Create(nameof(WrapEnabled), typeof(bool), typeof(ScrollView), false, propertyChanged: SetInternalWrapEnabledProperty, defaultValueCreator: GetInternalWrapEnabledProperty); - - PanningEnabledProperty = BindableProperty.Create(nameof(PanningEnabled), typeof(bool), typeof(ScrollView), false, propertyChanged: SetInternalPanningEnabledProperty, defaultValueCreator: GetInternalPanningEnabledProperty); - - AxisAutoLockEnabledProperty = BindableProperty.Create(nameof(AxisAutoLockEnabled), typeof(bool), typeof(ScrollView), false, propertyChanged: SetInternalAxisAutoLockEnabledProperty, defaultValueCreator: GetInternalAxisAutoLockEnabledProperty); - - WheelScrollDistanceStepProperty = BindableProperty.Create(nameof(WheelScrollDistanceStep), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: SetInternalWheelScrollDistanceStepProperty, defaultValueCreator: GetInternalWheelScrollDistanceStepProperty); - - ScrollPositionProperty = BindableProperty.Create(nameof(ScrollPosition), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: SetInternalScrollPositionProperty, defaultValueCreator: GetInternalScrollPositionProperty); - - ScrollPrePositionProperty = BindableProperty.Create(nameof(ScrollPrePosition), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: SetInternalScrollPrePositionProperty, defaultValueCreator: GetInternalScrollPrePositionProperty); - - ScrollPrePositionMaxProperty = BindableProperty.Create(nameof(ScrollPrePositionMax), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: SetInternalScrollPrePositionMaxProperty, defaultValueCreator: GetInternalScrollPrePositionMaxProperty); - - OvershootXProperty = BindableProperty.Create(nameof(OvershootX), typeof(float), typeof(ScrollView), default(float), propertyChanged: SetInternalOvershootXProperty, defaultValueCreator: GetInternalOvershootXProperty); - - OvershootYProperty = BindableProperty.Create(nameof(OvershootY), typeof(float), typeof(ScrollView), default(float), propertyChanged: SetInternalOvershootYProperty, defaultValueCreator: GetInternalOvershootYProperty); - - ScrollFinalProperty = BindableProperty.Create(nameof(ScrollFinal), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: SetInternalScrollFinalProperty, defaultValueCreator: GetInternalScrollFinalProperty); - - WrapProperty = BindableProperty.Create(nameof(Wrap), typeof(bool), typeof(ScrollView), false, propertyChanged: SetInternalWrapProperty, defaultValueCreator: GetInternalWrapProperty); - - PanningProperty = BindableProperty.Create(nameof(Panning), typeof(bool), typeof(ScrollView), false, propertyChanged: SetInternalPanningProperty, defaultValueCreator: GetInternalPanningProperty); - - ScrollingProperty = BindableProperty.Create(nameof(Scrolling), typeof(bool), typeof(ScrollView), false, propertyChanged: SetInternalScrollingProperty, defaultValueCreator: GetInternalScrollingProperty); - - ScrollDomainSizeProperty = BindableProperty.Create(nameof(ScrollDomainSize), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: SetInternalScrollDomainSizeProperty, defaultValueCreator: GetInternalScrollDomainSizeProperty); - - ScrollDomainOffsetProperty = BindableProperty.Create(nameof(ScrollDomainOffset), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: SetInternalScrollDomainOffsetProperty, defaultValueCreator: GetInternalScrollDomainOffsetProperty); - - ScrollPositionDeltaProperty = BindableProperty.Create(nameof(ScrollPositionDelta), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: SetInternalScrollPositionDeltaProperty, defaultValueCreator: GetInternalScrollPositionDeltaProperty); - - StartPagePositionProperty = BindableProperty.Create(nameof(StartPagePosition), typeof(Vector3), typeof(ScrollView), Vector3.Zero, propertyChanged: SetInternalStartPagePositionProperty, defaultValueCreator: GetInternalStartPagePositionProperty); - - ScrollModeProperty = BindableProperty.Create(nameof(ScrollMode), typeof(PropertyMap), typeof(ScrollView), new PropertyMap(), propertyChanged: SetInternalScrollModeProperty, defaultValueCreator: GetInternalScrollModeProperty); - - } - } - - /// - /// Create an instance of ScrollView. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public ScrollView() : this(Interop.ScrollView.New(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal ScrollView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) - { - } - - /// - /// Sets and Gets WrapEnabled property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public bool WrapEnabled - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (bool)GetValue(WrapEnabledProperty); - } - else - { - return (bool)GetInternalWrapEnabledProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(WrapEnabledProperty, value); - } - else - { - SetInternalWrapEnabledProperty(this, null, value); - } - } - } - - /// - /// Sets and Gets PanningEnabled property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public bool PanningEnabled - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (bool)GetValue(PanningEnabledProperty); - } - else - { - return (bool)GetInternalPanningEnabledProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(PanningEnabledProperty, value); - } - else - { - SetInternalPanningEnabledProperty(this, null, value); - } - } - } - - /// - /// Sets and Gets AxisAutoLockEnabled property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public bool AxisAutoLockEnabled - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (bool)GetValue(AxisAutoLockEnabledProperty); - } - else - { - return (bool)GetInternalAxisAutoLockEnabledProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(AxisAutoLockEnabledProperty, value); - } - else - { - SetInternalAxisAutoLockEnabledProperty(this, null, value); - } - } - } - - /// - /// Sets and Gets WheelScrollDistanceStep property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 WheelScrollDistanceStep - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (Vector2)GetValue(WheelScrollDistanceStepProperty); - } - else - { - return (Vector2)GetInternalWheelScrollDistanceStepProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(WheelScrollDistanceStepProperty, value); - } - else - { - SetInternalWheelScrollDistanceStepProperty(this, null, value); - } - } - } - - /// - /// Sets and Gets ScrollPosition property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollPosition - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (Vector2)GetValue(ScrollPositionProperty); - } - else - { - return (Vector2)GetInternalScrollPositionProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(ScrollPositionProperty, value); - } - else - { - SetInternalScrollPositionProperty(this, null, value); - } - } - } - - /// - /// Sets and Gets ScrollPrePosition property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollPrePosition - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (Vector2)GetValue(ScrollPrePositionProperty); - } - else - { - return (Vector2)GetInternalScrollPrePositionProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(ScrollPrePositionProperty, value); - } - else - { - SetInternalScrollPrePositionProperty(this, null, value); - } - } - } - - /// - /// Sets and Gets ScrollPrePositionMax property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollPrePositionMax - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (Vector2)GetValue(ScrollPrePositionMaxProperty); - } - else - { - return (Vector2)GetInternalScrollPrePositionMaxProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(ScrollPrePositionMaxProperty, value); - - } - else - { - SetInternalScrollPrePositionMaxProperty(this, null, value); - } - } - } - - /// - /// Sets and Gets OvershootX property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public float OvershootX - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (float)GetValue(OvershootXProperty); - } - else - { - return (float)GetInternalOvershootXProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(OvershootXProperty, value); - } - else - { - SetInternalOvershootXProperty(this, null, value); - } - } - } - - /// - /// Sets and Gets OvershootY property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public float OvershootY - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (float)GetValue(OvershootYProperty); - } - else - { - return (float)GetInternalOvershootYProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(OvershootYProperty, value); - } - else - { - SetInternalOvershootYProperty(this, null, value); - } - } - } - - /// - /// Sets and Gets ScrollFinal property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollFinal - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (Vector2)GetValue(ScrollFinalProperty); - } - else - { - return (Vector2)GetInternalScrollFinalProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(ScrollFinalProperty, value); - } - else - { - SetInternalScrollFinalProperty(this, null, value); - } - } - } - - /// - /// Sets and Gets Wrap property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Wrap - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (bool)GetValue(WrapProperty); - } - else - { - return (bool)GetInternalWrapProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(WrapProperty, value); - - } - else - { - SetInternalWrapProperty(this, null, value); - } - } - } - - /// - /// Sets and Gets Panning property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Panning - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (bool)GetValue(PanningProperty); - } - else - { - return (bool)GetInternalPanningProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(PanningProperty, value); - } - else - { - SetInternalPanningProperty(this, null, value); - } - } - } - - /// - /// Sets and Gets Scrolling property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Scrolling - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (bool)GetValue(ScrollingProperty); - } - else - { - return (bool)GetInternalScrollingProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(ScrollingProperty, value); - } - else - { - SetInternalScrollingProperty(this, null, value); - } - } - } - - /// - /// Sets and Gets ScrollDomainSize property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollDomainSize - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (Vector2)GetValue(ScrollDomainSizeProperty); - } - else - { - return (Vector2)GetInternalScrollDomainSizeProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(ScrollDomainSizeProperty, value); - } - else - { - SetInternalScrollDomainSizeProperty(this, null, value); - } - } - } - - /// - /// Sets and Gets ScrollDomainOffset property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollDomainOffset - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (Vector2)GetValue(ScrollDomainOffsetProperty); - } - else - { - return (Vector2)GetInternalScrollDomainOffsetProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(ScrollDomainOffsetProperty, value); - } - else - { - SetInternalScrollDomainOffsetProperty(this, null, value); - } - } - } - - /// - /// Sets and Gets ScrollPositionDelta property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollPositionDelta - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (Vector2)GetValue(ScrollPositionDeltaProperty); - } - else - { - return (Vector2)GetInternalScrollPositionDeltaProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(ScrollPositionDeltaProperty, value); - } - else - { - SetInternalScrollPositionDeltaProperty(this, null, value); - } - } - } - - /// - /// Sets and Gets StartPagePosition property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector3 StartPagePosition - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (Vector3)GetValue(StartPagePositionProperty); - } - else - { - return (Vector3)GetInternalStartPagePositionProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(StartPagePositionProperty, value); - } - else - { - SetInternalStartPagePositionProperty(this, null, value); - } - } - } - - - /// - /// Sets and Gets ScrollMode property. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap ScrollMode - { - get - { - if (NUIApplication.IsUsingXaml) - { - return (PropertyMap)GetValue(ScrollModeProperty); - } - else - { - return (PropertyMap)GetInternalScrollModeProperty(this); - } - } - set - { - if (NUIApplication.IsUsingXaml) - { - SetValue(ScrollModeProperty, value); - } - else - { - SetInternalScrollModeProperty(this, null, value); - } - } - } - - /// - /// Gets snap-animation's AlphaFunction. - /// - /// Current easing alpha function of the snap animation. - [EditorBrowsable(EditorBrowsableState.Never)] - public AlphaFunction GetScrollSnapAlphaFunction() - { - AlphaFunction ret = new AlphaFunction(Interop.ScrollView.GetScrollSnapAlphaFunction(SwigCPtr), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Sets snap-animation's AlphaFunction. - /// - /// Easing alpha function of the snap animation. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollSnapAlphaFunction(AlphaFunction alpha) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public AlphaFunction GetScrollFlickAlphaFunction() - { - AlphaFunction ret = new AlphaFunction(Interop.ScrollView.GetScrollFlickAlphaFunction(SwigCPtr), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Sets flick-animation's AlphaFunction. - /// - /// Easing alpha function of the flick animation. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollFlickAlphaFunction(AlphaFunction alpha) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetScrollSnapDuration() - { - float ret = Interop.ScrollView.GetScrollSnapDuration(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Sets the time for the scroll snap-animation. - /// - /// The time in seconds for the animation to take. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollSnapDuration(float time) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetScrollFlickDuration() - { - float ret = Interop.ScrollView.GetScrollFlickDuration(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Sets the time for the scroll snap-animation. - /// - /// The time in seconds for the animation to take. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollFlickDuration(float time) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollSensitive(bool sensitive) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetMaxOvershoot(float overshootX, float overshootY) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetSnapOvershootAlphaFunction(AlphaFunction alpha) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetSnapOvershootDuration(float duration) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetViewAutoSnap(bool enable) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetWrapMode(bool enable) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public int GetScrollUpdateDistance() - { - int ret = Interop.ScrollView.GetScrollUpdateDistance(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - 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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollUpdateDistance(int distance) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool GetAxisAutoLock() - { - bool ret = Interop.ScrollView.GetAxisAutoLock(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - 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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetAxisAutoLock(bool enable) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetAxisAutoLockGradient() - { - float ret = Interop.ScrollView.GetAxisAutoLockGradient(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - 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). - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetAxisAutoLockGradient(float gradient) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetFrictionCoefficient() - { - float ret = Interop.ScrollView.GetFrictionCoefficient(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Sets the friction coefficient for ScrollView when flicking.
- ///
- /// Friction coefficient must be greater than 0.0 (default = 1.0). - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetFrictionCoefficient(float friction) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetFlickSpeedCoefficient() - { - float ret = Interop.ScrollView.GetFlickSpeedCoefficient(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - 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). - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetFlickSpeedCoefficient(float speed) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 GetMinimumDistanceForFlick() - { - Vector2 ret = new Vector2(Interop.ScrollView.GetMinimumDistanceForFlick(SwigCPtr), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - 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). - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetMinimumDistanceForFlick(Vector2 distance) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetMinimumSpeedForFlick() - { - float ret = Interop.ScrollView.GetMinimumSpeedForFlick(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Sets the minimum pan speed required for a flick in pixels per second.
- ///
- /// The minimum pan speed for a flick. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetMinimumSpeedForFlick(float speed) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetMaxFlickSpeed() - { - float ret = Interop.ScrollView.GetMaxFlickSpeed(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - 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). - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetMaxFlickSpeed(float speed) - { - Interop.ScrollView.SetMaxFlickSpeed(SwigCPtr, speed); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// - /// Retrieves current scroll position.
- ///
- /// The current scroll position. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 GetCurrentScrollPosition() - { - Vector2 ret = new Vector2(Interop.ScrollView.GetCurrentScrollPosition(SwigCPtr), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - 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. - [EditorBrowsable(EditorBrowsableState.Never)] - public uint GetCurrentPage() - { - uint ret = Interop.ScrollView.GetCurrentPage(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Scrolls View to position specified (contents will scroll to this position). - /// - /// The position to scroll to. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(Vector2 position) - { - Interop.ScrollView.ScrollToVector2(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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(Vector2 position, float duration) - { - Interop.ScrollView.ScrollTo(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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha) - { - Interop.ScrollView.ScrollTo(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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias) - { - Interop.ScrollView.ScrollTo(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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias) - { - Interop.ScrollView.ScrollTo(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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(uint page) - { - Interop.ScrollView.ScrollTo(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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(uint page, float duration) - { - Interop.ScrollView.ScrollTo(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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(uint page, float duration, DirectionBias bias) - { - Interop.ScrollView.ScrollTo(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). - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(View view) - { - Interop.ScrollView.ScrollToView(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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(View view, float duration) - { - Interop.ScrollView.ScrollToViewDuration(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. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool ScrollToSnapPoint() - { - bool ret = Interop.ScrollView.ScrollToSnapPoint(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Applies Effect to ScrollView. - /// - /// The effect to apply to scroll view. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ApplyEffect(ScrollViewEffect effect) - { - Interop.ScrollView.ApplyEffect(SwigCPtr, ScrollViewEffect.getCPtr(effect)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// - /// Removes Effect from ScrollView. - /// - /// The effect to remove. - [EditorBrowsable(EditorBrowsableState.Never)] - public void RemoveEffect(ScrollViewEffect effect) - { - Interop.ScrollView.RemoveEffect(SwigCPtr, ScrollViewEffect.getCPtr(effect)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// - /// Remove All Effects from ScrollView. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public void RemoveAllEffects() - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void BindView(View child) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void UnbindView(View child) - { - Interop.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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollingDirection(Radian direction, Radian threshold) - { - Interop.ScrollView.SetScrollingDirection(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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollingDirection(Radian direction) - { - Interop.ScrollView.SetScrollingDirection(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. - [EditorBrowsable(EditorBrowsableState.Never)] - public void RemoveScrollingDirection(Radian direction) - { - Interop.ScrollView.RemoveScrollingDirection(SwigCPtr, Radian.getCPtr(direction)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// - /// Set ruler X - /// - /// 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) - { - Interop.ScrollView.SetRulerX(SwigCPtr, RulerPtr.getCPtr(ruler)); - } - - /// - /// Set ruler Y - /// - /// 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) - { - Interop.ScrollView.SetRulerY(SwigCPtr, RulerPtr.getCPtr(ruler)); - } - - internal void ApplyConstraintToChildren(Constraint constraint) - { - Interop.ScrollView.ApplyConstraintToChildren(SwigCPtr, constraint.SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// - /// Dispose - /// - /// the dispose type - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void Dispose(DisposeTypes type) - { - if (disposed) - { - return; - } - - //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) - { - 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); - } - - /// - /// This should be internal, do not use. - /// - [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 - { - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int WrapEnabled = Interop.ScrollView.WrapEnabledGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int PanningEnabled = Interop.ScrollView.PanningEnabledGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int AxisAutoLockEnabled = Interop.ScrollView.AxisAutoLockEnabledGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int WheelScrollDistanceStep = Interop.ScrollView.WheelScrollDistanceStepGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int ScrollMode = Interop.ScrollView.ScrollModeGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int ScrollPosition = Interop.ScrollView.ScrollPositionGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int ScrollPrePosition = Interop.ScrollView.ScrollPrePositionGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int ScrollPrePositionX = Interop.ScrollView.ScrollPrePositionXGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int ScrollPrePositionY = Interop.ScrollView.ScrollPrePositionYGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int ScrollPrePositionMax = Interop.ScrollView.ScrollPrePositionMaxGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int ScrollPrePositionMaxX = Interop.ScrollView.ScrollPrePositionMaxXGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int ScrollPrePositionMaxY = Interop.ScrollView.ScrollPrePositionMaxYGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int OvershootX = Interop.ScrollView.OvershootXGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int OvershootY = Interop.ScrollView.OvershootYGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int ScrollFinal = Interop.ScrollView.ScrollFinalGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int ScrollFinalX = Interop.ScrollView.ScrollFinalXGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int ScrollFinalY = Interop.ScrollView.ScrollFinalYGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int WRAP = Interop.ScrollView.WrapGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int PANNING = Interop.ScrollView.PanningGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int SCROLLING = Interop.ScrollView.ScrollingGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int ScrollDomainSize = Interop.ScrollView.ScrollDomainSizeGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int ScrollDomainSizeX = Interop.ScrollView.ScrollDomainSizeXGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int ScrollDomainSizeY = Interop.ScrollView.ScrollDomainSizeYGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int ScrollDomainOffset = Interop.ScrollView.ScrollDomainOffsetGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int ScrollPositionDelta = Interop.ScrollView.ScrollPositionDeltaGet(); - /// - /// This should be internal, do not use. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly int StartPagePosition = Interop.ScrollView.StartPagePositionGet(); - } - } -} diff --git a/src/Tizen.NUI/src/public/Utility/ScrollViewBindableProperty.cs b/src/Tizen.NUI/src/public/Utility/ScrollViewBindableProperty.cs deleted file mode 100755 index 4bd11bd30..000000000 --- a/src/Tizen.NUI/src/public/Utility/ScrollViewBindableProperty.cs +++ /dev/null @@ -1,390 +0,0 @@ -/* - * Copyright(c) 2021 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 Tizen.NUI.Binding; - -namespace Tizen.NUI -{ - /// - /// ScrollView contains views that can be scrolled manually (via touch). - /// - public partial class ScrollView - { - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty WrapEnabledProperty = null; - - internal static void SetInternalWrapEnabledProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.WrapEnabled, new Tizen.NUI.PropertyValue((bool)newValue)); - } - } - - internal static object GetInternalWrapEnabledProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - bool temp = false; - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.WrapEnabled).Get(out temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PanningEnabledProperty = null; - - internal static void SetInternalPanningEnabledProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.PanningEnabled, new Tizen.NUI.PropertyValue((bool)newValue)); - } - } - - internal static object GetInternalPanningEnabledProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - bool temp = false; - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.PanningEnabled).Get(out temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AxisAutoLockEnabledProperty = null; - - internal static void SetInternalAxisAutoLockEnabledProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.AxisAutoLockEnabled, new Tizen.NUI.PropertyValue((bool)newValue)); - } - } - - internal static object GetInternalAxisAutoLockEnabledProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - bool temp = false; - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.AxisAutoLockEnabled).Get(out temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty WheelScrollDistanceStepProperty = null; - - internal static void SetInternalWheelScrollDistanceStepProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.WheelScrollDistanceStep, new Tizen.NUI.PropertyValue((Vector2)newValue)); - } - } - - internal static object GetInternalWheelScrollDistanceStepProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - Vector2 temp = new Vector2(0.0f, 0.0f); - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.WheelScrollDistanceStep).Get(temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPositionProperty = null; - - internal static void SetInternalScrollPositionProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollPosition, new Tizen.NUI.PropertyValue((Vector2)newValue)); - } - } - - internal static object GetInternalScrollPositionProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - Vector2 temp = new Vector2(0.0f, 0.0f); - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollPosition).Get(temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPrePositionProperty = null; - - internal static void SetInternalScrollPrePositionProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollPrePosition, new Tizen.NUI.PropertyValue((Vector2)newValue)); - } - } - - internal static object GetInternalScrollPrePositionProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - Vector2 temp = new Vector2(0.0f, 0.0f); - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollPrePosition).Get(temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPrePositionMaxProperty = null; - - internal static void SetInternalScrollPrePositionMaxProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollPrePositionMax, new Tizen.NUI.PropertyValue((Vector2)newValue)); - } - } - - internal static object GetInternalScrollPrePositionMaxProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - Vector2 temp = new Vector2(0.0f, 0.0f); - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollPrePositionMax).Get(temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OvershootXProperty = null; - - internal static void SetInternalOvershootXProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.OvershootX, new Tizen.NUI.PropertyValue((float)newValue)); - } - } - - internal static object GetInternalOvershootXProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - float temp = 0.0f; - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.OvershootX).Get(out temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OvershootYProperty = null; - - internal static void SetInternalOvershootYProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.OvershootY, new Tizen.NUI.PropertyValue((float)newValue)); - } - } - - internal static object GetInternalOvershootYProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - float temp = 0.0f; - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.OvershootY).Get(out temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollFinalProperty = null; - - internal static void SetInternalScrollFinalProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollFinal, new Tizen.NUI.PropertyValue((Vector2)newValue)); - } - } - - internal static object GetInternalScrollFinalProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - Vector2 temp = new Vector2(0.0f, 0.0f); - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollFinal).Get(temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty WrapProperty = null; - - internal static void SetInternalWrapProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.WRAP, new Tizen.NUI.PropertyValue((bool)newValue)); - } - } - - internal static object GetInternalWrapProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - bool temp = false; - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.WRAP).Get(out temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PanningProperty = null; - - internal static void SetInternalPanningProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.PANNING, new Tizen.NUI.PropertyValue((bool)newValue)); - } - } - - internal static object GetInternalPanningProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - bool temp = false; - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.PANNING).Get(out temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollingProperty = null; - - internal static void SetInternalScrollingProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.SCROLLING, new Tizen.NUI.PropertyValue((bool)newValue)); - } - } - - internal static object GetInternalScrollingProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - bool temp = false; - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.SCROLLING).Get(out temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollDomainSizeProperty = null; - - internal static void SetInternalScrollDomainSizeProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollDomainSize, new Tizen.NUI.PropertyValue((Vector2)newValue)); - } - } - - internal static object GetInternalScrollDomainSizeProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - Vector2 temp = new Vector2(0.0f, 0.0f); - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollDomainSize).Get(temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollDomainOffsetProperty = null; - - internal static void SetInternalScrollDomainOffsetProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollDomainOffset, new Tizen.NUI.PropertyValue((Vector2)newValue)); - } - } - - internal static object GetInternalScrollDomainOffsetProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - Vector2 temp = new Vector2(0.0f, 0.0f); - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollDomainOffset).Get(temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPositionDeltaProperty = null; - - internal static void SetInternalScrollPositionDeltaProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollPositionDelta, new Tizen.NUI.PropertyValue((Vector2)newValue)); - } - } - - internal static object GetInternalScrollPositionDeltaProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - Vector2 temp = new Vector2(0.0f, 0.0f); - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollPositionDelta).Get(temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty StartPagePositionProperty = null; - - internal static void SetInternalStartPagePositionProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.StartPagePosition, new Tizen.NUI.PropertyValue((Vector3)newValue)); - } - } - - internal static object GetInternalStartPagePositionProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f); - Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.StartPagePosition).Get(temp); - return temp; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollModeProperty = null; - - internal static void SetInternalScrollModeProperty(BindableObject bindable, object oldValue, object newValue) - { - var scrollView = (ScrollView)bindable; - if (newValue != null) - { - Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollMode, new Tizen.NUI.PropertyValue((PropertyMap)newValue)); - } - } - - internal static object GetInternalScrollModeProperty(BindableObject bindable) - { - var scrollView = (ScrollView)bindable; - PropertyValue value = Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollMode); - PropertyMap map = new PropertyMap(); - value.Get(map); - return map; - } - } -} diff --git a/src/Tizen.NUI/src/public/Utility/ScrollViewEffect.cs b/src/Tizen.NUI/src/public/Utility/ScrollViewEffect.cs index d268a01aa..165b2bf9a 100755 --- a/src/Tizen.NUI/src/public/Utility/ScrollViewEffect.cs +++ b/src/Tizen.NUI/src/public/Utility/ScrollViewEffect.cs @@ -14,6 +14,7 @@ * limitations under the License. * */ +using System; using System.ComponentModel; namespace Tizen.NUI @@ -23,6 +24,7 @@ namespace Tizen.NUI /// ScrollView instance. /// /// 3 + [Obsolete("This has been deprecated in API12")] public class ScrollViewEffect : BaseHandle { @@ -30,6 +32,7 @@ namespace Tizen.NUI /// The constructor. /// /// 3 + [Obsolete("This has been deprecated in API12")] public ScrollViewEffect() : this(Interop.ScrollView.NewScrollViewEffect(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -41,6 +44,7 @@ namespace Tizen.NUI /// This will not be public opened. [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This has been deprecated in API12")] protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) { Interop.ScrollView.DeleteScrollViewEffect(swigCPtr); diff --git a/src/Tizen.NUI/src/public/Utility/ScrollViewEvent.cs b/src/Tizen.NUI/src/public/Utility/ScrollViewEvent.cs deleted file mode 100755 index 2eaa0dfa5..000000000 --- a/src/Tizen.NUI/src/public/Utility/ScrollViewEvent.cs +++ /dev/null @@ -1,244 +0,0 @@ -/* - * Copyright(c) 2021 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; - -namespace Tizen.NUI -{ - /// - /// ScrollView contains views that can be scrolled manually (via touch). - /// - public partial class ScrollView - { - private DaliEventHandler scrollViewSnapStartedEventHandler; - private SnapStartedCallbackDelegate scrollViewSnapStartedCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate void SnapStartedCallbackDelegate(IntPtr data); - - /// - /// 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). - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public event DaliEventHandler SnapStarted - { - add - { - // Restricted to only one listener - if (scrollViewSnapStartedEventHandler == null) - { - scrollViewSnapStartedEventHandler += value; - - scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted); - ScrollViewSnapStartedSignal snapStarted = this.SnapStartedSignal(); - snapStarted?.Connect(scrollViewSnapStartedCallbackDelegate); - snapStarted?.Dispose(); - } - } - - remove - { - if (scrollViewSnapStartedEventHandler != null) - { - ScrollViewSnapStartedSignal snapStarted = this.SnapStartedSignal(); - snapStarted?.Disconnect(scrollViewSnapStartedCallbackDelegate); - snapStarted?.Dispose(); - } - - scrollViewSnapStartedEventHandler -= value; - } - } - - internal ScrollViewSnapStartedSignal SnapStartedSignal() - { - ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(Interop.ScrollView.SnapStartedSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - // Callback for ScrollView SnapStarted signal - private void OnSnapStarted(IntPtr data) - { - SnapStartedEventArgs e = new SnapStartedEventArgs(); - - // Populate all members of "e" (SnapStartedEventArgs) with real data - e.SnapEventInfo = SnapEvent.GetSnapEventFromPtr(data); - - if (scrollViewSnapStartedEventHandler != null) - { - //here we send all data to user event handlers - scrollViewSnapStartedEventHandler(this, e); - } - } - - /// - /// Snaps signal event's data. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")] - public class SnapEvent : Disposable - { - /// - /// swigCMemOwn - /// - [global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1051:Do not declare visible instance fields")] - [EditorBrowsable(EditorBrowsableState.Never)] - protected bool swigCMemOwn; - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - /// - /// Create an instance of SnapEvent. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public SnapEvent() : this(Interop.ScrollView.NewScrollViewSnapEvent(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn) - { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - /// - /// Scroll position. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 position - { - set - { - Interop.ScrollView.SnapEventPositionSet(swigCPtr, Vector2.getCPtr(value)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - global::System.IntPtr cPtr = Interop.ScrollView.SnapEventPositionGet(swigCPtr); - Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve()); - return ret; - } - } - - /// - /// Scroll duration. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public float duration - { - set - { - Interop.ScrollView.SnapEventDurationSet(swigCPtr, value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - float ret = Interop.ScrollView.SnapEventDurationGet(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve()); - return ret; - } - } - - internal SnapType type - { - set - { - Interop.ScrollView.SnapEventTypeSet(swigCPtr, (int)value); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - get - { - SnapType ret = (SnapType)Interop.ScrollView.SnapEventTypeGet(swigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - /// - /// Get SnapEvent From Ptr - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr) - { - SnapEvent ret = new SnapEvent(cPtr, false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Dispose - /// - /// the dispose type - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void Dispose(DisposeTypes type) - { - if (disposed) - { - return; - } - - //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; - Interop.ScrollView.DeleteScrollViewSnapEvent(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - base.Dispose(type); - } - - } - - /// - /// Event arguments that passed via the SnapStarted signal. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")] - public class SnapStartedEventArgs : EventArgs - { - private Tizen.NUI.ScrollView.SnapEvent snapEvent; - - /// - /// SnapEventInfo is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick). - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public Tizen.NUI.ScrollView.SnapEvent SnapEventInfo - { - get - { - return snapEvent; - } - set - { - snapEvent = value; - } - } - } - } -} diff --git a/src/Tizen.NUI/src/public/Utility/ScrollViewPagePathEffect.cs b/src/Tizen.NUI/src/public/Utility/ScrollViewPagePathEffect.cs deleted file mode 100755 index 9d2abb2b0..000000000 --- a/src/Tizen.NUI/src/public/Utility/ScrollViewPagePathEffect.cs +++ /dev/null @@ -1,81 +0,0 @@ -/* - * 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.ComponentModel; -using Tizen.NUI.BaseComponents; - -namespace Tizen.NUI -{ - /// - /// ScrollView Page Path Effect. - /// This effect causes Views to follow a given path. The opacity of the view will be 0.0 at - /// the beginning of the path and will go to 1.0 as it is approximating to half of the path to return - /// to 0.0 at the end of the path. - /// - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class ScrollViewPagePathEffect : ScrollViewEffect - { - - internal ScrollViewPagePathEffect(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.ScrollView.ScrollViewPagePathEffectUpcast(cPtr), cMemoryOwn) - { - } - - - /// This will not be public opened. - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) - { - Interop.ScrollView.DeleteScrollViewPagePathEffect(swigCPtr); - } - - /// - /// Creates an initialized ScrollViewPagePathEffect. - /// - /// The path that will be used by the scroll effect. - /// Vector in page object space which will be aligned with the tangent of the path. - /// Index of a property of the scroll-view which will be used as the input for the path. - /// Size of a page in the scrollview. - /// Total number of pages in the scrollview. - /// A handle to a newly allocated Dali resource. - /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public ScrollViewPagePathEffect(Path path, Vector3 forward, int inputPropertyIndex, Vector3 pageSize, uint pageCount) : this(Interop.ScrollView.ScrollViewPagePathEffectNew(Path.getCPtr(path), Vector3.getCPtr(forward), inputPropertyIndex, Vector3.getCPtr(pageSize), pageCount), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - internal static ScrollViewPagePathEffect DownCast(BaseHandle handle) - { - ScrollViewPagePathEffect ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as ScrollViewPagePathEffect; - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Manually apply effect to a page in the scroll-view. - /// - /// The page to be affected by this effect. - /// The order of the page in the scroll view. - /// 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 ApplyToPage(View page, uint pageOrder) - { - Interop.ScrollView.ScrollViewPagePathEffectApplyToPage(SwigCPtr, View.getCPtr(page), pageOrder); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } -} diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/CubeTransitionEffect.cs b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/CubeTransitionEffect.cs new file mode 100755 index 000000000..00d8b3569 --- /dev/null +++ b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/CubeTransitionEffect.cs @@ -0,0 +1,401 @@ +/* + * Copyright(c) 2021 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 global::System; +using global::System.Runtime.InteropServices; +using Tizen.NUI.BaseComponents; +using global::System.ComponentModel; +using Tizen.NUI; + +namespace Tizen.NUI.Samples +{ + /// + /// Cube Transition Effect base class, used to apply custom effects to a + /// Cube Transition instance. + /// + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public class CubeTransitionEffect : View + { + private EventHandler transitionCompletedEventHandler; + private TransitionCompletedCallbackDelegate _transitionCompletedCallbackDelegate; + + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + private delegate void TransitionCompletedCallbackDelegate(IntPtr cubeTransition, IntPtr cubeTexture); + + /// + /// The constructor. + /// + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public CubeTransitionEffect() : this(Interop.CubeTransitionEffect.NewCubeTransitionEffect(), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal CubeTransitionEffect(IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) + { + } + + /// 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 SetTransitionDuration(float duration) + { + Interop.CubeTransitionEffect.SetTransitionDuration(SwigCPtr, duration); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public float GetTransitionDuration() + { + float result = Interop.CubeTransitionEffect.GetTransitionDuration(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return result; + } + + /// 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 SetCubeDisplacement(float displacement) + { + Interop.CubeTransitionEffect.SetCubeDisplacement(SwigCPtr, displacement); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public float GetCubeDisplacement() + { + float result = Interop.CubeTransitionEffect.GetCubeDisplacement(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return result; + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public bool IsTransitioning() + { + bool result = Interop.CubeTransitionEffect.IsTransitioning(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return result; + } + + /// 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 SetCurrentTexture(Texture texture) + { + Interop.CubeTransitionEffect.SetCurrentTexture(SwigCPtr, Texture.getCPtr(texture)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// 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 SetTargetTexture(Texture texture) + { + Interop.CubeTransitionEffect.SetTargetTexture(SwigCPtr, Texture.getCPtr(texture)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// 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 StartTransition(bool toNextImage = true) + { + Interop.CubeTransitionEffect.StartTransitionSwig1(SwigCPtr, toNextImage); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// 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 StartTransition(Vector2 panPosition, Vector2 panDisplacement) + { + Interop.CubeTransitionEffect.StartTransitionSwig2(SwigCPtr, Vector2.getCPtr(panPosition), Vector2.getCPtr(panDisplacement)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// 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 PauseTransition() + { + Interop.CubeTransitionEffect.PauseTransition(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// 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 ResumeTransition() + { + Interop.CubeTransitionEffect.ResumeTransition(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// 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 StopTransition() + { + Interop.CubeTransitionEffect.StopTransition(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + CubeTransitionEffectSignal TransitionCompletedSignal() + { + CubeTransitionEffectSignal ret = new CubeTransitionEffectSignal(Interop.CubeTransitionEffect.TransitionCompletedSignal(SwigCPtr), false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// + /// The TransitionCompleted event. + /// + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public event EventHandler TransitionCompleted + { + add + { + if (transitionCompletedEventHandler == null) + { + _transitionCompletedCallbackDelegate = (OnTransitionCompleted); + TransitionCompletedSignal().Connect(_transitionCompletedCallbackDelegate); + } + transitionCompletedEventHandler += value; + } + remove + { + transitionCompletedEventHandler -= value; + if (transitionCompletedEventHandler == null && TransitionCompletedSignal().Empty() == false) + { + TransitionCompletedSignal().Disconnect(_transitionCompletedCallbackDelegate); + } + } + } + + private void OnTransitionCompleted(IntPtr cubeTransition, IntPtr cubeTexture) + { + TransitionCompletedEventArgs e = new TransitionCompletedEventArgs(); + + // Populate all members of "e" (TransitionCompletedEventArgs) with real data + //e.CubeTransitionEffect = Registry.GetManagedBaseHandleFromNativePtr(cubeTransition) as CubeTransitionEffect; + + if (transitionCompletedEventHandler != null) + { + //here we send all data to user event handlers + transitionCompletedEventHandler(this, e); + } + } + + /// This will not be public opened. + [EditorBrowsable(EditorBrowsableState.Never)] + protected override void ReleaseSwigCPtr(HandleRef swigCPtr) + { + Interop.CubeTransitionEffect.DeleteCubeTransitionEffect(swigCPtr); + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public class TransitionCompletedEventArgs : EventArgs + { + private CubeTransitionEffect cubeTransitionEffect; + private Texture cubeTransitonTexture; + + /// + /// CubeTransitionEffect. + /// + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public CubeTransitionEffect CubeTransitionEffect + { + get + { + return cubeTransitionEffect; + } + set + { + cubeTransitionEffect = value; + } + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public Texture CubeTransitonTexture + { + get + { + return cubeTransitonTexture; + } + set + { + cubeTransitonTexture = value; + } + } + } + } + + internal class CubeTransitionEffectSignal : Disposable + { + + internal CubeTransitionEffectSignal(IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) + { + } + + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public bool Empty() + { + bool ret = Interop.CubeTransitionEffect.CubeTransitionEffectSignalEmpty(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public uint GetConnectionCount() + { + uint ret = Interop.CubeTransitionEffect.CubeTransitionEffectSignalGetConnectionCount(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// 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 Connect(Delegate func) + { + IntPtr ip = Marshal.GetFunctionPointerForDelegate(func); + { + Interop.CubeTransitionEffect.CubeTransitionEffectSignalConnect(SwigCPtr, new HandleRef(this, ip)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + } + + /// 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 Disconnect(Delegate func) + { + IntPtr ip = Marshal.GetFunctionPointerForDelegate(func); + { + Interop.CubeTransitionEffect.CubeTransitionEffectSignalDisconnect(SwigCPtr, new HandleRef(this, ip)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + } + + /// 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 Emit(CubeTransitionEffect arg) + { + Tizen.NUI.Interop.TextField.TextFieldSignalEmit(SwigCPtr, CubeTransitionEffect.getCPtr(arg)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public CubeTransitionEffectSignal() : this(Interop.CubeTransitionEffect.NewCubeTransitionEffectSignal(), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// This will be public opened. + [EditorBrowsable(EditorBrowsableState.Never)] + protected override void ReleaseSwigCPtr(HandleRef swigCPtr) + { + Interop.CubeTransitionEffect.DeleteCubeTransitionEffectSignal(swigCPtr); + } + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public class CubeTransitionWaveEffect : CubeTransitionEffect + { + + /// + /// The constructor. + /// + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public CubeTransitionWaveEffect(uint numRows, uint numColumns) : this(Interop.CubeTransitionWaveEffect.New(numRows, numColumns), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + + internal CubeTransitionWaveEffect(IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) + { + } + + /// This will be public opened. + [EditorBrowsable(EditorBrowsableState.Never)] + protected override void ReleaseSwigCPtr(HandleRef swigCPtr) + { + Interop.CubeTransitionWaveEffect.DeleteCubeTransitionWaveEffect(swigCPtr); + } + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public class CubeTransitionCrossEffect : CubeTransitionEffect + { + + /// + /// The constructor. + /// + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public CubeTransitionCrossEffect(uint numRows, uint numColumns) : this(Interop.CubeTransitionCrossEffect.New(numRows, numColumns), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + + internal CubeTransitionCrossEffect(IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) + { + } + + /// This will not be public opened. + [EditorBrowsable(EditorBrowsableState.Never)] + protected override void ReleaseSwigCPtr(HandleRef swigCPtr) + { + Interop.CubeTransitionCrossEffect.DeleteCubeTransitionCrossEffect(swigCPtr); + } + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public class CubeTransitionFoldEffect : CubeTransitionEffect + { + + /// + /// The constructor. + /// + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public CubeTransitionFoldEffect(uint numRows, uint numColumns) : this(Interop.CubeTransitionFoldEffect.New(numRows, numColumns), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + + internal CubeTransitionFoldEffect(IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) + { + } + + /// This will not be public opened. + [EditorBrowsable(EditorBrowsableState.Never)] + protected override void ReleaseSwigCPtr(HandleRef swigCPtr) + { + Interop.CubeTransitionFoldEffect.DeleteCubeTransitionFoldEffect(swigCPtr); + } + } +} diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ItemView.cs b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ItemView.cs new file mode 100755 index 000000000..645b0c4e2 --- /dev/null +++ b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ItemView.cs @@ -0,0 +1,924 @@ +/* + * Copyright(c) 2018 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 global::System; +using global::System.Diagnostics.CodeAnalysis; +using global::System.Runtime.InteropServices; +using global::System.ComponentModel; +using Tizen.NUI.BaseComponents; +using Tizen.NUI.Binding; +using Tizen.NUI; + +namespace Tizen.NUI.Samples +{ + using NDalicPINVOKE = Tizen.NUI.NDalicPINVOKE; + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public partial class ItemView : Scrollable + { + static ItemView() + { + if (NUIApplication.IsUsingXaml) + { + LayoutProperty = BindableProperty.Create(nameof(Layout), typeof(Tizen.NUI.PropertyArray), typeof(ItemView), null, + propertyChanged: SetInternalLayoutProperty, defaultValueCreator: GetInternalLayoutProperty); + + MinimumSwipeSpeedProperty = BindableProperty.Create(nameof(MinimumSwipeSpeed), typeof(float), typeof(ItemView), default(float), + propertyChanged: SetInternalMinimumSwipeSpeedProperty, defaultValueCreator: GetInternalMinimumSwipeSpeedProperty); + + MinimumSwipeDistanceProperty = BindableProperty.Create(nameof(MinimumSwipeDistance), typeof(float), typeof(ItemView), default(float), + propertyChanged: SetInternalMinimumSwipeDistanceProperty, defaultValueCreator: GetInternalMinimumSwipeDistanceProperty); + + WheelScrollDistanceStepProperty = BindableProperty.Create(nameof(WheelScrollDistanceStep), typeof(float), typeof(ItemView), default(float), + propertyChanged: SetInternalWheelScrollDistanceStepProperty, defaultValueCreator: GetInternalWheelScrollDistanceStepProperty); + + SnapToItemEnabledProperty = BindableProperty.Create(nameof(SnapToItemEnabled), typeof(bool), typeof(ItemView), true, + propertyChanged: SetInternalSnapToItemEnabledProperty, defaultValueCreator: GetInternalSnapToItemEnabledProperty); + + RefreshIntervalProperty = BindableProperty.Create(nameof(RefreshInterval), typeof(float), typeof(ItemView), default(float), + propertyChanged: SetInternalRefreshIntervalProperty, defaultValueCreator: GetInternalRefreshIntervalProperty); + + LayoutPositionProperty = BindableProperty.Create(nameof(LayoutPosition), typeof(float), typeof(ItemView), default(float), + propertyChanged: SetInternalLayoutPositionProperty, defaultValueCreator: GetInternalLayoutPositionProperty); + + ScrollSpeedProperty = BindableProperty.Create(nameof(ScrollSpeed), typeof(float), typeof(ItemView), default(float), + propertyChanged: SetInternalScrollSpeedProperty, defaultValueCreator: GetInternalScrollSpeedProperty); + + OvershootProperty = BindableProperty.Create(nameof(Overshoot), typeof(float), typeof(ItemView), default(float), + propertyChanged: SetInternalOvershootProperty, defaultValueCreator: GetInternalOvershootProperty); + + ScrollDirectionProperty = BindableProperty.Create(nameof(ScrollDirection), typeof(Tizen.NUI.Vector2), typeof(ItemView), null, + propertyChanged: SetInternalScrollDirectionProperty, defaultValueCreator: GetInternalScrollDirectionProperty); + + LayoutOrientationProperty = BindableProperty.Create(nameof(LayoutOrientation), typeof(int), typeof(ItemView), 0, + propertyChanged: SetInternalLayoutOrientationProperty, defaultValueCreator: GetInternalLayoutOrientationProperty); + + ScrollContentSizeProperty = BindableProperty.Create(nameof(ScrollContentSize), typeof(float), typeof(ItemView), default(float), + propertyChanged: SetInternalScrollContentSizeProperty, defaultValueCreator: GetInternalScrollContentSizeProperty); + } + } + + internal ItemView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) + { + } + + + /// This will be public opened. + [EditorBrowsable(EditorBrowsableState.Never)] + protected override void ReleaseSwigCPtr(HandleRef swigCPtr) + { + Interop.ItemView.DeleteItemView(swigCPtr); + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public new Tizen.NUI.PropertyArray Layout + { + get + { + if (NUIApplication.IsUsingXaml) + { + return GetValue(LayoutProperty) as PropertyArray; + } + else + { + return GetInternalLayoutProperty(this) as PropertyArray; + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(LayoutProperty, value); + } + else + { + SetInternalLayoutProperty(this, null, value); + } + NotifyPropertyChanged(); + } + } + + private Tizen.NUI.PropertyArray InternalLayout + { + get + { + Tizen.NUI.PropertyArray temp = new Tizen.NUI.PropertyArray(); + PropertyValue layout = GetProperty(ItemView.Property.LAYOUT); + layout?.Get(temp); + layout?.Dispose(); + return temp; + } + set + { + PropertyValue setValue = new Tizen.NUI.PropertyValue(value); + SetProperty(ItemView.Property.LAYOUT, setValue); + setValue.Dispose(); + } + } + + /// + /// Property for ItemView. This is internal use only, so not recommended to use. Need to use ItemView's properties. + /// + internal new class Property + { + internal static readonly int LAYOUT = Interop.ItemView.LayoutGet(); + internal static readonly int MinimumSwipeSpeed = Interop.ItemView.MinimumSwipeSpeedGet(); + internal static readonly int MinimumSwipeDistance = Interop.ItemView.MinimumSwipeDistanceGet(); + internal static readonly int WheelScrollDistanceStep = Interop.ItemView.WheelScrollDistanceStepGet(); + internal static readonly int SnapToItemEnabled = Interop.ItemView.SnapToItemEnabledGet(); + internal static readonly int RefreshInterval = Interop.ItemView.RefreshIntervalGet(); + internal static readonly int LayoutPosition = Interop.ItemView.LayoutPositionGet(); + internal static readonly int ScrollSpeed = Interop.ItemView.ScrollSpeedGet(); + internal static readonly int OVERSHOOT = Interop.ItemView.OvershootGet(); + internal static readonly int ScrollDirection = Interop.ItemView.ScrollDirectionGet(); + internal static readonly int LayoutOrientation = Interop.ItemView.LayoutOrientationGet(); + internal static readonly int ScrollContentSize = Interop.ItemView.ScrollContentSizeGet(); + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public ItemView(ItemFactory factory) : this(Interop.ItemView.New(ItemFactory.getCPtr(factory)), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal static ItemView DownCast(BaseHandle handle) + { + ItemView ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as ItemView; + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public uint GetLayoutCount() + { + uint ret = Interop.ItemView.GetLayoutCount(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// 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 AddLayout(ItemLayout layout) + { + Interop.ItemView.AddLayout(SwigCPtr, ItemLayout.getCPtr(layout)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// 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 RemoveLayout(uint layoutIndex) + { + Interop.ItemView.RemoveLayout(SwigCPtr, layoutIndex); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public new View GetChildAt(uint index) + { + View ret = new View(Tizen.NUI.Interop.ActorInternal.GetChildAt(SwigCPtr, index), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t GetLayout(uint layoutIndex) + { + SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t ret = new SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t(Interop.ItemView.GetLayout(SwigCPtr, layoutIndex)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t GetActiveLayout() + { + SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t ret = new SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t(Interop.ItemView.GetActiveLayout(SwigCPtr)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public float GetCurrentLayoutPosition(uint itemId) + { + float ret = Interop.ItemView.GetCurrentLayoutPosition(SwigCPtr, itemId); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// 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 ActivateLayout(uint layoutIndex, Vector3 targetSize, float durationSeconds) + { + Interop.ItemView.ActivateLayout(SwigCPtr, layoutIndex, Vector3.getCPtr(targetSize), durationSeconds); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// 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 DeactivateCurrentLayout() + { + Interop.ItemView.DeactivateCurrentLayout(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// 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 SetAnchoring(bool enabled) + { + Interop.ItemView.SetAnchoring(SwigCPtr, enabled); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public bool GetAnchoring() + { + bool ret = Interop.ItemView.GetAnchoring(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// 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 SetAnchoringDuration(float durationSeconds) + { + Interop.ItemView.SetAnchoringDuration(SwigCPtr, durationSeconds); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public float GetAnchoringDuration() + { + float ret = Interop.ItemView.GetAnchoringDuration(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// 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 ScrollToItem(uint itemId, float durationSeconds) + { + Interop.ItemView.ScrollToItem(SwigCPtr, itemId, durationSeconds); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// 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 Refresh() + { + Interop.ItemView.Refresh(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public View GetItem(uint itemId) + { + View ret = new View(Interop.ItemView.GetItem(SwigCPtr, itemId), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public uint GetItemId(View view) + { + uint ret = Interop.ItemView.GetItemId(SwigCPtr, View.getCPtr(view)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// 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 InsertItem(Item newItem, float durationSeconds) + { + Interop.ItemView.InsertItem(SwigCPtr, Item.getCPtr(newItem), durationSeconds); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// 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 InsertItems(ItemCollection newItems, float durationSeconds) + { + Interop.ItemView.InsertItems(SwigCPtr, ItemCollection.getCPtr(newItems), durationSeconds); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// 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 RemoveItem(uint itemId, float durationSeconds) + { + Interop.ItemView.RemoveItem(SwigCPtr, itemId, durationSeconds); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// 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 RemoveItems(ItemIdCollection itemIds, float durationSeconds) + { + Interop.ItemView.RemoveItems(SwigCPtr, ItemIdCollection.getCPtr(itemIds), durationSeconds); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// 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 ReplaceItem(Item replacementItem, float durationSeconds) + { + Interop.ItemView.ReplaceItem(SwigCPtr, Item.getCPtr(replacementItem), durationSeconds); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// 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 ReplaceItems(ItemCollection replacementItems, float durationSeconds) + { + Interop.ItemView.ReplaceItems(SwigCPtr, ItemCollection.getCPtr(replacementItems), durationSeconds); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// 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 SetItemsParentOrigin(Vector3 parentOrigin) + { + Interop.ItemView.SetItemsParentOrigin(SwigCPtr, Vector3.getCPtr(parentOrigin)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public Vector3 GetItemsParentOrigin() + { + Vector3 ret = new Vector3(Interop.ItemView.GetItemsParentOrigin(SwigCPtr), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// 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 SetItemsAnchorPoint(Vector3 anchorPoint) + { + Interop.ItemView.SetItemsAnchorPoint(SwigCPtr, Vector3.getCPtr(anchorPoint)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public Vector3 GetItemsAnchorPoint() + { + Vector3 ret = new Vector3(Interop.ItemView.GetItemsAnchorPoint(SwigCPtr), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// 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 GetItemsRange(ItemRange range) + { + Interop.ItemView.GetItemsRange(SwigCPtr, ItemRange.getCPtr(range)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal VoidSignal LayoutActivatedSignal() + { + VoidSignal ret = new VoidSignal(Interop.ItemView.LayoutActivatedSignal(SwigCPtr), false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public float MinimumSwipeSpeed + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (float)GetValue(MinimumSwipeSpeedProperty); + } + else + { + return (float)GetInternalMinimumSwipeSpeedProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(MinimumSwipeSpeedProperty, value); + } + else + { + SetInternalMinimumSwipeSpeedProperty(this, null, value); + } + NotifyPropertyChanged(); + } + } + + private float InternalMinimumSwipeSpeed + { + get + { + float returnValue = 0.0f; + PropertyValue minimumSwipeSpeed = GetProperty(ItemView.Property.MinimumSwipeSpeed); + minimumSwipeSpeed?.Get(out returnValue); + minimumSwipeSpeed?.Dispose(); + return returnValue; + } + set + { + PropertyValue setValue = new Tizen.NUI.PropertyValue(value); + SetProperty(ItemView.Property.MinimumSwipeSpeed, setValue); + setValue.Dispose(); + } + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public float MinimumSwipeDistance + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (float)GetValue(MinimumSwipeDistanceProperty); + } + else + { + return (float)GetInternalMinimumSwipeDistanceProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(MinimumSwipeDistanceProperty, value); + } + else + { + SetInternalMinimumSwipeDistanceProperty(this, null, value); + } + NotifyPropertyChanged(); + } + } + + private float InternalMinimumSwipeDistance + { + get + { + float returnValue = 0.0f; + PropertyValue minimumSwipDistance = GetProperty(ItemView.Property.MinimumSwipeDistance); + minimumSwipDistance?.Get(out returnValue); + minimumSwipDistance?.Dispose(); + return returnValue; + } + set + { + PropertyValue setValue = new Tizen.NUI.PropertyValue(value); + SetProperty(ItemView.Property.MinimumSwipeDistance, setValue); + setValue.Dispose(); + } + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public float WheelScrollDistanceStep + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (float)GetValue(WheelScrollDistanceStepProperty); + } + else + { + return (float)GetInternalWheelScrollDistanceStepProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(WheelScrollDistanceStepProperty, value); + } + else + { + SetInternalWheelScrollDistanceStepProperty(this, null, value); + } + NotifyPropertyChanged(); + } + } + + private float InternalWheelScrollDistanceStep + { + get + { + float returnValue = 0.0f; + PropertyValue wheelScrollDistanceStep = GetProperty(ItemView.Property.WheelScrollDistanceStep); + wheelScrollDistanceStep?.Get(out returnValue); + wheelScrollDistanceStep?.Dispose(); + return returnValue; + } + set + { + PropertyValue setValue = new Tizen.NUI.PropertyValue(value); + SetProperty(ItemView.Property.WheelScrollDistanceStep, setValue); + setValue.Dispose(); + } + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public bool SnapToItemEnabled + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (bool)GetValue(SnapToItemEnabledProperty); + } + else + { + return (bool)GetInternalSnapToItemEnabledProperty(this); + } + + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(SnapToItemEnabledProperty, value); + } + else + { + SetInternalSnapToItemEnabledProperty(this, null, value); + } + NotifyPropertyChanged(); + } + } + + private bool InternalSnapToItemEnabled + { + get + { + bool returnValue = false; + PropertyValue snapToItemEnabled = GetProperty(ItemView.Property.SnapToItemEnabled); + snapToItemEnabled?.Get(out returnValue); + snapToItemEnabled?.Dispose(); + return returnValue; + } + set + { + PropertyValue setValue = new Tizen.NUI.PropertyValue(value); + SetProperty(ItemView.Property.SnapToItemEnabled, setValue); + setValue.Dispose(); + } + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public float RefreshInterval + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (float)GetValue(RefreshIntervalProperty); + } + else + { + return (float)GetInternalRefreshIntervalProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(RefreshIntervalProperty, value); + } + else + { + SetInternalRefreshIntervalProperty(this, null, value); + } + NotifyPropertyChanged(); + } + } + + private float InternalRefreshInterval + { + get + { + float returnValue = 0.0f; + PropertyValue refreshIntervalu = GetProperty(ItemView.Property.RefreshInterval); + refreshIntervalu?.Get(out returnValue); + refreshIntervalu?.Dispose(); + return returnValue; + } + set + { + PropertyValue setValue = new Tizen.NUI.PropertyValue(value); + SetProperty(ItemView.Property.RefreshInterval, setValue); + setValue.Dispose(); + } + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public float LayoutPosition + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (float)GetValue(LayoutPositionProperty); + } + else + { + return (float)GetInternalLayoutPositionProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(LayoutPositionProperty, value); + } + else + { + SetInternalLayoutPositionProperty(this, null, value); + } + NotifyPropertyChanged(); + } + } + + private float InternalLayoutPosition + { + get + { + float returnValue = 0.0f; + PropertyValue layoutPosition = GetProperty(ItemView.Property.LayoutPosition); + layoutPosition?.Get(out returnValue); + layoutPosition?.Dispose(); + return returnValue; + } + set + { + PropertyValue setValue = new Tizen.NUI.PropertyValue(value); + SetProperty(ItemView.Property.LayoutPosition, setValue); + setValue.Dispose(); + } + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public float ScrollSpeed + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (float)GetValue(ScrollSpeedProperty); + } + else + { + return (float)GetInternalScrollSpeedProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(ScrollSpeedProperty, value); + } + else + { + SetInternalScrollSpeedProperty(this, null, value); + } + NotifyPropertyChanged(); + } + } + + private float InternalScrollSpeed + { + get + { + float returnValue = 0.0f; + PropertyValue scrollSpeed = GetProperty(ItemView.Property.ScrollSpeed); + scrollSpeed?.Get(out returnValue); + scrollSpeed?.Dispose(); + return returnValue; + } + set + { + PropertyValue setValue = new Tizen.NUI.PropertyValue(value); + SetProperty(ItemView.Property.ScrollSpeed, setValue); + setValue.Dispose(); + } + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public float Overshoot + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (float)GetValue(OvershootProperty); + } + else + { + return (float)GetInternalOvershootProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(OvershootProperty, value); + } + else + { + SetInternalOvershootProperty(this, null, value); + } + NotifyPropertyChanged(); + } + } + + private float InternalOvershoot + { + get + { + float returnValue = 0.0f; + PropertyValue overShoot = GetProperty(ItemView.Property.OVERSHOOT); + overShoot?.Get(out returnValue); + overShoot?.Dispose(); + return returnValue; + } + set + { + PropertyValue setValue = new Tizen.NUI.PropertyValue(value); + SetProperty(ItemView.Property.OVERSHOOT, setValue); + setValue.Dispose(); + } + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public Vector2 ScrollDirection + { + get + { + if (NUIApplication.IsUsingXaml) + { + return GetValue(ScrollDirectionProperty) as Vector2; + } + else + { + return GetInternalScrollDirectionProperty(this) as Vector2; + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(ScrollDirectionProperty, value); + } + else + { + SetInternalScrollDirectionProperty(this, null, value); + } + NotifyPropertyChanged(); + } + } + + private Vector2 InternalScrollDirection + { + get + { + Vector2 returnValue = new Vector2(0.0f, 0.0f); + PropertyValue scrollDirection = GetProperty(ItemView.Property.ScrollDirection); + scrollDirection?.Get(returnValue); + scrollDirection?.Dispose(); + return returnValue; + } + set + { + PropertyValue setValue = new Tizen.NUI.PropertyValue(value); + SetProperty(ItemView.Property.ScrollDirection, setValue); + setValue.Dispose(); + } + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public int LayoutOrientation + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (int)GetValue(LayoutOrientationProperty); + } + else + { + return (int)GetInternalLayoutOrientationProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(LayoutOrientationProperty, value); + } + else + { + SetInternalLayoutOrientationProperty(this, null, value); + } + NotifyPropertyChanged(); + } + } + + private int InternalLayoutOrientation + { + get + { + int returnValue = 0; + PropertyValue layoutOrientation = GetProperty(ItemView.Property.LayoutOrientation); + layoutOrientation?.Get(out returnValue); + layoutOrientation?.Dispose(); + return returnValue; + } + set + { + PropertyValue setValue = new Tizen.NUI.PropertyValue(value); + SetProperty(ItemView.Property.LayoutOrientation, setValue); + setValue.Dispose(); + } + } + + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public float ScrollContentSize + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (float)GetValue(ScrollContentSizeProperty); + } + else + { + return (float)GetInternalScrollContentSizeProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(ScrollContentSizeProperty, value); + } + else + { + SetInternalScrollContentSizeProperty(this, null, value); + } + NotifyPropertyChanged(); + } + } + + private float InternalScrollContentSize + { + get + { + float returnValue = 0.0f; + PropertyValue scrollContentSize = GetProperty(ItemView.Property.ScrollContentSize); + scrollContentSize?.Get(out returnValue); + scrollContentSize?.Dispose(); + return returnValue; + } + set + { + PropertyValue setValue = new Tizen.NUI.PropertyValue(value); + SetProperty(ItemView.Property.ScrollContentSize, setValue); + setValue.Dispose(); + } + } + } +} diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ItemViewBindableProperty.cs b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ItemViewBindableProperty.cs new file mode 100755 index 000000000..1b8b0de92 --- /dev/null +++ b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ItemViewBindableProperty.cs @@ -0,0 +1,253 @@ +/* + * Copyright(c) 2021 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.ComponentModel; +using Tizen.NUI.Binding; + +namespace Tizen.NUI.Samples +{ + public partial class ItemView + { + /// + /// LayoutProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static new BindableProperty LayoutProperty = null; + internal static new void SetInternalLayoutProperty(BindableObject bindable, object oldValue, object newValue) + { + var instance = (ItemView)bindable; + if (newValue != null) + { + instance.InternalLayout = (Tizen.NUI.PropertyArray)newValue; + } + } + internal static new object GetInternalLayoutProperty(BindableObject bindable) + { + var instance = (ItemView)bindable; + return instance.InternalLayout; + } + + /// + /// MinimumSwipeSpeedProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static BindableProperty MinimumSwipeSpeedProperty = null; + internal static void SetInternalMinimumSwipeSpeedProperty(BindableObject bindable, object oldValue, object newValue) + { + var instance = (ItemView)bindable; + if (newValue != null) + { + instance.InternalMinimumSwipeSpeed = (float)newValue; + } + } + internal static object GetInternalMinimumSwipeSpeedProperty(BindableObject bindable) + { + var instance = (ItemView)bindable; + return instance.InternalMinimumSwipeSpeed; + } + + /// + /// MinimumSwipeDistanceProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static BindableProperty MinimumSwipeDistanceProperty = null; + internal static void SetInternalMinimumSwipeDistanceProperty(BindableObject bindable, object oldValue, object newValue) + { + var instance = (ItemView)bindable; + if (newValue != null) + { + instance.InternalMinimumSwipeDistance = (float)newValue; + } + } + internal static object GetInternalMinimumSwipeDistanceProperty(BindableObject bindable) + { + var instance = (ItemView)bindable; + return instance.InternalMinimumSwipeDistance; + } + + /// + /// WheelScrollDistanceStepProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static BindableProperty WheelScrollDistanceStepProperty = null; + internal static void SetInternalWheelScrollDistanceStepProperty(BindableObject bindable, object oldValue, object newValue) + { + var instance = (ItemView)bindable; + if (newValue != null) + { + instance.InternalWheelScrollDistanceStep = (float)newValue; + } + } + internal static object GetInternalWheelScrollDistanceStepProperty(BindableObject bindable) + { + var instance = (ItemView)bindable; + return instance.InternalWheelScrollDistanceStep; + } + + /// + /// SnapToItemEnabledProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static BindableProperty SnapToItemEnabledProperty = null; + internal static void SetInternalSnapToItemEnabledProperty(BindableObject bindable, object oldValue, object newValue) + { + var instance = (ItemView)bindable; + if (newValue != null) + { + instance.InternalSnapToItemEnabled = (bool)newValue; + } + } + internal static object GetInternalSnapToItemEnabledProperty(BindableObject bindable) + { + var instance = (ItemView)bindable; + return instance.InternalSnapToItemEnabled; + } + + /// + /// RefreshIntervalProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static BindableProperty RefreshIntervalProperty = null; + internal static void SetInternalRefreshIntervalProperty(BindableObject bindable, object oldValue, object newValue) + { + var instance = (ItemView)bindable; + if (newValue != null) + { + instance.InternalRefreshInterval = (float)newValue; + } + } + internal static object GetInternalRefreshIntervalProperty(BindableObject bindable) + { + var instance = (ItemView)bindable; + return instance.InternalRefreshInterval; + } + + /// + /// LayoutPositionProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static BindableProperty LayoutPositionProperty = null; + internal static void SetInternalLayoutPositionProperty(BindableObject bindable, object oldValue, object newValue) + { + var instance = (ItemView)bindable; + if (newValue != null) + { + instance.InternalLayoutPosition = (float)newValue; + } + } + internal static object GetInternalLayoutPositionProperty(BindableObject bindable) + { + var instance = (ItemView)bindable; + return instance.InternalLayoutPosition; + } + + /// + /// ScrollSpeedProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static BindableProperty ScrollSpeedProperty = null; + internal static void SetInternalScrollSpeedProperty(BindableObject bindable, object oldValue, object newValue) + { + var instance = (ItemView)bindable; + if (newValue != null) + { + instance.InternalScrollSpeed = (float)newValue; + } + } + internal static object GetInternalScrollSpeedProperty(BindableObject bindable) + { + var instance = (ItemView)bindable; + return instance.InternalScrollSpeed; + } + + /// + /// OvershootProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static BindableProperty OvershootProperty = null; + internal static void SetInternalOvershootProperty(BindableObject bindable, object oldValue, object newValue) + { + var instance = (ItemView)bindable; + if (newValue != null) + { + instance.InternalOvershoot = (float)newValue; + } + } + internal static object GetInternalOvershootProperty(BindableObject bindable) + { + var instance = (ItemView)bindable; + return instance.InternalOvershoot; + } + + /// + /// ScrollDirectionProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static BindableProperty ScrollDirectionProperty = null; + internal static void SetInternalScrollDirectionProperty(BindableObject bindable, object oldValue, object newValue) + { + var instance = (ItemView)bindable; + if (newValue != null) + { + instance.InternalScrollDirection = (Tizen.NUI.Vector2)newValue; + } + } + internal static object GetInternalScrollDirectionProperty(BindableObject bindable) + { + var instance = (ItemView)bindable; + return instance.InternalScrollDirection; + } + + /// + /// LayoutOrientationProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static BindableProperty LayoutOrientationProperty = null; + internal static void SetInternalLayoutOrientationProperty(BindableObject bindable, object oldValue, object newValue) + { + var instance = (ItemView)bindable; + if (newValue != null) + { + instance.InternalLayoutOrientation = (int)newValue; + } + } + internal static object GetInternalLayoutOrientationProperty(BindableObject bindable) + { + var instance = (ItemView)bindable; + return instance.InternalLayoutOrientation; + } + + /// + /// ScrollContentSizeProperty + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static BindableProperty ScrollContentSizeProperty = null; + internal static void SetInternalScrollContentSizeProperty(BindableObject bindable, object oldValue, object newValue) + { + var instance = (ItemView)bindable; + if (newValue != null) + { + instance.InternalScrollContentSize = (float)newValue; + } + } + internal static object GetInternalScrollContentSizeProperty(BindableObject bindable) + { + var instance = (ItemView)bindable; + return instance.InternalScrollContentSize; + } + } +} diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ScrollView.cs b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ScrollView.cs new file mode 100755 index 000000000..5f04540b5 --- /dev/null +++ b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ScrollView.cs @@ -0,0 +1,1444 @@ +/* + * Copyright(c) 2021 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 global::System; +using global::System.Diagnostics.CodeAnalysis; +using global::System.Runtime.InteropServices; +using global::System.ComponentModel; +using Tizen.NUI.BaseComponents; +using Tizen.NUI; +using Tizen.NUI.Binding; + +namespace Tizen.NUI.Samples +{ + /// + /// ScrollView contains views that can be scrolled manually (via touch). + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public partial class ScrollView : Scrollable + { + + static ScrollView() + { + if(NUIApplication.IsUsingXaml) + { + WrapEnabledProperty = BindableProperty.Create(nameof(WrapEnabled), typeof(bool), typeof(ScrollView), false, propertyChanged: SetInternalWrapEnabledProperty, defaultValueCreator: GetInternalWrapEnabledProperty); + + PanningEnabledProperty = BindableProperty.Create(nameof(PanningEnabled), typeof(bool), typeof(ScrollView), false, propertyChanged: SetInternalPanningEnabledProperty, defaultValueCreator: GetInternalPanningEnabledProperty); + + AxisAutoLockEnabledProperty = BindableProperty.Create(nameof(AxisAutoLockEnabled), typeof(bool), typeof(ScrollView), false, propertyChanged: SetInternalAxisAutoLockEnabledProperty, defaultValueCreator: GetInternalAxisAutoLockEnabledProperty); + + WheelScrollDistanceStepProperty = BindableProperty.Create(nameof(WheelScrollDistanceStep), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: SetInternalWheelScrollDistanceStepProperty, defaultValueCreator: GetInternalWheelScrollDistanceStepProperty); + + ScrollPositionProperty = BindableProperty.Create(nameof(ScrollPosition), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: SetInternalScrollPositionProperty, defaultValueCreator: GetInternalScrollPositionProperty); + + ScrollPrePositionProperty = BindableProperty.Create(nameof(ScrollPrePosition), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: SetInternalScrollPrePositionProperty, defaultValueCreator: GetInternalScrollPrePositionProperty); + + ScrollPrePositionMaxProperty = BindableProperty.Create(nameof(ScrollPrePositionMax), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: SetInternalScrollPrePositionMaxProperty, defaultValueCreator: GetInternalScrollPrePositionMaxProperty); + + OvershootXProperty = BindableProperty.Create(nameof(OvershootX), typeof(float), typeof(ScrollView), default(float), propertyChanged: SetInternalOvershootXProperty, defaultValueCreator: GetInternalOvershootXProperty); + + OvershootYProperty = BindableProperty.Create(nameof(OvershootY), typeof(float), typeof(ScrollView), default(float), propertyChanged: SetInternalOvershootYProperty, defaultValueCreator: GetInternalOvershootYProperty); + + ScrollFinalProperty = BindableProperty.Create(nameof(ScrollFinal), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: SetInternalScrollFinalProperty, defaultValueCreator: GetInternalScrollFinalProperty); + + WrapProperty = BindableProperty.Create(nameof(Wrap), typeof(bool), typeof(ScrollView), false, propertyChanged: SetInternalWrapProperty, defaultValueCreator: GetInternalWrapProperty); + + PanningProperty = BindableProperty.Create(nameof(Panning), typeof(bool), typeof(ScrollView), false, propertyChanged: SetInternalPanningProperty, defaultValueCreator: GetInternalPanningProperty); + + ScrollingProperty = BindableProperty.Create(nameof(Scrolling), typeof(bool), typeof(ScrollView), false, propertyChanged: SetInternalScrollingProperty, defaultValueCreator: GetInternalScrollingProperty); + + ScrollDomainSizeProperty = BindableProperty.Create(nameof(ScrollDomainSize), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: SetInternalScrollDomainSizeProperty, defaultValueCreator: GetInternalScrollDomainSizeProperty); + + ScrollDomainOffsetProperty = BindableProperty.Create(nameof(ScrollDomainOffset), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: SetInternalScrollDomainOffsetProperty, defaultValueCreator: GetInternalScrollDomainOffsetProperty); + + ScrollPositionDeltaProperty = BindableProperty.Create(nameof(ScrollPositionDelta), typeof(Vector2), typeof(ScrollView), Vector2.Zero, propertyChanged: SetInternalScrollPositionDeltaProperty, defaultValueCreator: GetInternalScrollPositionDeltaProperty); + + StartPagePositionProperty = BindableProperty.Create(nameof(StartPagePosition), typeof(Vector3), typeof(ScrollView), Vector3.Zero, propertyChanged: SetInternalStartPagePositionProperty, defaultValueCreator: GetInternalStartPagePositionProperty); + + ScrollModeProperty = BindableProperty.Create(nameof(ScrollMode), typeof(PropertyMap), typeof(ScrollView), new PropertyMap(), propertyChanged: SetInternalScrollModeProperty, defaultValueCreator: GetInternalScrollModeProperty); + + } + } + + /// + /// Create an instance of ScrollView. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public ScrollView() : this(Tizen.NUI.Interop.ScrollView.New(), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal ScrollView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) + { + } + + /// + /// Sets and Gets WrapEnabled property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public bool WrapEnabled + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (bool)GetValue(WrapEnabledProperty); + } + else + { + return (bool)GetInternalWrapEnabledProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(WrapEnabledProperty, value); + } + else + { + SetInternalWrapEnabledProperty(this, null, value); + } + } + } + + /// + /// Sets and Gets PanningEnabled property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public bool PanningEnabled + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (bool)GetValue(PanningEnabledProperty); + } + else + { + return (bool)GetInternalPanningEnabledProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(PanningEnabledProperty, value); + } + else + { + SetInternalPanningEnabledProperty(this, null, value); + } + } + } + + /// + /// Sets and Gets AxisAutoLockEnabled property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public bool AxisAutoLockEnabled + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (bool)GetValue(AxisAutoLockEnabledProperty); + } + else + { + return (bool)GetInternalAxisAutoLockEnabledProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(AxisAutoLockEnabledProperty, value); + } + else + { + SetInternalAxisAutoLockEnabledProperty(this, null, value); + } + } + } + + /// + /// Sets and Gets WheelScrollDistanceStep property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public Vector2 WheelScrollDistanceStep + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (Vector2)GetValue(WheelScrollDistanceStepProperty); + } + else + { + return (Vector2)GetInternalWheelScrollDistanceStepProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(WheelScrollDistanceStepProperty, value); + } + else + { + SetInternalWheelScrollDistanceStepProperty(this, null, value); + } + } + } + + /// + /// Sets and Gets ScrollPosition property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public Vector2 ScrollPosition + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (Vector2)GetValue(ScrollPositionProperty); + } + else + { + return (Vector2)GetInternalScrollPositionProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(ScrollPositionProperty, value); + } + else + { + SetInternalScrollPositionProperty(this, null, value); + } + } + } + + /// + /// Sets and Gets ScrollPrePosition property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public Vector2 ScrollPrePosition + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (Vector2)GetValue(ScrollPrePositionProperty); + } + else + { + return (Vector2)GetInternalScrollPrePositionProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(ScrollPrePositionProperty, value); + } + else + { + SetInternalScrollPrePositionProperty(this, null, value); + } + } + } + + /// + /// Sets and Gets ScrollPrePositionMax property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public Vector2 ScrollPrePositionMax + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (Vector2)GetValue(ScrollPrePositionMaxProperty); + } + else + { + return (Vector2)GetInternalScrollPrePositionMaxProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(ScrollPrePositionMaxProperty, value); + + } + else + { + SetInternalScrollPrePositionMaxProperty(this, null, value); + } + } + } + + /// + /// Sets and Gets OvershootX property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public float OvershootX + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (float)GetValue(OvershootXProperty); + } + else + { + return (float)GetInternalOvershootXProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(OvershootXProperty, value); + } + else + { + SetInternalOvershootXProperty(this, null, value); + } + } + } + + /// + /// Sets and Gets OvershootY property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public float OvershootY + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (float)GetValue(OvershootYProperty); + } + else + { + return (float)GetInternalOvershootYProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(OvershootYProperty, value); + } + else + { + SetInternalOvershootYProperty(this, null, value); + } + } + } + + /// + /// Sets and Gets ScrollFinal property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public Vector2 ScrollFinal + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (Vector2)GetValue(ScrollFinalProperty); + } + else + { + return (Vector2)GetInternalScrollFinalProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(ScrollFinalProperty, value); + } + else + { + SetInternalScrollFinalProperty(this, null, value); + } + } + } + + /// + /// Sets and Gets Wrap property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public bool Wrap + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (bool)GetValue(WrapProperty); + } + else + { + return (bool)GetInternalWrapProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(WrapProperty, value); + + } + else + { + SetInternalWrapProperty(this, null, value); + } + } + } + + /// + /// Sets and Gets Panning property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public bool Panning + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (bool)GetValue(PanningProperty); + } + else + { + return (bool)GetInternalPanningProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(PanningProperty, value); + } + else + { + SetInternalPanningProperty(this, null, value); + } + } + } + + /// + /// Sets and Gets Scrolling property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public bool Scrolling + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (bool)GetValue(ScrollingProperty); + } + else + { + return (bool)GetInternalScrollingProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(ScrollingProperty, value); + } + else + { + SetInternalScrollingProperty(this, null, value); + } + } + } + + /// + /// Sets and Gets ScrollDomainSize property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public Vector2 ScrollDomainSize + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (Vector2)GetValue(ScrollDomainSizeProperty); + } + else + { + return (Vector2)GetInternalScrollDomainSizeProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(ScrollDomainSizeProperty, value); + } + else + { + SetInternalScrollDomainSizeProperty(this, null, value); + } + } + } + + /// + /// Sets and Gets ScrollDomainOffset property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public Vector2 ScrollDomainOffset + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (Vector2)GetValue(ScrollDomainOffsetProperty); + } + else + { + return (Vector2)GetInternalScrollDomainOffsetProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(ScrollDomainOffsetProperty, value); + } + else + { + SetInternalScrollDomainOffsetProperty(this, null, value); + } + } + } + + /// + /// Sets and Gets ScrollPositionDelta property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public Vector2 ScrollPositionDelta + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (Vector2)GetValue(ScrollPositionDeltaProperty); + } + else + { + return (Vector2)GetInternalScrollPositionDeltaProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(ScrollPositionDeltaProperty, value); + } + else + { + SetInternalScrollPositionDeltaProperty(this, null, value); + } + } + } + + /// + /// Sets and Gets StartPagePosition property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public Vector3 StartPagePosition + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (Vector3)GetValue(StartPagePositionProperty); + } + else + { + return (Vector3)GetInternalStartPagePositionProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(StartPagePositionProperty, value); + } + else + { + SetInternalStartPagePositionProperty(this, null, value); + } + } + } + + + /// + /// Sets and Gets ScrollMode property. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public PropertyMap ScrollMode + { + get + { + if (NUIApplication.IsUsingXaml) + { + return (PropertyMap)GetValue(ScrollModeProperty); + } + else + { + return (PropertyMap)GetInternalScrollModeProperty(this); + } + } + set + { + if (NUIApplication.IsUsingXaml) + { + SetValue(ScrollModeProperty, value); + } + else + { + SetInternalScrollModeProperty(this, null, value); + } + } + } + + /// + /// Gets snap-animation's AlphaFunction. + /// + /// Current easing alpha function of the snap animation. + [EditorBrowsable(EditorBrowsableState.Never)] + public AlphaFunction GetScrollSnapAlphaFunction() + { + AlphaFunction ret = new AlphaFunction(Tizen.NUI.Interop.ScrollView.GetScrollSnapAlphaFunction(SwigCPtr), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// + /// Sets snap-animation's AlphaFunction. + /// + /// Easing alpha function of the snap animation. + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetScrollSnapAlphaFunction(AlphaFunction alpha) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public AlphaFunction GetScrollFlickAlphaFunction() + { + AlphaFunction ret = new AlphaFunction(Tizen.NUI.Interop.ScrollView.GetScrollFlickAlphaFunction(SwigCPtr), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// + /// Sets flick-animation's AlphaFunction. + /// + /// Easing alpha function of the flick animation. + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetScrollFlickAlphaFunction(AlphaFunction alpha) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public float GetScrollSnapDuration() + { + float ret = Tizen.NUI.Interop.ScrollView.GetScrollSnapDuration(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// + /// Sets the time for the scroll snap-animation. + /// + /// The time in seconds for the animation to take. + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetScrollSnapDuration(float time) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public float GetScrollFlickDuration() + { + float ret = Tizen.NUI.Interop.ScrollView.GetScrollFlickDuration(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// + /// Sets the time for the scroll snap-animation. + /// + /// The time in seconds for the animation to take. + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetScrollFlickDuration(float time) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetScrollSensitive(bool sensitive) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetMaxOvershoot(float overshootX, float overshootY) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetSnapOvershootAlphaFunction(AlphaFunction alpha) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetSnapOvershootDuration(float duration) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetViewAutoSnap(bool enable) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetWrapMode(bool enable) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public int GetScrollUpdateDistance() + { + int ret = Tizen.NUI.Interop.ScrollView.GetScrollUpdateDistance(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + 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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetScrollUpdateDistance(int distance) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public bool GetAxisAutoLock() + { + bool ret = Tizen.NUI.Interop.ScrollView.GetAxisAutoLock(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + 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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetAxisAutoLock(bool enable) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public float GetAxisAutoLockGradient() + { + float ret = Tizen.NUI.Interop.ScrollView.GetAxisAutoLockGradient(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + 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). + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetAxisAutoLockGradient(float gradient) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public float GetFrictionCoefficient() + { + float ret = Tizen.NUI.Interop.ScrollView.GetFrictionCoefficient(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// + /// Sets the friction coefficient for ScrollView when flicking.
+ ///
+ /// Friction coefficient must be greater than 0.0 (default = 1.0). + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetFrictionCoefficient(float friction) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public float GetFlickSpeedCoefficient() + { + float ret = Tizen.NUI.Interop.ScrollView.GetFlickSpeedCoefficient(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + 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). + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetFlickSpeedCoefficient(float speed) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public Vector2 GetMinimumDistanceForFlick() + { + Vector2 ret = new Vector2(Tizen.NUI.Interop.ScrollView.GetMinimumDistanceForFlick(SwigCPtr), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + 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). + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetMinimumDistanceForFlick(Vector2 distance) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public float GetMinimumSpeedForFlick() + { + float ret = Tizen.NUI.Interop.ScrollView.GetMinimumSpeedForFlick(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// + /// Sets the minimum pan speed required for a flick in pixels per second.
+ ///
+ /// The minimum pan speed for a flick. + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetMinimumSpeedForFlick(float speed) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public float GetMaxFlickSpeed() + { + float ret = Tizen.NUI.Interop.ScrollView.GetMaxFlickSpeed(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + 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). + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetMaxFlickSpeed(float speed) + { + Tizen.NUI.Interop.ScrollView.SetMaxFlickSpeed(SwigCPtr, speed); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// + /// Retrieves current scroll position.
+ ///
+ /// The current scroll position. + [EditorBrowsable(EditorBrowsableState.Never)] + public Vector2 GetCurrentScrollPosition() + { + Vector2 ret = new Vector2(Tizen.NUI.Interop.ScrollView.GetCurrentScrollPosition(SwigCPtr), true); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + 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. + [EditorBrowsable(EditorBrowsableState.Never)] + public uint GetCurrentPage() + { + uint ret = Tizen.NUI.Interop.ScrollView.GetCurrentPage(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// + /// Scrolls View to position specified (contents will scroll to this position). + /// + /// The position to scroll to. + [EditorBrowsable(EditorBrowsableState.Never)] + public void ScrollTo(Vector2 position) + { + Tizen.NUI.Interop.ScrollView.ScrollToVector2(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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void ScrollTo(Vector2 position, float duration) + { + Tizen.NUI.Interop.ScrollView.ScrollTo(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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha) + { + Tizen.NUI.Interop.ScrollView.ScrollTo(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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias) + { + Tizen.NUI.Interop.ScrollView.ScrollTo(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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias) + { + Tizen.NUI.Interop.ScrollView.ScrollTo(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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void ScrollTo(uint page) + { + Tizen.NUI.Interop.ScrollView.ScrollTo(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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void ScrollTo(uint page, float duration) + { + Tizen.NUI.Interop.ScrollView.ScrollTo(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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void ScrollTo(uint page, float duration, DirectionBias bias) + { + Tizen.NUI.Interop.ScrollView.ScrollTo(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). + [EditorBrowsable(EditorBrowsableState.Never)] + public void ScrollTo(View view) + { + Tizen.NUI.Interop.ScrollView.ScrollToView(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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void ScrollTo(View view, float duration) + { + Tizen.NUI.Interop.ScrollView.ScrollToViewDuration(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. + [EditorBrowsable(EditorBrowsableState.Never)] + public bool ScrollToSnapPoint() + { + bool ret = Tizen.NUI.Interop.ScrollView.ScrollToSnapPoint(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// + /// Applies Effect to ScrollView. + /// + /// The effect to apply to scroll view. + [EditorBrowsable(EditorBrowsableState.Never)] + public void ApplyEffect(ScrollViewEffect effect) + { + Tizen.NUI.Interop.ScrollView.ApplyEffect(SwigCPtr, ScrollViewEffect.getCPtr(effect)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// + /// Removes Effect from ScrollView. + /// + /// The effect to remove. + [EditorBrowsable(EditorBrowsableState.Never)] + public void RemoveEffect(ScrollViewEffect effect) + { + Tizen.NUI.Interop.ScrollView.RemoveEffect(SwigCPtr, ScrollViewEffect.getCPtr(effect)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// + /// Remove All Effects from ScrollView. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public void RemoveAllEffects() + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void BindView(View child) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void UnbindView(View child) + { + Tizen.NUI.Interop.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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetScrollingDirection(Radian direction, Radian threshold) + { + Tizen.NUI.Interop.ScrollView.SetScrollingDirection(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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetScrollingDirection(Radian direction) + { + Tizen.NUI.Interop.ScrollView.SetScrollingDirection(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. + [EditorBrowsable(EditorBrowsableState.Never)] + public void RemoveScrollingDirection(Radian direction) + { + Tizen.NUI.Interop.ScrollView.RemoveScrollingDirection(SwigCPtr, Radian.getCPtr(direction)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// + /// Set ruler X + /// + /// 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) + { + Tizen.NUI.Interop.ScrollView.SetRulerX(SwigCPtr, RulerPtr.getCPtr(ruler)); + } + + /// + /// Set ruler Y + /// + /// 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) + { + Tizen.NUI.Interop.ScrollView.SetRulerY(SwigCPtr, RulerPtr.getCPtr(ruler)); + } + + internal void ApplyConstraintToChildren(Constraint constraint) + { + Tizen.NUI.Interop.ScrollView.ApplyConstraintToChildren(SwigCPtr, constraint.SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// + /// Dispose + /// + /// the dispose type + [EditorBrowsable(EditorBrowsableState.Never)] + protected override void Dispose(DisposeTypes type) + { + if (disposed) + { + return; + } + + //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) + { + 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(HandleRef swigCPtr) + { + Tizen.NUI.Interop.ScrollView.DeleteScrollView(swigCPtr); + } + + /// + /// This should be internal, do not use. + /// + [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 + { + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int WrapEnabled = Tizen.NUI.Interop.ScrollView.WrapEnabledGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int PanningEnabled = Tizen.NUI.Interop.ScrollView.PanningEnabledGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int AxisAutoLockEnabled = Tizen.NUI.Interop.ScrollView.AxisAutoLockEnabledGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int WheelScrollDistanceStep = Tizen.NUI.Interop.ScrollView.WheelScrollDistanceStepGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int ScrollMode = Tizen.NUI.Interop.ScrollView.ScrollModeGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int ScrollPosition = Tizen.NUI.Interop.ScrollView.ScrollPositionGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int ScrollPrePosition = Tizen.NUI.Interop.ScrollView.ScrollPrePositionGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int ScrollPrePositionX = Tizen.NUI.Interop.ScrollView.ScrollPrePositionXGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int ScrollPrePositionY = Tizen.NUI.Interop.ScrollView.ScrollPrePositionYGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int ScrollPrePositionMax = Tizen.NUI.Interop.ScrollView.ScrollPrePositionMaxGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int ScrollPrePositionMaxX = Tizen.NUI.Interop.ScrollView.ScrollPrePositionMaxXGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int ScrollPrePositionMaxY = Tizen.NUI.Interop.ScrollView.ScrollPrePositionMaxYGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int OvershootX = Tizen.NUI.Interop.ScrollView.OvershootXGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int OvershootY = Tizen.NUI.Interop.ScrollView.OvershootYGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int ScrollFinal = Tizen.NUI.Interop.ScrollView.ScrollFinalGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int ScrollFinalX = Tizen.NUI.Interop.ScrollView.ScrollFinalXGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int ScrollFinalY = Tizen.NUI.Interop.ScrollView.ScrollFinalYGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int WRAP = Tizen.NUI.Interop.ScrollView.WrapGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int PANNING = Tizen.NUI.Interop.ScrollView.PanningGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int SCROLLING = Tizen.NUI.Interop.ScrollView.ScrollingGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int ScrollDomainSize = Tizen.NUI.Interop.ScrollView.ScrollDomainSizeGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int ScrollDomainSizeX = Tizen.NUI.Interop.ScrollView.ScrollDomainSizeXGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int ScrollDomainSizeY = Tizen.NUI.Interop.ScrollView.ScrollDomainSizeYGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int ScrollDomainOffset = Tizen.NUI.Interop.ScrollView.ScrollDomainOffsetGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int ScrollPositionDelta = Tizen.NUI.Interop.ScrollView.ScrollPositionDeltaGet(); + /// + /// This should be internal, do not use. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int StartPagePosition = Tizen.NUI.Interop.ScrollView.StartPagePositionGet(); + } + } +} diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ScrollViewBindableProperty.cs b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ScrollViewBindableProperty.cs new file mode 100755 index 000000000..6dbc45fe1 --- /dev/null +++ b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ScrollViewBindableProperty.cs @@ -0,0 +1,391 @@ +/* + * Copyright(c) 2021 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 Tizen.NUI.Binding; +using global::System.Runtime.InteropServices; + +namespace Tizen.NUI.Samples +{ + /// + /// ScrollView contains views that can be scrolled manually (via touch). + /// + public partial class ScrollView + { + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty WrapEnabledProperty = null; + + internal static void SetInternalWrapEnabledProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.WrapEnabled, new Tizen.NUI.PropertyValue((bool)newValue)); + } + } + + internal static object GetInternalWrapEnabledProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + bool temp = false; + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.WrapEnabled).Get(out temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty PanningEnabledProperty = null; + + internal static void SetInternalPanningEnabledProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.PanningEnabled, new Tizen.NUI.PropertyValue((bool)newValue)); + } + } + + internal static object GetInternalPanningEnabledProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + bool temp = false; + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.PanningEnabled).Get(out temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty AxisAutoLockEnabledProperty = null; + + internal static void SetInternalAxisAutoLockEnabledProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.AxisAutoLockEnabled, new Tizen.NUI.PropertyValue((bool)newValue)); + } + } + + internal static object GetInternalAxisAutoLockEnabledProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + bool temp = false; + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.AxisAutoLockEnabled).Get(out temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty WheelScrollDistanceStepProperty = null; + + internal static void SetInternalWheelScrollDistanceStepProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.WheelScrollDistanceStep, new Tizen.NUI.PropertyValue((Vector2)newValue)); + } + } + + internal static object GetInternalWheelScrollDistanceStepProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + Vector2 temp = new Vector2(0.0f, 0.0f); + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.WheelScrollDistanceStep).Get(temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollPositionProperty = null; + + internal static void SetInternalScrollPositionProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollPosition, new Tizen.NUI.PropertyValue((Vector2)newValue)); + } + } + + internal static object GetInternalScrollPositionProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + Vector2 temp = new Vector2(0.0f, 0.0f); + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollPosition).Get(temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollPrePositionProperty = null; + + internal static void SetInternalScrollPrePositionProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollPrePosition, new Tizen.NUI.PropertyValue((Vector2)newValue)); + } + } + + internal static object GetInternalScrollPrePositionProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + Vector2 temp = new Vector2(0.0f, 0.0f); + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollPrePosition).Get(temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollPrePositionMaxProperty = null; + + internal static void SetInternalScrollPrePositionMaxProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollPrePositionMax, new Tizen.NUI.PropertyValue((Vector2)newValue)); + } + } + + internal static object GetInternalScrollPrePositionMaxProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + Vector2 temp = new Vector2(0.0f, 0.0f); + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollPrePositionMax).Get(temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty OvershootXProperty = null; + + internal static void SetInternalOvershootXProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.OvershootX, new Tizen.NUI.PropertyValue((float)newValue)); + } + } + + internal static object GetInternalOvershootXProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + float temp = 0.0f; + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.OvershootX).Get(out temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty OvershootYProperty = null; + + internal static void SetInternalOvershootYProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.OvershootY, new Tizen.NUI.PropertyValue((float)newValue)); + } + } + + internal static object GetInternalOvershootYProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + float temp = 0.0f; + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.OvershootY).Get(out temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollFinalProperty = null; + + internal static void SetInternalScrollFinalProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollFinal, new Tizen.NUI.PropertyValue((Vector2)newValue)); + } + } + + internal static object GetInternalScrollFinalProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + Vector2 temp = new Vector2(0.0f, 0.0f); + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollFinal).Get(temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty WrapProperty = null; + + internal static void SetInternalWrapProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.WRAP, new Tizen.NUI.PropertyValue((bool)newValue)); + } + } + + internal static object GetInternalWrapProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + bool temp = false; + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.WRAP).Get(out temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty PanningProperty = null; + + internal static void SetInternalPanningProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.PANNING, new Tizen.NUI.PropertyValue((bool)newValue)); + } + } + + internal static object GetInternalPanningProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + bool temp = false; + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.PANNING).Get(out temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollingProperty = null; + + internal static void SetInternalScrollingProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.SCROLLING, new Tizen.NUI.PropertyValue((bool)newValue)); + } + } + + internal static object GetInternalScrollingProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + bool temp = false; + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.SCROLLING).Get(out temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollDomainSizeProperty = null; + + internal static void SetInternalScrollDomainSizeProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollDomainSize, new Tizen.NUI.PropertyValue((Vector2)newValue)); + } + } + + internal static object GetInternalScrollDomainSizeProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + Vector2 temp = new Vector2(0.0f, 0.0f); + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollDomainSize).Get(temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollDomainOffsetProperty = null; + + internal static void SetInternalScrollDomainOffsetProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollDomainOffset, new Tizen.NUI.PropertyValue((Vector2)newValue)); + } + } + + internal static object GetInternalScrollDomainOffsetProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + Vector2 temp = new Vector2(0.0f, 0.0f); + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollDomainOffset).Get(temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollPositionDeltaProperty = null; + + internal static void SetInternalScrollPositionDeltaProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollPositionDelta, new Tizen.NUI.PropertyValue((Vector2)newValue)); + } + } + + internal static object GetInternalScrollPositionDeltaProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + Vector2 temp = new Vector2(0.0f, 0.0f); + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollPositionDelta).Get(temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty StartPagePositionProperty = null; + + internal static void SetInternalStartPagePositionProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.StartPagePosition, new Tizen.NUI.PropertyValue((Vector3)newValue)); + } + } + + internal static object GetInternalStartPagePositionProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f); + Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.StartPagePosition).Get(temp); + return temp; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly BindableProperty ScrollModeProperty = null; + + internal static void SetInternalScrollModeProperty(BindableObject bindable, object oldValue, object newValue) + { + var scrollView = (ScrollView)bindable; + if (newValue != null) + { + Tizen.NUI.Object.SetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollMode, new Tizen.NUI.PropertyValue((PropertyMap)newValue)); + } + } + + internal static object GetInternalScrollModeProperty(BindableObject bindable) + { + var scrollView = (ScrollView)bindable; + PropertyValue value = Tizen.NUI.Object.GetProperty((HandleRef)scrollView.SwigCPtr, ScrollView.Property.ScrollMode); + PropertyMap map = new PropertyMap(); + value.Get(map); + return map; + } + } +} diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ScrollViewEvent.cs b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ScrollViewEvent.cs new file mode 100755 index 000000000..f367dcf64 --- /dev/null +++ b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ScrollViewEvent.cs @@ -0,0 +1,245 @@ +/* + * Copyright(c) 2021 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; + +namespace Tizen.NUI.Samples +{ + /// + /// ScrollView contains views that can be scrolled manually (via touch). + /// + public partial class ScrollView + { + private DaliEventHandler scrollViewSnapStartedEventHandler; + private SnapStartedCallbackDelegate scrollViewSnapStartedCallbackDelegate; + + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + private delegate void SnapStartedCallbackDelegate(IntPtr data); + + /// + /// 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). + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public event DaliEventHandler SnapStarted + { + add + { + // Restricted to only one listener + if (scrollViewSnapStartedEventHandler == null) + { + scrollViewSnapStartedEventHandler += value; + + scrollViewSnapStartedCallbackDelegate = new SnapStartedCallbackDelegate(OnSnapStarted); + ScrollViewSnapStartedSignal snapStarted = this.SnapStartedSignal(); + snapStarted?.Connect(scrollViewSnapStartedCallbackDelegate); + snapStarted?.Dispose(); + } + } + + remove + { + if (scrollViewSnapStartedEventHandler != null) + { + ScrollViewSnapStartedSignal snapStarted = this.SnapStartedSignal(); + snapStarted?.Disconnect(scrollViewSnapStartedCallbackDelegate); + snapStarted?.Dispose(); + } + + scrollViewSnapStartedEventHandler -= value; + } + } + + internal ScrollViewSnapStartedSignal SnapStartedSignal() + { + ScrollViewSnapStartedSignal ret = new ScrollViewSnapStartedSignal(Tizen.NUI.Interop.ScrollView.SnapStartedSignal(SwigCPtr), false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + // Callback for ScrollView SnapStarted signal + private void OnSnapStarted(IntPtr data) + { + SnapStartedEventArgs e = new SnapStartedEventArgs(); + + // Populate all members of "e" (SnapStartedEventArgs) with real data + e.SnapEventInfo = SnapEvent.GetSnapEventFromPtr(data); + + if (scrollViewSnapStartedEventHandler != null) + { + //here we send all data to user event handlers + scrollViewSnapStartedEventHandler(this, e); + } + } + + /// + /// Snaps signal event's data. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + [global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")] + public class SnapEvent : Disposable + { + /// + /// swigCMemOwn + /// + [global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1051:Do not declare visible instance fields")] + [EditorBrowsable(EditorBrowsableState.Never)] + protected bool swigCMemOwn; + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + /// + /// Create an instance of SnapEvent. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public SnapEvent() : this(Tizen.NUI.Interop.ScrollView.NewScrollViewSnapEvent(), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal SnapEvent(global::System.IntPtr cPtr, bool cMemoryOwn) + { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + /// + /// Scroll position. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public Vector2 position + { + set + { + Tizen.NUI.Interop.ScrollView.SnapEventPositionSet(swigCPtr, Vector2.getCPtr(value)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + get + { + global::System.IntPtr cPtr = Tizen.NUI.Interop.ScrollView.SnapEventPositionGet(swigCPtr); + Vector2 ret = (cPtr == global::System.IntPtr.Zero) ? null : new Vector2(cPtr, false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve()); + return ret; + } + } + + /// + /// Scroll duration. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public float duration + { + set + { + Tizen.NUI.Interop.ScrollView.SnapEventDurationSet(swigCPtr, value); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + get + { + float ret = Tizen.NUI.Interop.ScrollView.SnapEventDurationGet(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve()); + return ret; + } + } + + internal SnapType type + { + set + { + Tizen.NUI.Interop.ScrollView.SnapEventTypeSet(swigCPtr, (int)value); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + get + { + SnapType ret = (SnapType)Tizen.NUI.Interop.ScrollView.SnapEventTypeGet(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + /// + /// Get SnapEvent From Ptr + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static SnapEvent GetSnapEventFromPtr(global::System.IntPtr cPtr) + { + SnapEvent ret = new SnapEvent(cPtr, false); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// + /// Dispose + /// + /// the dispose type + [EditorBrowsable(EditorBrowsableState.Never)] + protected override void Dispose(DisposeTypes type) + { + if (disposed) + { + return; + } + + //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; + Tizen.NUI.Interop.ScrollView.DeleteScrollViewSnapEvent(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + base.Dispose(type); + } + + } + + /// + /// Event arguments that passed via the SnapStarted signal. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + [global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")] + public class SnapStartedEventArgs : EventArgs + { + private ScrollView.SnapEvent snapEvent; + + /// + /// SnapEventInfo is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick). + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public ScrollView.SnapEvent SnapEventInfo + { + get + { + return snapEvent; + } + set + { + snapEvent = value; + } + } + } + } +} diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ScrollViewPagePathEffect.cs b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ScrollViewPagePathEffect.cs new file mode 100755 index 000000000..033bab2fd --- /dev/null +++ b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ScrollViewPagePathEffect.cs @@ -0,0 +1,83 @@ +/* + * 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.ComponentModel; +using Tizen.NUI.BaseComponents; +using global::System.Runtime.InteropServices; +using Tizen.NUI; + +namespace Tizen.NUI.Samples +{ + /// + /// ScrollView Page Path Effect. + /// This effect causes Views to follow a given path. The opacity of the view will be 0.0 at + /// the beginning of the path and will go to 1.0 as it is approximating to half of the path to return + /// to 0.0 at the end of the path. + /// + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public class ScrollViewPagePathEffect : ScrollViewEffect + { + + internal ScrollViewPagePathEffect(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Tizen.NUI.Interop.ScrollView.ScrollViewPagePathEffectUpcast(cPtr), cMemoryOwn) + { + } + + + /// This will not be public opened. + [EditorBrowsable(EditorBrowsableState.Never)] + protected override void ReleaseSwigCPtr(HandleRef swigCPtr) + { + Tizen.NUI.Interop.ScrollView.DeleteScrollViewPagePathEffect(swigCPtr); + } + + /// + /// Creates an initialized ScrollViewPagePathEffect. + /// + /// The path that will be used by the scroll effect. + /// Vector in page object space which will be aligned with the tangent of the path. + /// Index of a property of the scroll-view which will be used as the input for the path. + /// Size of a page in the scrollview. + /// Total number of pages in the scrollview. + /// A handle to a newly allocated Dali resource. + /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + public ScrollViewPagePathEffect(Path path, Vector3 forward, int inputPropertyIndex, Vector3 pageSize, uint pageCount) : this(Tizen.NUI.Interop.ScrollView.ScrollViewPagePathEffectNew(Path.getCPtr(path), Vector3.getCPtr(forward), inputPropertyIndex, Vector3.getCPtr(pageSize), pageCount), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + internal static ScrollViewPagePathEffect DownCast(BaseHandle handle) + { + ScrollViewPagePathEffect ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as ScrollViewPagePathEffect; + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// + /// Manually apply effect to a page in the scroll-view. + /// + /// The page to be affected by this effect. + /// The order of the page in the scroll view. + /// 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 ApplyToPage(View page, uint pageOrder) + { + Tizen.NUI.Interop.ScrollView.ScrollViewPagePathEffectApplyToPage(SwigCPtr, View.getCPtr(page), pageOrder); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + } +} diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ScrollViewSnapStartedSignal.cs b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ScrollViewSnapStartedSignal.cs new file mode 100644 index 000000000..353549383 --- /dev/null +++ b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/ScrollViewSnapStartedSignal.cs @@ -0,0 +1,77 @@ +/* + * Copyright(c) 2021 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 global::System.Runtime.InteropServices; +using global::System; + +namespace Tizen.NUI.Samples +{ + internal class ScrollViewSnapStartedSignal : Disposable + { + internal ScrollViewSnapStartedSignal(IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) + { + } + + protected override void ReleaseSwigCPtr(HandleRef swigCPtr) + { + Tizen.NUI.Interop.ScrollView.DeleteScrollViewSnapStartedSignal(swigCPtr); + } + + public bool Empty() + { + bool ret = Tizen.NUI.Interop.ScrollView.ScrollViewSnapStartedSignalEmpty(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public uint GetConnectionCount() + { + uint ret = Tizen.NUI.Interop.ScrollView.ScrollViewSnapStartedSignalGetConnectionCount(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public void Connect(Delegate func) + { + IntPtr ip = global::System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); + { + Tizen.NUI.Interop.ScrollView.ScrollViewSnapStartedSignalConnect(SwigCPtr, new HandleRef(this, ip)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + } + + public void Disconnect(Delegate func) + { + IntPtr ip = global::System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); + { + Tizen.NUI.Interop.ScrollView.ScrollViewSnapStartedSignalDisconnect(SwigCPtr, new HandleRef(this, ip)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + } + + public void Emit(ScrollView.SnapEvent arg) + { + Tizen.NUI.Interop.ScrollView.ScrollViewSnapStartedSignalEmit(SwigCPtr, ScrollView.SnapEvent.getCPtr(arg)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + public ScrollViewSnapStartedSignal() : this(Tizen.NUI.Interop.ScrollView.NewScrollViewSnapStartedSignal(), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + } +} diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/SnapType.cs b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/SnapType.cs new file mode 100755 index 000000000..287d53317 --- /dev/null +++ b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Components/SnapType.cs @@ -0,0 +1,25 @@ +/* + * 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. + * + */ + +namespace Tizen.NUI.Samples +{ + internal enum SnapType + { + Snap, + Flick + } +} diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Interop/Interop.CubeTransitionEffect.cs b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Interop/Interop.CubeTransitionEffect.cs new file mode 100755 index 000000000..13e54653e --- /dev/null +++ b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Interop/Interop.CubeTransitionEffect.cs @@ -0,0 +1,117 @@ +/* + * 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. + * + */ + +namespace Tizen.NUI.Samples +{ + internal static partial class Interop + { + internal static partial class CubeTransitionEffect + { + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_CubeTransitionEffect")] + public static extern global::System.IntPtr NewCubeTransitionEffect(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_CubeTransitionEffect")] + public static extern void DeleteCubeTransitionEffect(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_SetTransitionDuration")] + public static extern void SetTransitionDuration(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_GetTransitionDuration")] + public static extern float GetTransitionDuration(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_SetCubeDisplacement")] + public static extern void SetCubeDisplacement(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_GetCubeDisplacement")] + public static extern float GetCubeDisplacement(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_IsTransitioning")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] + public static extern bool IsTransitioning(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_SetCurrentTexture")] + public static extern void SetCurrentTexture(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_SetTargetTexture")] + public static extern void SetTargetTexture(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_StartTransition__SWIG1")] + public static extern void StartTransitionSwig1(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_StartTransition__SWIG2")] + public static extern void StartTransitionSwig2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_PauseTransition")] + public static extern void PauseTransition(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_ResumeTransition")] + public static extern void ResumeTransition(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_StopTransition")] + public static extern void StopTransition(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffect_TransitionCompletedSignal")] + public static extern global::System.IntPtr TransitionCompletedSignal(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffectSignal_Empty")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] + public static extern bool CubeTransitionEffectSignalEmpty(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffectSignal_GetConnectionCount")] + public static extern uint CubeTransitionEffectSignalGetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffectSignal_Connect")] + public static extern void CubeTransitionEffectSignalConnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionEffectSignal_Disconnect")] + public static extern void CubeTransitionEffectSignalDisconnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_CubeTransitionEffectSignal")] + public static extern global::System.IntPtr NewCubeTransitionEffectSignal(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_CubeTransitionEffectSignal")] + public static extern void DeleteCubeTransitionEffectSignal(global::System.Runtime.InteropServices.HandleRef jarg1); + } + + internal static partial class CubeTransitionWaveEffect + { + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionWaveEffect_New")] + public static extern global::System.IntPtr New(uint numRows, uint numColumns); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_CubeTransitionWaveEffect")] + public static extern void DeleteCubeTransitionWaveEffect(global::System.Runtime.InteropServices.HandleRef jarg1); + } + + internal static partial class CubeTransitionCrossEffect + { + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionCrossEffect_New")] + public static extern global::System.IntPtr New(uint numRows, uint numColumns); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_CubeTransitionCrossEffect")] + public static extern void DeleteCubeTransitionCrossEffect(global::System.Runtime.InteropServices.HandleRef jarg1); + } + internal static partial class CubeTransitionFoldEffect + { + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_CubeTransitionFoldEffect_New")] + public static extern global::System.IntPtr New(uint numRows, uint numColumns); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_CubeTransitionFoldEffect")] + public static extern void DeleteCubeTransitionFoldEffect(global::System.Runtime.InteropServices.HandleRef jarg1); + } + } +} diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Interop/Interop.ItemView.cs b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Interop/Interop.ItemView.cs new file mode 100755 index 000000000..4c78ef235 --- /dev/null +++ b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Interop/Interop.ItemView.cs @@ -0,0 +1,152 @@ +/* + * Copyright(c) 2021 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. + * + */ + +namespace Tizen.NUI.Samples +{ + internal static partial class Interop + { + internal static partial class ItemView + { + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_MINIMUM_SWIPE_SPEED_get")] + public static extern int MinimumSwipeSpeedGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_MINIMUM_SWIPE_DISTANCE_get")] + public static extern int MinimumSwipeDistanceGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_WHEEL_SCROLL_DISTANCE_STEP_get")] + public static extern int WheelScrollDistanceStepGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_SNAP_TO_ITEM_ENABLED_get")] + public static extern int SnapToItemEnabledGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_REFRESH_INTERVAL_get")] + public static extern int RefreshIntervalGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_LAYOUT_POSITION_get")] + public static extern int LayoutPositionGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_SCROLL_SPEED_get")] + public static extern int ScrollSpeedGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_OVERSHOOT_get")] + public static extern int OvershootGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_SCROLL_DIRECTION_get")] + public static extern int ScrollDirectionGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_LAYOUT_ORIENTATION_get")] + public static extern int LayoutOrientationGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Property_SCROLL_CONTENT_SIZE_get")] + public static extern int ScrollContentSizeGet(); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_ItemView")] + public static extern void DeleteItemView(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_New")] + public static extern global::System.IntPtr New(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetLayoutCount")] + public static extern uint GetLayoutCount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_AddLayout")] + public static extern void AddLayout(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_RemoveLayout")] + public static extern void RemoveLayout(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetLayout")] + public static extern global::System.IntPtr GetLayout(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetActiveLayout")] + public static extern global::System.IntPtr GetActiveLayout(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetCurrentLayoutPosition")] + public static extern float GetCurrentLayoutPosition(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_ActivateLayout")] + public static extern void ActivateLayout(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, float jarg4); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_DeactivateCurrentLayout")] + public static extern void DeactivateCurrentLayout(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_SetAnchoring")] + public static extern void SetAnchoring(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetAnchoring")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] + public static extern bool GetAnchoring(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_SetAnchoringDuration")] + public static extern void SetAnchoringDuration(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetAnchoringDuration")] + public static extern float GetAnchoringDuration(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_ScrollToItem")] + public static extern void ScrollToItem(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, float jarg3); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_Refresh")] + public static extern void Refresh(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetItem")] + public static extern global::System.IntPtr GetItem(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetItemId")] + public static extern uint GetItemId(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_InsertItem")] + public static extern void InsertItem(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, float jarg3); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_InsertItems")] + public static extern void InsertItems(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, float jarg3); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_RemoveItem")] + public static extern void RemoveItem(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, float jarg3); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_RemoveItems")] + public static extern void RemoveItems(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, float jarg3); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_ReplaceItem")] + public static extern void ReplaceItem(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, float jarg3); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_ReplaceItems")] + public static extern void ReplaceItems(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, float jarg3); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_SetItemsParentOrigin")] + public static extern void SetItemsParentOrigin(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetItemsParentOrigin")] + public static extern global::System.IntPtr GetItemsParentOrigin(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_SetItemsAnchorPoint")] + public static extern void SetItemsAnchorPoint(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetItemsAnchorPoint")] + public static extern global::System.IntPtr GetItemsAnchorPoint(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_GetItemsRange")] + public static extern void GetItemsRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ItemView_LayoutActivatedSignal")] + public static extern global::System.IntPtr LayoutActivatedSignal(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_ItemView_Property_LAYOUT_get")] + public static extern int LayoutGet(); + } + } +} diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Interop/NDalicPINVOKE.cs b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Interop/NDalicPINVOKE.cs index 226c39d59..4c745012f 100644 --- a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Interop/NDalicPINVOKE.cs +++ b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Interop/NDalicPINVOKE.cs @@ -1,4 +1,5 @@ - +#if false +#error namespace Tizen.NUI.Samples { internal class NDalicPINVOKE @@ -6,3 +7,4 @@ namespace Tizen.NUI.Samples public const string Lib = "libdali2-csharp-binder.so"; } } +#endif \ No newline at end of file diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/NuiSample.snk b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/NuiSample.snk new file mode 100644 index 000000000..d21014f1c Binary files /dev/null and b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/NuiSample.snk differ diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Tizen.NUI.Samples.csproj b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Tizen.NUI.Samples.csproj index a42e02baf..a740c96d3 100755 --- a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Tizen.NUI.Samples.csproj +++ b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Tizen.NUI.Samples.csproj @@ -4,8 +4,10 @@ Exe net6.0 Tizen.NUI.Samples - Tizen.NUI.Samples + NuiSample Tizen.NUI.Samples.Application + true + NuiSample.snk @@ -49,4 +51,3 @@ - diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/tizen-manifest.xml b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/tizen-manifest.xml index 5c4ea2f09..da4a71474 100755 --- a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/tizen-manifest.xml +++ b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/tizen-manifest.xml @@ -2,7 +2,7 @@