376c6bdff628f77311fa70631dc9aa77cb52661a
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / ItemView.cs
1 /*
2  * Copyright(c) 2018 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 using System;
19 using System.Diagnostics.CodeAnalysis;
20 using System.Runtime.InteropServices;
21 using Tizen.NUI.BaseComponents;
22 using System.ComponentModel;
23
24 namespace Tizen.NUI
25 {
26     /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
27     [EditorBrowsable(EditorBrowsableState.Never)]
28     public class ItemView : Scrollable
29     {
30
31         internal ItemView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.ItemView.Upcast(cPtr), cMemoryOwn)
32         {
33         }
34
35
36         /// This will be public opened.
37         [EditorBrowsable(EditorBrowsableState.Never)]
38         protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
39         {
40             Interop.ItemView.DeleteItemView(swigCPtr);
41         }
42
43         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
44         [EditorBrowsable(EditorBrowsableState.Never)]
45         public new Tizen.NUI.PropertyArray Layout
46         {
47             get
48             {
49                 Tizen.NUI.PropertyArray temp = new Tizen.NUI.PropertyArray();
50                 PropertyValue layout = GetProperty(ItemView.Property.LAYOUT);
51                 layout?.Get(temp);
52                 layout?.Dispose();
53                 return temp;
54             }
55             set
56             {
57                 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
58                 SetProperty(ItemView.Property.LAYOUT, setValue);
59                 setValue.Dispose();
60             }
61         }
62
63         /// <summary>
64         /// Property for ItemView. This is internal use only, so not recommended to use. Need to use ItemView's properties.
65         /// </summary>
66         [Obsolete("Deprecated in API6; Will be removed in API9.")]
67         [EditorBrowsable(EditorBrowsableState.Never)]
68 #pragma warning disable CA1034, CA1052, CA1716 // Identifiers should not match keywords
69         public new class Property
70 #pragma warning restore CA1034, CA1052, CA1716 // Identifiers should not match keywords
71         {
72             /// <summary>
73             /// LAYOUT. This is internal use only, so not recommended to use. Need to use ItemView's properties.
74             /// </summary>
75             [Obsolete("Deprecated in API6; Will be removed in API9.")]
76             [EditorBrowsable(EditorBrowsableState.Never)]
77             public static readonly int LAYOUT = Interop.ItemView.LayoutGet();
78
79             /// <summary>
80             /// MINIMUM_SWIPE_SPEED. This is internal use only, so not recommended to use. Need to use ItemView's properties.
81             /// </summary>
82             [Obsolete("Deprecated in API6; Will be removed in API9.")]
83             [EditorBrowsable(EditorBrowsableState.Never)]
84             public static readonly int MinimumSwipeSpeed = Interop.ItemView.MinimumSwipeSpeedGet();
85
86             /// <summary>
87             /// MINIMUM_SWIPE_DISTANCE. This is internal use only, so not recommended to use. Need to use ItemView's properties.
88             /// </summary>
89             [Obsolete("Deprecated in API6; Will be removed in API9.")]
90             [EditorBrowsable(EditorBrowsableState.Never)]
91             public static readonly int MinimumSwipeDistance = Interop.ItemView.MinimumSwipeDistanceGet();
92
93             /// <summary>
94             /// WHEEL_SCROLL_DISTANCE_STEP. This is internal use only, so not recommended to use. Need to use ItemView's properties.
95             /// </summary>
96             [Obsolete("Deprecated in API6; Will be removed in API9.")]
97             [EditorBrowsable(EditorBrowsableState.Never)]
98             public static readonly int WheelScrollDistanceStep = Interop.ItemView.WheelScrollDistanceStepGet();
99
100             /// <summary>
101             /// SNAP_TO_ITEM_ENABLED. This is internal use only, so not recommended to use. Need to use ItemView's properties.
102             /// </summary>
103             [Obsolete("Deprecated in API6; Will be removed in API9.")]
104             [EditorBrowsable(EditorBrowsableState.Never)]
105             public static readonly int SnapToItemEnabled = Interop.ItemView.SnapToItemEnabledGet();
106
107             /// <summary>
108             /// REFRESH_INTERVAL. This is internal use only, so not recommended to use. Need to use ItemView's properties.
109             /// </summary>
110             [Obsolete("Deprecated in API6; Will be removed in API9.")]
111             [EditorBrowsable(EditorBrowsableState.Never)]
112             public static readonly int RefreshInterval = Interop.ItemView.RefreshIntervalGet();
113
114             /// <summary>
115             /// LAYOUT_POSITION. This is internal use only, so not recommended to use. Need to use ItemView's properties.
116             /// </summary>
117             [Obsolete("Deprecated in API6; Will be removed in API9.")]
118             [EditorBrowsable(EditorBrowsableState.Never)]
119             public static readonly int LayoutPosition = Interop.ItemView.LayoutPositionGet();
120
121             /// <summary>
122             /// SCROLL_SPEED. This is internal use only, so not recommended to use. Need to use ItemView's properties.
123             /// </summary>
124             [Obsolete("Deprecated in API6; Will be removed in API9.")]
125             [EditorBrowsable(EditorBrowsableState.Never)]
126             public static readonly int ScrollSpeed = Interop.ItemView.ScrollSpeedGet();
127
128             /// <summary>
129             /// OVERSHOOT. This is internal use only, so not recommended to use. Need to use ItemView's properties.
130             /// </summary>
131             [Obsolete("Deprecated in API6; Will be removed in API9.")]
132             [EditorBrowsable(EditorBrowsableState.Never)]
133             public static readonly int OVERSHOOT = Interop.ItemView.OvershootGet();
134
135             /// <summary>
136             /// SCROLL_DIRECTION. This is internal use only, so not recommended to use. Need to use ItemView's properties.
137             /// </summary>
138             [Obsolete("Deprecated in API6; Will be removed in API9.")]
139             [EditorBrowsable(EditorBrowsableState.Never)]
140             public static readonly int ScrollDirection = Interop.ItemView.ScrollDirectionGet();
141
142             /// <summary>
143             /// LAYOUT_ORIENTATION. This is internal use only, so not recommended to use. Need to use ItemView's properties.
144             /// </summary>
145             [Obsolete("Deprecated in API6; Will be removed in API9.")]
146             [EditorBrowsable(EditorBrowsableState.Never)]
147             public static readonly int LayoutOrientation = Interop.ItemView.LayoutOrientationGet();
148
149             /// <summary>
150             /// SCROLL_CONTENT_SIZE. This is internal use only, so not recommended to use. Need to use ItemView's properties.
151             /// </summary>
152             [Obsolete("Deprecated in API6; Will be removed in API9.")]
153             [EditorBrowsable(EditorBrowsableState.Never)]
154             public static readonly int ScrollContentSize = Interop.ItemView.ScrollContentSizeGet();
155         }
156
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 ItemView(ItemFactory factory) : this(Interop.ItemView.New(ItemFactory.getCPtr(factory)), true)
160         {
161             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
162         }
163
164         internal static ItemView DownCast(BaseHandle handle)
165         {
166             ItemView ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as ItemView;
167             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
168             return ret;
169         }
170
171         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
172         [EditorBrowsable(EditorBrowsableState.Never)]
173         public uint GetLayoutCount()
174         {
175             uint ret = Interop.ItemView.GetLayoutCount(SwigCPtr);
176             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
177             return ret;
178         }
179
180         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
181         [EditorBrowsable(EditorBrowsableState.Never)]
182         public void AddLayout(ItemLayout layout)
183         {
184             Interop.ItemView.AddLayout(SwigCPtr, ItemLayout.getCPtr(layout));
185             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
186         }
187
188         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
189         [EditorBrowsable(EditorBrowsableState.Never)]
190         public void RemoveLayout(uint layoutIndex)
191         {
192             Interop.ItemView.RemoveLayout(SwigCPtr, layoutIndex);
193             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
194         }
195
196         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
197         [EditorBrowsable(EditorBrowsableState.Never)]
198         public new uint GetChildCount()
199         {
200             uint ret = Interop.ActorInternal.GetChildCount(SwigCPtr);
201             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
202             return ret;
203         }
204
205         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
206         [EditorBrowsable(EditorBrowsableState.Never)]
207         public new View GetChildAt(uint index)
208         {
209             View ret = new View(Interop.ActorInternal.GetChildAt(SwigCPtr, index), true);
210             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
211             return ret;
212         }
213
214         internal SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t GetLayout(uint layoutIndex)
215         {
216             SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t ret = new SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t(Interop.ItemView.GetLayout(SwigCPtr, layoutIndex));
217             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
218             return ret;
219         }
220
221         internal SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t GetActiveLayout()
222         {
223             SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t ret = new SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t(Interop.ItemView.GetActiveLayout(SwigCPtr));
224             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
225             return ret;
226         }
227
228         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
229         [EditorBrowsable(EditorBrowsableState.Never)]
230         public float GetCurrentLayoutPosition(uint itemId)
231         {
232             float ret = Interop.ItemView.GetCurrentLayoutPosition(SwigCPtr, itemId);
233             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
234             return ret;
235         }
236
237         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
238         [EditorBrowsable(EditorBrowsableState.Never)]
239         public void ActivateLayout(uint layoutIndex, Vector3 targetSize, float durationSeconds)
240         {
241             Interop.ItemView.ActivateLayout(SwigCPtr, layoutIndex, Vector3.getCPtr(targetSize), durationSeconds);
242             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
243         }
244
245         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
246         [EditorBrowsable(EditorBrowsableState.Never)]
247         public void DeactivateCurrentLayout()
248         {
249             Interop.ItemView.DeactivateCurrentLayout(SwigCPtr);
250             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
251         }
252
253         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
254         [EditorBrowsable(EditorBrowsableState.Never)]
255         public void SetMinimumSwipeSpeed(float speed)
256         {
257             Interop.ItemView.SetMinimumSwipeSpeed(SwigCPtr, speed);
258             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
259         }
260
261         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
262         [EditorBrowsable(EditorBrowsableState.Never)]
263         public float GetMinimumSwipeSpeed()
264         {
265             float ret = Interop.ItemView.GetMinimumSwipeSpeed(SwigCPtr);
266             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
267             return ret;
268         }
269
270         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
271         [EditorBrowsable(EditorBrowsableState.Never)]
272         public void SetMinimumSwipeDistance(float distance)
273         {
274             Interop.ItemView.SetMinimumSwipeDistance(SwigCPtr, distance);
275             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
276         }
277
278         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
279         [EditorBrowsable(EditorBrowsableState.Never)]
280         public float GetMinimumSwipeDistance()
281         {
282             float ret = Interop.ItemView.GetMinimumSwipeDistance(SwigCPtr);
283             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
284             return ret;
285         }
286
287         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
288         [EditorBrowsable(EditorBrowsableState.Never)]
289         public void SetWheelScrollDistanceStep(float step)
290         {
291             Interop.ItemView.SetWheelScrollDistanceStep(SwigCPtr, step);
292             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
293         }
294
295         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
296         [EditorBrowsable(EditorBrowsableState.Never)]
297         public float GetWheelScrollDistanceStep()
298         {
299             float ret = Interop.ItemView.GetWheelScrollDistanceStep(SwigCPtr);
300             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
301             return ret;
302         }
303
304         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
305         [EditorBrowsable(EditorBrowsableState.Never)]
306         public void SetAnchoring(bool enabled)
307         {
308             Interop.ItemView.SetAnchoring(SwigCPtr, enabled);
309             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
310         }
311
312         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
313         [EditorBrowsable(EditorBrowsableState.Never)]
314         public bool GetAnchoring()
315         {
316             bool ret = Interop.ItemView.GetAnchoring(SwigCPtr);
317             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
318             return ret;
319         }
320
321         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
322         [EditorBrowsable(EditorBrowsableState.Never)]
323         public void SetAnchoringDuration(float durationSeconds)
324         {
325             Interop.ItemView.SetAnchoringDuration(SwigCPtr, durationSeconds);
326             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
327         }
328
329         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
330         [EditorBrowsable(EditorBrowsableState.Never)]
331         public float GetAnchoringDuration()
332         {
333             float ret = Interop.ItemView.GetAnchoringDuration(SwigCPtr);
334             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
335             return ret;
336         }
337
338         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
339         [EditorBrowsable(EditorBrowsableState.Never)]
340         public void ScrollToItem(uint itemId, float durationSeconds)
341         {
342             Interop.ItemView.ScrollToItem(SwigCPtr, itemId, durationSeconds);
343             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
344         }
345
346         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
347         [EditorBrowsable(EditorBrowsableState.Never)]
348         public void SetRefreshInterval(float intervalLayoutPositions)
349         {
350             Interop.ItemView.SetRefreshInterval(SwigCPtr, intervalLayoutPositions);
351             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
352         }
353
354         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
355         [EditorBrowsable(EditorBrowsableState.Never)]
356         public float GetRefreshInterval()
357         {
358             float ret = Interop.ItemView.GetRefreshInterval(SwigCPtr);
359             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
360             return ret;
361         }
362
363         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
364         [EditorBrowsable(EditorBrowsableState.Never)]
365         public void Refresh()
366         {
367             Interop.ItemView.Refresh(SwigCPtr);
368             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
369         }
370
371         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
372         [EditorBrowsable(EditorBrowsableState.Never)]
373         public View GetItem(uint itemId)
374         {
375             View ret = new View(Interop.ItemView.GetItem(SwigCPtr, itemId), true);
376             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
377             return ret;
378         }
379
380         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
381         [EditorBrowsable(EditorBrowsableState.Never)]
382         public uint GetItemId(View view)
383         {
384             uint ret = Interop.ItemView.GetItemId(SwigCPtr, View.getCPtr(view));
385             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
386             return ret;
387         }
388
389         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
390         [EditorBrowsable(EditorBrowsableState.Never)]
391         public void InsertItem(Item newItem, float durationSeconds)
392         {
393             Interop.ItemView.InsertItem(SwigCPtr, Item.getCPtr(newItem), durationSeconds);
394             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
395         }
396
397         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
398         [EditorBrowsable(EditorBrowsableState.Never)]
399         public void InsertItems(ItemCollection newItems, float durationSeconds)
400         {
401             Interop.ItemView.InsertItems(SwigCPtr, ItemCollection.getCPtr(newItems), durationSeconds);
402             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
403         }
404
405         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
406         [EditorBrowsable(EditorBrowsableState.Never)]
407         public void RemoveItem(uint itemId, float durationSeconds)
408         {
409             Interop.ItemView.RemoveItem(SwigCPtr, itemId, durationSeconds);
410             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
411         }
412
413         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
414         [EditorBrowsable(EditorBrowsableState.Never)]
415         public void RemoveItems(ItemIdCollection itemIds, float durationSeconds)
416         {
417             Interop.ItemView.RemoveItems(SwigCPtr, ItemIdCollection.getCPtr(itemIds), durationSeconds);
418             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
419         }
420
421         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
422         [EditorBrowsable(EditorBrowsableState.Never)]
423         public void ReplaceItem(Item replacementItem, float durationSeconds)
424         {
425             Interop.ItemView.ReplaceItem(SwigCPtr, Item.getCPtr(replacementItem), durationSeconds);
426             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
427         }
428
429         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
430         [EditorBrowsable(EditorBrowsableState.Never)]
431         public void ReplaceItems(ItemCollection replacementItems, float durationSeconds)
432         {
433             Interop.ItemView.ReplaceItems(SwigCPtr, ItemCollection.getCPtr(replacementItems), durationSeconds);
434             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
435         }
436
437         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
438         [EditorBrowsable(EditorBrowsableState.Never)]
439         public void SetItemsParentOrigin(Vector3 parentOrigin)
440         {
441             Interop.ItemView.SetItemsParentOrigin(SwigCPtr, Vector3.getCPtr(parentOrigin));
442             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
443         }
444
445         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
446         [EditorBrowsable(EditorBrowsableState.Never)]
447         public Vector3 GetItemsParentOrigin()
448         {
449             Vector3 ret = new Vector3(Interop.ItemView.GetItemsParentOrigin(SwigCPtr), true);
450             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
451             return ret;
452         }
453
454         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
455         [EditorBrowsable(EditorBrowsableState.Never)]
456         public void SetItemsAnchorPoint(Vector3 anchorPoint)
457         {
458             Interop.ItemView.SetItemsAnchorPoint(SwigCPtr, Vector3.getCPtr(anchorPoint));
459             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
460         }
461
462         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
463         [EditorBrowsable(EditorBrowsableState.Never)]
464         public Vector3 GetItemsAnchorPoint()
465         {
466             Vector3 ret = new Vector3(Interop.ItemView.GetItemsAnchorPoint(SwigCPtr), true);
467             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
468             return ret;
469         }
470
471         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
472         [EditorBrowsable(EditorBrowsableState.Never)]
473         public void GetItemsRange(ItemRange range)
474         {
475             Interop.ItemView.GetItemsRange(SwigCPtr, ItemRange.getCPtr(range));
476             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
477         }
478
479         internal VoidSignal LayoutActivatedSignal()
480         {
481             VoidSignal ret = new VoidSignal(Interop.ItemView.LayoutActivatedSignal(SwigCPtr), false);
482             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
483             return ret;
484         }
485
486         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
487         [EditorBrowsable(EditorBrowsableState.Never)]
488         public float MinimumSwipeSpeed
489         {
490             get
491             {
492                 float returnValue = 0.0f;
493                 PropertyValue minimumSwipeSpeed = GetProperty(ItemView.Property.MinimumSwipeSpeed);
494                 minimumSwipeSpeed?.Get(out returnValue);
495                 minimumSwipeSpeed?.Dispose();
496                 return returnValue;
497             }
498             set
499             {
500                 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
501                 SetProperty(ItemView.Property.MinimumSwipeSpeed, setValue);
502                 setValue.Dispose();
503             }
504         }
505
506         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
507         [EditorBrowsable(EditorBrowsableState.Never)]
508         public float MinimumSwipeDistance
509         {
510             get
511             {
512                 float returnValue = 0.0f;
513                 PropertyValue minimumSwipDistance = GetProperty(ItemView.Property.MinimumSwipeDistance);
514                 minimumSwipDistance?.Get(out returnValue);
515                 minimumSwipDistance?.Dispose();
516                 return returnValue;
517             }
518             set
519             {
520                 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
521                 SetProperty(ItemView.Property.MinimumSwipeDistance, setValue);
522                 setValue.Dispose();
523             }
524         }
525
526         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
527         [EditorBrowsable(EditorBrowsableState.Never)]
528         public float WheelScrollDistanceStep
529         {
530             get
531             {
532                 float returnValue = 0.0f;
533                 PropertyValue wheelScrollDistanceStep = GetProperty(ItemView.Property.WheelScrollDistanceStep);
534                 wheelScrollDistanceStep?.Get(out returnValue);
535                 wheelScrollDistanceStep?.Dispose();
536                 return returnValue;
537             }
538             set
539             {
540                 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
541                 SetProperty(ItemView.Property.WheelScrollDistanceStep, setValue);
542                 setValue.Dispose();
543             }
544         }
545
546         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
547         [EditorBrowsable(EditorBrowsableState.Never)]
548         public bool SnapToItemEnabled
549         {
550             get
551             {
552                 bool returnValue = false;
553                 PropertyValue snapToItemEnabled = GetProperty(ItemView.Property.SnapToItemEnabled);
554                 snapToItemEnabled?.Get(out returnValue);
555                 snapToItemEnabled?.Dispose();
556                 return returnValue;
557             }
558             set
559             {
560                 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
561                 SetProperty(ItemView.Property.SnapToItemEnabled, setValue);
562                 setValue.Dispose();
563             }
564         }
565
566         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
567         [EditorBrowsable(EditorBrowsableState.Never)]
568         public float RefreshInterval
569         {
570             get
571             {
572                 float returnValue = 0.0f;
573                 PropertyValue refreshIntervalu = GetProperty(ItemView.Property.RefreshInterval);
574                 refreshIntervalu?.Get(out returnValue);
575                 refreshIntervalu?.Dispose();
576                 return returnValue;
577             }
578             set
579             {
580                 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
581                 SetProperty(ItemView.Property.RefreshInterval, setValue);
582                 setValue.Dispose();
583             }
584         }
585
586         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
587         [EditorBrowsable(EditorBrowsableState.Never)]
588         public float LayoutPosition
589         {
590             get
591             {
592                 float returnValue = 0.0f;
593                 PropertyValue layoutPosition = GetProperty(ItemView.Property.LayoutPosition);
594                 layoutPosition?.Get(out returnValue);
595                 layoutPosition?.Dispose();
596                 return returnValue;
597             }
598             set
599             {
600                 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
601                 SetProperty(ItemView.Property.LayoutPosition, setValue);
602                 setValue.Dispose();
603             }
604         }
605
606         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
607         [EditorBrowsable(EditorBrowsableState.Never)]
608         public float ScrollSpeed
609         {
610             get
611             {
612                 float returnValue = 0.0f;
613                 PropertyValue scrollSpeed = GetProperty(ItemView.Property.ScrollSpeed);
614                 scrollSpeed?.Get(out returnValue);
615                 scrollSpeed?.Dispose();
616                 return returnValue;
617             }
618             set
619             {
620                 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
621                 SetProperty(ItemView.Property.ScrollSpeed, setValue);
622                 setValue.Dispose();
623             }
624         }
625
626         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
627         [EditorBrowsable(EditorBrowsableState.Never)]
628         public float Overshoot
629         {
630             get
631             {
632                 float returnValue = 0.0f;
633                 PropertyValue overShoot = GetProperty(ItemView.Property.OVERSHOOT);
634                 overShoot?.Get(out returnValue);
635                 overShoot?.Dispose();
636                 return returnValue;
637             }
638             set
639             {
640                 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
641                 SetProperty(ItemView.Property.OVERSHOOT, setValue);
642                 setValue.Dispose();
643             }
644         }
645
646         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
647         [EditorBrowsable(EditorBrowsableState.Never)]
648         public Vector2 ScrollDirection
649         {
650             get
651             {
652                 Vector2 returnValue = new Vector2(0.0f, 0.0f);
653                 PropertyValue scrollDirection = GetProperty(ItemView.Property.ScrollDirection);
654                 scrollDirection?.Get(returnValue);
655                 scrollDirection?.Dispose();
656                 return returnValue;
657             }
658             set
659             {
660                 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
661                 SetProperty(ItemView.Property.ScrollDirection, setValue);
662                 setValue.Dispose();
663             }
664         }
665
666         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
667         [EditorBrowsable(EditorBrowsableState.Never)]
668         public int LayoutOrientation
669         {
670             get
671             {
672                 int returnValue = 0;
673                 PropertyValue layoutOrientation = GetProperty(ItemView.Property.LayoutOrientation);
674                 layoutOrientation?.Get(out returnValue);
675                 layoutOrientation?.Dispose();
676                 return returnValue;
677             }
678             set
679             {
680                 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
681                 SetProperty(ItemView.Property.LayoutOrientation, setValue);
682                 setValue.Dispose();
683             }
684         }
685
686         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
687         [EditorBrowsable(EditorBrowsableState.Never)]
688         public float ScrollContentSize
689         {
690             get
691             {
692                 float returnValue = 0.0f;
693                 PropertyValue scrollContentSize = GetProperty(ItemView.Property.ScrollContentSize);
694                 scrollContentSize?.Get(out returnValue);
695                 scrollContentSize?.Dispose();
696                 return returnValue;
697             }
698             set
699             {
700                 PropertyValue setValue = new Tizen.NUI.PropertyValue(value);
701                 SetProperty(ItemView.Property.ScrollContentSize, setValue);
702                 setValue.Dispose();
703             }
704         }
705     }
706 }