Merge remote-tracking branch 'wifi-direct/tizen'
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / ViewWrapperImpl.cs
1 /*
2  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 using Tizen.NUI.BaseComponents;
18 namespace Tizen.NUI
19 {
20     internal sealed class ViewWrapperImpl : ViewImpl
21     {
22         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
23         public delegate void OnStageConnectionDelegate(int depth);
24         public delegate void OnStageDisconnectionDelegate();
25         public delegate void OnChildAddDelegate(View view);
26         public delegate void OnChildRemoveDelegate(View view);
27         public delegate void OnPropertySetDelegate(int index, PropertyValue propertyValue);
28         public delegate void OnSizeSetDelegate(Vector3 targetSize);
29         public delegate void OnSizeAnimationDelegate(Animation animation, Vector3 targetSize);
30         public delegate bool OnTouchDelegate(Touch touch);
31         public delegate bool OnHoverDelegate(Hover hover);
32         public delegate bool OnKeyDelegate(Key key);
33         public delegate bool OnWheelDelegate(Wheel wheel);
34         public delegate void OnRelayoutDelegate(Vector2 size, RelayoutContainer container);
35         public delegate void OnSetResizePolicyDelegate(ResizePolicyType policy, DimensionType dimension);
36         public delegate Size2D GetNaturalSizeDelegate();
37         public delegate float CalculateChildSizeDelegate(View child, DimensionType dimension);
38         public delegate float GetHeightForWidthDelegate(float width);
39         public delegate float GetWidthForHeightDelegate(float height);
40         public delegate bool RelayoutDependentOnChildrenDimensionDelegate(DimensionType dimension);
41         public delegate bool RelayoutDependentOnChildrenDelegate();
42         public delegate void OnCalculateRelayoutSizeDelegate(DimensionType dimension);
43         public delegate void OnLayoutNegotiatedDelegate(float size, DimensionType dimension);
44         public delegate void OnControlChildAddDelegate(View child);
45         public delegate void OnControlChildRemoveDelegate(View child);
46         public delegate void OnStyleChangeDelegate(StyleManager styleManager, StyleChangeType change);
47         public delegate bool OnAccessibilityActivatedDelegate();
48         public delegate bool OnAccessibilityPanDelegate(PanGesture gestures);
49         public delegate bool OnAccessibilityTouchDelegate(Touch touch);
50         public delegate bool OnAccessibilityValueChangeDelegate(bool isIncrease);
51         public delegate bool OnAccessibilityZoomDelegate();
52         public delegate void OnFocusGainedDelegate();
53         public delegate void OnFocusLostDelegate();
54         public delegate View GetNextFocusableViewDelegate(View currentFocusedView, View.FocusDirection direction, bool loopEnabled);
55         public delegate void OnFocusChangeCommittedDelegate(View commitedFocusableView);
56         public delegate bool OnKeyboardEnterDelegate();
57         public delegate void OnPinchDelegate(PinchGesture pinch);
58         public delegate void OnPanDelegate(PanGesture pan);
59         public delegate void OnTapDelegate(TapGesture tap);
60         public delegate void OnLongPressDelegate(LongPressGesture longPress);
61
62         public OnStageConnectionDelegate OnStageConnection;
63         public OnStageDisconnectionDelegate OnStageDisconnection;
64         public OnChildAddDelegate OnChildAdd;
65         public OnChildRemoveDelegate OnChildRemove;
66         public OnPropertySetDelegate OnPropertySet;
67         public OnSizeSetDelegate OnSizeSet;
68         public OnSizeAnimationDelegate OnSizeAnimation;
69         public OnTouchDelegate OnTouch;
70         public OnHoverDelegate OnHover;
71         public OnKeyDelegate OnKey;
72         public OnWheelDelegate OnWheel;
73         public OnRelayoutDelegate OnRelayout;
74         public OnSetResizePolicyDelegate OnSetResizePolicy;
75         public GetNaturalSizeDelegate GetNaturalSize;
76         public CalculateChildSizeDelegate CalculateChildSize;
77         public GetHeightForWidthDelegate GetHeightForWidth;
78         public GetWidthForHeightDelegate GetWidthForHeight;
79         public RelayoutDependentOnChildrenDimensionDelegate RelayoutDependentOnChildrenDimension;
80         public RelayoutDependentOnChildrenDelegate RelayoutDependentOnChildren;
81         public OnCalculateRelayoutSizeDelegate OnCalculateRelayoutSize;
82         public OnLayoutNegotiatedDelegate OnLayoutNegotiated;
83         public OnControlChildAddDelegate OnControlChildAdd;
84         public OnControlChildRemoveDelegate OnControlChildRemove;
85         public OnStyleChangeDelegate OnStyleChange;
86         public OnAccessibilityActivatedDelegate OnAccessibilityActivated;
87         public OnAccessibilityPanDelegate OnAccessibilityPan;
88         public OnAccessibilityTouchDelegate OnAccessibilityTouch;
89         public OnAccessibilityValueChangeDelegate OnAccessibilityValueChange;
90         public OnAccessibilityZoomDelegate OnAccessibilityZoom;
91         public OnFocusGainedDelegate OnFocusGained;
92         public OnFocusLostDelegate OnFocusLost;
93         public GetNextFocusableViewDelegate GetNextFocusableView;
94         public OnFocusChangeCommittedDelegate OnFocusChangeCommitted;
95         public OnKeyboardEnterDelegate OnKeyboardEnter;
96         public OnPinchDelegate OnPinch;
97         public OnPanDelegate OnPan;
98         public OnTapDelegate OnTap;
99         public OnLongPressDelegate OnLongPress;
100
101         internal ViewWrapperImpl(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.ViewWrapperImpl_SWIGUpcast(cPtr), cMemoryOwn)
102         {
103             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
104         }
105
106         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ViewWrapperImpl obj)
107         {
108             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
109         }
110
111         protected override void Dispose(DisposeTypes type)
112         {
113             if (disposed)
114             {
115                 return;
116             }
117
118             if (type == DisposeTypes.Explicit)
119             {
120                 //Called by User
121                 //Release your own managed resources here.
122                 //You should release all of your own disposable objects here.
123
124             }
125
126             //Release your own unmanaged resources here.
127             //You should not access any managed member here except static instance.
128             //because the execution order of Finalizes is non-deterministic.
129
130             if (swigCPtr.Handle != global::System.IntPtr.Zero)
131             {
132                 if (swigCMemOwn)
133                 {
134                     swigCMemOwn = false;
135                     NDalicManualPINVOKE.delete_ViewWrapperImpl(swigCPtr);
136                 }
137                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
138             }
139
140             base.Dispose(type);
141         }
142
143         public ViewWrapperImpl(CustomViewBehaviour behaviourFlags) : this(NDalicManualPINVOKE.new_ViewWrapperImpl((int)behaviourFlags), true)
144         {
145             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
146             DirectorConnect();
147         }
148
149         public static ViewWrapper New(string typeName, ViewWrapperImpl viewWrapper)
150         {
151             ViewWrapper ret = new ViewWrapper(NDalicManualPINVOKE.ViewWrapperImpl_New(typeName, ViewWrapperImpl.getCPtr(viewWrapper)), true);
152             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
153             return ret;
154         }
155
156         public void RelayoutRequest()
157         {
158             NDalicManualPINVOKE.ViewWrapperImpl_RelayoutRequest(swigCPtr);
159             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
160         }
161
162         public float GetHeightForWidthBase(float width)
163         {
164             float ret = NDalicManualPINVOKE.ViewWrapperImpl_GetHeightForWidthBase(swigCPtr, width);
165             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
166             return ret;
167         }
168
169         public float GetWidthForHeightBase(float height)
170         {
171             float ret = NDalicManualPINVOKE.ViewWrapperImpl_GetWidthForHeightBase(swigCPtr, height);
172             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
173             return ret;
174         }
175
176         public float CalculateChildSizeBase(View child, DimensionType dimension)
177         {
178             float ret = NDalicManualPINVOKE.ViewWrapperImpl_CalculateChildSizeBase(swigCPtr, View.getCPtr(child), (int)dimension);
179             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
180             return ret;
181         }
182
183         public bool RelayoutDependentOnChildrenBase(DimensionType dimension)
184         {
185             bool ret = NDalicManualPINVOKE.ViewWrapperImpl_RelayoutDependentOnChildrenBase__SWIG_0(swigCPtr, (int)dimension);
186             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
187             return ret;
188         }
189
190         public bool RelayoutDependentOnChildrenBase()
191         {
192             bool ret = NDalicManualPINVOKE.ViewWrapperImpl_RelayoutDependentOnChildrenBase__SWIG_1(swigCPtr);
193             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
194             return ret;
195         }
196
197         public void RegisterVisual(int index, VisualBase visual)
198         {
199             NDalicManualPINVOKE.ViewWrapperImpl_RegisterVisual__SWIG_0(swigCPtr, index, VisualBase.getCPtr(visual));
200             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
201         }
202
203         public void RegisterVisual(int index, VisualBase visual, bool enabled)
204         {
205             NDalicManualPINVOKE.ViewWrapperImpl_RegisterVisual__SWIG_1(swigCPtr, index, VisualBase.getCPtr(visual), enabled);
206             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
207         }
208
209         public void UnregisterVisual(int index)
210         {
211             NDalicManualPINVOKE.ViewWrapperImpl_UnregisterVisual(swigCPtr, index);
212             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
213         }
214
215         public VisualBase GetVisual(int index)
216         {
217             System.IntPtr cPtr = NDalicManualPINVOKE.ViewWrapperImpl_GetVisual(swigCPtr, index);
218             VisualBase ret = Registry.GetManagedBaseHandleFromRefObject(cPtr) as VisualBase;
219
220             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
221             return ret;
222         }
223
224         public void EnableVisual(int index, bool enable)
225         {
226             NDalicManualPINVOKE.ViewWrapperImpl_EnableVisual(swigCPtr, index, enable);
227             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
228         }
229
230         public bool IsVisualEnabled(int index)
231         {
232             bool ret = NDalicManualPINVOKE.ViewWrapperImpl_IsVisualEnabled(swigCPtr, index);
233             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
234             return ret;
235         }
236
237         public Animation CreateTransition(TransitionData transitionData)
238         {
239             Animation ret = new Animation(NDalicManualPINVOKE.ViewWrapperImpl_CreateTransition(swigCPtr, TransitionData.getCPtr(transitionData)), true);
240             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
241             return ret;
242         }
243
244         public void EmitFocusSignal(bool focusGained)
245         {
246             NDalicManualPINVOKE.ViewWrapperImpl_EmitKeyInputFocusSignal(swigCPtr, focusGained);
247             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
248         }
249
250         public void ApplyThemeStyle()
251         {
252             NDalicManualPINVOKE.ViewWrapperImpl_ApplyThemeStyle(swigCPtr);
253             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
254         }
255
256         private void DirectorConnect()
257         {
258             Delegate0 = new DelegateViewWrapperImpl_0(DirectorOnStageConnection);
259             Delegate1 = new DelegateViewWrapperImpl_1(DirectorOnStageDisconnection);
260             Delegate2 = new DelegateViewWrapperImpl_2(DirectorOnChildAdd);
261             Delegate3 = new DelegateViewWrapperImpl_3(DirectorOnChildRemove);
262             Delegate4 = new DelegateViewWrapperImpl_4(DirectorOnPropertySet);
263             Delegate5 = new DelegateViewWrapperImpl_5(DirectorOnSizeSet);
264             Delegate6 = new DelegateViewWrapperImpl_6(DirectorOnSizeAnimation);
265             Delegate7 = new DelegateViewWrapperImpl_7(DirectorOnTouch);
266             Delegate8 = new DelegateViewWrapperImpl_8(DirectorOnHover);
267             Delegate9 = new DelegateViewWrapperImpl_9(DirectorOnKey);
268             Delegate10 = new DelegateViewWrapperImpl_10(DirectorOnWheel);
269             Delegate11 = new DelegateViewWrapperImpl_11(DirectorOnRelayout);
270             Delegate12 = new DelegateViewWrapperImpl_12(DirectorOnSetResizePolicy);
271             Delegate13 = new DelegateViewWrapperImpl_13(DirectorGetNaturalSize);
272             Delegate14 = new DelegateViewWrapperImpl_14(DirectorCalculateChildSize);
273             Delegate15 = new DelegateViewWrapperImpl_15(DirectorGetHeightForWidth);
274             Delegate16 = new DelegateViewWrapperImpl_16(DirectorGetWidthForHeight);
275             Delegate17 = new DelegateViewWrapperImpl_17(DirectorRelayoutDependentOnChildren__SWIG_0);
276             Delegate18 = new DelegateViewWrapperImpl_18(DirectorRelayoutDependentOnChildren__SWIG_1);
277             Delegate19 = new DelegateViewWrapperImpl_19(DirectorOnCalculateRelayoutSize);
278             Delegate20 = new DelegateViewWrapperImpl_20(DirectorOnLayoutNegotiated);
279             Delegate21 = new DelegateViewWrapperImpl_21(DirectorOnInitialize);
280             Delegate22 = new DelegateViewWrapperImpl_22(DirectorOnControlChildAdd);
281             Delegate23 = new DelegateViewWrapperImpl_23(DirectorOnControlChildRemove);
282             Delegate24 = new DelegateViewWrapperImpl_24(DirectorOnStyleChange);
283             Delegate25 = new DelegateViewWrapperImpl_25(DirectorOnAccessibilityActivated);
284             Delegate26 = new DelegateViewWrapperImpl_26(DirectorOnAccessibilityPan);
285             Delegate27 = new DelegateViewWrapperImpl_27(DirectorOnAccessibilityTouch);
286             Delegate28 = new DelegateViewWrapperImpl_28(DirectorOnAccessibilityValueChange);
287             Delegate29 = new DelegateViewWrapperImpl_29(DirectorOnAccessibilityZoom);
288             Delegate30 = new DelegateViewWrapperImpl_30(DirectorOnFocusGained);
289             Delegate31 = new DelegateViewWrapperImpl_31(DirectorOnFocusLost);
290             Delegate32 = new DelegateViewWrapperImpl_32(DirectorGetNextFocusableActor);
291             Delegate33 = new DelegateViewWrapperImpl_33(DirectorOnFocusChangeCommitted);
292             Delegate34 = new DelegateViewWrapperImpl_34(DirectorOnKeyboardEnter);
293             Delegate35 = new DelegateViewWrapperImpl_35(DirectorOnPinch);
294             Delegate36 = new DelegateViewWrapperImpl_36(DirectorOnPan);
295             Delegate37 = new DelegateViewWrapperImpl_37(DirectorOnTap);
296             Delegate38 = new DelegateViewWrapperImpl_38(DirectorOnLongPress);
297             NDalicManualPINVOKE.ViewWrapperImpl_director_connect(swigCPtr, Delegate0, Delegate1, Delegate2, Delegate3, Delegate4, Delegate5, Delegate6, Delegate7, Delegate8, Delegate9, Delegate10, Delegate11, Delegate12, Delegate13, Delegate14, Delegate15, Delegate16, Delegate17, Delegate18, Delegate19, Delegate20, Delegate21, Delegate22, Delegate23, Delegate24, Delegate25, Delegate26, Delegate27, Delegate28, Delegate29, Delegate30, Delegate31, Delegate32, Delegate33, Delegate34, Delegate35, Delegate36, Delegate37, Delegate38, null, null);
298         }
299
300         private void DirectorOnStageConnection(int depth)
301         {
302             OnStageConnection(depth);
303         }
304
305         private void DirectorOnStageDisconnection()
306         {
307             OnStageDisconnection();
308         }
309
310         private void DirectorOnChildAdd(global::System.IntPtr child)
311         {
312             View view = Registry.GetManagedBaseHandleFromNativePtr(child) as View;
313             if (view)
314             {
315                 OnChildAdd(view);
316             }
317         }
318
319         private void DirectorOnChildRemove(global::System.IntPtr child)
320         {
321             View view = Registry.GetManagedBaseHandleFromNativePtr(child) as View;
322             if (view)
323             {
324                 OnChildRemove(view);
325             }
326         }
327
328         private void DirectorOnPropertySet(int index, global::System.IntPtr propertyValue)
329         {
330             if (OnPropertySet != null)
331             {
332                 OnPropertySet(index, new PropertyValue(propertyValue, true));
333             }
334         }
335
336         private void DirectorOnSizeSet(global::System.IntPtr targetSize)
337         {
338             OnSizeSet(new Vector3(targetSize, false));
339         }
340
341         private void DirectorOnSizeAnimation(global::System.IntPtr animation, global::System.IntPtr targetSize)
342         {
343             OnSizeAnimation(new Animation(animation, false), new Vector3(targetSize, false));
344         }
345
346         private bool DirectorOnTouch(global::System.IntPtr arg0)
347         {
348             return OnTouch(new Touch(arg0, false));
349         }
350
351         private bool DirectorOnHover(global::System.IntPtr arg0)
352         {
353             return OnHover(new Hover(arg0, false));
354         }
355
356         private bool DirectorOnKey(global::System.IntPtr arg0)
357         {
358             return OnKey(new Key(arg0, false));
359         }
360
361         private bool DirectorOnWheel(global::System.IntPtr arg0)
362         {
363             return OnWheel(new Wheel(arg0, false));
364         }
365
366         private void DirectorOnRelayout(global::System.IntPtr size, global::System.IntPtr container)
367         {
368             OnRelayout(new Vector2(size, false), new RelayoutContainer(container, false));
369         }
370
371         private void DirectorOnSetResizePolicy(int policy, int dimension)
372         {
373             OnSetResizePolicy((ResizePolicyType)policy, (DimensionType)dimension);
374         }
375
376         private global::System.IntPtr DirectorGetNaturalSize()
377         {
378             return Size2D.getCPtr(GetNaturalSize()).Handle;
379         }
380
381         private float DirectorCalculateChildSize(global::System.IntPtr child, int dimension)
382         {
383             View view = Registry.GetManagedBaseHandleFromNativePtr(child) as View;
384             if (view)
385             {
386                 return CalculateChildSize(view, (DimensionType)dimension);
387             }
388             return 0.0f;
389         }
390
391         private float DirectorGetHeightForWidth(float width)
392         {
393             return GetHeightForWidth(width);
394         }
395
396         private float DirectorGetWidthForHeight(float height)
397         {
398             return GetWidthForHeight(height);
399         }
400
401         private bool DirectorRelayoutDependentOnChildren__SWIG_0(int dimension)
402         {
403             return RelayoutDependentOnChildrenDimension((DimensionType)dimension);
404         }
405
406         private bool DirectorRelayoutDependentOnChildren__SWIG_1()
407         {
408             return RelayoutDependentOnChildren();
409         }
410
411         private void DirectorOnCalculateRelayoutSize(int dimension)
412         {
413             OnCalculateRelayoutSize((DimensionType)dimension);
414         }
415
416         private void DirectorOnLayoutNegotiated(float size, int dimension)
417         {
418             OnLayoutNegotiated(size, (DimensionType)dimension);
419         }
420
421         private void DirectorOnInitialize()
422         {
423         }
424
425         private void DirectorOnControlChildAdd(global::System.IntPtr child)
426         {
427             View view = Registry.GetManagedBaseHandleFromNativePtr(child) as View;
428             if (view)
429             {
430                 OnControlChildAdd(view);
431             }
432         }
433
434         private void DirectorOnControlChildRemove(global::System.IntPtr child)
435         {
436             View view = Registry.GetManagedBaseHandleFromNativePtr(child) as View;
437             if (view)
438             {
439                 OnControlChildRemove(view);
440             }
441         }
442
443         private void DirectorOnStyleChange(global::System.IntPtr styleManager, int change)
444         {
445             if (OnStyleChange != null)
446             {
447                 OnStyleChange(new StyleManager(styleManager, false), (StyleChangeType)change);
448             }
449         }
450
451         private bool DirectorOnAccessibilityActivated()
452         {
453             return OnAccessibilityActivated();
454         }
455
456         private bool DirectorOnAccessibilityPan(global::System.IntPtr gesture)
457         {
458             return OnAccessibilityPan(new PanGesture(gesture, false));
459         }
460
461         private bool DirectorOnAccessibilityTouch(global::System.IntPtr touch)
462         {
463             return OnAccessibilityTouch(new Touch(touch, false));
464         }
465
466         private bool DirectorOnAccessibilityValueChange(bool isIncrease)
467         {
468             return OnAccessibilityValueChange(isIncrease);
469         }
470
471         private bool DirectorOnAccessibilityZoom()
472         {
473             return OnAccessibilityZoom();
474         }
475
476         private void DirectorOnFocusGained()
477         {
478             OnFocusGained();
479         }
480
481         private void DirectorOnFocusLost()
482         {
483             OnFocusLost();
484         }
485
486         private global::System.IntPtr DirectorGetNextFocusableActor(global::System.IntPtr currentFocusedActor, int direction, bool loopEnabled)
487         {
488             View view = GetNextFocusableView(Registry.GetManagedBaseHandleFromNativePtr(currentFocusedActor) as View, (View.FocusDirection)direction, loopEnabled);
489             if (view)
490             {
491                 return View.getCPtr(view).Handle;
492             }
493             else
494             {
495                 return currentFocusedActor;
496             }
497         }
498
499         private void DirectorOnFocusChangeCommitted(global::System.IntPtr commitedFocusableView)
500         {
501             OnFocusChangeCommitted(Registry.GetManagedBaseHandleFromNativePtr(commitedFocusableView) as View);
502         }
503
504         private bool DirectorOnKeyboardEnter()
505         {
506             return OnKeyboardEnter();
507         }
508
509         private void DirectorOnPinch(global::System.IntPtr pinch)
510         {
511             OnPinch(new PinchGesture(pinch, false));
512         }
513
514         private void DirectorOnPan(global::System.IntPtr pan)
515         {
516             OnPan(new PanGesture(pan, false));
517         }
518
519         private void DirectorOnTap(global::System.IntPtr tap)
520         {
521             OnTap(new TapGesture(tap, false));
522         }
523
524         private void DirectorOnLongPress(global::System.IntPtr longPress)
525         {
526             OnLongPress(new LongPressGesture(longPress, false));
527         }
528
529         public delegate void DelegateViewWrapperImpl_0(int depth);
530         public delegate void DelegateViewWrapperImpl_1();
531         public delegate void DelegateViewWrapperImpl_2(global::System.IntPtr child);
532         public delegate void DelegateViewWrapperImpl_3(global::System.IntPtr child);
533         public delegate void DelegateViewWrapperImpl_4(int index, global::System.IntPtr propertyValue);
534         public delegate void DelegateViewWrapperImpl_5(global::System.IntPtr targetSize);
535         public delegate void DelegateViewWrapperImpl_6(global::System.IntPtr animation, global::System.IntPtr targetSize);
536         public delegate bool DelegateViewWrapperImpl_7(global::System.IntPtr arg0);
537         public delegate bool DelegateViewWrapperImpl_8(global::System.IntPtr arg0);
538         public delegate bool DelegateViewWrapperImpl_9(global::System.IntPtr arg0);
539         public delegate bool DelegateViewWrapperImpl_10(global::System.IntPtr arg0);
540         public delegate void DelegateViewWrapperImpl_11(global::System.IntPtr size, global::System.IntPtr container);
541         public delegate void DelegateViewWrapperImpl_12(int policy, int dimension);
542         public delegate global::System.IntPtr DelegateViewWrapperImpl_13();
543         public delegate float DelegateViewWrapperImpl_14(global::System.IntPtr child, int dimension);
544         public delegate float DelegateViewWrapperImpl_15(float width);
545         public delegate float DelegateViewWrapperImpl_16(float height);
546         public delegate bool DelegateViewWrapperImpl_17(int dimension);
547         public delegate bool DelegateViewWrapperImpl_18();
548         public delegate void DelegateViewWrapperImpl_19(int dimension);
549         public delegate void DelegateViewWrapperImpl_20(float size, int dimension);
550         public delegate void DelegateViewWrapperImpl_21();
551         public delegate void DelegateViewWrapperImpl_22(global::System.IntPtr child);
552         public delegate void DelegateViewWrapperImpl_23(global::System.IntPtr child);
553         public delegate void DelegateViewWrapperImpl_24(global::System.IntPtr styleManager, int change);
554         public delegate bool DelegateViewWrapperImpl_25();
555         public delegate bool DelegateViewWrapperImpl_26(global::System.IntPtr gesture);
556         public delegate bool DelegateViewWrapperImpl_27(global::System.IntPtr touch);
557         public delegate bool DelegateViewWrapperImpl_28(bool isIncrease);
558         public delegate bool DelegateViewWrapperImpl_29();
559         public delegate void DelegateViewWrapperImpl_30();
560         public delegate void DelegateViewWrapperImpl_31();
561         public delegate global::System.IntPtr DelegateViewWrapperImpl_32(global::System.IntPtr currentFocusedActor, int direction, bool loopEnabled);
562         public delegate void DelegateViewWrapperImpl_33(global::System.IntPtr commitedFocusableActor);
563         public delegate bool DelegateViewWrapperImpl_34();
564         public delegate void DelegateViewWrapperImpl_35(global::System.IntPtr pinch);
565         public delegate void DelegateViewWrapperImpl_36(global::System.IntPtr pan);
566         public delegate void DelegateViewWrapperImpl_37(global::System.IntPtr tap);
567         public delegate void DelegateViewWrapperImpl_38(global::System.IntPtr longPress);
568         public delegate void DelegateViewWrapperImpl_39(global::System.IntPtr slotObserver, global::System.IntPtr callback);
569         public delegate void DelegateViewWrapperImpl_40(global::System.IntPtr slotObserver, global::System.IntPtr callback);
570
571         private DelegateViewWrapperImpl_0 Delegate0;
572         private DelegateViewWrapperImpl_1 Delegate1;
573         private DelegateViewWrapperImpl_2 Delegate2;
574         private DelegateViewWrapperImpl_3 Delegate3;
575         private DelegateViewWrapperImpl_4 Delegate4;
576         private DelegateViewWrapperImpl_5 Delegate5;
577         private DelegateViewWrapperImpl_6 Delegate6;
578         private DelegateViewWrapperImpl_7 Delegate7;
579         private DelegateViewWrapperImpl_8 Delegate8;
580         private DelegateViewWrapperImpl_9 Delegate9;
581         private DelegateViewWrapperImpl_10 Delegate10;
582         private DelegateViewWrapperImpl_11 Delegate11;
583         private DelegateViewWrapperImpl_12 Delegate12;
584         private DelegateViewWrapperImpl_13 Delegate13;
585         private DelegateViewWrapperImpl_14 Delegate14;
586         private DelegateViewWrapperImpl_15 Delegate15;
587         private DelegateViewWrapperImpl_16 Delegate16;
588         private DelegateViewWrapperImpl_17 Delegate17;
589         private DelegateViewWrapperImpl_18 Delegate18;
590         private DelegateViewWrapperImpl_19 Delegate19;
591         private DelegateViewWrapperImpl_20 Delegate20;
592         private DelegateViewWrapperImpl_21 Delegate21;
593         private DelegateViewWrapperImpl_22 Delegate22;
594         private DelegateViewWrapperImpl_23 Delegate23;
595         private DelegateViewWrapperImpl_24 Delegate24;
596         private DelegateViewWrapperImpl_25 Delegate25;
597         private DelegateViewWrapperImpl_26 Delegate26;
598         private DelegateViewWrapperImpl_27 Delegate27;
599         private DelegateViewWrapperImpl_28 Delegate28;
600         private DelegateViewWrapperImpl_29 Delegate29;
601         private DelegateViewWrapperImpl_30 Delegate30;
602         private DelegateViewWrapperImpl_31 Delegate31;
603         private DelegateViewWrapperImpl_32 Delegate32;
604         private DelegateViewWrapperImpl_33 Delegate33;
605         private DelegateViewWrapperImpl_34 Delegate34;
606         private DelegateViewWrapperImpl_35 Delegate35;
607         private DelegateViewWrapperImpl_36 Delegate36;
608         private DelegateViewWrapperImpl_37 Delegate37;
609         private DelegateViewWrapperImpl_38 Delegate38;
610         private DelegateViewWrapperImpl_39 Delegate39;
611         private DelegateViewWrapperImpl_40 Delegate40;
612
613         public static readonly int VIEW_BEHAVIOUR_FLAG_COUNT = NDalicManualPINVOKE.ViewWrapperImpl_CONTROL_BEHAVIOUR_FLAG_COUNT_get();
614     }
615 }