Fix control properties for C# custom view
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / manual / csharp / ViewWrapperImpl.cs
1 /*
2  * Copyright (c) 2016 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 namespace Dali
19 {
20     public 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(Actor actor);
26         public delegate void OnChildRemoveDelegate(Actor actor);
27         public delegate void OnPropertySetDelegate(int index, Property.Value 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 Vector3 GetNaturalSizeDelegate();
37         public delegate float CalculateChildSizeDelegate(Actor 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(Actor child);
45         public delegate void OnControlChildRemoveDelegate(Actor 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 OnKeyInputFocusGainedDelegate();
53         public delegate void OnKeyInputFocusLostDelegate();
54         public delegate Actor GetNextKeyboardFocusableActorDelegate(Actor currentFocusedActor, View.KeyboardFocus.Direction direction, bool loopEnabled);
55         public delegate void OnKeyboardFocusChangeCommittedDelegate(Actor commitedFocusableActor);
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         public delegate void SignalConnectedDelegate(SlotObserver slotObserver, SWIGTYPE_p_Dali__CallbackBase callback);
62         public delegate void SignalDisconnectedDelegate(SlotObserver slotObserver, SWIGTYPE_p_Dali__CallbackBase callback);
63
64         public OnStageConnectionDelegate OnStageConnection;
65         public OnStageDisconnectionDelegate OnStageDisconnection;
66         public OnChildAddDelegate OnChildAdd;
67         public OnChildRemoveDelegate OnChildRemove;
68         public OnPropertySetDelegate OnPropertySet;
69         public OnSizeSetDelegate OnSizeSet;
70         public OnSizeAnimationDelegate OnSizeAnimation;
71         public OnTouchDelegate OnTouch;
72         public OnHoverDelegate OnHover;
73         public OnKeyDelegate OnKey;
74         public OnWheelDelegate OnWheel;
75         public OnRelayoutDelegate OnRelayout;
76         public OnSetResizePolicyDelegate OnSetResizePolicy;
77         public GetNaturalSizeDelegate GetNaturalSize;
78         public CalculateChildSizeDelegate CalculateChildSize;
79         public GetHeightForWidthDelegate GetHeightForWidth;
80         public GetWidthForHeightDelegate GetWidthForHeight;
81         public RelayoutDependentOnChildrenDimensionDelegate RelayoutDependentOnChildrenDimension;
82         public RelayoutDependentOnChildrenDelegate RelayoutDependentOnChildren;
83         public OnCalculateRelayoutSizeDelegate OnCalculateRelayoutSize;
84         public OnLayoutNegotiatedDelegate OnLayoutNegotiated;
85         public OnControlChildAddDelegate OnControlChildAdd;
86         public OnControlChildRemoveDelegate OnControlChildRemove;
87         public OnStyleChangeDelegate OnStyleChange;
88         public OnAccessibilityActivatedDelegate OnAccessibilityActivated;
89         public OnAccessibilityPanDelegate OnAccessibilityPan;
90         public OnAccessibilityTouchDelegate OnAccessibilityTouch;
91         public OnAccessibilityValueChangeDelegate OnAccessibilityValueChange;
92         public OnAccessibilityZoomDelegate OnAccessibilityZoom;
93         public OnKeyInputFocusGainedDelegate OnKeyInputFocusGained;
94         public OnKeyInputFocusLostDelegate OnKeyInputFocusLost;
95         public GetNextKeyboardFocusableActorDelegate GetNextKeyboardFocusableActor;
96         public OnKeyboardFocusChangeCommittedDelegate OnKeyboardFocusChangeCommitted;
97         public OnKeyboardEnterDelegate OnKeyboardEnter;
98         public OnPinchDelegate OnPinch;
99         public OnPanDelegate OnPan;
100         public OnTapDelegate OnTap;
101         public OnLongPressDelegate OnLongPress;
102         public SignalConnectedDelegate SignalConnected;
103         public SignalDisconnectedDelegate SignalDisconnected;
104
105         internal ViewWrapperImpl(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.ViewWrapperImpl_SWIGUpcast(cPtr), cMemoryOwn)
106         {
107             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
108         }
109
110         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ViewWrapperImpl obj)
111         {
112             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
113         }
114
115         ~ViewWrapperImpl()
116         {
117             Dispose();
118         }
119
120         public override void Dispose()
121         {
122             lock(this)
123             {
124                 if (swigCPtr.Handle != global::System.IntPtr.Zero)
125                 {
126                     if (swigCMemOwn)
127                     {
128                         swigCMemOwn = false;
129                         NDalicManualPINVOKE.delete_ViewWrapperImpl(swigCPtr);
130                     }
131                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
132                 }
133                 global::System.GC.SuppressFinalize(this);
134                 base.Dispose();
135             }
136         }
137
138         public ViewWrapperImpl(ViewWrapperImpl.CustomViewBehaviour behaviourFlags) : this(NDalicManualPINVOKE.new_ViewWrapperImpl((int)behaviourFlags), true)
139         {
140             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
141             DirectorConnect();
142         }
143
144         public static ViewWrapper New(string typeName, ViewWrapperImpl viewWrapper)
145         {
146             ViewWrapper ret = new ViewWrapper(NDalicManualPINVOKE.ViewWrapperImpl_New(typeName, ViewWrapperImpl.getCPtr(viewWrapper)), true);
147             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
148             return ret;
149         }
150
151         public void RelayoutRequest()
152         {
153             NDalicManualPINVOKE.ViewWrapperImpl_RelayoutRequest(swigCPtr);
154             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
155         }
156
157         public float GetHeightForWidthBase(float width)
158         {
159             float ret = NDalicManualPINVOKE.ViewWrapperImpl_GetHeightForWidthBase(swigCPtr, width);
160             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
161             return ret;
162         }
163
164         public float GetWidthForHeightBase(float height)
165         {
166             float ret = NDalicManualPINVOKE.ViewWrapperImpl_GetWidthForHeightBase(swigCPtr, height);
167             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
168             return ret;
169         }
170
171         public float CalculateChildSizeBase(Actor child, DimensionType dimension)
172         {
173             float ret = NDalicManualPINVOKE.ViewWrapperImpl_CalculateChildSizeBase(swigCPtr, Actor.getCPtr(child), (int)dimension);
174             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
175             return ret;
176         }
177
178         public bool RelayoutDependentOnChildrenBase(DimensionType dimension)
179         {
180             bool ret = NDalicManualPINVOKE.ViewWrapperImpl_RelayoutDependentOnChildrenBase__SWIG_0(swigCPtr, (int)dimension);
181             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
182             return ret;
183         }
184
185         public bool RelayoutDependentOnChildrenBase()
186         {
187             bool ret = NDalicManualPINVOKE.ViewWrapperImpl_RelayoutDependentOnChildrenBase__SWIG_1(swigCPtr);
188             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
189             return ret;
190         }
191
192         public void RegisterVisual(int index, VisualBase visual)
193         {
194             NDalicManualPINVOKE.ViewWrapperImpl_RegisterVisual__SWIG_0(swigCPtr, index, VisualBase.getCPtr(visual));
195             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
196         }
197
198         public void RegisterVisual(int index, VisualBase visual, bool enabled)
199         {
200             NDalicManualPINVOKE.ViewWrapperImpl_RegisterVisual__SWIG_1(swigCPtr, index, VisualBase.getCPtr(visual), enabled);
201             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
202         }
203
204         public void UnregisterVisual(int index)
205         {
206             NDalicManualPINVOKE.ViewWrapperImpl_UnregisterVisual(swigCPtr, index);
207             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
208         }
209
210         public VisualBase GetVisual(int index)
211         {
212             VisualBase ret = new VisualBase(NDalicManualPINVOKE.ViewWrapperImpl_GetVisual(swigCPtr, index), true);
213             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
214             return ret;
215         }
216
217         public void EnableVisual(int index, bool enable)
218         {
219             NDalicManualPINVOKE.ViewWrapperImpl_EnableVisual(swigCPtr, index, enable);
220             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
221         }
222
223         public bool IsVisualEnabled(int index)
224         {
225             bool ret = NDalicManualPINVOKE.ViewWrapperImpl_IsVisualEnabled(swigCPtr, index);
226             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
227             return ret;
228         }
229
230         public Animation CreateTransition(TransitionData transitionData)
231         {
232             Animation ret = new Animation(NDalicManualPINVOKE.ViewWrapperImpl_CreateTransition(swigCPtr, TransitionData.getCPtr(transitionData)), true);
233             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
234             return ret;
235         }
236
237         public void EmitKeyInputFocusSignal(bool focusGained)
238         {
239             NDalicManualPINVOKE.ViewWrapperImpl_EmitKeyInputFocusSignal(swigCPtr, focusGained);
240             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
241         }
242
243         public void ApplyThemeStyle()
244         {
245             NDalicManualPINVOKE.ViewWrapperImpl_ApplyThemeStyle(swigCPtr);
246             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
247         }
248
249         private void DirectorConnect()
250         {
251             Delegate0 = new DelegateViewWrapperImpl_0(DirectorOnStageConnection);
252             Delegate1 = new DelegateViewWrapperImpl_1(DirectorOnStageDisconnection);
253             Delegate2 = new DelegateViewWrapperImpl_2(DirectorOnChildAdd);
254             Delegate3 = new DelegateViewWrapperImpl_3(DirectorOnChildRemove);
255             Delegate4 = new DelegateViewWrapperImpl_4(DirectorOnPropertySet);
256             Delegate5 = new DelegateViewWrapperImpl_5(DirectorOnSizeSet);
257             Delegate6 = new DelegateViewWrapperImpl_6(DirectorOnSizeAnimation);
258             Delegate7 = new DelegateViewWrapperImpl_7(DirectorOnTouch);
259             Delegate8 = new DelegateViewWrapperImpl_8(DirectorOnHover);
260             Delegate9 = new DelegateViewWrapperImpl_9(DirectorOnKey);
261             Delegate10 = new DelegateViewWrapperImpl_10(DirectorOnWheel);
262             Delegate11 = new DelegateViewWrapperImpl_11(DirectorOnRelayout);
263             Delegate12 = new DelegateViewWrapperImpl_12(DirectorOnSetResizePolicy);
264             Delegate13 = new DelegateViewWrapperImpl_13(DirectorGetNaturalSize);
265             Delegate14 = new DelegateViewWrapperImpl_14(DirectorCalculateChildSize);
266             Delegate15 = new DelegateViewWrapperImpl_15(DirectorGetHeightForWidth);
267             Delegate16 = new DelegateViewWrapperImpl_16(DirectorGetWidthForHeight);
268             Delegate17 = new DelegateViewWrapperImpl_17(DirectorRelayoutDependentOnChildren__SWIG_0);
269             Delegate18 = new DelegateViewWrapperImpl_18(DirectorRelayoutDependentOnChildren__SWIG_1);
270             Delegate19 = new DelegateViewWrapperImpl_19(DirectorOnCalculateRelayoutSize);
271             Delegate20 = new DelegateViewWrapperImpl_20(DirectorOnLayoutNegotiated);
272             Delegate21 = new DelegateViewWrapperImpl_21(DirectorOnInitialize);
273             Delegate22 = new DelegateViewWrapperImpl_22(DirectorOnControlChildAdd);
274             Delegate23 = new DelegateViewWrapperImpl_23(DirectorOnControlChildRemove);
275             Delegate24 = new DelegateViewWrapperImpl_24(DirectorOnStyleChange);
276             Delegate25 = new DelegateViewWrapperImpl_25(DirectorOnAccessibilityActivated);
277             Delegate26 = new DelegateViewWrapperImpl_26(DirectorOnAccessibilityPan);
278             Delegate27 = new DelegateViewWrapperImpl_27(DirectorOnAccessibilityTouch);
279             Delegate28 = new DelegateViewWrapperImpl_28(DirectorOnAccessibilityValueChange);
280             Delegate29 = new DelegateViewWrapperImpl_29(DirectorOnAccessibilityZoom);
281             Delegate30 = new DelegateViewWrapperImpl_30(DirectorOnKeyInputFocusGained);
282             Delegate31 = new DelegateViewWrapperImpl_31(DirectorOnKeyInputFocusLost);
283             Delegate32 = new DelegateViewWrapperImpl_32(DirectorGetNextKeyboardFocusableActor);
284             Delegate33 = new DelegateViewWrapperImpl_33(DirectorOnKeyboardFocusChangeCommitted);
285             Delegate34 = new DelegateViewWrapperImpl_34(DirectorOnKeyboardEnter);
286             Delegate35 = new DelegateViewWrapperImpl_35(DirectorOnPinch);
287             Delegate36 = new DelegateViewWrapperImpl_36(DirectorOnPan);
288             Delegate37 = new DelegateViewWrapperImpl_37(DirectorOnTap);
289             Delegate38 = new DelegateViewWrapperImpl_38(DirectorOnLongPress);
290             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);
291         }
292
293         private void DirectorOnStageConnection(int depth)
294         {
295             OnStageConnection(depth);
296         }
297
298         private void DirectorOnStageDisconnection()
299         {
300             OnStageDisconnection();
301         }
302
303         private void DirectorOnChildAdd(global::System.IntPtr child)
304         {
305             OnChildAdd(new Actor(child, false));
306         }
307
308         private void DirectorOnChildRemove(global::System.IntPtr child)
309         {
310             OnChildRemove(new Actor(child, false));
311         }
312
313         private void DirectorOnPropertySet(int index, global::System.IntPtr propertyValue)
314         {
315             OnPropertySet(index, new Property.Value(propertyValue, true));
316         }
317
318         private void DirectorOnSizeSet(global::System.IntPtr targetSize)
319         {
320             OnSizeSet(new Vector3(targetSize, false));
321         }
322
323         private void DirectorOnSizeAnimation(global::System.IntPtr animation, global::System.IntPtr targetSize)
324         {
325             OnSizeAnimation(new Animation(animation, false), new Vector3(targetSize, false));
326         }
327
328         private bool DirectorOnTouch(global::System.IntPtr arg0)
329         {
330             return OnTouch(new Touch(arg0, false));
331         }
332
333         private bool DirectorOnHover(global::System.IntPtr arg0)
334         {
335             return OnHover(new Hover(arg0, false));
336         }
337
338         private bool DirectorOnKey(global::System.IntPtr arg0)
339         {
340             return OnKey(new Key(arg0, false));
341         }
342
343         private bool DirectorOnWheel(global::System.IntPtr arg0)
344         {
345             return OnWheel(new Wheel(arg0, false));
346         }
347
348         private void DirectorOnRelayout(global::System.IntPtr size, global::System.IntPtr container)
349         {
350             OnRelayout(new Vector2(size, false), new RelayoutContainer(container, false));
351         }
352
353         private void DirectorOnSetResizePolicy(int policy, int dimension)
354         {
355             OnSetResizePolicy((ResizePolicyType)policy, (DimensionType)dimension);
356         }
357
358         private global::System.IntPtr DirectorGetNaturalSize()
359         {
360             return Vector3.getCPtr(GetNaturalSize()).Handle;
361         }
362
363         private float DirectorCalculateChildSize(global::System.IntPtr child, int dimension)
364         {
365             return CalculateChildSize(new Actor(child, false), (DimensionType)dimension);
366         }
367
368         private float DirectorGetHeightForWidth(float width)
369         {
370             return GetHeightForWidth(width);
371         }
372
373         private float DirectorGetWidthForHeight(float height)
374         {
375             return GetWidthForHeight(height);
376         }
377
378         private bool DirectorRelayoutDependentOnChildren__SWIG_0(int dimension)
379         {
380             return RelayoutDependentOnChildrenDimension((DimensionType)dimension);
381         }
382
383         private bool DirectorRelayoutDependentOnChildren__SWIG_1()
384         {
385             return RelayoutDependentOnChildren();
386         }
387
388         private void DirectorOnCalculateRelayoutSize(int dimension)
389         {
390             OnCalculateRelayoutSize((DimensionType)dimension);
391         }
392
393         private void DirectorOnLayoutNegotiated(float size, int dimension)
394         {
395             OnLayoutNegotiated(size, (DimensionType)dimension);
396         }
397
398         private void DirectorOnInitialize()
399         {
400         }
401
402         private void DirectorOnControlChildAdd(global::System.IntPtr child)
403         {
404             OnControlChildAdd(new Actor(child, false));
405         }
406
407         private void DirectorOnControlChildRemove(global::System.IntPtr child)
408         {
409             OnControlChildRemove(new Actor(child, false));
410         }
411
412         private void DirectorOnStyleChange(global::System.IntPtr styleManager, int change)
413         {
414             OnStyleChange(new StyleManager(styleManager, false), (StyleChangeType)change);
415         }
416
417         private bool DirectorOnAccessibilityActivated()
418         {
419             return OnAccessibilityActivated();
420         }
421
422         private bool DirectorOnAccessibilityPan(global::System.IntPtr gesture)
423         {
424             return OnAccessibilityPan(new PanGesture(gesture, false));
425         }
426
427         private bool DirectorOnAccessibilityTouch(global::System.IntPtr touch)
428         {
429             return OnAccessibilityTouch(new Touch(touch, false));
430         }
431
432         private bool DirectorOnAccessibilityValueChange(bool isIncrease)
433         {
434             return OnAccessibilityValueChange(isIncrease);
435         }
436
437         private bool DirectorOnAccessibilityZoom()
438         {
439             return OnAccessibilityZoom();
440         }
441
442         private void DirectorOnKeyInputFocusGained()
443         {
444             OnKeyInputFocusGained();
445         }
446
447         private void DirectorOnKeyInputFocusLost()
448         {
449             OnKeyInputFocusLost();
450         }
451
452         private global::System.IntPtr DirectorGetNextKeyboardFocusableActor(global::System.IntPtr currentFocusedActor, int direction, bool loopEnabled)
453         {
454             return Actor.getCPtr(GetNextKeyboardFocusableActor(new Actor(currentFocusedActor, false), (View.KeyboardFocus.Direction)direction, loopEnabled)).Handle;
455         }
456
457         private void DirectorOnKeyboardFocusChangeCommitted(global::System.IntPtr commitedFocusableActor)
458         {
459             OnKeyboardFocusChangeCommitted(new Actor(commitedFocusableActor, false));
460         }
461
462         private bool DirectorOnKeyboardEnter()
463         {
464             return OnKeyboardEnter();
465         }
466
467         private void DirectorOnPinch(global::System.IntPtr pinch)
468         {
469             OnPinch(new PinchGesture(pinch, false));
470         }
471
472         private void DirectorOnPan(global::System.IntPtr pan)
473         {
474             OnPan(new PanGesture(pan, false));
475         }
476
477         private void DirectorOnTap(global::System.IntPtr tap)
478         {
479             OnTap(new TapGesture(tap, false));
480         }
481
482         private void DirectorOnLongPress(global::System.IntPtr longPress)
483         {
484             OnLongPress(new LongPressGesture(longPress, false));
485         }
486
487         private void DirectorSignalConnected(global::System.IntPtr slotObserver, global::System.IntPtr callback)
488         {
489             SignalConnected((slotObserver == global::System.IntPtr.Zero) ? null : new SlotObserver(slotObserver, false), (callback == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Dali__CallbackBase(callback, false));
490         }
491
492         private void DirectorSignalDisconnected(global::System.IntPtr slotObserver, global::System.IntPtr callback)
493         {
494             SignalDisconnected((slotObserver == global::System.IntPtr.Zero) ? null : new SlotObserver(slotObserver, false), (callback == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Dali__CallbackBase(callback, false));
495         }
496
497         public delegate void DelegateViewWrapperImpl_0(int depth);
498         public delegate void DelegateViewWrapperImpl_1();
499         public delegate void DelegateViewWrapperImpl_2(global::System.IntPtr child);
500         public delegate void DelegateViewWrapperImpl_3(global::System.IntPtr child);
501         public delegate void DelegateViewWrapperImpl_4(int index, global::System.IntPtr propertyValue);
502         public delegate void DelegateViewWrapperImpl_5(global::System.IntPtr targetSize);
503         public delegate void DelegateViewWrapperImpl_6(global::System.IntPtr animation, global::System.IntPtr targetSize);
504         public delegate bool DelegateViewWrapperImpl_7(global::System.IntPtr arg0);
505         public delegate bool DelegateViewWrapperImpl_8(global::System.IntPtr arg0);
506         public delegate bool DelegateViewWrapperImpl_9(global::System.IntPtr arg0);
507         public delegate bool DelegateViewWrapperImpl_10(global::System.IntPtr arg0);
508         public delegate void DelegateViewWrapperImpl_11(global::System.IntPtr size, global::System.IntPtr container);
509         public delegate void DelegateViewWrapperImpl_12(int policy, int dimension);
510         public delegate global::System.IntPtr DelegateViewWrapperImpl_13();
511         public delegate float DelegateViewWrapperImpl_14(global::System.IntPtr child, int dimension);
512         public delegate float DelegateViewWrapperImpl_15(float width);
513         public delegate float DelegateViewWrapperImpl_16(float height);
514         public delegate bool DelegateViewWrapperImpl_17(int dimension);
515         public delegate bool DelegateViewWrapperImpl_18();
516         public delegate void DelegateViewWrapperImpl_19(int dimension);
517         public delegate void DelegateViewWrapperImpl_20(float size, int dimension);
518         public delegate void DelegateViewWrapperImpl_21();
519         public delegate void DelegateViewWrapperImpl_22(global::System.IntPtr child);
520         public delegate void DelegateViewWrapperImpl_23(global::System.IntPtr child);
521         public delegate void DelegateViewWrapperImpl_24(global::System.IntPtr styleManager, int change);
522         public delegate bool DelegateViewWrapperImpl_25();
523         public delegate bool DelegateViewWrapperImpl_26(global::System.IntPtr gesture);
524         public delegate bool DelegateViewWrapperImpl_27(global::System.IntPtr touch);
525         public delegate bool DelegateViewWrapperImpl_28(bool isIncrease);
526         public delegate bool DelegateViewWrapperImpl_29();
527         public delegate void DelegateViewWrapperImpl_30();
528         public delegate void DelegateViewWrapperImpl_31();
529         public delegate global::System.IntPtr DelegateViewWrapperImpl_32(global::System.IntPtr currentFocusedActor, int direction, bool loopEnabled);
530         public delegate void DelegateViewWrapperImpl_33(global::System.IntPtr commitedFocusableActor);
531         public delegate bool DelegateViewWrapperImpl_34();
532         public delegate void DelegateViewWrapperImpl_35(global::System.IntPtr pinch);
533         public delegate void DelegateViewWrapperImpl_36(global::System.IntPtr pan);
534         public delegate void DelegateViewWrapperImpl_37(global::System.IntPtr tap);
535         public delegate void DelegateViewWrapperImpl_38(global::System.IntPtr longPress);
536         public delegate void DelegateViewWrapperImpl_39(global::System.IntPtr slotObserver, global::System.IntPtr callback);
537         public delegate void DelegateViewWrapperImpl_40(global::System.IntPtr slotObserver, global::System.IntPtr callback);
538
539         private DelegateViewWrapperImpl_0 Delegate0;
540         private DelegateViewWrapperImpl_1 Delegate1;
541         private DelegateViewWrapperImpl_2 Delegate2;
542         private DelegateViewWrapperImpl_3 Delegate3;
543         private DelegateViewWrapperImpl_4 Delegate4;
544         private DelegateViewWrapperImpl_5 Delegate5;
545         private DelegateViewWrapperImpl_6 Delegate6;
546         private DelegateViewWrapperImpl_7 Delegate7;
547         private DelegateViewWrapperImpl_8 Delegate8;
548         private DelegateViewWrapperImpl_9 Delegate9;
549         private DelegateViewWrapperImpl_10 Delegate10;
550         private DelegateViewWrapperImpl_11 Delegate11;
551         private DelegateViewWrapperImpl_12 Delegate12;
552         private DelegateViewWrapperImpl_13 Delegate13;
553         private DelegateViewWrapperImpl_14 Delegate14;
554         private DelegateViewWrapperImpl_15 Delegate15;
555         private DelegateViewWrapperImpl_16 Delegate16;
556         private DelegateViewWrapperImpl_17 Delegate17;
557         private DelegateViewWrapperImpl_18 Delegate18;
558         private DelegateViewWrapperImpl_19 Delegate19;
559         private DelegateViewWrapperImpl_20 Delegate20;
560         private DelegateViewWrapperImpl_21 Delegate21;
561         private DelegateViewWrapperImpl_22 Delegate22;
562         private DelegateViewWrapperImpl_23 Delegate23;
563         private DelegateViewWrapperImpl_24 Delegate24;
564         private DelegateViewWrapperImpl_25 Delegate25;
565         private DelegateViewWrapperImpl_26 Delegate26;
566         private DelegateViewWrapperImpl_27 Delegate27;
567         private DelegateViewWrapperImpl_28 Delegate28;
568         private DelegateViewWrapperImpl_29 Delegate29;
569         private DelegateViewWrapperImpl_30 Delegate30;
570         private DelegateViewWrapperImpl_31 Delegate31;
571         private DelegateViewWrapperImpl_32 Delegate32;
572         private DelegateViewWrapperImpl_33 Delegate33;
573         private DelegateViewWrapperImpl_34 Delegate34;
574         private DelegateViewWrapperImpl_35 Delegate35;
575         private DelegateViewWrapperImpl_36 Delegate36;
576         private DelegateViewWrapperImpl_37 Delegate37;
577         private DelegateViewWrapperImpl_38 Delegate38;
578         private DelegateViewWrapperImpl_39 Delegate39;
579         private DelegateViewWrapperImpl_40 Delegate40;
580
581         public enum CustomViewBehaviour
582         {
583             VIEW_BEHAVIOUR_DEFAULT = 0,
584             DISABLE_SIZE_NEGOTIATION = 1 << 0,
585             REQUIRES_KEYBOARD_NAVIGATION_SUPPORT = 1 << 5,
586             DISABLE_STYLE_CHANGE_SIGNALS = 1 << 6,
587             LAST_VIEW_BEHAVIOUR_FLAG
588         }
589
590         public static readonly int VIEW_BEHAVIOUR_FLAG_COUNT = NDalicManualPINVOKE.ViewWrapperImpl_CONTROL_BEHAVIOUR_FLAG_COUNT_get();
591     }
592 }