Usage of CustomeView for ScrollContainer and code refactoring accordingly. Also added...
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / automatic / csharp / ViewImpl.cs
1 //------------------------------------------------------------------------------
2 // <auto-generated />
3 //
4 // This file was automatically generated by SWIG (http://www.swig.org).
5 // Version 3.0.9
6 //
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
10
11 namespace Dali {
12
13 public class ViewImpl : CustomActorImpl {
14   private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15
16   internal ViewImpl(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.ViewImpl_SWIGUpcast(cPtr), cMemoryOwn) {
17     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18   }
19
20   internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ViewImpl obj) {
21     return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22   }
23
24   ~ViewImpl() {
25     Dispose();
26   }
27
28   public override void Dispose() {
29     lock(this) {
30       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
31         if (swigCMemOwn) {
32           swigCMemOwn = false;
33           NDalicPINVOKE.delete_ViewImpl(swigCPtr);
34         }
35         swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
36       }
37       global::System.GC.SuppressFinalize(this);
38       base.Dispose();
39     }
40   }
41
42   public static View New() {
43     View ret = new View(NDalicPINVOKE.ViewImpl_New(), true);
44     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
45     return ret;
46   }
47
48   public void SetStyleName(string styleName) {
49     NDalicPINVOKE.ViewImpl_SetStyleName(swigCPtr, styleName);
50     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
51   }
52
53   public string GetStyleName() {
54     string ret = NDalicPINVOKE.ViewImpl_GetStyleName(swigCPtr);
55     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
56     return ret;
57   }
58
59   public void SetBackgroundColor(Vector4 color) {
60     NDalicPINVOKE.ViewImpl_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
61     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
62   }
63
64   public Vector4 GetBackgroundColor() {
65     Vector4 ret = new Vector4(NDalicPINVOKE.ViewImpl_GetBackgroundColor(swigCPtr), true);
66     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
67     return ret;
68   }
69
70   public void SetBackgroundImage(Image image) {
71     NDalicPINVOKE.ViewImpl_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
72     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
73   }
74
75   public void SetBackground(Property.Map map) {
76     NDalicPINVOKE.ViewImpl_SetBackground(swigCPtr, Property.Map.getCPtr(map));
77     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
78   }
79
80   public void ClearBackground() {
81     NDalicPINVOKE.ViewImpl_ClearBackground(swigCPtr);
82     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
83   }
84
85   public void EnableGestureDetection(Gesture.Type type) {
86     NDalicPINVOKE.ViewImpl_EnableGestureDetection(swigCPtr, (int)type);
87     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
88   }
89
90   public void DisableGestureDetection(Gesture.Type type) {
91     NDalicPINVOKE.ViewImpl_DisableGestureDetection(swigCPtr, (int)type);
92     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
93   }
94
95   public PinchGestureDetector GetPinchGestureDetector() {
96     PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.ViewImpl_GetPinchGestureDetector(swigCPtr), true);
97     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
98     return ret;
99   }
100
101   public PanGestureDetector GetPanGestureDetector() {
102     PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.ViewImpl_GetPanGestureDetector(swigCPtr), true);
103     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
104     return ret;
105   }
106
107   public TapGestureDetector GetTapGestureDetector() {
108     TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.ViewImpl_GetTapGestureDetector(swigCPtr), true);
109     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
110     return ret;
111   }
112
113   public LongPressGestureDetector GetLongPressGestureDetector() {
114     LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.ViewImpl_GetLongPressGestureDetector(swigCPtr), true);
115     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
116     return ret;
117   }
118
119   public void SetKeyboardNavigationSupport(bool isSupported) {
120     NDalicPINVOKE.ViewImpl_SetKeyboardNavigationSupport(swigCPtr, isSupported);
121     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
122   }
123
124   public bool IsKeyboardNavigationSupported() {
125     bool ret = NDalicPINVOKE.ViewImpl_IsKeyboardNavigationSupported(swigCPtr);
126     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
127     return ret;
128   }
129
130   public void SetKeyInputFocus() {
131     NDalicPINVOKE.ViewImpl_SetKeyInputFocus(swigCPtr);
132     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
133   }
134
135   public bool HasKeyInputFocus() {
136     bool ret = NDalicPINVOKE.ViewImpl_HasKeyInputFocus(swigCPtr);
137     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
138     return ret;
139   }
140
141   public void ClearKeyInputFocus() {
142     NDalicPINVOKE.ViewImpl_ClearKeyInputFocus(swigCPtr);
143     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
144   }
145
146   public void SetAsKeyboardFocusGroup(bool isFocusGroup) {
147     NDalicPINVOKE.ViewImpl_SetAsKeyboardFocusGroup(swigCPtr, isFocusGroup);
148     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
149   }
150
151   public bool IsKeyboardFocusGroup() {
152     bool ret = NDalicPINVOKE.ViewImpl_IsKeyboardFocusGroup(swigCPtr);
153     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
154     return ret;
155   }
156
157   public void AccessibilityActivate() {
158     NDalicPINVOKE.ViewImpl_AccessibilityActivate(swigCPtr);
159     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
160   }
161
162   public void KeyboardEnter() {
163     NDalicPINVOKE.ViewImpl_KeyboardEnter(swigCPtr);
164     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
165   }
166
167   public ControlKeyEventSignal KeyEventSignal() {
168     ControlKeyEventSignal ret = new ControlKeyEventSignal(NDalicPINVOKE.ViewImpl_KeyEventSignal(swigCPtr), false);
169     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
170     return ret;
171   }
172
173   public KeyInputFocusSignal KeyInputFocusGainedSignal() {
174     KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.ViewImpl_KeyInputFocusGainedSignal(swigCPtr), false);
175     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
176     return ret;
177   }
178
179   public KeyInputFocusSignal KeyInputFocusLostSignal() {
180     KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.ViewImpl_KeyInputFocusLostSignal(swigCPtr), false);
181     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
182     return ret;
183   }
184
185   public bool EmitKeyEventSignal(KeyEvent arg0) {
186     bool ret = NDalicPINVOKE.ViewImpl_EmitKeyEventSignal(swigCPtr, KeyEvent.getCPtr(arg0));
187     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
188     return ret;
189   }
190
191   public virtual void OnInitialize() {
192     NDalicPINVOKE.ViewImpl_OnInitialize(swigCPtr);
193     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
194   }
195
196   public virtual void OnControlChildAdd(Actor child) {
197     NDalicPINVOKE.ViewImpl_OnControlChildAdd(swigCPtr, Actor.getCPtr(child));
198     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
199   }
200
201   public virtual void OnControlChildRemove(Actor child) {
202     NDalicPINVOKE.ViewImpl_OnControlChildRemove(swigCPtr, Actor.getCPtr(child));
203     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
204   }
205
206   public virtual void OnStyleChange(StyleManager styleManager, StyleChangeType change) {
207     NDalicPINVOKE.ViewImpl_OnStyleChange(swigCPtr, StyleManager.getCPtr(styleManager), (int)change);
208     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
209   }
210
211   public virtual bool OnAccessibilityActivated() {
212     bool ret = NDalicPINVOKE.ViewImpl_OnAccessibilityActivated(swigCPtr);
213     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
214     return ret;
215   }
216
217   public virtual bool OnAccessibilityPan(PanGesture gesture) {
218     bool ret = NDalicPINVOKE.ViewImpl_OnAccessibilityPan(swigCPtr, PanGesture.getCPtr(gesture));
219     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
220     return ret;
221   }
222
223   public virtual bool OnAccessibilityTouch(TouchEvent touchEvent) {
224     bool ret = NDalicPINVOKE.ViewImpl_OnAccessibilityTouch(swigCPtr, TouchEvent.getCPtr(touchEvent));
225     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
226     return ret;
227   }
228
229   public virtual bool OnAccessibilityValueChange(bool isIncrease) {
230     bool ret = NDalicPINVOKE.ViewImpl_OnAccessibilityValueChange(swigCPtr, isIncrease);
231     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
232     return ret;
233   }
234
235   public virtual bool OnAccessibilityZoom() {
236     bool ret = NDalicPINVOKE.ViewImpl_OnAccessibilityZoom(swigCPtr);
237     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
238     return ret;
239   }
240
241   public virtual void OnKeyInputFocusGained() {
242     NDalicPINVOKE.ViewImpl_OnKeyInputFocusGained(swigCPtr);
243     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
244   }
245
246   public virtual void OnKeyInputFocusLost() {
247     NDalicPINVOKE.ViewImpl_OnKeyInputFocusLost(swigCPtr);
248     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
249   }
250
251   public virtual Actor GetNextKeyboardFocusableActor(Actor currentFocusedActor, View.KeyboardFocus.Direction direction, bool loopEnabled) {
252     Actor ret = new Actor(NDalicPINVOKE.ViewImpl_GetNextKeyboardFocusableActor(swigCPtr, Actor.getCPtr(currentFocusedActor), (int)direction, loopEnabled), true);
253     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
254     return ret;
255   }
256
257   public virtual void OnKeyboardFocusChangeCommitted(Actor commitedFocusableActor) {
258     NDalicPINVOKE.ViewImpl_OnKeyboardFocusChangeCommitted(swigCPtr, Actor.getCPtr(commitedFocusableActor));
259     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
260   }
261
262   public virtual bool OnKeyboardEnter() {
263     bool ret = NDalicPINVOKE.ViewImpl_OnKeyboardEnter(swigCPtr);
264     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
265     return ret;
266   }
267
268   public virtual void OnPinch(PinchGesture pinch) {
269     NDalicPINVOKE.ViewImpl_OnPinch(swigCPtr, PinchGesture.getCPtr(pinch));
270     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
271   }
272
273   public virtual void OnPan(PanGesture pan) {
274     NDalicPINVOKE.ViewImpl_OnPan(swigCPtr, PanGesture.getCPtr(pan));
275     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
276   }
277
278   public virtual void OnTap(TapGesture tap) {
279     NDalicPINVOKE.ViewImpl_OnTap(swigCPtr, TapGesture.getCPtr(tap));
280     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
281   }
282
283   public virtual void OnLongPress(LongPressGesture longPress) {
284     NDalicPINVOKE.ViewImpl_OnLongPress(swigCPtr, LongPressGesture.getCPtr(longPress));
285     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
286   }
287
288   public virtual void SignalConnected(SlotObserver slotObserver, SWIGTYPE_p_Dali__CallbackBase callback) {
289     NDalicPINVOKE.ViewImpl_SignalConnected(swigCPtr, SlotObserver.getCPtr(slotObserver), SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback));
290     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
291   }
292
293   public virtual void SignalDisconnected(SlotObserver slotObserver, SWIGTYPE_p_Dali__CallbackBase callback) {
294     NDalicPINVOKE.ViewImpl_SignalDisconnected(swigCPtr, SlotObserver.getCPtr(slotObserver), SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback));
295     if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
296   }
297
298 }
299
300 }