[NUI] Refactor dispose pattern to reduce duplication (#1112)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / ViewImpl.cs
1 /*
2  * Copyright(c) 2019 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.ComponentModel;
20 using System.Reflection;
21 using Tizen.NUI.BaseComponents;
22
23 namespace Tizen.NUI
24 {
25     internal class ViewImpl : CustomActorImpl
26     {
27
28         internal ViewImpl(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.ViewImpl.ViewImpl_SWIGUpcast(cPtr), cMemoryOwn)
29         {
30         }
31
32         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ViewImpl obj)
33         {
34             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
35         }
36
37         protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
38         {
39             throw new global::System.MethodAccessException("C++ destructor does not have public access");
40         }
41
42         public static View New()
43         {
44             View ret = new View(Interop.ViewImpl.ViewImpl_New(), true);
45             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
46             return ret;
47         }
48
49         public void SetStyleName(string styleName)
50         {
51             Interop.ViewImpl.ViewImpl_SetStyleName(swigCPtr, styleName);
52             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
53         }
54
55         public string GetStyleName()
56         {
57             string ret = Interop.ViewImpl.ViewImpl_GetStyleName(swigCPtr);
58             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
59             return ret;
60         }
61
62         public void SetBackgroundColor(Vector4 color)
63         {
64             Interop.ViewImpl.ViewImpl_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
65             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
66         }
67
68         public Vector4 GetBackgroundColor()
69         {
70             Vector4 ret = new Vector4(Interop.ViewImpl.ViewImpl_GetBackgroundColor(swigCPtr), true);
71             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
72             return ret;
73         }
74         public void SetBackground(PropertyMap map)
75         {
76             Interop.ViewImpl.ViewImpl_SetBackground(swigCPtr, PropertyMap.getCPtr(map));
77             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
78         }
79
80         public void ClearBackground()
81         {
82             Interop.ViewImpl.ViewImpl_ClearBackground(swigCPtr);
83             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
84         }
85
86         public void EnableGestureDetection(Gesture.GestureType type)
87         {
88             Interop.ViewImpl.ViewImpl_EnableGestureDetection(swigCPtr, (int)type);
89             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
90         }
91
92         public void DisableGestureDetection(Gesture.GestureType type)
93         {
94             Interop.ViewImpl.ViewImpl_DisableGestureDetection(swigCPtr, (int)type);
95             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
96         }
97
98         public PinchGestureDetector GetPinchGestureDetector()
99         {
100             PinchGestureDetector ret = new PinchGestureDetector(Interop.ViewImpl.ViewImpl_GetPinchGestureDetector(swigCPtr), true);
101             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
102             return ret;
103         }
104
105         public PanGestureDetector GetPanGestureDetector()
106         {
107             PanGestureDetector ret = new PanGestureDetector(Interop.ViewImpl.ViewImpl_GetPanGestureDetector(swigCPtr), true);
108             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
109             return ret;
110         }
111
112         public TapGestureDetector GetTapGestureDetector()
113         {
114             TapGestureDetector ret = new TapGestureDetector(Interop.ViewImpl.ViewImpl_GetTapGestureDetector(swigCPtr), true);
115             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
116             return ret;
117         }
118
119         public LongPressGestureDetector GetLongPressGestureDetector()
120         {
121             LongPressGestureDetector ret = new LongPressGestureDetector(Interop.ViewImpl.ViewImpl_GetLongPressGestureDetector(swigCPtr), true);
122             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
123             return ret;
124         }
125
126         public void SetKeyboardNavigationSupport(bool isSupported)
127         {
128             Interop.ViewImpl.ViewImpl_SetKeyboardNavigationSupport(swigCPtr, isSupported);
129             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
130         }
131
132         public bool IsKeyboardNavigationSupported()
133         {
134             bool ret = Interop.ViewImpl.ViewImpl_IsKeyboardNavigationSupported(swigCPtr);
135             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
136             return ret;
137         }
138
139         public void SetKeyInputFocus()
140         {
141             Interop.ViewImpl.ViewImpl_SetKeyInputFocus(swigCPtr);
142             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
143         }
144
145         public bool HasKeyInputFocus()
146         {
147             bool ret = Interop.ViewImpl.ViewImpl_HasKeyInputFocus(swigCPtr);
148             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
149             return ret;
150         }
151
152         public void ClearKeyInputFocus()
153         {
154             Interop.ViewImpl.ViewImpl_ClearKeyInputFocus(swigCPtr);
155             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
156         }
157
158         public void SetAsFocusGroup(bool isFocusGroup)
159         {
160             Interop.ViewImpl.ViewImpl_SetAsKeyboardFocusGroup(swigCPtr, isFocusGroup);
161             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
162         }
163
164         public bool IsFocusGroup()
165         {
166             bool ret = Interop.ViewImpl.ViewImpl_IsKeyboardFocusGroup(swigCPtr);
167             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
168             return ret;
169         }
170
171         /// <summary>
172         /// [Obsolete("Please do not use! this will be deprecated")]
173         /// </summary>
174         /// Please do not use! this will be deprecated!
175         /// <since_tizen> 5 </since_tizen>
176         [Obsolete("Please do not use! this will be deprecated.")]
177         [EditorBrowsable(EditorBrowsableState.Never)]
178         public void AccessibilityActivate()
179         {
180             Interop.ViewImpl.ViewImpl_AccessibilityActivate(swigCPtr);
181             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
182         }
183
184         /// <summary>
185         /// [Obsolete("Please do not use! this will be deprecated")]
186         /// </summary>
187         /// Please do not use! this will be deprecated!
188         /// <since_tizen> 5 </since_tizen>
189         [Obsolete("Please do not use! this will be deprecated.")]
190         [EditorBrowsable(EditorBrowsableState.Never)]
191         public void KeyboardEnter()
192         {
193             Interop.ViewImpl.ViewImpl_KeyboardEnter(swigCPtr);
194             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
195         }
196
197         internal ControlKeySignal KeyEventSignal()
198         {
199             ControlKeySignal ret = new ControlKeySignal(Interop.ViewImplSignal.ViewImpl_KeyEventSignal(swigCPtr), false);
200             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
201             return ret;
202         }
203
204         internal KeyInputFocusSignal KeyInputFocusGainedSignal()
205         {
206             KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewImplSignal.ViewImpl_KeyInputFocusGainedSignal(swigCPtr), false);
207             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
208             return ret;
209         }
210
211         internal KeyInputFocusSignal KeyInputFocusLostSignal()
212         {
213             KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewImplSignal.ViewImpl_KeyInputFocusLostSignal(swigCPtr), false);
214             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
215             return ret;
216         }
217
218         /// <summary>
219         /// [Obsolete("Please do not use! this will be deprecated")]
220         /// </summary>
221         /// Please do not use! this will be deprecated!
222         /// <since_tizen> 5 </since_tizen>
223         [Obsolete("Please do not use! this will be deprecated.")]
224         [EditorBrowsable(EditorBrowsableState.Never)]
225         public bool EmitKeyEventSignal(Key arg0)
226         {
227             bool ret = Interop.ViewImplSignal.ViewImpl_EmitKeyEventSignal(swigCPtr, Key.getCPtr(arg0));
228             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
229             return ret;
230         }
231
232         protected virtual new void OnStageConnection(int depth)
233         {
234             if (SwigDerivedClassHasMethod("OnStageConnection", swigMethodTypes0)) Interop.ViewImplSignal.ViewImpl_OnStageConnectionSwigExplicitViewImpl(swigCPtr, depth); else Interop.ViewImplSignal.ViewImpl_OnStageConnection(swigCPtr, depth);
235             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
236         }
237
238         protected virtual new void OnStageDisconnection()
239         {
240             if (SwigDerivedClassHasMethod("OnStageDisconnection", swigMethodTypes1)) Interop.ViewImplSignal.ViewImpl_OnStageDisconnectionSwigExplicitViewImpl(swigCPtr); else Interop.ViewImplSignal.ViewImpl_OnStageDisconnection(swigCPtr);
241             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
242         }
243
244         protected virtual new void OnChildAdd(View child)
245         {
246             if (SwigDerivedClassHasMethod("OnChildAdd", swigMethodTypes2)) Interop.ViewImplSignal.ViewImpl_OnChildAddSwigExplicitViewImpl(swigCPtr, View.getCPtr(child)); else Interop.ViewImplSignal.ViewImpl_OnChildAdd(swigCPtr, View.getCPtr(child));
247             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
248         }
249
250         protected virtual new void OnChildRemove(View child)
251         {
252             if (SwigDerivedClassHasMethod("OnChildRemove", swigMethodTypes3)) Interop.ViewImplSignal.ViewImpl_OnChildRemoveSwigExplicitViewImpl(swigCPtr, View.getCPtr(child)); else Interop.ViewImplSignal.ViewImpl_OnChildRemove(swigCPtr, View.getCPtr(child));
253             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
254         }
255
256         protected virtual new void OnPropertySet(int index, PropertyValue propertyValue)
257         {
258             if (SwigDerivedClassHasMethod("OnPropertySet", swigMethodTypes4)) Interop.ViewImplSignal.ViewImpl_OnPropertySetSwigExplicitViewImpl(swigCPtr, index, PropertyValue.getCPtr(propertyValue)); else Interop.ViewImplSignal.ViewImpl_OnPropertySet(swigCPtr, index, PropertyValue.getCPtr(propertyValue));
259             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
260         }
261
262         protected virtual new void OnSizeSet(Vector3 targetSize)
263         {
264             if (SwigDerivedClassHasMethod("OnSizeSet", swigMethodTypes5)) Interop.ViewImplSignal.ViewImpl_OnSizeSetSwigExplicitViewImpl(swigCPtr, Vector3.getCPtr(targetSize)); else Interop.ViewImplSignal.ViewImpl_OnSizeSet(swigCPtr, Vector3.getCPtr(targetSize));
265             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
266         }
267
268         protected virtual new void OnSizeAnimation(Animation animation, Vector3 targetSize)
269         {
270             if (SwigDerivedClassHasMethod("OnSizeAnimation", swigMethodTypes6)) Interop.ViewImplSignal.ViewImpl_OnSizeAnimationSwigExplicitViewImpl(swigCPtr, Animation.getCPtr(animation), Vector3.getCPtr(targetSize)); else Interop.ViewImplSignal.ViewImpl_OnSizeAnimation(swigCPtr, Animation.getCPtr(animation), Vector3.getCPtr(targetSize));
271             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
272         }
273
274         internal virtual new bool OnTouchEvent(SWIGTYPE_p_Dali__TouchEvent arg0)
275         {
276             bool ret = (SwigDerivedClassHasMethod("OnTouchEvent", swigMethodTypes7) ? Interop.ViewImplSignal.ViewImpl_OnTouchEventSwigExplicitViewImpl(swigCPtr, SWIGTYPE_p_Dali__TouchEvent.getCPtr(arg0)) : Interop.ViewImplSignal.ViewImpl_OnTouchEvent(swigCPtr, SWIGTYPE_p_Dali__TouchEvent.getCPtr(arg0)));
277             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
278             return ret;
279         }
280
281         protected virtual new bool OnHoverEvent(Hover arg0)
282         {
283             bool ret = (SwigDerivedClassHasMethod("OnHoverEvent", swigMethodTypes8) ? Interop.ViewImplSignal.ViewImpl_OnHoverEventSwigExplicitViewImpl(swigCPtr, Hover.getCPtr(arg0)) : Interop.ViewImplSignal.ViewImpl_OnHoverEvent(swigCPtr, Hover.getCPtr(arg0)));
284             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
285             return ret;
286         }
287
288         protected virtual new bool OnKeyEvent(Key arg0)
289         {
290             bool ret = (SwigDerivedClassHasMethod("OnKeyEvent", swigMethodTypes9) ? Interop.ViewImplSignal.ViewImpl_OnKeyEventSwigExplicitViewImpl(swigCPtr, Key.getCPtr(arg0)) : Interop.ViewImplSignal.ViewImpl_OnKeyEvent(swigCPtr, Key.getCPtr(arg0)));
291             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
292             return ret;
293         }
294
295         protected virtual new bool OnWheelEvent(Wheel arg0)
296         {
297             bool ret = (SwigDerivedClassHasMethod("OnWheelEvent", swigMethodTypes10) ? Interop.ViewImplSignal.ViewImpl_OnWheelEventSwigExplicitViewImpl(swigCPtr, Wheel.getCPtr(arg0)) : Interop.ViewImplSignal.ViewImpl_OnWheelEvent(swigCPtr, Wheel.getCPtr(arg0)));
298             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
299             return ret;
300         }
301
302         protected virtual new void OnRelayout(Vector2 size, RelayoutContainer container)
303         {
304             if (SwigDerivedClassHasMethod("OnRelayout", swigMethodTypes11)) Interop.ViewImplSignal.ViewImpl_OnRelayoutSwigExplicitViewImpl(swigCPtr, Vector2.getCPtr(size), RelayoutContainer.getCPtr(container)); else Interop.ViewImplSignal.ViewImpl_OnRelayout(swigCPtr, Vector2.getCPtr(size), RelayoutContainer.getCPtr(container));
305             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
306         }
307
308         protected virtual new void OnSetResizePolicy(ResizePolicyType policy, DimensionType dimension)
309         {
310             if (SwigDerivedClassHasMethod("OnSetResizePolicy", swigMethodTypes12)) Interop.ViewImplSignal.ViewImpl_OnSetResizePolicySwigExplicitViewImpl(swigCPtr, (int)policy, (int)dimension); else Interop.ViewImplSignal.ViewImpl_OnSetResizePolicy(swigCPtr, (int)policy, (int)dimension);
311             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
312         }
313
314         protected virtual new Vector3 GetNaturalSize()
315         {
316             Vector3 ret = new Vector3((SwigDerivedClassHasMethod("GetNaturalSize", swigMethodTypes13) ? Interop.ViewImpl.ViewImpl_GetNaturalSizeSwigExplicitViewImpl(swigCPtr) : Interop.ViewImpl.ViewImpl_GetNaturalSize(swigCPtr)), true);
317             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
318             return ret;
319         }
320
321         protected virtual new float CalculateChildSize(View child, DimensionType dimension)
322         {
323             float ret = (SwigDerivedClassHasMethod("CalculateChildSize", swigMethodTypes14) ? Interop.ViewImpl.ViewImpl_CalculateChildSizeSwigExplicitViewImpl(swigCPtr, View.getCPtr(child), (int)dimension) : Interop.ViewImpl.ViewImpl_CalculateChildSize(swigCPtr, View.getCPtr(child), (int)dimension));
324             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
325             return ret;
326         }
327
328         protected virtual new float GetHeightForWidth(float width)
329         {
330             float ret = (SwigDerivedClassHasMethod("GetHeightForWidth", swigMethodTypes15) ? Interop.ViewImpl.ViewImpl_GetHeightForWidthSwigExplicitViewImpl(swigCPtr, width) : Interop.ViewImpl.ViewImpl_GetHeightForWidth(swigCPtr, width));
331             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
332             return ret;
333         }
334
335         protected virtual new float GetWidthForHeight(float height)
336         {
337             float ret = (SwigDerivedClassHasMethod("GetWidthForHeight", swigMethodTypes16) ? Interop.ViewImpl.ViewImpl_GetWidthForHeightSwigExplicitViewImpl(swigCPtr, height) : Interop.ViewImpl.ViewImpl_GetWidthForHeight(swigCPtr, height));
338             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
339             return ret;
340         }
341
342         protected virtual new bool RelayoutDependentOnChildren(DimensionType dimension)
343         {
344             bool ret = (SwigDerivedClassHasMethod("RelayoutDependentOnChildren", swigMethodTypes17) ? Interop.ViewImpl.ViewImpl_RelayoutDependentOnChildrenSwigExplicitViewImpl__SWIG_0(swigCPtr, (int)dimension) : Interop.ViewImpl.ViewImpl_RelayoutDependentOnChildren__SWIG_0(swigCPtr, (int)dimension));
345             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
346             return ret;
347         }
348
349         protected virtual new bool RelayoutDependentOnChildren()
350         {
351             bool ret = (SwigDerivedClassHasMethod("RelayoutDependentOnChildren", swigMethodTypes18) ? Interop.ViewImpl.ViewImpl_RelayoutDependentOnChildrenSwigExplicitViewImpl__SWIG_1(swigCPtr) : Interop.ViewImpl.ViewImpl_RelayoutDependentOnChildren__SWIG_1(swigCPtr));
352             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
353             return ret;
354         }
355
356         protected virtual new void OnCalculateRelayoutSize(DimensionType dimension)
357         {
358             if (SwigDerivedClassHasMethod("OnCalculateRelayoutSize", swigMethodTypes19)) Interop.ViewImplSignal.ViewImpl_OnCalculateRelayoutSizeSwigExplicitViewImpl(swigCPtr, (int)dimension); else Interop.ViewImplSignal.ViewImpl_OnCalculateRelayoutSize(swigCPtr, (int)dimension);
359             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
360         }
361
362         protected virtual new void OnLayoutNegotiated(float size, DimensionType dimension)
363         {
364             if (SwigDerivedClassHasMethod("OnLayoutNegotiated", swigMethodTypes20)) Interop.ViewImplSignal.ViewImpl_OnLayoutNegotiatedSwigExplicitViewImpl(swigCPtr, size, (int)dimension); else Interop.ViewImplSignal.ViewImpl_OnLayoutNegotiated(swigCPtr, size, (int)dimension);
365             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
366         }
367
368         public virtual void OnInitialize()
369         {
370             if (SwigDerivedClassHasMethod("OnInitialize", swigMethodTypes21)) Interop.ViewImplSignal.ViewImpl_OnInitializeSwigExplicitViewImpl(swigCPtr); else Interop.ViewImplSignal.ViewImpl_OnInitialize(swigCPtr);
371             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
372         }
373
374         public virtual void OnControlChildAdd(View child)
375         {
376             if (SwigDerivedClassHasMethod("OnControlChildAdd", swigMethodTypes22)) Interop.ViewImplSignal.ViewImpl_OnControlChildAddSwigExplicitViewImpl(swigCPtr, View.getCPtr(child)); else Interop.ViewImplSignal.ViewImpl_OnControlChildAdd(swigCPtr, View.getCPtr(child));
377             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
378         }
379
380         public virtual void OnControlChildRemove(View child)
381         {
382             if (SwigDerivedClassHasMethod("OnControlChildRemove", swigMethodTypes23)) Interop.ViewImplSignal.ViewImpl_OnControlChildRemoveSwigExplicitViewImpl(swigCPtr, View.getCPtr(child)); else Interop.ViewImplSignal.ViewImpl_OnControlChildRemove(swigCPtr, View.getCPtr(child));
383             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
384         }
385
386         public virtual void OnStyleChange(StyleManager styleManager, StyleChangeType change)
387         {
388             if (SwigDerivedClassHasMethod("OnStyleChange", swigMethodTypes24)) Interop.ViewImplSignal.ViewImpl_OnStyleChangeSwigExplicitViewImpl(swigCPtr, StyleManager.getCPtr(styleManager), (int)change); else Interop.ViewImplSignal.ViewImpl_OnStyleChange(swigCPtr, StyleManager.getCPtr(styleManager), (int)change);
389             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
390         }
391
392         public virtual bool OnAccessibilityActivated()
393         {
394             bool ret = (SwigDerivedClassHasMethod("OnAccessibilityActivated", swigMethodTypes25) ? Interop.ViewImplSignal.ViewImpl_OnAccessibilityActivatedSwigExplicitViewImpl(swigCPtr) : Interop.ViewImplSignal.ViewImpl_OnAccessibilityActivated(swigCPtr));
395             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
396             return ret;
397         }
398
399         public virtual bool OnAccessibilityPan(PanGesture gesture)
400         {
401             bool ret = (SwigDerivedClassHasMethod("OnAccessibilityPan", swigMethodTypes26) ? Interop.ViewImplSignal.ViewImpl_OnAccessibilityPanSwigExplicitViewImpl(swigCPtr, PanGesture.getCPtr(gesture)) : Interop.ViewImplSignal.ViewImpl_OnAccessibilityPan(swigCPtr, PanGesture.getCPtr(gesture)));
402             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
403             return ret;
404         }
405
406         internal virtual bool OnAccessibilityTouch(SWIGTYPE_p_Dali__TouchEvent touchEvent)
407         {
408             bool ret = (SwigDerivedClassHasMethod("OnAccessibilityTouch", swigMethodTypes27) ? Interop.ViewImplSignal.ViewImpl_OnAccessibilityTouchSwigExplicitViewImpl(swigCPtr, SWIGTYPE_p_Dali__TouchEvent.getCPtr(touchEvent)) : Interop.ViewImplSignal.ViewImpl_OnAccessibilityTouch(swigCPtr, SWIGTYPE_p_Dali__TouchEvent.getCPtr(touchEvent)));
409             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
410             return ret;
411         }
412
413         public virtual bool OnAccessibilityValueChange(bool isIncrease)
414         {
415             bool ret = (SwigDerivedClassHasMethod("OnAccessibilityValueChange", swigMethodTypes28) ? Interop.ViewImplSignal.ViewImpl_OnAccessibilityValueChangeSwigExplicitViewImpl(swigCPtr, isIncrease) : Interop.ViewImplSignal.ViewImpl_OnAccessibilityValueChange(swigCPtr, isIncrease));
416             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
417             return ret;
418         }
419
420         public virtual bool OnAccessibilityZoom()
421         {
422             bool ret = (SwigDerivedClassHasMethod("OnAccessibilityZoom", swigMethodTypes29) ? Interop.ViewImplSignal.ViewImpl_OnAccessibilityZoomSwigExplicitViewImpl(swigCPtr) : Interop.ViewImplSignal.ViewImpl_OnAccessibilityZoom(swigCPtr));
423             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
424             return ret;
425         }
426
427         public virtual void OnKeyInputFocusGained()
428         {
429             if (SwigDerivedClassHasMethod("OnKeyInputFocusGained", swigMethodTypes30)) Interop.ViewImplSignal.ViewImpl_OnKeyInputFocusGainedSwigExplicitViewImpl(swigCPtr); else Interop.ViewImplSignal.ViewImpl_OnKeyInputFocusGained(swigCPtr);
430             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
431         }
432
433         public virtual void OnKeyInputFocusLost()
434         {
435             if (SwigDerivedClassHasMethod("OnKeyInputFocusLost", swigMethodTypes31)) Interop.ViewImplSignal.ViewImpl_OnKeyInputFocusLostSwigExplicitViewImpl(swigCPtr); else Interop.ViewImplSignal.ViewImpl_OnKeyInputFocusLost(swigCPtr);
436             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
437         }
438
439         public virtual View GetNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled)
440         {
441             View ret = new View((SwigDerivedClassHasMethod("GetNextFocusableView", swigMethodTypes32) ? Interop.ViewImpl.ViewImpl_GetNextKeyboardFocusableActorSwigExplicitViewImpl(swigCPtr, View.getCPtr(currentFocusedView), (int)direction, loopEnabled) : Interop.ViewImpl.ViewImpl_GetNextKeyboardFocusableActor(swigCPtr, View.getCPtr(currentFocusedView), (int)direction, loopEnabled)), true);
442             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
443             return ret;
444         }
445
446         public virtual void OnFocusChangeCommitted(View commitedFocusableView)
447         {
448             if (SwigDerivedClassHasMethod("OnFocusChangeCommitted", swigMethodTypes33)) Interop.ViewImplSignal.ViewImpl_OnKeyboardFocusChangeCommittedSwigExplicitViewImpl(swigCPtr, View.getCPtr(commitedFocusableView)); else Interop.ViewImplSignal.ViewImpl_OnKeyboardFocusChangeCommitted(swigCPtr, View.getCPtr(commitedFocusableView));
449             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
450         }
451
452         public virtual bool OnKeyboardEnter()
453         {
454             bool ret = (SwigDerivedClassHasMethod("OnKeyboardEnter", swigMethodTypes34) ? Interop.ViewImplSignal.ViewImpl_OnKeyboardEnterSwigExplicitViewImpl(swigCPtr) : Interop.ViewImplSignal.ViewImpl_OnKeyboardEnter(swigCPtr));
455             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
456             return ret;
457         }
458
459         public virtual void OnPinch(PinchGesture pinch)
460         {
461             if (SwigDerivedClassHasMethod("OnPinch", swigMethodTypes35)) Interop.ViewImplSignal.ViewImpl_OnPinchSwigExplicitViewImpl(swigCPtr, PinchGesture.getCPtr(pinch)); else Interop.ViewImplSignal.ViewImpl_OnPinch(swigCPtr, PinchGesture.getCPtr(pinch));
462             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
463         }
464
465         public virtual void OnPan(PanGesture pan)
466         {
467             if (SwigDerivedClassHasMethod("OnPan", swigMethodTypes36)) Interop.ViewImplSignal.ViewImpl_OnPanSwigExplicitViewImpl(swigCPtr, PanGesture.getCPtr(pan)); else Interop.ViewImplSignal.ViewImpl_OnPan(swigCPtr, PanGesture.getCPtr(pan));
468             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
469         }
470
471         public virtual void OnTap(TapGesture tap)
472         {
473             if (SwigDerivedClassHasMethod("OnTap", swigMethodTypes37)) Interop.ViewImplSignal.ViewImpl_OnTapSwigExplicitViewImpl(swigCPtr, TapGesture.getCPtr(tap)); else Interop.ViewImplSignal.ViewImpl_OnTap(swigCPtr, TapGesture.getCPtr(tap));
474             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
475         }
476
477         public virtual void OnLongPress(LongPressGesture longPress)
478         {
479             if (SwigDerivedClassHasMethod("OnLongPress", swigMethodTypes38)) Interop.ViewImplSignal.ViewImpl_OnLongPressSwigExplicitViewImpl(swigCPtr, LongPressGesture.getCPtr(longPress)); else Interop.ViewImplSignal.ViewImpl_OnLongPress(swigCPtr, LongPressGesture.getCPtr(longPress));
480             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
481         }
482
483         internal virtual void SignalConnected(SlotObserver slotObserver, SWIGTYPE_p_Dali__CallbackBase callback)
484         {
485             if (SwigDerivedClassHasMethod("SignalConnected", swigMethodTypes39)) Interop.ViewImplSignal.ViewImpl_SignalConnectedSwigExplicitViewImpl(swigCPtr, SlotObserver.getCPtr(slotObserver), SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback)); else Interop.ViewImplSignal.ViewImpl_SignalConnected(swigCPtr, SlotObserver.getCPtr(slotObserver), SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback));
486             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
487         }
488
489         internal virtual void SignalDisconnected(SlotObserver slotObserver, SWIGTYPE_p_Dali__CallbackBase callback)
490         {
491             if (SwigDerivedClassHasMethod("SignalDisconnected", swigMethodTypes40)) Interop.ViewImplSignal.ViewImpl_SignalDisconnectedSwigExplicitViewImpl(swigCPtr, SlotObserver.getCPtr(slotObserver), SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback)); else Interop.ViewImplSignal.ViewImpl_SignalDisconnected(swigCPtr, SlotObserver.getCPtr(slotObserver), SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback));
492             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
493         }
494
495         private void SwigDirectorConnect()
496         {
497             if (SwigDerivedClassHasMethod("OnStageConnection", swigMethodTypes0))
498                 swigDelegate0 = new SwigDelegateViewImpl_0(SwigDirectorOnStageConnection);
499             if (SwigDerivedClassHasMethod("OnStageDisconnection", swigMethodTypes1))
500                 swigDelegate1 = new SwigDelegateViewImpl_1(SwigDirectorOnStageDisconnection);
501             if (SwigDerivedClassHasMethod("OnChildAdd", swigMethodTypes2))
502                 swigDelegate2 = new SwigDelegateViewImpl_2(SwigDirectorOnChildAdd);
503             if (SwigDerivedClassHasMethod("OnChildRemove", swigMethodTypes3))
504                 swigDelegate3 = new SwigDelegateViewImpl_3(SwigDirectorOnChildRemove);
505             if (SwigDerivedClassHasMethod("OnPropertySet", swigMethodTypes4))
506                 swigDelegate4 = new SwigDelegateViewImpl_4(SwigDirectorOnPropertySet);
507             if (SwigDerivedClassHasMethod("OnSizeSet", swigMethodTypes5))
508                 swigDelegate5 = new SwigDelegateViewImpl_5(SwigDirectorOnSizeSet);
509             if (SwigDerivedClassHasMethod("OnSizeAnimation", swigMethodTypes6))
510                 swigDelegate6 = new SwigDelegateViewImpl_6(SwigDirectorOnSizeAnimation);
511             if (SwigDerivedClassHasMethod("OnTouchEvent", swigMethodTypes7))
512                 swigDelegate7 = new SwigDelegateViewImpl_7(SwigDirectorOnTouchEvent);
513             if (SwigDerivedClassHasMethod("OnHoverEvent", swigMethodTypes8))
514                 swigDelegate8 = new SwigDelegateViewImpl_8(SwigDirectorOnHoverEvent);
515             if (SwigDerivedClassHasMethod("OnKeyEvent", swigMethodTypes9))
516                 swigDelegate9 = new SwigDelegateViewImpl_9(SwigDirectorOnKeyEvent);
517             if (SwigDerivedClassHasMethod("OnWheelEvent", swigMethodTypes10))
518                 swigDelegate10 = new SwigDelegateViewImpl_10(SwigDirectorOnWheelEvent);
519             if (SwigDerivedClassHasMethod("OnRelayout", swigMethodTypes11))
520                 swigDelegate11 = new SwigDelegateViewImpl_11(SwigDirectorOnRelayout);
521             if (SwigDerivedClassHasMethod("OnSetResizePolicy", swigMethodTypes12))
522                 swigDelegate12 = new SwigDelegateViewImpl_12(SwigDirectorOnSetResizePolicy);
523             if (SwigDerivedClassHasMethod("GetNaturalSize", swigMethodTypes13))
524                 swigDelegate13 = new SwigDelegateViewImpl_13(SwigDirectorGetNaturalSize);
525             if (SwigDerivedClassHasMethod("CalculateChildSize", swigMethodTypes14))
526                 swigDelegate14 = new SwigDelegateViewImpl_14(SwigDirectorCalculateChildSize);
527             if (SwigDerivedClassHasMethod("GetHeightForWidth", swigMethodTypes15))
528                 swigDelegate15 = new SwigDelegateViewImpl_15(SwigDirectorGetHeightForWidth);
529             if (SwigDerivedClassHasMethod("GetWidthForHeight", swigMethodTypes16))
530                 swigDelegate16 = new SwigDelegateViewImpl_16(SwigDirectorGetWidthForHeight);
531             if (SwigDerivedClassHasMethod("RelayoutDependentOnChildren", swigMethodTypes17))
532                 swigDelegate17 = new SwigDelegateViewImpl_17(SwigDirectorRelayoutDependentOnChildren__SWIG_0);
533             if (SwigDerivedClassHasMethod("RelayoutDependentOnChildren", swigMethodTypes18))
534                 swigDelegate18 = new SwigDelegateViewImpl_18(SwigDirectorRelayoutDependentOnChildren__SWIG_1);
535             if (SwigDerivedClassHasMethod("OnCalculateRelayoutSize", swigMethodTypes19))
536                 swigDelegate19 = new SwigDelegateViewImpl_19(SwigDirectorOnCalculateRelayoutSize);
537             if (SwigDerivedClassHasMethod("OnLayoutNegotiated", swigMethodTypes20))
538                 swigDelegate20 = new SwigDelegateViewImpl_20(SwigDirectorOnLayoutNegotiated);
539             if (SwigDerivedClassHasMethod("OnInitialize", swigMethodTypes21))
540                 swigDelegate21 = new SwigDelegateViewImpl_21(SwigDirectorOnInitialize);
541             if (SwigDerivedClassHasMethod("OnControlChildAdd", swigMethodTypes22))
542                 swigDelegate22 = new SwigDelegateViewImpl_22(SwigDirectorOnControlChildAdd);
543             if (SwigDerivedClassHasMethod("OnControlChildRemove", swigMethodTypes23))
544                 swigDelegate23 = new SwigDelegateViewImpl_23(SwigDirectorOnControlChildRemove);
545             if (SwigDerivedClassHasMethod("OnStyleChange", swigMethodTypes24))
546                 swigDelegate24 = new SwigDelegateViewImpl_24(SwigDirectorOnStyleChange);
547             if (SwigDerivedClassHasMethod("OnAccessibilityActivated", swigMethodTypes25))
548                 swigDelegate25 = new SwigDelegateViewImpl_25(SwigDirectorOnAccessibilityActivated);
549             if (SwigDerivedClassHasMethod("OnAccessibilityPan", swigMethodTypes26))
550                 swigDelegate26 = new SwigDelegateViewImpl_26(SwigDirectorOnAccessibilityPan);
551             if (SwigDerivedClassHasMethod("OnAccessibilityTouch", swigMethodTypes27))
552                 swigDelegate27 = new SwigDelegateViewImpl_27(SwigDirectorOnAccessibilityTouch);
553             if (SwigDerivedClassHasMethod("OnAccessibilityValueChange", swigMethodTypes28))
554                 swigDelegate28 = new SwigDelegateViewImpl_28(SwigDirectorOnAccessibilityValueChange);
555             if (SwigDerivedClassHasMethod("OnAccessibilityZoom", swigMethodTypes29))
556                 swigDelegate29 = new SwigDelegateViewImpl_29(SwigDirectorOnAccessibilityZoom);
557             if (SwigDerivedClassHasMethod("OnKeyInputFocusGained", swigMethodTypes30))
558                 swigDelegate30 = new SwigDelegateViewImpl_30(SwigDirectorOnKeyInputFocusGained);
559             if (SwigDerivedClassHasMethod("OnKeyInputFocusLost", swigMethodTypes31))
560                 swigDelegate31 = new SwigDelegateViewImpl_31(SwigDirectorOnKeyInputFocusLost);
561             if (SwigDerivedClassHasMethod("GetNextFocusableView", swigMethodTypes32))
562                 swigDelegate32 = new SwigDelegateViewImpl_32(SwigDirectorGetNextKeyboardFocusableView);
563             if (SwigDerivedClassHasMethod("OnFocusChangeCommitted", swigMethodTypes33))
564                 swigDelegate33 = new SwigDelegateViewImpl_33(SwigDirectorOnKeyboardFocusChangeCommitted);
565             if (SwigDerivedClassHasMethod("OnKeyboardEnter", swigMethodTypes34))
566                 swigDelegate34 = new SwigDelegateViewImpl_34(SwigDirectorOnKeyboardEnter);
567             if (SwigDerivedClassHasMethod("OnPinch", swigMethodTypes35))
568                 swigDelegate35 = new SwigDelegateViewImpl_35(SwigDirectorOnPinch);
569             if (SwigDerivedClassHasMethod("OnPan", swigMethodTypes36))
570                 swigDelegate36 = new SwigDelegateViewImpl_36(SwigDirectorOnPan);
571             if (SwigDerivedClassHasMethod("OnTap", swigMethodTypes37))
572                 swigDelegate37 = new SwigDelegateViewImpl_37(SwigDirectorOnTap);
573             if (SwigDerivedClassHasMethod("OnLongPress", swigMethodTypes38))
574                 swigDelegate38 = new SwigDelegateViewImpl_38(SwigDirectorOnLongPress);
575             if (SwigDerivedClassHasMethod("SignalConnected", swigMethodTypes39))
576                 swigDelegate39 = new SwigDelegateViewImpl_39(SwigDirectorSignalConnected);
577             if (SwigDerivedClassHasMethod("SignalDisconnected", swigMethodTypes40))
578                 swigDelegate40 = new SwigDelegateViewImpl_40(SwigDirectorSignalDisconnected);
579             Interop.ViewImpl.ViewImpl_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13, swigDelegate14, swigDelegate15, swigDelegate16, swigDelegate17, swigDelegate18, swigDelegate19, swigDelegate20, swigDelegate21, swigDelegate22, swigDelegate23, swigDelegate24, swigDelegate25, swigDelegate26, swigDelegate27, swigDelegate28, swigDelegate29, swigDelegate30, swigDelegate31, swigDelegate32, swigDelegate33, swigDelegate34, swigDelegate35, swigDelegate36, swigDelegate37, swigDelegate38, swigDelegate39, swigDelegate40);
580         }
581
582
583         private bool SwigDerivedClassHasMethod(string methodName, global::System.Type[] methodTypes)
584         {
585             global::System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, methodTypes);
586             bool hasDerivedMethod = this.GetType().GetTypeInfo().IsSubclassOf(typeof(ViewImpl));
587
588             NUILog.Debug("hasDerivedMethod=" + hasDerivedMethod);
589
590             return hasDerivedMethod && (methodInfo != null);
591         }
592
593         private void SwigDirectorOnStageConnection(int depth)
594         {
595             OnStageConnection(depth);
596         }
597
598         private void SwigDirectorOnStageDisconnection()
599         {
600             OnStageDisconnection();
601         }
602
603         private void SwigDirectorOnChildAdd(global::System.IntPtr child)
604         {
605             View view = Registry.GetManagedBaseHandleFromNativePtr(child) as View;
606
607             if (view)
608             {
609                 OnChildAdd(view);
610             }
611         }
612
613         private void SwigDirectorOnChildRemove(global::System.IntPtr child)
614         {
615             View view = Registry.GetManagedBaseHandleFromNativePtr(child) as View;
616
617             if (view)
618             {
619                 OnChildRemove(view);
620             }
621         }
622
623         private void SwigDirectorOnPropertySet(int index, global::System.IntPtr propertyValue)
624         {
625             OnPropertySet(index, new PropertyValue(propertyValue, true));
626         }
627
628         private void SwigDirectorOnSizeSet(global::System.IntPtr targetSize)
629         {
630             OnSizeSet(new Vector3(targetSize, false));
631         }
632
633         private void SwigDirectorOnSizeAnimation(global::System.IntPtr animation, global::System.IntPtr targetSize)
634         {
635             OnSizeAnimation(new Animation(animation, false), new Vector3(targetSize, false));
636         }
637
638         private bool SwigDirectorOnTouchEvent(global::System.IntPtr arg0)
639         {
640             return OnTouchEvent(new SWIGTYPE_p_Dali__TouchEvent(arg0, false));
641         }
642
643         private bool SwigDirectorOnHoverEvent(global::System.IntPtr arg0)
644         {
645             return OnHoverEvent(new Hover(arg0, false));
646         }
647
648         private bool SwigDirectorOnKeyEvent(global::System.IntPtr arg0)
649         {
650             return OnKeyEvent(new Key(arg0, false));
651         }
652
653         private bool SwigDirectorOnWheelEvent(global::System.IntPtr arg0)
654         {
655             return OnWheelEvent(new Wheel(arg0, false));
656         }
657
658         private void SwigDirectorOnRelayout(global::System.IntPtr size, global::System.IntPtr container)
659         {
660             OnRelayout(new Vector2(size, false), new RelayoutContainer(container, false));
661         }
662
663         private void SwigDirectorOnSetResizePolicy(int policy, int dimension)
664         {
665             OnSetResizePolicy((ResizePolicyType)policy, (DimensionType)dimension);
666         }
667
668         private global::System.IntPtr SwigDirectorGetNaturalSize()
669         {
670             return Vector3.getCPtr(GetNaturalSize()).Handle;
671         }
672
673         private float SwigDirectorCalculateChildSize(global::System.IntPtr child, int dimension)
674         {
675             View view = Registry.GetManagedBaseHandleFromNativePtr(child) as View;
676             if (view)
677             {
678                 return CalculateChildSize(view, (DimensionType)dimension);
679             }
680             return 0.0f;
681         }
682
683         private float SwigDirectorGetHeightForWidth(float width)
684         {
685             return GetHeightForWidth(width);
686         }
687
688         private float SwigDirectorGetWidthForHeight(float height)
689         {
690             return GetWidthForHeight(height);
691         }
692
693         private bool SwigDirectorRelayoutDependentOnChildren__SWIG_0(int dimension)
694         {
695             return RelayoutDependentOnChildren((DimensionType)dimension);
696         }
697
698         private bool SwigDirectorRelayoutDependentOnChildren__SWIG_1()
699         {
700             return RelayoutDependentOnChildren();
701         }
702
703         private void SwigDirectorOnCalculateRelayoutSize(int dimension)
704         {
705             OnCalculateRelayoutSize((DimensionType)dimension);
706         }
707
708         private void SwigDirectorOnLayoutNegotiated(float size, int dimension)
709         {
710             OnLayoutNegotiated(size, (DimensionType)dimension);
711         }
712
713         private void SwigDirectorOnInitialize()
714         {
715             OnInitialize();
716         }
717
718         private void SwigDirectorOnControlChildAdd(global::System.IntPtr child)
719         {
720             View view = Registry.GetManagedBaseHandleFromNativePtr(child) as View;
721             if (view)
722             {
723                 OnControlChildAdd(view);
724             }
725         }
726
727         private void SwigDirectorOnControlChildRemove(global::System.IntPtr child)
728         {
729             View view = Registry.GetManagedBaseHandleFromNativePtr(child) as View;
730             if (view)
731             {
732                 OnControlChildRemove(view);
733             }
734         }
735
736         private void SwigDirectorOnStyleChange(global::System.IntPtr styleManager, int change)
737         {
738             StyleManager stManager = Registry.GetManagedBaseHandleFromNativePtr(styleManager) as StyleManager;
739             if (stManager)
740             {
741                 OnStyleChange(stManager, (StyleChangeType)change);
742             }
743         }
744
745         private bool SwigDirectorOnAccessibilityActivated()
746         {
747             return OnAccessibilityActivated();
748         }
749
750         private bool SwigDirectorOnAccessibilityPan(global::System.IntPtr gesture)
751         {
752             return OnAccessibilityPan(new PanGesture(gesture, true));
753         }
754
755         private bool SwigDirectorOnAccessibilityTouch(global::System.IntPtr touchEvent)
756         {
757             return OnAccessibilityTouch(new SWIGTYPE_p_Dali__TouchEvent(touchEvent, false));
758         }
759
760         private bool SwigDirectorOnAccessibilityValueChange(bool isIncrease)
761         {
762             return OnAccessibilityValueChange(isIncrease);
763         }
764
765         private bool SwigDirectorOnAccessibilityZoom()
766         {
767             return OnAccessibilityZoom();
768         }
769
770         private void SwigDirectorOnKeyInputFocusGained()
771         {
772             OnKeyInputFocusGained();
773         }
774
775         private void SwigDirectorOnKeyInputFocusLost()
776         {
777             OnKeyInputFocusLost();
778         }
779
780         private global::System.IntPtr SwigDirectorGetNextKeyboardFocusableView(global::System.IntPtr currentFocusedView, int direction, bool loopEnabled)
781         {
782             return View.getCPtr(GetNextFocusableView(Registry.GetManagedBaseHandleFromNativePtr(currentFocusedView) as View, (View.FocusDirection)direction, loopEnabled)).Handle;
783         }
784
785         private void SwigDirectorOnKeyboardFocusChangeCommitted(global::System.IntPtr commitedFocusableView)
786         {
787             OnFocusChangeCommitted(Registry.GetManagedBaseHandleFromNativePtr(commitedFocusableView) as View);
788         }
789
790         private bool SwigDirectorOnKeyboardEnter()
791         {
792             return OnKeyboardEnter();
793         }
794
795         private void SwigDirectorOnPinch(global::System.IntPtr pinch)
796         {
797             OnPinch(new PinchGesture(pinch, false));
798         }
799
800         private void SwigDirectorOnPan(global::System.IntPtr pan)
801         {
802             OnPan(new PanGesture(pan, false));
803         }
804
805         private void SwigDirectorOnTap(global::System.IntPtr tap)
806         {
807             OnTap(new TapGesture(tap, false));
808         }
809
810         private void SwigDirectorOnLongPress(global::System.IntPtr longPress)
811         {
812             OnLongPress(new LongPressGesture(longPress, false));
813         }
814
815         private void SwigDirectorSignalConnected(global::System.IntPtr slotObserver, global::System.IntPtr callback)
816         {
817             SignalConnected((slotObserver == global::System.IntPtr.Zero) ? null : new SlotObserver(slotObserver, false), (callback == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Dali__CallbackBase(callback, false));
818         }
819
820         private void SwigDirectorSignalDisconnected(global::System.IntPtr slotObserver, global::System.IntPtr callback)
821         {
822             SignalDisconnected((slotObserver == global::System.IntPtr.Zero) ? null : new SlotObserver(slotObserver, false), (callback == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Dali__CallbackBase(callback, false));
823         }
824
825         /// <since_tizen> 3 </since_tizen>
826         public delegate void SwigDelegateViewImpl_0(int depth);
827         /// <since_tizen> 3 </since_tizen>
828         public delegate void SwigDelegateViewImpl_1();
829         /// <since_tizen> 3 </since_tizen>
830         public delegate void SwigDelegateViewImpl_2(global::System.IntPtr child);
831         /// <since_tizen> 3 </since_tizen>
832         public delegate void SwigDelegateViewImpl_3(global::System.IntPtr child);
833         /// <since_tizen> 3 </since_tizen>
834         public delegate void SwigDelegateViewImpl_4(int index, global::System.IntPtr propertyValue);
835         /// <since_tizen> 3 </since_tizen>
836         public delegate void SwigDelegateViewImpl_5(global::System.IntPtr targetSize);
837         /// <since_tizen> 3 </since_tizen>
838         public delegate void SwigDelegateViewImpl_6(global::System.IntPtr animation, global::System.IntPtr targetSize);
839         /// <since_tizen> 3 </since_tizen>
840         public delegate bool SwigDelegateViewImpl_7(global::System.IntPtr arg0);
841         /// <since_tizen> 3 </since_tizen>
842         public delegate bool SwigDelegateViewImpl_8(global::System.IntPtr arg0);
843         /// <since_tizen> 3 </since_tizen>
844         public delegate bool SwigDelegateViewImpl_9(global::System.IntPtr arg0);
845         /// <since_tizen> 3 </since_tizen>
846         public delegate bool SwigDelegateViewImpl_10(global::System.IntPtr arg0);
847         /// <since_tizen> 3 </since_tizen>
848         public delegate void SwigDelegateViewImpl_11(global::System.IntPtr size, global::System.IntPtr container);
849         /// <since_tizen> 3 </since_tizen>
850         public delegate void SwigDelegateViewImpl_12(int policy, int dimension);
851         /// <since_tizen> 3 </since_tizen>
852         public delegate global::System.IntPtr SwigDelegateViewImpl_13();
853         /// <since_tizen> 3 </since_tizen>
854         public delegate float SwigDelegateViewImpl_14(global::System.IntPtr child, int dimension);
855         /// <since_tizen> 3 </since_tizen>
856         public delegate float SwigDelegateViewImpl_15(float width);
857         /// <since_tizen> 3 </since_tizen>
858         public delegate float SwigDelegateViewImpl_16(float height);
859         /// <since_tizen> 3 </since_tizen>
860         public delegate bool SwigDelegateViewImpl_17(int dimension);
861         /// <since_tizen> 3 </since_tizen>
862         public delegate bool SwigDelegateViewImpl_18();
863         /// <since_tizen> 3 </since_tizen>
864         public delegate void SwigDelegateViewImpl_19(int dimension);
865         /// <since_tizen> 3 </since_tizen>
866         public delegate void SwigDelegateViewImpl_20(float size, int dimension);
867         /// <since_tizen> 3 </since_tizen>
868         public delegate void SwigDelegateViewImpl_21();
869         /// <since_tizen> 3 </since_tizen>
870         public delegate void SwigDelegateViewImpl_22(global::System.IntPtr child);
871         /// <since_tizen> 3 </since_tizen>
872         public delegate void SwigDelegateViewImpl_23(global::System.IntPtr child);
873         /// <since_tizen> 3 </since_tizen>
874         public delegate void SwigDelegateViewImpl_24(global::System.IntPtr styleManager, int change);
875         /// <since_tizen> 3 </since_tizen>
876         public delegate bool SwigDelegateViewImpl_25();
877         /// <since_tizen> 3 </since_tizen>
878         public delegate bool SwigDelegateViewImpl_26(global::System.IntPtr gesture);
879         /// <since_tizen> 3 </since_tizen>
880         public delegate bool SwigDelegateViewImpl_27(global::System.IntPtr touchEvent);
881         /// <since_tizen> 3 </since_tizen>
882         public delegate bool SwigDelegateViewImpl_28(bool isIncrease);
883         /// <since_tizen> 3 </since_tizen>
884         public delegate bool SwigDelegateViewImpl_29();
885         /// <since_tizen> 3 </since_tizen>
886         public delegate void SwigDelegateViewImpl_30();
887         /// <since_tizen> 3 </since_tizen>
888         public delegate void SwigDelegateViewImpl_31();
889         /// <since_tizen> 3 </since_tizen>
890         public delegate global::System.IntPtr SwigDelegateViewImpl_32(global::System.IntPtr currentFocusedActor, int direction, bool loopEnabled);
891         /// <since_tizen> 3 </since_tizen>
892         public delegate void SwigDelegateViewImpl_33(global::System.IntPtr commitedFocusableActor);
893         /// <since_tizen> 3 </since_tizen>
894         public delegate bool SwigDelegateViewImpl_34();
895         /// <since_tizen> 3 </since_tizen>
896         public delegate void SwigDelegateViewImpl_35(global::System.IntPtr pinch);
897         /// <since_tizen> 3 </since_tizen>
898         public delegate void SwigDelegateViewImpl_36(global::System.IntPtr pan);
899         /// <since_tizen> 3 </since_tizen>
900         public delegate void SwigDelegateViewImpl_37(global::System.IntPtr tap);
901         /// <since_tizen> 3 </since_tizen>
902         public delegate void SwigDelegateViewImpl_38(global::System.IntPtr longPress);
903         /// <since_tizen> 3 </since_tizen>
904         public delegate void SwigDelegateViewImpl_39(global::System.IntPtr slotObserver, global::System.IntPtr callback);
905         /// <since_tizen> 3 </since_tizen>
906         public delegate void SwigDelegateViewImpl_40(global::System.IntPtr slotObserver, global::System.IntPtr callback);
907
908         private SwigDelegateViewImpl_0 swigDelegate0;
909         private SwigDelegateViewImpl_1 swigDelegate1;
910         private SwigDelegateViewImpl_2 swigDelegate2;
911         private SwigDelegateViewImpl_3 swigDelegate3;
912         private SwigDelegateViewImpl_4 swigDelegate4;
913         private SwigDelegateViewImpl_5 swigDelegate5;
914         private SwigDelegateViewImpl_6 swigDelegate6;
915         private SwigDelegateViewImpl_7 swigDelegate7;
916         private SwigDelegateViewImpl_8 swigDelegate8;
917         private SwigDelegateViewImpl_9 swigDelegate9;
918         private SwigDelegateViewImpl_10 swigDelegate10;
919         private SwigDelegateViewImpl_11 swigDelegate11;
920         private SwigDelegateViewImpl_12 swigDelegate12;
921         private SwigDelegateViewImpl_13 swigDelegate13;
922         private SwigDelegateViewImpl_14 swigDelegate14;
923         private SwigDelegateViewImpl_15 swigDelegate15;
924         private SwigDelegateViewImpl_16 swigDelegate16;
925         private SwigDelegateViewImpl_17 swigDelegate17;
926         private SwigDelegateViewImpl_18 swigDelegate18;
927         private SwigDelegateViewImpl_19 swigDelegate19;
928         private SwigDelegateViewImpl_20 swigDelegate20;
929         private SwigDelegateViewImpl_21 swigDelegate21;
930         private SwigDelegateViewImpl_22 swigDelegate22;
931         private SwigDelegateViewImpl_23 swigDelegate23;
932         private SwigDelegateViewImpl_24 swigDelegate24;
933         private SwigDelegateViewImpl_25 swigDelegate25;
934         private SwigDelegateViewImpl_26 swigDelegate26;
935         private SwigDelegateViewImpl_27 swigDelegate27;
936         private SwigDelegateViewImpl_28 swigDelegate28;
937         private SwigDelegateViewImpl_29 swigDelegate29;
938         private SwigDelegateViewImpl_30 swigDelegate30;
939         private SwigDelegateViewImpl_31 swigDelegate31;
940         private SwigDelegateViewImpl_32 swigDelegate32;
941         private SwigDelegateViewImpl_33 swigDelegate33;
942         private SwigDelegateViewImpl_34 swigDelegate34;
943         private SwigDelegateViewImpl_35 swigDelegate35;
944         private SwigDelegateViewImpl_36 swigDelegate36;
945         private SwigDelegateViewImpl_37 swigDelegate37;
946         private SwigDelegateViewImpl_38 swigDelegate38;
947         private SwigDelegateViewImpl_39 swigDelegate39;
948         private SwigDelegateViewImpl_40 swigDelegate40;
949
950         private static global::System.Type[] swigMethodTypes0 = new global::System.Type[] { typeof(int) };
951         private static global::System.Type[] swigMethodTypes1 = new global::System.Type[] { };
952         private static global::System.Type[] swigMethodTypes2 = new global::System.Type[] { typeof(View) };
953         private static global::System.Type[] swigMethodTypes3 = new global::System.Type[] { typeof(View) };
954         private static global::System.Type[] swigMethodTypes4 = new global::System.Type[] { typeof(int), typeof(PropertyValue) };
955         private static global::System.Type[] swigMethodTypes5 = new global::System.Type[] { typeof(Vector3) };
956         private static global::System.Type[] swigMethodTypes6 = new global::System.Type[] { typeof(Animation), typeof(Vector3) };
957         private static global::System.Type[] swigMethodTypes7 = new global::System.Type[] { typeof(SWIGTYPE_p_Dali__TouchEvent) };
958         private static global::System.Type[] swigMethodTypes8 = new global::System.Type[] { typeof(Hover) };
959         private static global::System.Type[] swigMethodTypes9 = new global::System.Type[] { typeof(Key) };
960         private static global::System.Type[] swigMethodTypes10 = new global::System.Type[] { typeof(Wheel) };
961         private static global::System.Type[] swigMethodTypes11 = new global::System.Type[] { typeof(Vector2), typeof(RelayoutContainer) };
962         private static global::System.Type[] swigMethodTypes12 = new global::System.Type[] { typeof(ResizePolicyType), typeof(DimensionType) };
963         private static global::System.Type[] swigMethodTypes13 = new global::System.Type[] { };
964         private static global::System.Type[] swigMethodTypes14 = new global::System.Type[] { typeof(View), typeof(DimensionType) };
965         private static global::System.Type[] swigMethodTypes15 = new global::System.Type[] { typeof(float) };
966         private static global::System.Type[] swigMethodTypes16 = new global::System.Type[] { typeof(float) };
967         private static global::System.Type[] swigMethodTypes17 = new global::System.Type[] { typeof(DimensionType) };
968         private static global::System.Type[] swigMethodTypes18 = new global::System.Type[] { };
969         private static global::System.Type[] swigMethodTypes19 = new global::System.Type[] { typeof(DimensionType) };
970         private static global::System.Type[] swigMethodTypes20 = new global::System.Type[] { typeof(float), typeof(DimensionType) };
971         private static global::System.Type[] swigMethodTypes21 = new global::System.Type[] { };
972         private static global::System.Type[] swigMethodTypes22 = new global::System.Type[] { typeof(View) };
973         private static global::System.Type[] swigMethodTypes23 = new global::System.Type[] { typeof(View) };
974         private static global::System.Type[] swigMethodTypes24 = new global::System.Type[] { typeof(StyleManager), typeof(StyleChangeType) };
975         private static global::System.Type[] swigMethodTypes25 = new global::System.Type[] { };
976         private static global::System.Type[] swigMethodTypes26 = new global::System.Type[] { typeof(PanGesture) };
977         private static global::System.Type[] swigMethodTypes27 = new global::System.Type[] { typeof(SWIGTYPE_p_Dali__TouchEvent) };
978         private static global::System.Type[] swigMethodTypes28 = new global::System.Type[] { typeof(bool) };
979         private static global::System.Type[] swigMethodTypes29 = new global::System.Type[] { };
980         private static global::System.Type[] swigMethodTypes30 = new global::System.Type[] { };
981         private static global::System.Type[] swigMethodTypes31 = new global::System.Type[] { };
982         private static global::System.Type[] swigMethodTypes32 = new global::System.Type[] { typeof(View), typeof(View.FocusDirection), typeof(bool) };
983         private static global::System.Type[] swigMethodTypes33 = new global::System.Type[] { typeof(View) };
984         private static global::System.Type[] swigMethodTypes34 = new global::System.Type[] { };
985         private static global::System.Type[] swigMethodTypes35 = new global::System.Type[] { typeof(PinchGesture) };
986         private static global::System.Type[] swigMethodTypes36 = new global::System.Type[] { typeof(PanGesture) };
987         private static global::System.Type[] swigMethodTypes37 = new global::System.Type[] { typeof(TapGesture) };
988         private static global::System.Type[] swigMethodTypes38 = new global::System.Type[] { typeof(LongPressGesture) };
989         private static global::System.Type[] swigMethodTypes39 = new global::System.Type[] { typeof(SlotObserver), typeof(SWIGTYPE_p_Dali__CallbackBase) };
990         private static global::System.Type[] swigMethodTypes40 = new global::System.Type[] { typeof(SlotObserver), typeof(SWIGTYPE_p_Dali__CallbackBase) };
991     }
992 }