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