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