Follow formatting NUI
[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.Runtime.InteropServices;
20 using Tizen.NUI.BaseComponents;
21 using System.ComponentModel;
22
23 namespace Tizen.NUI
24 {
25     /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
26     [EditorBrowsable(EditorBrowsableState.Never)]
27     public class ItemView : Scrollable
28     {
29
30         internal ItemView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.ItemView.ItemView_SWIGUpcast(cPtr), cMemoryOwn)
31         {
32         }
33
34
35         /// This will be public opened.
36         [EditorBrowsable(EditorBrowsableState.Never)]
37         protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
38         {
39             Interop.ItemView.delete_ItemView(swigCPtr);
40         }
41
42         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
43         [EditorBrowsable(EditorBrowsableState.Never)]
44         public new Tizen.NUI.PropertyArray Layout
45         {
46             get
47             {
48                 Tizen.NUI.PropertyArray temp = new Tizen.NUI.PropertyArray();
49                 GetProperty(ItemView.Property.LAYOUT).Get(temp);
50                 return temp;
51             }
52             set
53             {
54                 SetProperty(ItemView.Property.LAYOUT, new Tizen.NUI.PropertyValue(value));
55             }
56         }
57
58         /// <summary>
59         /// Property for ItemView. This is internal use only, so not recommended to use. Need to use ItemView's properties.
60         /// </summary>
61         [Obsolete("Deprecated in API6; Will be removed in API9.")]
62         [EditorBrowsable(EditorBrowsableState.Never)]
63         public new class Property
64         {
65             /// <summary>
66             /// LAYOUT. This is internal use only, so not recommended to use. Need to use ItemView's properties.
67             /// </summary>
68             [Obsolete("Deprecated in API6; Will be removed in API9.")]
69             [EditorBrowsable(EditorBrowsableState.Never)]
70             public static readonly int LAYOUT = Interop.ItemView.ItemView_Property_LAYOUT_get();
71
72             /// <summary>
73             /// MINIMUM_SWIPE_SPEED. 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 MINIMUM_SWIPE_SPEED = Interop.ItemView.ItemView_Property_MINIMUM_SWIPE_SPEED_get();
78
79             /// <summary>
80             /// MINIMUM_SWIPE_DISTANCE. 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 MINIMUM_SWIPE_DISTANCE = Interop.ItemView.ItemView_Property_MINIMUM_SWIPE_DISTANCE_get();
85
86             /// <summary>
87             /// WHEEL_SCROLL_DISTANCE_STEP. 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 WHEEL_SCROLL_DISTANCE_STEP = Interop.ItemView.ItemView_Property_WHEEL_SCROLL_DISTANCE_STEP_get();
92
93             /// <summary>
94             /// SNAP_TO_ITEM_ENABLED. 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 SNAP_TO_ITEM_ENABLED = Interop.ItemView.ItemView_Property_SNAP_TO_ITEM_ENABLED_get();
99
100             /// <summary>
101             /// REFRESH_INTERVAL. 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 REFRESH_INTERVAL = Interop.ItemView.ItemView_Property_REFRESH_INTERVAL_get();
106
107             /// <summary>
108             /// LAYOUT_POSITION. 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 LAYOUT_POSITION = Interop.ItemView.ItemView_Property_LAYOUT_POSITION_get();
113
114             /// <summary>
115             /// SCROLL_SPEED. 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 SCROLL_SPEED = Interop.ItemView.ItemView_Property_SCROLL_SPEED_get();
120
121             /// <summary>
122             /// OVERSHOOT. 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 OVERSHOOT = Interop.ItemView.ItemView_Property_OVERSHOOT_get();
127
128             /// <summary>
129             /// SCROLL_DIRECTION. 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 SCROLL_DIRECTION = Interop.ItemView.ItemView_Property_SCROLL_DIRECTION_get();
134
135             /// <summary>
136             /// LAYOUT_ORIENTATION. 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 LAYOUT_ORIENTATION = Interop.ItemView.ItemView_Property_LAYOUT_ORIENTATION_get();
141
142             /// <summary>
143             /// SCROLL_CONTENT_SIZE. 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 SCROLL_CONTENT_SIZE = Interop.ItemView.ItemView_Property_SCROLL_CONTENT_SIZE_get();
148         }
149
150         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
151         [EditorBrowsable(EditorBrowsableState.Never)]
152         public ItemView(ItemFactory factory) : this(Interop.ItemView.ItemView_New(ItemFactory.getCPtr(factory)), true)
153         {
154             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
155         }
156
157         internal static ItemView DownCast(BaseHandle handle)
158         {
159             ItemView ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as ItemView;
160             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
161             return ret;
162         }
163
164         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
165         [EditorBrowsable(EditorBrowsableState.Never)]
166         public uint GetLayoutCount()
167         {
168             uint ret = Interop.ItemView.ItemView_GetLayoutCount(swigCPtr);
169             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
170             return ret;
171         }
172
173         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
174         [EditorBrowsable(EditorBrowsableState.Never)]
175         public void AddLayout(ItemLayout layout)
176         {
177             Interop.ItemView.ItemView_AddLayout(swigCPtr, ItemLayout.getCPtr(layout));
178             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
179         }
180
181         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
182         [EditorBrowsable(EditorBrowsableState.Never)]
183         public void RemoveLayout(uint layoutIndex)
184         {
185             Interop.ItemView.ItemView_RemoveLayout(swigCPtr, layoutIndex);
186             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
187         }
188
189         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
190         [EditorBrowsable(EditorBrowsableState.Never)]
191         public new uint GetChildCount()
192         {
193             uint ret = Interop.ActorInternal.ActorGetChildCount(swigCPtr);
194             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
195             return ret;
196         }
197
198         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
199         [EditorBrowsable(EditorBrowsableState.Never)]
200         public new View GetChildAt(uint index)
201         {
202             View ret = new View(Interop.ActorInternal.ActorGetChildAt(swigCPtr, index), true);
203             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
204             return ret;
205         }
206
207         internal SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t GetLayout(uint layoutIndex)
208         {
209             SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t ret = new SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t(Interop.ItemView.ItemView_GetLayout(swigCPtr, layoutIndex), 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 GetActiveLayout()
215         {
216             SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t ret = new SWIGTYPE_p_Dali__IntrusivePtrT_Dali__Toolkit__ItemLayout_t(Interop.ItemView.ItemView_GetActiveLayout(swigCPtr), true);
217             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
218             return ret;
219         }
220
221         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
222         [EditorBrowsable(EditorBrowsableState.Never)]
223         public float GetCurrentLayoutPosition(uint itemId)
224         {
225             float ret = Interop.ItemView.ItemView_GetCurrentLayoutPosition(swigCPtr, itemId);
226             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
227             return ret;
228         }
229
230         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
231         [EditorBrowsable(EditorBrowsableState.Never)]
232         public void ActivateLayout(uint layoutIndex, Vector3 targetSize, float durationSeconds)
233         {
234             Interop.ItemView.ItemView_ActivateLayout(swigCPtr, layoutIndex, Vector3.getCPtr(targetSize), durationSeconds);
235             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
236         }
237
238         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
239         [EditorBrowsable(EditorBrowsableState.Never)]
240         public void DeactivateCurrentLayout()
241         {
242             Interop.ItemView.ItemView_DeactivateCurrentLayout(swigCPtr);
243             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
244         }
245
246         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
247         [EditorBrowsable(EditorBrowsableState.Never)]
248         public void SetMinimumSwipeSpeed(float speed)
249         {
250             Interop.ItemView.ItemView_SetMinimumSwipeSpeed(swigCPtr, speed);
251             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
252         }
253
254         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
255         [EditorBrowsable(EditorBrowsableState.Never)]
256         public float GetMinimumSwipeSpeed()
257         {
258             float ret = Interop.ItemView.ItemView_GetMinimumSwipeSpeed(swigCPtr);
259             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
260             return ret;
261         }
262
263         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
264         [EditorBrowsable(EditorBrowsableState.Never)]
265         public void SetMinimumSwipeDistance(float distance)
266         {
267             Interop.ItemView.ItemView_SetMinimumSwipeDistance(swigCPtr, distance);
268             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
269         }
270
271         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
272         [EditorBrowsable(EditorBrowsableState.Never)]
273         public float GetMinimumSwipeDistance()
274         {
275             float ret = Interop.ItemView.ItemView_GetMinimumSwipeDistance(swigCPtr);
276             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
277             return ret;
278         }
279
280         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
281         [EditorBrowsable(EditorBrowsableState.Never)]
282         public void SetWheelScrollDistanceStep(float step)
283         {
284             Interop.ItemView.ItemView_SetWheelScrollDistanceStep(swigCPtr, step);
285             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
286         }
287
288         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
289         [EditorBrowsable(EditorBrowsableState.Never)]
290         public float GetWheelScrollDistanceStep()
291         {
292             float ret = Interop.ItemView.ItemView_GetWheelScrollDistanceStep(swigCPtr);
293             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
294             return ret;
295         }
296
297         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
298         [EditorBrowsable(EditorBrowsableState.Never)]
299         public void SetAnchoring(bool enabled)
300         {
301             Interop.ItemView.ItemView_SetAnchoring(swigCPtr, enabled);
302             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
303         }
304
305         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
306         [EditorBrowsable(EditorBrowsableState.Never)]
307         public bool GetAnchoring()
308         {
309             bool ret = Interop.ItemView.ItemView_GetAnchoring(swigCPtr);
310             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
311             return ret;
312         }
313
314         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
315         [EditorBrowsable(EditorBrowsableState.Never)]
316         public void SetAnchoringDuration(float durationSeconds)
317         {
318             Interop.ItemView.ItemView_SetAnchoringDuration(swigCPtr, durationSeconds);
319             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
320         }
321
322         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
323         [EditorBrowsable(EditorBrowsableState.Never)]
324         public float GetAnchoringDuration()
325         {
326             float ret = Interop.ItemView.ItemView_GetAnchoringDuration(swigCPtr);
327             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
328             return ret;
329         }
330
331         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
332         [EditorBrowsable(EditorBrowsableState.Never)]
333         public void ScrollToItem(uint itemId, float durationSeconds)
334         {
335             Interop.ItemView.ItemView_ScrollToItem(swigCPtr, itemId, durationSeconds);
336             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
337         }
338
339         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
340         [EditorBrowsable(EditorBrowsableState.Never)]
341         public void SetRefreshInterval(float intervalLayoutPositions)
342         {
343             Interop.ItemView.ItemView_SetRefreshInterval(swigCPtr, intervalLayoutPositions);
344             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
345         }
346
347         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
348         [EditorBrowsable(EditorBrowsableState.Never)]
349         public float GetRefreshInterval()
350         {
351             float ret = Interop.ItemView.ItemView_GetRefreshInterval(swigCPtr);
352             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
353             return ret;
354         }
355
356         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
357         [EditorBrowsable(EditorBrowsableState.Never)]
358         public void Refresh()
359         {
360             Interop.ItemView.ItemView_Refresh(swigCPtr);
361             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
362         }
363
364         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
365         [EditorBrowsable(EditorBrowsableState.Never)]
366         public View GetItem(uint itemId)
367         {
368             View ret = new View(Interop.ItemView.ItemView_GetItem(swigCPtr, itemId), true);
369             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
370             return ret;
371         }
372
373         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
374         [EditorBrowsable(EditorBrowsableState.Never)]
375         public uint GetItemId(View view)
376         {
377             uint ret = Interop.ItemView.ItemView_GetItemId(swigCPtr, View.getCPtr(view));
378             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
379             return ret;
380         }
381
382         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
383         [EditorBrowsable(EditorBrowsableState.Never)]
384         public void InsertItem(Item newItem, float durationSeconds)
385         {
386             Interop.ItemView.ItemView_InsertItem(swigCPtr, Item.getCPtr(newItem), durationSeconds);
387             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
388         }
389
390         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
391         [EditorBrowsable(EditorBrowsableState.Never)]
392         public void InsertItems(ItemContainer newItems, float durationSeconds)
393         {
394             Interop.ItemView.ItemView_InsertItems(swigCPtr, ItemContainer.getCPtr(newItems), durationSeconds);
395             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
396         }
397
398         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
399         [EditorBrowsable(EditorBrowsableState.Never)]
400         public void RemoveItem(uint itemId, float durationSeconds)
401         {
402             Interop.ItemView.ItemView_RemoveItem(swigCPtr, itemId, durationSeconds);
403             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
404         }
405
406         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
407         [EditorBrowsable(EditorBrowsableState.Never)]
408         public void RemoveItems(ItemIdContainer itemIds, float durationSeconds)
409         {
410             Interop.ItemView.ItemView_RemoveItems(swigCPtr, ItemIdContainer.getCPtr(itemIds), durationSeconds);
411             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
412         }
413
414         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
415         [EditorBrowsable(EditorBrowsableState.Never)]
416         public void ReplaceItem(Item replacementItem, float durationSeconds)
417         {
418             Interop.ItemView.ItemView_ReplaceItem(swigCPtr, Item.getCPtr(replacementItem), durationSeconds);
419             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
420         }
421
422         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
423         [EditorBrowsable(EditorBrowsableState.Never)]
424         public void ReplaceItems(ItemContainer replacementItems, float durationSeconds)
425         {
426             Interop.ItemView.ItemView_ReplaceItems(swigCPtr, ItemContainer.getCPtr(replacementItems), durationSeconds);
427             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
428         }
429
430         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
431         [EditorBrowsable(EditorBrowsableState.Never)]
432         public void SetItemsParentOrigin(Vector3 parentOrigin)
433         {
434             Interop.ItemView.ItemView_SetItemsParentOrigin(swigCPtr, Vector3.getCPtr(parentOrigin));
435             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
436         }
437
438         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
439         [EditorBrowsable(EditorBrowsableState.Never)]
440         public Vector3 GetItemsParentOrigin()
441         {
442             Vector3 ret = new Vector3(Interop.ItemView.ItemView_GetItemsParentOrigin(swigCPtr), true);
443             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
444             return ret;
445         }
446
447         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
448         [EditorBrowsable(EditorBrowsableState.Never)]
449         public void SetItemsAnchorPoint(Vector3 anchorPoint)
450         {
451             Interop.ItemView.ItemView_SetItemsAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
452             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
453         }
454
455         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
456         [EditorBrowsable(EditorBrowsableState.Never)]
457         public Vector3 GetItemsAnchorPoint()
458         {
459             Vector3 ret = new Vector3(Interop.ItemView.ItemView_GetItemsAnchorPoint(swigCPtr), true);
460             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
461             return ret;
462         }
463
464         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
465         [EditorBrowsable(EditorBrowsableState.Never)]
466         public void GetItemsRange(ItemRange range)
467         {
468             Interop.ItemView.ItemView_GetItemsRange(swigCPtr, ItemRange.getCPtr(range));
469             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
470         }
471
472         internal VoidSignal LayoutActivatedSignal()
473         {
474             VoidSignal ret = new VoidSignal(Interop.ItemView.ItemView_LayoutActivatedSignal(swigCPtr), false);
475             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
476             return ret;
477         }
478
479         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
480         [EditorBrowsable(EditorBrowsableState.Never)]
481         public float MinimumSwipeSpeed
482         {
483             get
484             {
485                 float temp = 0.0f;
486                 GetProperty(ItemView.Property.MINIMUM_SWIPE_SPEED).Get(out temp);
487                 return temp;
488             }
489             set
490             {
491                 SetProperty(ItemView.Property.MINIMUM_SWIPE_SPEED, new Tizen.NUI.PropertyValue(value));
492             }
493         }
494
495         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
496         [EditorBrowsable(EditorBrowsableState.Never)]
497         public float MinimumSwipeDistance
498         {
499             get
500             {
501                 float temp = 0.0f;
502                 GetProperty(ItemView.Property.MINIMUM_SWIPE_DISTANCE).Get(out temp);
503                 return temp;
504             }
505             set
506             {
507                 SetProperty(ItemView.Property.MINIMUM_SWIPE_DISTANCE, new Tizen.NUI.PropertyValue(value));
508             }
509         }
510
511         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
512         [EditorBrowsable(EditorBrowsableState.Never)]
513         public float WheelScrollDistanceStep
514         {
515             get
516             {
517                 float temp = 0.0f;
518                 GetProperty(ItemView.Property.WHEEL_SCROLL_DISTANCE_STEP).Get(out temp);
519                 return temp;
520             }
521             set
522             {
523                 SetProperty(ItemView.Property.WHEEL_SCROLL_DISTANCE_STEP, new Tizen.NUI.PropertyValue(value));
524             }
525         }
526
527         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
528         [EditorBrowsable(EditorBrowsableState.Never)]
529         public bool SnapToItemEnabled
530         {
531             get
532             {
533                 bool temp = false;
534                 GetProperty(ItemView.Property.SNAP_TO_ITEM_ENABLED).Get(out temp);
535                 return temp;
536             }
537             set
538             {
539                 SetProperty(ItemView.Property.SNAP_TO_ITEM_ENABLED, new Tizen.NUI.PropertyValue(value));
540             }
541         }
542
543         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
544         [EditorBrowsable(EditorBrowsableState.Never)]
545         public float RefreshInterval
546         {
547             get
548             {
549                 float temp = 0.0f;
550                 GetProperty(ItemView.Property.REFRESH_INTERVAL).Get(out temp);
551                 return temp;
552             }
553             set
554             {
555                 SetProperty(ItemView.Property.REFRESH_INTERVAL, new Tizen.NUI.PropertyValue(value));
556             }
557         }
558
559         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
560         [EditorBrowsable(EditorBrowsableState.Never)]
561         public float LayoutPosition
562         {
563             get
564             {
565                 float temp = 0.0f;
566                 GetProperty(ItemView.Property.LAYOUT_POSITION).Get(out temp);
567                 return temp;
568             }
569             set
570             {
571                 SetProperty(ItemView.Property.LAYOUT_POSITION, new Tizen.NUI.PropertyValue(value));
572             }
573         }
574
575         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
576         [EditorBrowsable(EditorBrowsableState.Never)]
577         public float ScrollSpeed
578         {
579             get
580             {
581                 float temp = 0.0f;
582                 GetProperty(ItemView.Property.SCROLL_SPEED).Get(out temp);
583                 return temp;
584             }
585             set
586             {
587                 SetProperty(ItemView.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue(value));
588             }
589         }
590
591         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
592         [EditorBrowsable(EditorBrowsableState.Never)]
593         public float Overshoot
594         {
595             get
596             {
597                 float temp = 0.0f;
598                 GetProperty(ItemView.Property.OVERSHOOT).Get(out temp);
599                 return temp;
600             }
601             set
602             {
603                 SetProperty(ItemView.Property.OVERSHOOT, new Tizen.NUI.PropertyValue(value));
604             }
605         }
606
607         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
608         [EditorBrowsable(EditorBrowsableState.Never)]
609         public Vector2 ScrollDirection
610         {
611             get
612             {
613                 Vector2 temp = new Vector2(0.0f, 0.0f);
614                 GetProperty(ItemView.Property.SCROLL_DIRECTION).Get(temp);
615                 return temp;
616             }
617             set
618             {
619                 SetProperty(ItemView.Property.SCROLL_DIRECTION, new Tizen.NUI.PropertyValue(value));
620             }
621         }
622
623         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
624         [EditorBrowsable(EditorBrowsableState.Never)]
625         public int LayoutOrientation
626         {
627             get
628             {
629                 int temp = 0;
630                 GetProperty(ItemView.Property.LAYOUT_ORIENTATION).Get(out temp);
631                 return temp;
632             }
633             set
634             {
635                 SetProperty(ItemView.Property.LAYOUT_ORIENTATION, new Tizen.NUI.PropertyValue(value));
636             }
637         }
638
639         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
640         [EditorBrowsable(EditorBrowsableState.Never)]
641         public float ScrollContentSize
642         {
643             get
644             {
645                 float temp = 0.0f;
646                 GetProperty(ItemView.Property.SCROLL_CONTENT_SIZE).Get(out temp);
647                 return temp;
648             }
649             set
650             {
651                 SetProperty(ItemView.Property.SCROLL_CONTENT_SIZE, new Tizen.NUI.PropertyValue(value));
652             }
653         }
654     }
655 }