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