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