+++ /dev/null
-/*
- * 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<System.Delegate>(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<System.Delegate>(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();
- }
- }
-}
+++ /dev/null
-/*
- * 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
- }
-}
+++ /dev/null
-/*
- * 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);
- }
- }
-}
+++ /dev/null
-/*
- * 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();
- }
- }
-}
+++ /dev/null
-/*
- * 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();
- }
- }
-
- /// <summary>
- /// Property for ItemView. This is internal use only, so not recommended to use. Need to use ItemView's properties.
- /// </summary>
- 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();
- }
- }
- }
-}
+++ /dev/null
-/*
- * 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
- {
- /// <summary>
- /// LayoutProperty
- /// </summary>
- [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;
- }
-
- /// <summary>
- /// MinimumSwipeSpeedProperty
- /// </summary>
- [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;
- }
-
- /// <summary>
- /// MinimumSwipeDistanceProperty
- /// </summary>
- [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;
- }
-
- /// <summary>
- /// WheelScrollDistanceStepProperty
- /// </summary>
- [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;
- }
-
- /// <summary>
- /// SnapToItemEnabledProperty
- /// </summary>
- [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;
- }
-
- /// <summary>
- /// RefreshIntervalProperty
- /// </summary>
- [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;
- }
-
- /// <summary>
- /// LayoutPositionProperty
- /// </summary>
- [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;
- }
-
- /// <summary>
- /// ScrollSpeedProperty
- /// </summary>
- [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;
- }
-
- /// <summary>
- /// OvershootProperty
- /// </summary>
- [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;
- }
-
- /// <summary>
- /// ScrollDirectionProperty
- /// </summary>
- [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;
- }
-
- /// <summary>
- /// LayoutOrientationProperty
- /// </summary>
- [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;
- }
-
- /// <summary>
- /// ScrollContentSizeProperty
- /// </summary>
- [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;
- }
- }
-}
/// (via touch) or automatically.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public class Scrollable : View
{
static Scrollable()
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
+ [Obsolete("This has been deprecated in API12")]
public static readonly BindableProperty OvershootEffectColorProperty = null;
internal static void SetInternalOvershootEffectColorProperty(BindableObject bindable, object oldValue, object newValue)
/// 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)
/// 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)
/// 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)
/// 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)
/// 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)
/// 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)
/// 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)
/// 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)
/// 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)
/// Create an instance of scrollable.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public Scrollable() : this(Interop.Scrollable.NewScrollable(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// The ScrollStarted event emitted when the Scrollable has moved (whether by touch or animation).
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public event DaliEventHandler<object, StartedEventArgs> ScrollStarted
{
add
/// The ScrollUpdated event emitted when the Scrollable has moved (whether by touch or animation).
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public event DaliEventHandler<object, UpdatedEventArgs> ScrollUpdated
{
add
/// (whether by touch or animation).
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public event DaliEventHandler<object, CompletedEventArgs> ScrollCompleted
{
add
/// Sets and Gets the color of the overshoot effect.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public Vector4 OvershootEffectColor
{
get
/// Sets and Gets the speed of overshoot animation in pixels per second.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public float OvershootAnimationSpeed
{
get
/// Checks if scroll overshoot has been enabled or not.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public bool OvershootEnabled
{
get
/// Gets and Sets OvershootSize property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public Vector2 OvershootSize
{
get
/// Gets and Sets ScrollToAlphaFunction property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public int ScrollToAlphaFunction
{
get
/// Gets and Sets ScrollRelativePosition property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public Vector2 ScrollRelativePosition
{
get
/// Gets and Sets ScrollPositionMin property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public Vector2 ScrollPositionMin
{
get
/// Gets and Sets ScrollPositionMax property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public Vector2 ScrollPositionMax
{
get
/// Gets and Sets CanScrollVertical property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public bool CanScrollVertical
{
get
/// Gets and Sets CanScrollHorizontal property.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public bool CanScrollHorizontal
{
get
/// </summary>
/// <param name="type">DisposeTypes</param>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
protected override void Dispose(DisposeTypes type)
{
if (disposed)
/// 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);
/// The scroll animation started event arguments.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public class StartedEventArgs : EventArgs
{
private Vector2 vector2;
/// The scrollable updated event arguments.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public class UpdatedEventArgs : EventArgs
{
private Vector2 vector2;
/// The scroll animation completed event arguments.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public class CompletedEventArgs : EventArgs
{
private Vector2 vector2;
+++ /dev/null
-/*
- * 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
-{
- /// <summary>
- /// Cube Transition Effect base class, used to apply custom effects to a
- /// Cube Transition instance.
- /// </summary>
- /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class CubeTransitionEffect : View
- {
- private EventHandler<TransitionCompletedEventArgs> transitionCompletedEventHandler;
- private TransitionCompletedCallbackDelegate _transitionCompletedCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate void TransitionCompletedCallbackDelegate(IntPtr cubeTransition, IntPtr cubeTexture);
-
- /// <summary>
- /// The constructor.
- /// </summary>
- /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public 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;
- }
-
- /// <summary>
- /// The TransitionCompleted event.
- /// </summary>
- /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<TransitionCompletedEventArgs> 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;
-
- /// <summary>
- /// CubeTransitionEffect.
- /// </summary>
- /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public 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<System.Delegate>(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<System.Delegate>(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
- {
-
- /// <summary>
- /// The constructor.
- /// </summary>
- /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public 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
- {
-
- /// <summary>
- /// The constructor.
- /// </summary>
- /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public 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
- {
-
- /// <summary>
- /// The constructor.
- /// </summary>
- /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public 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);
- }
- }
-}
+++ /dev/null
-/*
- * 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
-{
- /// <summary>
- /// ScrollView contains views that can be scrolled manually (via touch).
- /// </summary>
- [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);
-
- }
- }
-
- /// <summary>
- /// Create an instance of ScrollView.
- /// </summary>
- [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)
- {
- }
-
- /// <summary>
- /// Sets and Gets WrapEnabled property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets PanningEnabled property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets AxisAutoLockEnabled property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets WheelScrollDistanceStep property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets ScrollPosition property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets ScrollPrePosition property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets ScrollPrePositionMax property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets OvershootX property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets OvershootY property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets ScrollFinal property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets Wrap property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets Panning property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets Scrolling property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets ScrollDomainSize property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets ScrollDomainOffset property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets ScrollPositionDelta property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Sets and Gets StartPagePosition property.
- /// </summary>
- [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);
- }
- }
- }
-
-
- /// <summary>
- /// Sets and Gets ScrollMode property.
- /// </summary>
- [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);
- }
- }
- }
-
- /// <summary>
- /// Gets snap-animation's AlphaFunction.
- /// </summary>
- /// <returns>Current easing alpha function of the snap animation.</returns>
- [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;
- }
-
- /// <summary>
- /// Sets snap-animation's AlphaFunction.
- /// </summary>
- /// <param name="alpha">Easing alpha function of the snap animation.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetScrollSnapAlphaFunction(AlphaFunction alpha)
- {
- Interop.ScrollView.SetScrollSnapAlphaFunction(SwigCPtr, AlphaFunction.getCPtr(alpha));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Gets flick-animation's AlphaFunction.
- /// </summary>
- /// <returns>Current easing alpha function of the flick animation.</returns>
- [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;
- }
-
- /// <summary>
- /// Sets flick-animation's AlphaFunction.
- /// </summary>
- /// <param name="alpha">Easing alpha function of the flick animation.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetScrollFlickAlphaFunction(AlphaFunction alpha)
- {
- Interop.ScrollView.SetScrollFlickAlphaFunction(SwigCPtr, AlphaFunction.getCPtr(alpha));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Gets the time for the scroll snap-animation.
- /// </summary>
- /// <returns>The time in seconds for the animation to take.</returns>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public float GetScrollSnapDuration()
- {
- float ret = Interop.ScrollView.GetScrollSnapDuration(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Sets the time for the scroll snap-animation.
- /// </summary>
- /// <param name="time">The time in seconds for the animation to take.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetScrollSnapDuration(float time)
- {
- Interop.ScrollView.SetScrollSnapDuration(SwigCPtr, time);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Gets the time for the scroll flick-animation.
- /// </summary>
- /// <returns>The time in seconds for the animation to take.</returns>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public float GetScrollFlickDuration()
- {
- float ret = Interop.ScrollView.GetScrollFlickDuration(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Sets the time for the scroll snap-animation.
- /// </summary>
- /// <param name="time">The time in seconds for the animation to take.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetScrollFlickDuration(float time)
- {
- Interop.ScrollView.SetScrollFlickDuration(SwigCPtr, time);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Sets scroll sensibility of pan gesture.
- /// </summary>
- /// <param name="sensitive">True to enable scroll, false to disable scrolling.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetScrollSensitive(bool sensitive)
- {
- Interop.ScrollView.SetScrollSensitive(SwigCPtr, sensitive);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Sets maximum overshoot amount.
- /// </summary>
- /// <param name="overshootX">The maximum number of horizontally scrolled pixels before overshoot X reaches 1.0f.</param>
- /// <param name="overshootY">The maximum number of vertically scrolled pixels before overshoot X reaches 1.0f.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetMaxOvershoot(float overshootX, float overshootY)
- {
- Interop.ScrollView.SetMaxOvershoot(SwigCPtr, overshootX, overshootY);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Sets Snap Overshoot animation's AlphaFunction.
- /// </summary>
- /// <param name="alpha">Easing alpha function of the overshoot snap animation.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetSnapOvershootAlphaFunction(AlphaFunction alpha)
- {
- Interop.ScrollView.SetSnapOvershootAlphaFunction(SwigCPtr, AlphaFunction.getCPtr(alpha));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Sets Snap Overshoot animation's Duration.
- /// </summary>
- /// <param name="duration">duration The duration of the overshoot snap animation.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetSnapOvershootDuration(float duration)
- {
- Interop.ScrollView.SetSnapOvershootDuration(SwigCPtr, duration);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Enables or Disables Actor Auto-Snap mode.<br />
- /// When Actor Auto-Snap mode has been enabled, ScrollView will automatically,
- /// snap to the closest actor (The closest actor will appear in the center of the ScrollView).
- /// </summary>
- /// <param name="enable">Enables (true), or disables (false) Actor AutoSnap.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetViewAutoSnap(bool enable)
- {
- Interop.ScrollView.SetActorAutoSnap(SwigCPtr, enable);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Enables or Disables Wrap mode for ScrollView contents.<br />
- /// When enabled, the ScrollView contents are wrapped over the X/Y Domain.
- /// </summary>
- /// <param name="enable">Enables (true), or disables (false) Wrap Mode.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetWrapMode(bool enable)
- {
- Interop.ScrollView.SetWrapMode(SwigCPtr, enable);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Gets the current distance needed to scroll for ScrollUpdatedSignal to be emitted.
- /// </summary>
- /// <returns>Current scroll update distance.</returns>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int GetScrollUpdateDistance()
- {
- int ret = Interop.ScrollView.GetScrollUpdateDistance(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Sets the distance needed to scroll for ScrollUpdatedSignal to be emitted.<br />
- /// The scroll update distance tells ScrollView how far to move before ScrollUpdatedSignal the informs application.<br />
- /// Each time the ScrollView crosses this distance the signal will be emitted.<br />
- /// </summary>
- /// <param name="distance">The distance for ScrollView to move before emitting update signal.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetScrollUpdateDistance(int distance)
- {
- Interop.ScrollView.SetScrollUpdateDistance(SwigCPtr, distance);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Returns state of Axis Auto Lock mode.
- /// </summary>
- /// <returns>Whether Axis Auto Lock mode has been enabled or not.</returns>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool GetAxisAutoLock()
- {
- bool ret = Interop.ScrollView.GetAxisAutoLock(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Enables or Disables Axis Auto Lock mode for panning within the ScrollView.<br />
- /// When enabled, any pan gesture that appears mostly horizontal or mostly
- /// vertical, will be automatically restricted to horizontal only or vertical
- /// only panning, until the pan gesture has completed.
- /// </summary>
- /// <param name="enable">Enables (true), or disables (false) AxisAutoLock mode.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetAxisAutoLock(bool enable)
- {
- Interop.ScrollView.SetAxisAutoLock(SwigCPtr, enable);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Gets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.
- /// </summary>
- /// <returns>The gradient, a value between 0.0 and 1.0f.</returns>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public float GetAxisAutoLockGradient()
- {
- float ret = Interop.ScrollView.GetAxisAutoLockGradient(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Sets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.<br />
- /// By default, this is 0.36 (0.36:1) which means angles less than 20 degrees to an axis will lock to that axis.<br />
- /// </summary>
- /// <param name="gradient">gradient A value between 0.0 and 1.0 (auto-lock for all angles).</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetAxisAutoLockGradient(float gradient)
- {
- Interop.ScrollView.SetAxisAutoLockGradient(SwigCPtr, gradient);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Gets the friction coefficient setting for ScrollView when flicking in free panning mode.
- /// This is a value in stage-diagonals per second^2, stage-diagonal = Length( stage.width, stage.height )
- /// </summary>
- /// <returns>Friction coefficient is returned.</returns>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public float GetFrictionCoefficient()
- {
- float ret = Interop.ScrollView.GetFrictionCoefficient(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Sets the friction coefficient for ScrollView when flicking.<br />
- /// </summary>
- /// <param name="friction">Friction coefficient must be greater than 0.0 (default = 1.0).</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetFrictionCoefficient(float friction)
- {
- Interop.ScrollView.SetFrictionCoefficient(SwigCPtr, friction);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Gets the flick speed coefficient for ScrollView when flicking in free panning mode.<br />
- /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at which to move the scrolling area.
- /// </summary>
- /// <returns>The flick speed coefficient is returned.</returns>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public float GetFlickSpeedCoefficient()
- {
- float ret = Interop.ScrollView.GetFlickSpeedCoefficient(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Sets the flick speed coefficient for ScrollView when flicking in free panning mode.<br />
- /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at
- /// which to move the scrolling area.<br />
- /// </summary>
- /// <param name="speed">The flick speed coefficient (default = 1.0).</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetFlickSpeedCoefficient(float speed)
- {
- Interop.ScrollView.SetFlickSpeedCoefficient(SwigCPtr, speed);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Gets the minimum pan distance required for a flick gesture in pixels.<br />
- /// </summary>
- /// <returns>Minimum pan distance vector with separate x and y distance.</returns>
- [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;
- }
-
- /// <summary>
- /// Sets the minimum pan distance required for a flick in pixels.<br />
- /// Takes a Vector2 containing separate x and y values. As long as the pan distance exceeds one of these axes, a flick will be allowed.
- /// </summary>
- /// <param name="distance">The flick speed coefficient (default = 1.0).</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetMinimumDistanceForFlick(Vector2 distance)
- {
- Interop.ScrollView.SetMinimumDistanceForFlick(SwigCPtr, Vector2.getCPtr(distance));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Returns the minimum pan speed required for a flick gesture in pixels per second.
- /// </summary>
- /// <returns>Minimum pan speed.</returns>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public float GetMinimumSpeedForFlick()
- {
- float ret = Interop.ScrollView.GetMinimumSpeedForFlick(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Sets the minimum pan speed required for a flick in pixels per second.<br />
- /// </summary>
- /// <param name="speed">The minimum pan speed for a flick.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetMinimumSpeedForFlick(float speed)
- {
- Interop.ScrollView.SetMinimumSpeedForFlick(SwigCPtr, speed);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Gets the maximum flick speed setting for ScrollView when flicking in free panning mode.<br />
- /// This is a value in stage-diagonals per second.
- /// </summary>
- /// <returns>Maximum flick speed is returned.</returns>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public float GetMaxFlickSpeed()
- {
- float ret = Interop.ScrollView.GetMaxFlickSpeed(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Sets the maximum flick speed for the ScrollView when flicking in free panning mode.<br />
- /// This is a value in stage-diagonals per second. stage-diagonal = Length( stage.width, stage.height ).<br />
- /// </summary>
- /// <param name="speed">Maximum flick speed (default = 3.0).</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetMaxFlickSpeed(float speed)
- {
- Interop.ScrollView.SetMaxFlickSpeed(SwigCPtr, speed);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Retrieves current scroll position.<br />
- /// </summary>
- /// <returns>The current scroll position.</returns>
- [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;
- }
-
- /// <summary>
- /// Retrieves current scroll page based on ScrollView dimensions being the size of one page, and all pages laid out in<br />
- /// a grid fashion, increasing from left to right until the end of the X-domain.
- /// </summary>
- /// <returns>The current scroll position.</returns>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public uint GetCurrentPage()
- {
- uint ret = Interop.ScrollView.GetCurrentPage(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Scrolls View to position specified (contents will scroll to this position).
- /// </summary>
- /// <param name="position">The position to scroll to.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void ScrollTo(Vector2 position)
- {
- Interop.ScrollView.ScrollToVector2(SwigCPtr, Vector2.getCPtr(position));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Scrolls View to position specified (contents will scroll to this position).
- /// </summary>
- /// <param name="position">The position to scroll to.</param>
- /// <param name="duration">The duration of the animation in seconds.</param>
- [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();
- }
-
- /// <summary>
- /// Scrolls View to position specified (contents will scroll to this position).
- /// </summary>
- /// <param name="position">The position to scroll to.</param>
- /// <param name="duration">The duration of the animation in seconds.</param>
- /// <param name="alpha">The alpha function to use.</param>
- [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();
- }
-
- /// <summary>
- /// Scrolls View to position specified (contents will scroll to this position).
- /// </summary>
- /// <param name="position">The position to scroll to.</param>
- /// <param name="duration">The duration of the animation in seconds.</param>
- /// <param name="horizontalBias">Whether to bias scrolling to left or right.</param>
- /// <param name="verticalBias">Whether to bias scrolling to top or bottom.</param>
- [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();
- }
-
- /// <summary>
- /// Scrolls View to position specified (contents will scroll to this position).
- /// </summary>
- /// <param name="position">The position to scroll to.</param>
- /// <param name="duration">The duration of the animation in seconds.</param>
- /// <param name="alpha">Alpha function to use.</param>
- /// <param name="horizontalBias">Whether to bias scrolling to left or right.</param>
- /// <param name="verticalBias">Whether to bias scrolling to top or bottom.</param>
- [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();
- }
-
- /// <summary>
- /// Scrolls View to position specified (contents will scroll to this position).
- /// </summary>
- /// <param name="page">The page to scroll to.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void ScrollTo(uint page)
- {
- Interop.ScrollView.ScrollTo(SwigCPtr, page);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Scrolls View to position specified (contents will scroll to this position).
- /// </summary>
- /// <param name="page">The page to scroll to.</param>
- /// <param name="duration">The duration of the animation in seconds.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void ScrollTo(uint page, float duration)
- {
- Interop.ScrollView.ScrollTo(SwigCPtr, page, duration);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Scrolls View to position specified (contents will scroll to this position).
- /// </summary>
- /// <param name="page">The page to scroll to.</param>
- /// <param name="duration">The duration of the animation in seconds.</param>
- /// <param name="bias">Whether to bias scrolling to left or right.</param>
- [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();
- }
-
- /// <summary>
- /// Scrolls View to position specified (contents will scroll to this position).
- /// </summary>
- /// <param name="view">The view to center in on (via Scrolling).</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void ScrollTo(View view)
- {
- Interop.ScrollView.ScrollToView(SwigCPtr, View.getCPtr(view));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Scrolls View to position specified (contents will scroll to this position).
- /// </summary>
- /// <param name="view">The view to center in on (via Scrolling).</param>
- /// <param name="duration">The duration of the animation in seconds.</param>
- [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();
- }
-
- /// <summary>
- /// Scrolls View to the nearest snap points as specified by the Rulers.<br />
- /// If already at snap points, then will return false, and not scroll.<br />
- /// </summary>
- /// <returns>True if Snapping necessary.</returns>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool ScrollToSnapPoint()
- {
- bool ret = Interop.ScrollView.ScrollToSnapPoint(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Applies Effect to ScrollView.
- /// </summary>
- /// <param name="effect">The effect to apply to scroll view.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void ApplyEffect(ScrollViewEffect effect)
- {
- Interop.ScrollView.ApplyEffect(SwigCPtr, ScrollViewEffect.getCPtr(effect));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Removes Effect from ScrollView.
- /// </summary>
- /// <param name="effect">The effect to remove.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void RemoveEffect(ScrollViewEffect effect)
- {
- Interop.ScrollView.RemoveEffect(SwigCPtr, ScrollViewEffect.getCPtr(effect));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Remove All Effects from ScrollView.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void RemoveAllEffects()
- {
- Interop.ScrollView.RemoveAllEffects(SwigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Binds view to this ScrollView.
- /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
- /// </summary>
- /// <param name="child">The view to add to this ScrollView.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void BindView(View child)
- {
- Interop.ScrollView.BindActor(SwigCPtr, View.getCPtr(child));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Unbinds view to this ScrollView.
- /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
- /// </summary>
- /// <param name="child">The view to remove to this ScrollView.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void UnbindView(View child)
- {
- Interop.ScrollView.UnbindActor(SwigCPtr, View.getCPtr(child));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Allows the user to constrain the scroll view in a particular direction.
- /// </summary>
- /// <param name="direction">The axis to constrain the scroll-view to.</param>
- /// <param name="threshold">The threshold to apply around the axis.</param>
- [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();
- }
-
- /// <summary>
- /// Allows the user to constrain the scroll view in a particular direction.
- /// </summary>
- /// <param name="direction">The axis to constrain the scroll-view to.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetScrollingDirection(Radian direction)
- {
- Interop.ScrollView.SetScrollingDirection(SwigCPtr, Radian.getCPtr(direction));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Removes a direction constraint from the scroll view.
- /// </summary>
- /// <param name="direction">The axis to constrain the scroll-view to.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void RemoveScrollingDirection(Radian direction)
- {
- Interop.ScrollView.RemoveScrollingDirection(SwigCPtr, Radian.getCPtr(direction));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Set ruler X
- /// </summary>
- /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetRulerX(RulerPtr ruler)
- {
- Interop.ScrollView.SetRulerX(SwigCPtr, RulerPtr.getCPtr(ruler));
- }
-
- /// <summary>
- /// Set ruler Y
- /// </summary>
- /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void SetRulerY(RulerPtr ruler)
- {
- 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();
- }
-
- /// <summary>
- /// Dispose
- /// </summary>
- /// <param name="type">the dispose type</param>
- [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);
- }
-
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
-#pragma warning disable CA1716, CA1052, CA1034 // Identifiers should not match keywords
- public new class Property
-#pragma warning restore CA1716, CA1052, CA1034 // Identifiers should not match keywords
- {
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int WrapEnabled = Interop.ScrollView.WrapEnabledGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int PanningEnabled = Interop.ScrollView.PanningEnabledGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int AxisAutoLockEnabled = Interop.ScrollView.AxisAutoLockEnabledGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int WheelScrollDistanceStep = Interop.ScrollView.WheelScrollDistanceStepGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int ScrollMode = Interop.ScrollView.ScrollModeGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int ScrollPosition = Interop.ScrollView.ScrollPositionGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int ScrollPrePosition = Interop.ScrollView.ScrollPrePositionGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int ScrollPrePositionX = Interop.ScrollView.ScrollPrePositionXGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int ScrollPrePositionY = Interop.ScrollView.ScrollPrePositionYGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int ScrollPrePositionMax = Interop.ScrollView.ScrollPrePositionMaxGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int ScrollPrePositionMaxX = Interop.ScrollView.ScrollPrePositionMaxXGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int ScrollPrePositionMaxY = Interop.ScrollView.ScrollPrePositionMaxYGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int OvershootX = Interop.ScrollView.OvershootXGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int OvershootY = Interop.ScrollView.OvershootYGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int ScrollFinal = Interop.ScrollView.ScrollFinalGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int ScrollFinalX = Interop.ScrollView.ScrollFinalXGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int ScrollFinalY = Interop.ScrollView.ScrollFinalYGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int WRAP = Interop.ScrollView.WrapGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int PANNING = Interop.ScrollView.PanningGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int SCROLLING = Interop.ScrollView.ScrollingGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int ScrollDomainSize = Interop.ScrollView.ScrollDomainSizeGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int ScrollDomainSizeX = Interop.ScrollView.ScrollDomainSizeXGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int ScrollDomainSizeY = Interop.ScrollView.ScrollDomainSizeYGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int ScrollDomainOffset = Interop.ScrollView.ScrollDomainOffsetGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int ScrollPositionDelta = Interop.ScrollView.ScrollPositionDeltaGet();
- /// <summary>
- /// This should be internal, do not use.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly int StartPagePosition = Interop.ScrollView.StartPagePositionGet();
- }
- }
-}
+++ /dev/null
-/*
- * 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
-{
- /// <summary>
- /// ScrollView contains views that can be scrolled manually (via touch).
- /// </summary>
- 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;
- }
- }
-}
* limitations under the License.
*
*/
+using System;
using System.ComponentModel;
namespace Tizen.NUI
/// ScrollView instance.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public class ScrollViewEffect : BaseHandle
{
/// The constructor.
/// </summary>
/// <since_tizen> 3 </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public ScrollViewEffect() : this(Interop.ScrollView.NewScrollViewEffect(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// 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);
+++ /dev/null
-/*
- * 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
-{
- /// <summary>
- /// ScrollView contains views that can be scrolled manually (via touch).
- /// </summary>
- public partial class ScrollView
- {
- private DaliEventHandler<object, SnapStartedEventArgs> scrollViewSnapStartedEventHandler;
- private SnapStartedCallbackDelegate scrollViewSnapStartedCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
- private delegate void SnapStartedCallbackDelegate(IntPtr data);
-
- /// <summary>
- /// 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).
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event DaliEventHandler<object, SnapStartedEventArgs> 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);
- }
- }
-
- /// <summary>
- /// Snaps signal event's data.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")]
- public class SnapEvent : Disposable
- {
- /// <summary>
- /// swigCMemOwn
- /// </summary>
- [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;
-
- /// <summary>
- /// Create an instance of SnapEvent.
- /// </summary>
- [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);
- }
-
- /// <summary>
- /// Scroll position.
- /// </summary>
- [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;
- }
- }
-
- /// <summary>
- /// Scroll duration.
- /// </summary>
- [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;
- }
- }
-
- /// <summary>
- /// Get SnapEvent From Ptr
- /// </summary>
- [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;
- }
-
- /// <summary>
- /// Dispose
- /// </summary>
- /// <param name="type">the dispose type</param>
- [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);
- }
-
- }
-
- /// <summary>
- /// Event arguments that passed via the SnapStarted signal.
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")]
- public class SnapStartedEventArgs : EventArgs
- {
- private Tizen.NUI.ScrollView.SnapEvent snapEvent;
-
- /// <summary>
- /// SnapEventInfo is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick).
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Tizen.NUI.ScrollView.SnapEvent SnapEventInfo
- {
- get
- {
- return snapEvent;
- }
- set
- {
- snapEvent = value;
- }
- }
- }
- }
-}
+++ /dev/null
-/*
- * 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
-{
- /// <summary>
- /// 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.
- /// </summary>
- /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public 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);
- }
-
- /// <summary>
- /// Creates an initialized ScrollViewPagePathEffect.
- /// </summary>
- /// <param name="path">The path that will be used by the scroll effect.</param>
- /// <param name="forward">Vector in page object space which will be aligned with the tangent of the path.</param>
- /// <param name="inputPropertyIndex">Index of a property of the scroll-view which will be used as the input for the path.</param>
- /// <param name="pageSize">Size of a page in the scrollview.</param>
- /// <param name="pageCount">Total number of pages in the scrollview.</param>
- /// <returns>A handle to a newly allocated Dali resource.</returns>
- /// 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;
- }
-
- /// <summary>
- /// Manually apply effect to a page in the scroll-view.
- /// </summary>
- /// <param name="page">The page to be affected by this effect.</param>
- /// <param name="pageOrder">The order of the page in the scroll view.</param>
- /// 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();
- }
- }
-}
--- /dev/null
+/*
+ * 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
+{
+ /// <summary>
+ /// Cube Transition Effect base class, used to apply custom effects to a
+ /// Cube Transition instance.
+ /// </summary>
+ /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public class CubeTransitionEffect : View
+ {
+ private EventHandler<TransitionCompletedEventArgs> transitionCompletedEventHandler;
+ private TransitionCompletedCallbackDelegate _transitionCompletedCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ private delegate void TransitionCompletedCallbackDelegate(IntPtr cubeTransition, IntPtr cubeTexture);
+
+ /// <summary>
+ /// The constructor.
+ /// </summary>
+ /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public 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;
+ }
+
+ /// <summary>
+ /// The TransitionCompleted event.
+ /// </summary>
+ /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public event EventHandler<TransitionCompletedEventArgs> 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;
+
+ /// <summary>
+ /// CubeTransitionEffect.
+ /// </summary>
+ /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public 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<Delegate>(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<Delegate>(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
+ {
+
+ /// <summary>
+ /// The constructor.
+ /// </summary>
+ /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public 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
+ {
+
+ /// <summary>
+ /// The constructor.
+ /// </summary>
+ /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public 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
+ {
+
+ /// <summary>
+ /// The constructor.
+ /// </summary>
+ /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public 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);
+ }
+ }
+}
--- /dev/null
+/*
+ * 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();
+ }
+ }
+
+ /// <summary>
+ /// Property for ItemView. This is internal use only, so not recommended to use. Need to use ItemView's properties.
+ /// </summary>
+ 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();
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * 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
+ {
+ /// <summary>
+ /// LayoutProperty
+ /// </summary>
+ [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;
+ }
+
+ /// <summary>
+ /// MinimumSwipeSpeedProperty
+ /// </summary>
+ [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;
+ }
+
+ /// <summary>
+ /// MinimumSwipeDistanceProperty
+ /// </summary>
+ [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;
+ }
+
+ /// <summary>
+ /// WheelScrollDistanceStepProperty
+ /// </summary>
+ [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;
+ }
+
+ /// <summary>
+ /// SnapToItemEnabledProperty
+ /// </summary>
+ [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;
+ }
+
+ /// <summary>
+ /// RefreshIntervalProperty
+ /// </summary>
+ [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;
+ }
+
+ /// <summary>
+ /// LayoutPositionProperty
+ /// </summary>
+ [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;
+ }
+
+ /// <summary>
+ /// ScrollSpeedProperty
+ /// </summary>
+ [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;
+ }
+
+ /// <summary>
+ /// OvershootProperty
+ /// </summary>
+ [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;
+ }
+
+ /// <summary>
+ /// ScrollDirectionProperty
+ /// </summary>
+ [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;
+ }
+
+ /// <summary>
+ /// LayoutOrientationProperty
+ /// </summary>
+ [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;
+ }
+
+ /// <summary>
+ /// ScrollContentSizeProperty
+ /// </summary>
+ [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;
+ }
+ }
+}
--- /dev/null
+/*
+ * 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
+{
+ /// <summary>
+ /// ScrollView contains views that can be scrolled manually (via touch).
+ /// </summary>
+ [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);
+
+ }
+ }
+
+ /// <summary>
+ /// Create an instance of ScrollView.
+ /// </summary>
+ [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)
+ {
+ }
+
+ /// <summary>
+ /// Sets and Gets WrapEnabled property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets PanningEnabled property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets AxisAutoLockEnabled property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets WheelScrollDistanceStep property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets ScrollPosition property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets ScrollPrePosition property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets ScrollPrePositionMax property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets OvershootX property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets OvershootY property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets ScrollFinal property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets Wrap property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets Panning property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets Scrolling property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets ScrollDomainSize property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets ScrollDomainOffset property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets ScrollPositionDelta property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Sets and Gets StartPagePosition property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+
+ /// <summary>
+ /// Sets and Gets ScrollMode property.
+ /// </summary>
+ [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);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Gets snap-animation's AlphaFunction.
+ /// </summary>
+ /// <returns>Current easing alpha function of the snap animation.</returns>
+ [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;
+ }
+
+ /// <summary>
+ /// Sets snap-animation's AlphaFunction.
+ /// </summary>
+ /// <param name="alpha">Easing alpha function of the snap animation.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Gets flick-animation's AlphaFunction.
+ /// </summary>
+ /// <returns>Current easing alpha function of the flick animation.</returns>
+ [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;
+ }
+
+ /// <summary>
+ /// Sets flick-animation's AlphaFunction.
+ /// </summary>
+ /// <param name="alpha">Easing alpha function of the flick animation.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Gets the time for the scroll snap-animation.
+ /// </summary>
+ /// <returns>The time in seconds for the animation to take.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float GetScrollSnapDuration()
+ {
+ float ret = Tizen.NUI.Interop.ScrollView.GetScrollSnapDuration(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets the time for the scroll snap-animation.
+ /// </summary>
+ /// <param name="time">The time in seconds for the animation to take.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetScrollSnapDuration(float time)
+ {
+ Tizen.NUI.Interop.ScrollView.SetScrollSnapDuration(SwigCPtr, time);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Gets the time for the scroll flick-animation.
+ /// </summary>
+ /// <returns>The time in seconds for the animation to take.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float GetScrollFlickDuration()
+ {
+ float ret = Tizen.NUI.Interop.ScrollView.GetScrollFlickDuration(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets the time for the scroll snap-animation.
+ /// </summary>
+ /// <param name="time">The time in seconds for the animation to take.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetScrollFlickDuration(float time)
+ {
+ Tizen.NUI.Interop.ScrollView.SetScrollFlickDuration(SwigCPtr, time);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Sets scroll sensibility of pan gesture.
+ /// </summary>
+ /// <param name="sensitive">True to enable scroll, false to disable scrolling.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetScrollSensitive(bool sensitive)
+ {
+ Tizen.NUI.Interop.ScrollView.SetScrollSensitive(SwigCPtr, sensitive);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Sets maximum overshoot amount.
+ /// </summary>
+ /// <param name="overshootX">The maximum number of horizontally scrolled pixels before overshoot X reaches 1.0f.</param>
+ /// <param name="overshootY">The maximum number of vertically scrolled pixels before overshoot X reaches 1.0f.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Sets Snap Overshoot animation's AlphaFunction.
+ /// </summary>
+ /// <param name="alpha">Easing alpha function of the overshoot snap animation.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Sets Snap Overshoot animation's Duration.
+ /// </summary>
+ /// <param name="duration">duration The duration of the overshoot snap animation.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetSnapOvershootDuration(float duration)
+ {
+ Tizen.NUI.Interop.ScrollView.SetSnapOvershootDuration(SwigCPtr, duration);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Enables or Disables Actor Auto-Snap mode.<br />
+ /// When Actor Auto-Snap mode has been enabled, ScrollView will automatically,
+ /// snap to the closest actor (The closest actor will appear in the center of the ScrollView).
+ /// </summary>
+ /// <param name="enable">Enables (true), or disables (false) Actor AutoSnap.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetViewAutoSnap(bool enable)
+ {
+ Tizen.NUI.Interop.ScrollView.SetActorAutoSnap(SwigCPtr, enable);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Enables or Disables Wrap mode for ScrollView contents.<br />
+ /// When enabled, the ScrollView contents are wrapped over the X/Y Domain.
+ /// </summary>
+ /// <param name="enable">Enables (true), or disables (false) Wrap Mode.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetWrapMode(bool enable)
+ {
+ Tizen.NUI.Interop.ScrollView.SetWrapMode(SwigCPtr, enable);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Gets the current distance needed to scroll for ScrollUpdatedSignal to be emitted.
+ /// </summary>
+ /// <returns>Current scroll update distance.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public int GetScrollUpdateDistance()
+ {
+ int ret = Tizen.NUI.Interop.ScrollView.GetScrollUpdateDistance(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets the distance needed to scroll for ScrollUpdatedSignal to be emitted.<br />
+ /// The scroll update distance tells ScrollView how far to move before ScrollUpdatedSignal the informs application.<br />
+ /// Each time the ScrollView crosses this distance the signal will be emitted.<br />
+ /// </summary>
+ /// <param name="distance">The distance for ScrollView to move before emitting update signal.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetScrollUpdateDistance(int distance)
+ {
+ Tizen.NUI.Interop.ScrollView.SetScrollUpdateDistance(SwigCPtr, distance);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Returns state of Axis Auto Lock mode.
+ /// </summary>
+ /// <returns>Whether Axis Auto Lock mode has been enabled or not.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool GetAxisAutoLock()
+ {
+ bool ret = Tizen.NUI.Interop.ScrollView.GetAxisAutoLock(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Enables or Disables Axis Auto Lock mode for panning within the ScrollView.<br />
+ /// When enabled, any pan gesture that appears mostly horizontal or mostly
+ /// vertical, will be automatically restricted to horizontal only or vertical
+ /// only panning, until the pan gesture has completed.
+ /// </summary>
+ /// <param name="enable">Enables (true), or disables (false) AxisAutoLock mode.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetAxisAutoLock(bool enable)
+ {
+ Tizen.NUI.Interop.ScrollView.SetAxisAutoLock(SwigCPtr, enable);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Gets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.
+ /// </summary>
+ /// <returns>The gradient, a value between 0.0 and 1.0f.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float GetAxisAutoLockGradient()
+ {
+ float ret = Tizen.NUI.Interop.ScrollView.GetAxisAutoLockGradient(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.<br />
+ /// By default, this is 0.36 (0.36:1) which means angles less than 20 degrees to an axis will lock to that axis.<br />
+ /// </summary>
+ /// <param name="gradient">gradient A value between 0.0 and 1.0 (auto-lock for all angles).</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetAxisAutoLockGradient(float gradient)
+ {
+ Tizen.NUI.Interop.ScrollView.SetAxisAutoLockGradient(SwigCPtr, gradient);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Gets the friction coefficient setting for ScrollView when flicking in free panning mode.
+ /// This is a value in stage-diagonals per second^2, stage-diagonal = Length( stage.width, stage.height )
+ /// </summary>
+ /// <returns>Friction coefficient is returned.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float GetFrictionCoefficient()
+ {
+ float ret = Tizen.NUI.Interop.ScrollView.GetFrictionCoefficient(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets the friction coefficient for ScrollView when flicking.<br />
+ /// </summary>
+ /// <param name="friction">Friction coefficient must be greater than 0.0 (default = 1.0).</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetFrictionCoefficient(float friction)
+ {
+ Tizen.NUI.Interop.ScrollView.SetFrictionCoefficient(SwigCPtr, friction);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Gets the flick speed coefficient for ScrollView when flicking in free panning mode.<br />
+ /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at which to move the scrolling area.
+ /// </summary>
+ /// <returns>The flick speed coefficient is returned.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float GetFlickSpeedCoefficient()
+ {
+ float ret = Tizen.NUI.Interop.ScrollView.GetFlickSpeedCoefficient(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets the flick speed coefficient for ScrollView when flicking in free panning mode.<br />
+ /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at
+ /// which to move the scrolling area.<br />
+ /// </summary>
+ /// <param name="speed">The flick speed coefficient (default = 1.0).</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetFlickSpeedCoefficient(float speed)
+ {
+ Tizen.NUI.Interop.ScrollView.SetFlickSpeedCoefficient(SwigCPtr, speed);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Gets the minimum pan distance required for a flick gesture in pixels.<br />
+ /// </summary>
+ /// <returns>Minimum pan distance vector with separate x and y distance.</returns>
+ [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;
+ }
+
+ /// <summary>
+ /// Sets the minimum pan distance required for a flick in pixels.<br />
+ /// Takes a Vector2 containing separate x and y values. As long as the pan distance exceeds one of these axes, a flick will be allowed.
+ /// </summary>
+ /// <param name="distance">The flick speed coefficient (default = 1.0).</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Returns the minimum pan speed required for a flick gesture in pixels per second.
+ /// </summary>
+ /// <returns>Minimum pan speed.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float GetMinimumSpeedForFlick()
+ {
+ float ret = Tizen.NUI.Interop.ScrollView.GetMinimumSpeedForFlick(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets the minimum pan speed required for a flick in pixels per second.<br />
+ /// </summary>
+ /// <param name="speed">The minimum pan speed for a flick.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetMinimumSpeedForFlick(float speed)
+ {
+ Tizen.NUI.Interop.ScrollView.SetMinimumSpeedForFlick(SwigCPtr, speed);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Gets the maximum flick speed setting for ScrollView when flicking in free panning mode.<br />
+ /// This is a value in stage-diagonals per second.
+ /// </summary>
+ /// <returns>Maximum flick speed is returned.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public float GetMaxFlickSpeed()
+ {
+ float ret = Tizen.NUI.Interop.ScrollView.GetMaxFlickSpeed(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets the maximum flick speed for the ScrollView when flicking in free panning mode.<br />
+ /// This is a value in stage-diagonals per second. stage-diagonal = Length( stage.width, stage.height ).<br />
+ /// </summary>
+ /// <param name="speed">Maximum flick speed (default = 3.0).</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetMaxFlickSpeed(float speed)
+ {
+ Tizen.NUI.Interop.ScrollView.SetMaxFlickSpeed(SwigCPtr, speed);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Retrieves current scroll position.<br />
+ /// </summary>
+ /// <returns>The current scroll position.</returns>
+ [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;
+ }
+
+ /// <summary>
+ /// Retrieves current scroll page based on ScrollView dimensions being the size of one page, and all pages laid out in<br />
+ /// a grid fashion, increasing from left to right until the end of the X-domain.
+ /// </summary>
+ /// <returns>The current scroll position.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public uint GetCurrentPage()
+ {
+ uint ret = Tizen.NUI.Interop.ScrollView.GetCurrentPage(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="position">The position to scroll to.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="position">The position to scroll to.</param>
+ /// <param name="duration">The duration of the animation in seconds.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="position">The position to scroll to.</param>
+ /// <param name="duration">The duration of the animation in seconds.</param>
+ /// <param name="alpha">The alpha function to use.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="position">The position to scroll to.</param>
+ /// <param name="duration">The duration of the animation in seconds.</param>
+ /// <param name="horizontalBias">Whether to bias scrolling to left or right.</param>
+ /// <param name="verticalBias">Whether to bias scrolling to top or bottom.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="position">The position to scroll to.</param>
+ /// <param name="duration">The duration of the animation in seconds.</param>
+ /// <param name="alpha">Alpha function to use.</param>
+ /// <param name="horizontalBias">Whether to bias scrolling to left or right.</param>
+ /// <param name="verticalBias">Whether to bias scrolling to top or bottom.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="page">The page to scroll to.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void ScrollTo(uint page)
+ {
+ Tizen.NUI.Interop.ScrollView.ScrollTo(SwigCPtr, page);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="page">The page to scroll to.</param>
+ /// <param name="duration">The duration of the animation in seconds.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="page">The page to scroll to.</param>
+ /// <param name="duration">The duration of the animation in seconds.</param>
+ /// <param name="bias">Whether to bias scrolling to left or right.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="view">The view to center in on (via Scrolling).</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Scrolls View to position specified (contents will scroll to this position).
+ /// </summary>
+ /// <param name="view">The view to center in on (via Scrolling).</param>
+ /// <param name="duration">The duration of the animation in seconds.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Scrolls View to the nearest snap points as specified by the Rulers.<br />
+ /// If already at snap points, then will return false, and not scroll.<br />
+ /// </summary>
+ /// <returns>True if Snapping necessary.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool ScrollToSnapPoint()
+ {
+ bool ret = Tizen.NUI.Interop.ScrollView.ScrollToSnapPoint(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Applies Effect to ScrollView.
+ /// </summary>
+ /// <param name="effect">The effect to apply to scroll view.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Removes Effect from ScrollView.
+ /// </summary>
+ /// <param name="effect">The effect to remove.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Remove All Effects from ScrollView.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void RemoveAllEffects()
+ {
+ Tizen.NUI.Interop.ScrollView.RemoveAllEffects(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Binds view to this ScrollView.
+ /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
+ /// </summary>
+ /// <param name="child">The view to add to this ScrollView.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Unbinds view to this ScrollView.
+ /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties.
+ /// </summary>
+ /// <param name="child">The view to remove to this ScrollView.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Allows the user to constrain the scroll view in a particular direction.
+ /// </summary>
+ /// <param name="direction">The axis to constrain the scroll-view to.</param>
+ /// <param name="threshold">The threshold to apply around the axis.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Allows the user to constrain the scroll view in a particular direction.
+ /// </summary>
+ /// <param name="direction">The axis to constrain the scroll-view to.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Removes a direction constraint from the scroll view.
+ /// </summary>
+ /// <param name="direction">The axis to constrain the scroll-view to.</param>
+ [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();
+ }
+
+ /// <summary>
+ /// Set ruler X
+ /// </summary>
+ /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetRulerX(RulerPtr ruler)
+ {
+ Tizen.NUI.Interop.ScrollView.SetRulerX(SwigCPtr, RulerPtr.getCPtr(ruler));
+ }
+
+ /// <summary>
+ /// Set ruler Y
+ /// </summary>
+ /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetRulerY(RulerPtr ruler)
+ {
+ 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();
+ }
+
+ /// <summary>
+ /// Dispose
+ /// </summary>
+ /// <param name="type">the dispose type</param>
+ [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);
+ }
+
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#pragma warning disable CA1716, CA1052, CA1034 // Identifiers should not match keywords
+ public new class Property
+#pragma warning restore CA1716, CA1052, CA1034 // Identifiers should not match keywords
+ {
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int WrapEnabled = Tizen.NUI.Interop.ScrollView.WrapEnabledGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int PanningEnabled = Tizen.NUI.Interop.ScrollView.PanningEnabledGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int AxisAutoLockEnabled = Tizen.NUI.Interop.ScrollView.AxisAutoLockEnabledGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int WheelScrollDistanceStep = Tizen.NUI.Interop.ScrollView.WheelScrollDistanceStepGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollMode = Tizen.NUI.Interop.ScrollView.ScrollModeGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollPosition = Tizen.NUI.Interop.ScrollView.ScrollPositionGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollPrePosition = Tizen.NUI.Interop.ScrollView.ScrollPrePositionGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollPrePositionX = Tizen.NUI.Interop.ScrollView.ScrollPrePositionXGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollPrePositionY = Tizen.NUI.Interop.ScrollView.ScrollPrePositionYGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollPrePositionMax = Tizen.NUI.Interop.ScrollView.ScrollPrePositionMaxGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollPrePositionMaxX = Tizen.NUI.Interop.ScrollView.ScrollPrePositionMaxXGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollPrePositionMaxY = Tizen.NUI.Interop.ScrollView.ScrollPrePositionMaxYGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int OvershootX = Tizen.NUI.Interop.ScrollView.OvershootXGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int OvershootY = Tizen.NUI.Interop.ScrollView.OvershootYGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollFinal = Tizen.NUI.Interop.ScrollView.ScrollFinalGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollFinalX = Tizen.NUI.Interop.ScrollView.ScrollFinalXGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollFinalY = Tizen.NUI.Interop.ScrollView.ScrollFinalYGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int WRAP = Tizen.NUI.Interop.ScrollView.WrapGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int PANNING = Tizen.NUI.Interop.ScrollView.PanningGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int SCROLLING = Tizen.NUI.Interop.ScrollView.ScrollingGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollDomainSize = Tizen.NUI.Interop.ScrollView.ScrollDomainSizeGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollDomainSizeX = Tizen.NUI.Interop.ScrollView.ScrollDomainSizeXGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollDomainSizeY = Tizen.NUI.Interop.ScrollView.ScrollDomainSizeYGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollDomainOffset = Tizen.NUI.Interop.ScrollView.ScrollDomainOffsetGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int ScrollPositionDelta = Tizen.NUI.Interop.ScrollView.ScrollPositionDeltaGet();
+ /// <summary>
+ /// This should be internal, do not use.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly int StartPagePosition = Tizen.NUI.Interop.ScrollView.StartPagePositionGet();
+ }
+ }
+}
--- /dev/null
+/*
+ * 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
+{
+ /// <summary>
+ /// ScrollView contains views that can be scrolled manually (via touch).
+ /// </summary>
+ 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;
+ }
+ }
+}
--- /dev/null
+/*
+ * 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
+{
+ /// <summary>
+ /// ScrollView contains views that can be scrolled manually (via touch).
+ /// </summary>
+ public partial class ScrollView
+ {
+ private DaliEventHandler<object, SnapStartedEventArgs> scrollViewSnapStartedEventHandler;
+ private SnapStartedCallbackDelegate scrollViewSnapStartedCallbackDelegate;
+
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ private delegate void SnapStartedCallbackDelegate(IntPtr data);
+
+ /// <summary>
+ /// 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).
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public event DaliEventHandler<object, SnapStartedEventArgs> 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);
+ }
+ }
+
+ /// <summary>
+ /// Snaps signal event's data.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")]
+ public class SnapEvent : Disposable
+ {
+ /// <summary>
+ /// swigCMemOwn
+ /// </summary>
+ [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;
+
+ /// <summary>
+ /// Create an instance of SnapEvent.
+ /// </summary>
+ [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);
+ }
+
+ /// <summary>
+ /// Scroll position.
+ /// </summary>
+ [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;
+ }
+ }
+
+ /// <summary>
+ /// Scroll duration.
+ /// </summary>
+ [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;
+ }
+ }
+
+ /// <summary>
+ /// Get SnapEvent From Ptr
+ /// </summary>
+ [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;
+ }
+
+ /// <summary>
+ /// Dispose
+ /// </summary>
+ /// <param name="type">the dispose type</param>
+ [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);
+ }
+
+ }
+
+ /// <summary>
+ /// Event arguments that passed via the SnapStarted signal.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible")]
+ public class SnapStartedEventArgs : EventArgs
+ {
+ private ScrollView.SnapEvent snapEvent;
+
+ /// <summary>
+ /// SnapEventInfo is the SnapEvent information like snap or flick (it tells the target position, scale, rotation for the snap or flick).
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public ScrollView.SnapEvent SnapEventInfo
+ {
+ get
+ {
+ return snapEvent;
+ }
+ set
+ {
+ snapEvent = value;
+ }
+ }
+ }
+ }
+}
--- /dev/null
+/*
+ * 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
+{
+ /// <summary>
+ /// 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.
+ /// </summary>
+ /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public 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);
+ }
+
+ /// <summary>
+ /// Creates an initialized ScrollViewPagePathEffect.
+ /// </summary>
+ /// <param name="path">The path that will be used by the scroll effect.</param>
+ /// <param name="forward">Vector in page object space which will be aligned with the tangent of the path.</param>
+ /// <param name="inputPropertyIndex">Index of a property of the scroll-view which will be used as the input for the path.</param>
+ /// <param name="pageSize">Size of a page in the scrollview.</param>
+ /// <param name="pageCount">Total number of pages in the scrollview.</param>
+ /// <returns>A handle to a newly allocated Dali resource.</returns>
+ /// 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;
+ }
+
+ /// <summary>
+ /// Manually apply effect to a page in the scroll-view.
+ /// </summary>
+ /// <param name="page">The page to be affected by this effect.</param>
+ /// <param name="pageOrder">The order of the page in the scroll view.</param>
+ /// 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();
+ }
+ }
+}
--- /dev/null
+/*
+ * 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<Delegate>(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<Delegate>(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();
+ }
+ }
+}
--- /dev/null
+/*
+ * 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
+ }
+}
--- /dev/null
+/*
+ * 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);
+ }
+ }
+}
--- /dev/null
+/*
+ * 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();
+ }
+ }
+}
-
+#if false
+#error
namespace Tizen.NUI.Samples
{
internal class NDalicPINVOKE
public const string Lib = "libdali2-csharp-binder.so";
}
}
+#endif
\ No newline at end of file
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>Tizen.NUI.Samples</RootNamespace>
- <AssemblyName>Tizen.NUI.Samples</AssemblyName>
+ <AssemblyName>NuiSample</AssemblyName>
<StartupObject>Tizen.NUI.Samples.Application</StartupObject>
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>NuiSample.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
</ItemGroup>
</Project>
-
<manifest xmlns="http://tizen.org/ns/packages" api-version="7" package="org.tizen.example.Tizen.NUI.Samples" version="1.0.2">
<profile name="common" />
<ui-application appid="org.tizen.example.Tizen.NUI.Samples"
- exec="Tizen.NUI.Samples.dll"
+ exec="NuiSample.dll"
type="dotnet-nui"
multiple="false"
taskmanage="true"