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