2 * Copyright(c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using Tizen.NUI.BaseComponents;
19 using System.ComponentModel;
23 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
24 [EditorBrowsable(EditorBrowsableState.Never)]
25 public class ItemLayout : RefObject
28 internal ItemLayout(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
32 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ItemLayout obj)
34 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr;
37 /// This will be public opened.
38 [EditorBrowsable(EditorBrowsableState.Never)]
39 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
41 Interop.ItemLayout.DeleteItemLayout(swigCPtr);
44 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
45 [EditorBrowsable(EditorBrowsableState.Never)]
46 public void SetLayoutProperties(PropertyMap properties)
48 Interop.ItemLayout.SetLayoutProperties(SwigCPtr, PropertyMap.getCPtr(properties));
49 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
52 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
53 [EditorBrowsable(EditorBrowsableState.Never)]
54 public PropertyMap GetLayoutProperties()
56 PropertyMap ret = new PropertyMap(Interop.ItemLayout.GetLayoutProperties(SwigCPtr), true);
57 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
61 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
62 [EditorBrowsable(EditorBrowsableState.Never)]
63 public void GetItemSize(uint itemId, Vector3 layoutSize, Vector3 itemSize)
65 Interop.ItemLayout.GetItemSize(SwigCPtr, itemId, Vector3.getCPtr(layoutSize), Vector3.getCPtr(itemSize));
66 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
69 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
70 [EditorBrowsable(EditorBrowsableState.Never)]
71 public void SetItemSize(Vector3 itemSize)
73 Interop.ItemLayout.SetItemSize(SwigCPtr, Vector3.getCPtr(itemSize));
74 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
77 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
78 [EditorBrowsable(EditorBrowsableState.Never)]
79 public virtual float GetMinimumLayoutPosition(uint numberOfItems, Vector3 layoutSize)
81 float ret = Interop.ItemLayout.GetMinimumLayoutPosition(SwigCPtr, numberOfItems, Vector3.getCPtr(layoutSize));
82 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
86 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
87 [EditorBrowsable(EditorBrowsableState.Never)]
88 public virtual float GetClosestAnchorPosition(float layoutPosition)
90 float ret = Interop.ItemLayout.GetClosestAnchorPosition(SwigCPtr, layoutPosition);
91 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
95 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
96 [EditorBrowsable(EditorBrowsableState.Never)]
97 public virtual float GetItemScrollToPosition(uint itemId)
99 float ret = Interop.ItemLayout.GetItemScrollToPosition(SwigCPtr, itemId);
100 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
104 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
105 [EditorBrowsable(EditorBrowsableState.Never)]
106 public virtual ItemRange GetItemsWithinArea(float firstItemPosition, Vector3 layoutSize)
108 ItemRange ret = new ItemRange(Interop.ItemLayout.GetItemsWithinArea(SwigCPtr, firstItemPosition, Vector3.getCPtr(layoutSize)), true);
109 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
113 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
114 [EditorBrowsable(EditorBrowsableState.Never)]
115 public virtual float GetClosestOnScreenLayoutPosition(int itemID, float currentLayoutPosition, Vector3 layoutSize)
117 float ret = Interop.ItemLayout.GetClosestOnScreenLayoutPosition(SwigCPtr, itemID, currentLayoutPosition, Vector3.getCPtr(layoutSize));
118 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
122 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
123 [EditorBrowsable(EditorBrowsableState.Never)]
124 public virtual uint GetReserveItemCount(Vector3 layoutSize)
126 uint ret = Interop.ItemLayout.GetReserveItemCount(SwigCPtr, Vector3.getCPtr(layoutSize));
127 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
131 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
132 [EditorBrowsable(EditorBrowsableState.Never)]
133 public virtual void GetDefaultItemSize(uint itemId, Vector3 layoutSize, Vector3 itemSize)
135 Interop.ItemLayout.GetDefaultItemSize(SwigCPtr, itemId, Vector3.getCPtr(layoutSize), Vector3.getCPtr(itemSize));
136 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
139 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
140 [EditorBrowsable(EditorBrowsableState.Never)]
141 public virtual Degree GetScrollDirection()
143 Degree ret = new Degree(Interop.ItemLayout.GetScrollDirection(SwigCPtr), true);
144 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
148 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
149 [EditorBrowsable(EditorBrowsableState.Never)]
150 public virtual float GetScrollSpeedFactor()
152 float ret = Interop.ItemLayout.GetScrollSpeedFactor(SwigCPtr);
153 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
157 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
158 [EditorBrowsable(EditorBrowsableState.Never)]
159 public virtual float GetMaximumSwipeSpeed()
161 float ret = Interop.ItemLayout.GetMaximumSwipeSpeed(SwigCPtr);
162 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
166 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
167 [EditorBrowsable(EditorBrowsableState.Never)]
168 public virtual float GetItemFlickAnimationDuration()
170 float ret = Interop.ItemLayout.GetItemFlickAnimationDuration(SwigCPtr);
171 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
175 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
176 [EditorBrowsable(EditorBrowsableState.Never)]
177 public virtual int GetNextFocusItemID(int itemID, int maxItems, View.FocusDirection direction, bool loopEnabled)
179 int ret = Interop.ItemLayout.GetNextFocusItemID(SwigCPtr, itemID, maxItems, (int)direction, loopEnabled);
180 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
184 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
185 [EditorBrowsable(EditorBrowsableState.Never)]
186 public virtual float GetFlickSpeedFactor()
188 float ret = Interop.ItemLayout.GetFlickSpeedFactor(SwigCPtr);
189 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
193 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
194 [EditorBrowsable(EditorBrowsableState.Never)]
195 public virtual void ApplyConstraints(View view, int itemId, Vector3 layoutSize, View itemView)
197 Interop.ItemLayout.ApplyConstraints(SwigCPtr, View.getCPtr(view), itemId, Vector3.getCPtr(layoutSize), View.getCPtr(itemView));
198 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
201 /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
202 [EditorBrowsable(EditorBrowsableState.Never)]
203 public virtual Vector3 GetItemPosition(int itemID, float currentLayoutPosition, Vector3 layoutSize)
205 Vector3 ret = new Vector3(Interop.ItemLayout.GetItemPosition(SwigCPtr, itemID, currentLayoutPosition, Vector3.getCPtr(layoutSize)), true);
206 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();