Merge "[NUI] Remove deprecated APIs"
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / View.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 System;
18 using System.ComponentModel;
19 using System.Runtime.InteropServices;
20
21 namespace Tizen.NUI.BaseComponents
22 {
23     /// <summary>
24     /// View is the base class for all views.
25     /// </summary>
26     /// <since_tizen> 3 </since_tizen>
27     public class View : Container
28     {
29         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
30
31
32         internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.View_SWIGUpcast(cPtr), cMemoryOwn)
33         {
34             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
35             PositionUsesPivotPoint = false;
36         }
37
38         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
39         {
40             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
41         }
42
43         // From Container Base class
44
45         /// <summary>
46         /// Adds a child view to this view.
47         /// </summary>
48         /// <seealso cref="Container.Add" />
49         /// <since_tizen> 4 </since_tizen>
50         public override void Add(View child)
51         {
52             NDalicPINVOKE.Actor_Add(swigCPtr, View.getCPtr(child));
53             if (NDalicPINVOKE.SWIGPendingException.Pending)
54                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
55
56             Children.Add(child);
57         }
58
59         /// <summary>
60         /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
61         /// </summary>
62         /// <seealso cref="Container.Remove" />
63         /// <since_tizen> 4 </since_tizen>
64         public override void Remove(View child)
65         {
66             NDalicPINVOKE.Actor_Remove(swigCPtr, View.getCPtr(child));
67             if (NDalicPINVOKE.SWIGPendingException.Pending)
68                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
69
70             Children.Remove(child);
71         }
72
73         /// <summary>
74         /// Retrieves a child view by index.
75         /// </summary>
76         /// <seealso cref="Container.GetChildAt" />
77         /// <since_tizen> 4 </since_tizen>
78         public override View GetChildAt(uint index)
79         {
80             if (index < Children.Count)
81             {
82                 return Children[Convert.ToInt32(index)];
83             }
84             else
85             {
86                 return null;
87             }
88         }
89
90         /// <summary>
91         /// Retrieves the number of children held by the view.
92         /// </summary>
93         /// <seealso cref="Container.GetChildCount" />
94         /// <since_tizen> 4 </since_tizen>
95         public override uint GetChildCount()
96         {
97             return Convert.ToUInt32(Children.Count);
98         }
99
100         /// <summary>
101         /// Gets the views parent.
102         /// </summary>
103         /// <seealso cref="Container.GetParent()" />
104         /// <since_tizen> 4 </since_tizen>
105         public override Container GetParent()
106         {
107             IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
108
109             BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
110
111             if (NDalicPINVOKE.SWIGPendingException.Pending)
112                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
113
114             return basehandle as Container;
115         }
116
117         internal bool IsTopLevelView()
118         {
119             if(GetParent() is Layer)
120             {
121                 return true;
122             }
123             return false;
124         }
125
126         /// <summary>
127         /// you can override it to clean-up your own resources.
128         /// </summary>
129         /// <param name="type">DisposeTypes</param>
130         /// <since_tizen> 3 </since_tizen>
131         protected override void Dispose(DisposeTypes type)
132         {
133             if(disposed)
134             {
135                 return;
136             }
137
138             if(type == DisposeTypes.Explicit)
139             {
140                 //Called by User
141                 //Release your own managed resources here.
142                 //You should release all of your own disposable objects here.
143             }
144
145             //Release your own unmanaged resources here.
146             //You should not access any managed member here except static instance.
147             //because the execution order of Finalizes is non-deterministic.
148
149             DisConnectFromSignals();
150
151             if (swigCPtr.Handle != global::System.IntPtr.Zero)
152             {
153                 if (swigCMemOwn)
154                 {
155                     swigCMemOwn = false;
156                     NDalicPINVOKE.delete_View(swigCPtr);
157                 }
158                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
159             }
160
161             base.Dispose(type);
162
163         }
164
165         private void DisConnectFromSignals()
166         {
167             // Save current CPtr.
168             global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
169
170             // Use BaseHandle CPtr as current might have been deleted already in derived classes.
171             swigCPtr = GetBaseHandleCPtrHandleRef;
172
173             if (_onRelayoutEventCallback != null)
174             {
175                 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
176             }
177
178             if (_offWindowEventCallback != null)
179             {
180                 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
181             }
182
183             if (_onWindowEventCallback != null)
184             {
185                 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
186             }
187
188             if (_wheelEventCallback != null)
189             {
190                 this.WheelEventSignal().Disconnect(_wheelEventCallback);
191             }
192
193             if (_hoverEventCallback != null)
194             {
195                 this.HoveredSignal().Disconnect(_hoverEventCallback);
196             }
197
198             if (_touchDataCallback != null)
199             {
200                 this.TouchSignal().Disconnect(_touchDataCallback);
201             }
202
203             if (_ResourcesLoadedCallback != null)
204             {
205                 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
206             }
207
208             if (_offWindowEventCallback != null)
209             {
210                 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
211             }
212
213             if (_onWindowEventCallback != null)
214             {
215                 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
216             }
217
218             if (_wheelEventCallback != null)
219             {
220                 this.WheelEventSignal().Disconnect(_wheelEventCallback);
221             }
222
223             if (_hoverEventCallback != null)
224             {
225                 this.HoveredSignal().Disconnect(_hoverEventCallback);
226             }
227
228             if (_touchDataCallback != null)
229             {
230                 this.TouchSignal().Disconnect(_touchDataCallback);
231             }
232
233             if (_onRelayoutEventCallback != null)
234             {
235                 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
236             }
237
238             if (_keyCallback != null)
239             {
240                 this.KeyEventSignal().Disconnect(_keyCallback);
241             }
242
243             if (_keyInputFocusLostCallback != null)
244             {
245                 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
246             }
247
248             if (_keyInputFocusGainedCallback != null)
249             {
250                 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
251             }
252
253             // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
254             // Restore current CPtr.
255             swigCPtr = currentCPtr;
256         }
257
258         private EventHandler _keyInputFocusGainedEventHandler;
259         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
260         private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
261         private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
262
263         /// <summary>
264         /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
265         /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.<br />
266         /// </summary>
267         /// <since_tizen> 3 </since_tizen>
268         public event EventHandler FocusGained
269         {
270             add
271             {
272                 if (_keyInputFocusGainedEventHandler == null)
273                 {
274                     _keyInputFocusGainedCallback = OnKeyInputFocusGained;
275                     this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
276                 }
277
278                 _keyInputFocusGainedEventHandler += value;
279             }
280
281             remove
282             {
283                 _keyInputFocusGainedEventHandler -= value;
284
285                 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
286                 {
287                     this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
288                 }
289             }
290         }
291
292         private void OnKeyInputFocusGained(IntPtr view)
293         {
294             if (_keyInputFocusGainedEventHandler != null)
295             {
296                 _keyInputFocusGainedEventHandler(this, null);
297             }
298         }
299
300
301         private EventHandler _keyInputFocusLostEventHandler;
302         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
303         private delegate void KeyInputFocusLostCallbackType(IntPtr control);
304         private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
305
306         /// <summary>
307         /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
308         /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.<br />
309         /// </summary>
310         /// <since_tizen> 3 </since_tizen>
311         public event EventHandler FocusLost
312         {
313             add
314             {
315                 if (_keyInputFocusLostEventHandler == null)
316                 {
317                     _keyInputFocusLostCallback = OnKeyInputFocusLost;
318                     this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
319                 }
320
321                 _keyInputFocusLostEventHandler += value;
322             }
323
324             remove
325             {
326                 _keyInputFocusLostEventHandler -= value;
327
328                 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
329                 {
330                     this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
331                 }
332             }
333         }
334
335         private void OnKeyInputFocusLost(IntPtr view)
336         {
337             if (_keyInputFocusLostEventHandler != null)
338             {
339                 _keyInputFocusLostEventHandler(this, null);
340             }
341         }
342
343         /// <summary>
344         /// Event arguments that passed via the KeyEvent signal.
345         /// </summary>
346         /// <since_tizen> 3 </since_tizen>
347         public class KeyEventArgs : EventArgs
348         {
349             private Key _key;
350
351             /// <summary>
352             /// Key - is the key sent to the view.
353             /// </summary>
354             /// <since_tizen> 3 </since_tizen>
355             public Key Key
356             {
357                 get
358                 {
359                     return _key;
360                 }
361                 set
362                 {
363                     _key = value;
364                 }
365             }
366         }
367
368         private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
369         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
370         private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
371         private KeyCallbackType _keyCallback;
372
373         /// <summary>
374         /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
375         /// The KeyPressed signal is emitted when the key event is received.<br />
376         /// </summary>
377         /// <since_tizen> 3 </since_tizen>
378         public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
379         {
380             add
381             {
382                 if (_keyEventHandler == null)
383                 {
384                     _keyCallback = OnKeyEvent;
385                     this.KeyEventSignal().Connect(_keyCallback);
386                 }
387
388                 _keyEventHandler += value;
389             }
390
391             remove
392             {
393                 _keyEventHandler -= value;
394
395                 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
396                 {
397                     this.KeyEventSignal().Disconnect(_keyCallback);
398                 }
399             }
400         }
401
402         private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
403         {
404             KeyEventArgs e = new KeyEventArgs();
405
406             bool result = false;
407
408             e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
409
410             if (_keyEventHandler != null)
411             {
412                 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
413
414                 // Oring the result of each callback.
415                 foreach ( EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList )
416                 {
417                     result |= del( this, e );
418                 }
419             }
420
421             return result;
422         }
423
424         private EventHandler _onRelayoutEventHandler;
425         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
426         private delegate void OnRelayoutEventCallbackType(IntPtr control);
427         private OnRelayoutEventCallbackType _onRelayoutEventCallback;
428
429         /// <summary>
430         /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.<br />
431         /// The OnRelayout signal is emitted after the size has been set on the view during relayout.<br />
432         /// </summary>
433         /// <since_tizen> 3 </since_tizen>
434         public event EventHandler Relayout
435         {
436             add
437             {
438                 if (_onRelayoutEventHandler == null)
439                 {
440                     _onRelayoutEventCallback = OnRelayout;
441                     this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
442                 }
443
444                 _onRelayoutEventHandler += value;
445             }
446
447             remove
448             {
449                 _onRelayoutEventHandler -= value;
450
451                 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
452                 {
453                     this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
454                 }
455
456             }
457         }
458
459         // Callback for View OnRelayout signal
460         private void OnRelayout(IntPtr data)
461         {
462             if (_onRelayoutEventHandler != null)
463             {
464                 _onRelayoutEventHandler(this, null);
465             }
466         }
467
468         /// <summary>
469         /// Event arguments that passed via the touch signal.
470         /// </summary>
471         /// <since_tizen> 3 </since_tizen>
472         public class TouchEventArgs : EventArgs
473         {
474             private Touch _touch;
475
476             /// <summary>
477             /// Touch - contains the information of touch points.
478             /// </summary>
479             /// <since_tizen> 3 </since_tizen>
480             public Touch Touch
481             {
482                 get
483                 {
484                     return _touch;
485                 }
486                 set
487                 {
488                     _touch = value;
489                 }
490             }
491         }
492
493         private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
494         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
495         private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
496         private TouchDataCallbackType _touchDataCallback;
497
498         /// <summary>
499         /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
500         /// The touched signal is emitted when the touch input is received.<br />
501         /// </summary>
502         /// <since_tizen> 3 </since_tizen>
503         public event EventHandlerWithReturnType<object, TouchEventArgs, bool> TouchEvent
504         {
505             add
506             {
507                 if (_touchDataEventHandler == null)
508                 {
509                     _touchDataCallback = OnTouch;
510                     this.TouchSignal().Connect(_touchDataCallback);
511                 }
512
513                 _touchDataEventHandler += value;
514             }
515
516             remove
517             {
518                 _touchDataEventHandler -= value;
519
520                 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
521                 {
522                     this.TouchSignal().Disconnect(_touchDataCallback);
523                 }
524
525             }
526         }
527
528         // Callback for View TouchSignal
529         private bool OnTouch(IntPtr view, IntPtr touchData)
530         {
531             TouchEventArgs e = new TouchEventArgs();
532
533             e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
534
535             if (_touchDataEventHandler != null)
536             {
537                 return _touchDataEventHandler(this, e);
538             }
539             return false;
540         }
541
542
543         /// <summary>
544         /// Event arguments that passed via the hover signal.
545         /// </summary>
546         /// <since_tizen> 3 </since_tizen>
547         public class HoverEventArgs : EventArgs
548         {
549             private Hover _hover;
550
551             /// <summary>
552             /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
553             /// </summary>
554             /// <since_tizen> 3 </since_tizen>
555             public Hover Hover
556             {
557                 get
558                 {
559                     return _hover;
560                 }
561                 set
562                 {
563                     _hover = value;
564                 }
565             }
566         }
567
568         private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
569         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
570         private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
571         private HoverEventCallbackType _hoverEventCallback;
572
573         /// <summary>
574         /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
575         /// The hovered signal is emitted when the hover input is received.<br />
576         /// </summary>
577         /// <since_tizen> 3 </since_tizen>
578         public event EventHandlerWithReturnType<object, HoverEventArgs, bool> HoverEvent
579         {
580             add
581             {
582                 if (_hoverEventHandler == null)
583                 {
584                     _hoverEventCallback = OnHoverEvent;
585                     this.HoveredSignal().Connect(_hoverEventCallback);
586                 }
587
588                 _hoverEventHandler += value;
589             }
590
591             remove
592             {
593                 _hoverEventHandler -= value;
594
595                 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
596                 {
597                     this.HoveredSignal().Disconnect(_hoverEventCallback);
598                 }
599
600             }
601         }
602
603         // Callback for View Hover signal
604         private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
605         {
606             HoverEventArgs e = new HoverEventArgs();
607
608             e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
609
610             if (_hoverEventHandler != null)
611             {
612                 return _hoverEventHandler(this, e);
613             }
614             return false;
615         }
616
617
618         /// <summary>
619         /// Event arguments that passed via the wheel signal.
620         /// </summary>
621         /// <since_tizen> 3 </since_tizen>
622         public class WheelEventArgs : EventArgs
623         {
624             private Wheel _wheel;
625
626             /// <summary>
627             /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
628             /// </summary>
629             /// <since_tizen> 3 </since_tizen>
630             public Wheel Wheel
631             {
632                 get
633                 {
634                     return _wheel;
635                 }
636                 set
637                 {
638                     _wheel = value;
639                 }
640             }
641         }
642
643         private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
644         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
645         private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
646         private WheelEventCallbackType _wheelEventCallback;
647
648         /// <summary>
649         /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
650         /// The WheelMoved signal is emitted when the wheel event is received.<br />
651         /// </summary>
652         /// <since_tizen> 3 </since_tizen>
653         public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelEvent
654         {
655             add
656             {
657                 if (_wheelEventHandler == null)
658                 {
659                     _wheelEventCallback = OnWheelEvent;
660                     this.WheelEventSignal().Connect(_wheelEventCallback);
661                 }
662
663                 _wheelEventHandler += value;
664             }
665
666             remove
667             {
668                 _wheelEventHandler -= value;
669
670                 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
671                 {
672                     this.WheelEventSignal().Disconnect(_wheelEventCallback);
673                 }
674
675             }
676         }
677
678         // Callback for View Wheel signal
679         private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
680         {
681             WheelEventArgs e = new WheelEventArgs();
682
683             e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
684
685             if (_wheelEventHandler != null)
686             {
687                 return _wheelEventHandler(this, e);
688             }
689             return false;
690         }
691
692
693         private EventHandler _onWindowEventHandler;
694         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
695         private delegate void OnWindowEventCallbackType(IntPtr control);
696         private OnWindowEventCallbackType _onWindowEventCallback;
697
698         /// <summary>
699         /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.<br />
700         /// The OnWindow signal is emitted after the view has been connected to the window.<br />
701         /// </summary>
702         /// <since_tizen> 3 </since_tizen>
703         public event EventHandler AddedToWindow
704         {
705             add
706             {
707                 if (_onWindowEventHandler == null)
708                 {
709                     _onWindowEventCallback = OnWindow;
710                     this.OnWindowSignal().Connect(_onWindowEventCallback);
711                 }
712
713                 _onWindowEventHandler += value;
714             }
715
716             remove
717             {
718                 _onWindowEventHandler -= value;
719
720                 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
721                 {
722                     this.OnWindowSignal().Disconnect(_onWindowEventCallback);
723                 }
724             }
725         }
726
727         // Callback for View OnWindow signal
728         private void OnWindow(IntPtr data)
729         {
730             if (_onWindowEventHandler != null)
731             {
732                 _onWindowEventHandler(this, null);
733             }
734         }
735
736
737         private EventHandler _offWindowEventHandler;
738         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
739         private delegate void OffWindowEventCallbackType(IntPtr control);
740         private OffWindowEventCallbackType _offWindowEventCallback;
741
742         /// <summary>
743         /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.<br />
744         /// OffWindow signal is emitted after the view has been disconnected from the window.<br />
745         /// </summary>
746         /// <since_tizen> 3 </since_tizen>
747         public event EventHandler RemovedFromWindow
748         {
749             add
750             {
751                 if (_offWindowEventHandler == null)
752                 {
753                     _offWindowEventCallback = OffWindow;
754                     this.OffWindowSignal().Connect(_offWindowEventCallback);
755                 }
756
757                 _offWindowEventHandler += value;
758             }
759
760             remove
761             {
762                 _offWindowEventHandler -= value;
763
764                 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
765                 {
766                     this.OffWindowSignal().Disconnect(_offWindowEventCallback);
767                 }
768             }
769         }
770
771         // Callback for View OffWindow signal
772         private void OffWindow(IntPtr data)
773         {
774             if (_offWindowEventHandler != null)
775             {
776                 _offWindowEventHandler(this, null);
777             }
778         }
779
780         /// <summary>
781         /// Event arguments of visibility changed.
782         /// </summary>
783         /// <since_tizen> 3 </since_tizen>
784         public class VisibilityChangedEventArgs : EventArgs
785         {
786             private View _view;
787             private bool _visibility;
788             private VisibilityChangeType _type;
789
790             /// <summary>
791             /// The view, or child of view, whose visibility has changed.
792             /// </summary>
793             /// <since_tizen> 3 </since_tizen>
794             public View View
795             {
796                 get
797                 {
798                     return _view;
799                 }
800                 set
801                 {
802                     _view = value;
803                 }
804             }
805
806             /// <summary>
807             /// Whether the view is now visible or not.
808             /// </summary>
809             /// <since_tizen> 3 </since_tizen>
810             public bool Visibility
811             {
812                 get
813                 {
814                     return _visibility;
815                 }
816                 set
817                 {
818                     _visibility = value;
819                 }
820             }
821
822             /// <summary>
823             /// Whether the view's visible property has changed or a parent's.
824             /// </summary>
825             /// <since_tizen> 3 </since_tizen>
826             public VisibilityChangeType Type
827             {
828                 get
829                 {
830                     return _type;
831                 }
832                 set
833                 {
834                     _type = value;
835                 }
836             }
837         }
838
839         private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
840         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
841         private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
842         private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
843
844         /// <summary>
845         /// An event for visibility change which can be used to subscribe or unsubscribe the event handler.<br />
846         /// This signal is emitted when the visible property of this or a parent view is changed.<br />
847         /// </summary>
848         /// <since_tizen> 3 </since_tizen>
849         public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
850         {
851             add
852             {
853                 if (_visibilityChangedEventHandler == null)
854                 {
855                     _visibilityChangedEventCallback = OnVisibilityChanged;
856                     VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
857                 }
858
859                 _visibilityChangedEventHandler += value;
860             }
861
862             remove
863             {
864                 _visibilityChangedEventHandler -= value;
865
866                 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
867                 {
868                     VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
869                 }
870             }
871         }
872
873         // Callback for View visibility change signal
874         private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
875         {
876             VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
877             if (data != null)
878             {
879                 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
880             }
881             e.Visibility = visibility;
882             e.Type = type;
883
884             if (_visibilityChangedEventHandler != null)
885             {
886                 _visibilityChangedEventHandler(this, e);
887             }
888         }
889
890
891         /// <summary>
892         /// Event arguments of layout direction changed.
893         /// </summary>
894         /// <since_tizen> 4 </since_tizen>
895         public class LayoutDirectionChangedEventArgs : EventArgs
896         {
897             private View _view;
898             private ViewLayoutDirectionType _type;
899
900             /// <summary>
901             /// The view, or child of view, whose layout direction has changed.
902             /// </summary>
903             /// <since_tizen> 4 </since_tizen>
904             public View View
905             {
906                 get
907                 {
908                     return _view;
909                 }
910                 set
911                 {
912                     _view = value;
913                 }
914             }
915
916             /// <summary>
917             /// Whether the view's layout direction property has changed or a parent's.
918             /// </summary>
919             /// <since_tizen> 4 </since_tizen>
920             public ViewLayoutDirectionType Type
921             {
922                 get
923                 {
924                     return _type;
925                 }
926                 set
927                 {
928                     _type = value;
929                 }
930             }
931         }
932
933         private EventHandler<LayoutDirectionChangedEventArgs> _layoutDirectionChangedEventHandler;
934         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
935         private delegate void LayoutDirectionChangedEventCallbackType(IntPtr data, ViewLayoutDirectionType type);
936         private LayoutDirectionChangedEventCallbackType _layoutDirectionChangedEventCallback;
937
938         /// <summary>
939         /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.<br />
940         /// This signal is emitted when the layout direction property of this or a parent view is changed.<br />
941         /// </summary>
942         /// <since_tizen> 4 </since_tizen>
943         public event EventHandler<LayoutDirectionChangedEventArgs> LayoutDirectionChanged
944         {
945             add
946             {
947                 if (_layoutDirectionChangedEventHandler == null)
948                 {
949                     _layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
950                     LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
951                 }
952
953                 _layoutDirectionChangedEventHandler += value;
954             }
955
956             remove
957             {
958                 _layoutDirectionChangedEventHandler -= value;
959
960                 if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
961                 {
962                     LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
963                 }
964             }
965         }
966
967         // Callback for View layout direction change signal
968         private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
969         {
970             LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
971             if (data != null)
972             {
973                 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
974             }
975             e.Type = type;
976
977             if (_layoutDirectionChangedEventHandler != null)
978             {
979                 _layoutDirectionChangedEventHandler(this, e);
980             }
981         }
982
983
984
985
986
987
988
989         // Resource Ready Signal
990
991         private EventHandler _resourcesLoadedEventHandler;
992         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
993         private delegate void ResourcesLoadedCallbackType(IntPtr control);
994         private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
995
996         /// <summary>
997         /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
998         /// This signal is emitted after all resources required by a view are loaded and ready.<br />
999         /// </summary>
1000         /// <since_tizen> 3 </since_tizen>
1001         public event EventHandler ResourcesLoaded
1002         {
1003             add
1004             {
1005                 if (_resourcesLoadedEventHandler == null)
1006                 {
1007                     _ResourcesLoadedCallback = OnResourcesLoaded;
1008                     this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
1009                 }
1010
1011                 _resourcesLoadedEventHandler += value;
1012             }
1013
1014             remove
1015             {
1016                 _resourcesLoadedEventHandler -= value;
1017
1018                 if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1019                 {
1020                     this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
1021                 }
1022             }
1023         }
1024
1025         private void OnResourcesLoaded(IntPtr view)
1026         {
1027             if (_resourcesLoadedEventHandler != null)
1028             {
1029                 _resourcesLoadedEventHandler(this, null);
1030             }
1031         }
1032
1033         internal IntPtr GetPtrfromView()
1034         {
1035             return (IntPtr)swigCPtr;
1036         }
1037
1038         internal class Property
1039         {
1040             internal static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
1041             internal static readonly int STATE = NDalicManualPINVOKE.View_Property_STATE_get();
1042             internal static readonly int SUB_STATE = NDalicManualPINVOKE.View_Property_SUB_STATE_get();
1043             internal static readonly int LEFT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
1044             internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
1045             internal static readonly int UP_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
1046             internal static readonly int DOWN_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
1047             internal static readonly int STYLE_NAME = NDalicPINVOKE.View_Property_STYLE_NAME_get();
1048             internal static readonly int BACKGROUND = NDalicPINVOKE.View_Property_BACKGROUND_get();
1049             internal static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
1050             internal static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
1051             internal static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
1052             internal static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
1053             internal static readonly int PARENT_ORIGIN = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_get();
1054             internal static readonly int PARENT_ORIGIN_X = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_X_get();
1055             internal static readonly int PARENT_ORIGIN_Y = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Y_get();
1056             internal static readonly int PARENT_ORIGIN_Z = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Z_get();
1057             internal static readonly int ANCHOR_POINT = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_get();
1058             internal static readonly int ANCHOR_POINT_X = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_X_get();
1059             internal static readonly int ANCHOR_POINT_Y = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Y_get();
1060             internal static readonly int ANCHOR_POINT_Z = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Z_get();
1061             internal static readonly int SIZE = NDalicPINVOKE.Actor_Property_SIZE_get();
1062             internal static readonly int SIZE_WIDTH = NDalicPINVOKE.Actor_Property_SIZE_WIDTH_get();
1063             internal static readonly int SIZE_HEIGHT = NDalicPINVOKE.Actor_Property_SIZE_HEIGHT_get();
1064             internal static readonly int SIZE_DEPTH = NDalicPINVOKE.Actor_Property_SIZE_DEPTH_get();
1065             internal static readonly int POSITION = NDalicPINVOKE.Actor_Property_POSITION_get();
1066             internal static readonly int POSITION_X = NDalicPINVOKE.Actor_Property_POSITION_X_get();
1067             internal static readonly int POSITION_Y = NDalicPINVOKE.Actor_Property_POSITION_Y_get();
1068             internal static readonly int POSITION_Z = NDalicPINVOKE.Actor_Property_POSITION_Z_get();
1069             internal static readonly int WORLD_POSITION = NDalicPINVOKE.Actor_Property_WORLD_POSITION_get();
1070             internal static readonly int WORLD_POSITION_X = NDalicPINVOKE.Actor_Property_WORLD_POSITION_X_get();
1071             internal static readonly int WORLD_POSITION_Y = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Y_get();
1072             internal static readonly int WORLD_POSITION_Z = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Z_get();
1073             internal static readonly int ORIENTATION = NDalicPINVOKE.Actor_Property_ORIENTATION_get();
1074             internal static readonly int WORLD_ORIENTATION = NDalicPINVOKE.Actor_Property_WORLD_ORIENTATION_get();
1075             internal static readonly int SCALE = NDalicPINVOKE.Actor_Property_SCALE_get();
1076             internal static readonly int SCALE_X = NDalicPINVOKE.Actor_Property_SCALE_X_get();
1077             internal static readonly int SCALE_Y = NDalicPINVOKE.Actor_Property_SCALE_Y_get();
1078             internal static readonly int SCALE_Z = NDalicPINVOKE.Actor_Property_SCALE_Z_get();
1079             internal static readonly int WORLD_SCALE = NDalicPINVOKE.Actor_Property_WORLD_SCALE_get();
1080             internal static readonly int VISIBLE = NDalicPINVOKE.Actor_Property_VISIBLE_get();
1081             internal static readonly int WORLD_COLOR = NDalicPINVOKE.Actor_Property_WORLD_COLOR_get();
1082             internal static readonly int WORLD_MATRIX = NDalicPINVOKE.Actor_Property_WORLD_MATRIX_get();
1083             internal static readonly int NAME = NDalicPINVOKE.Actor_Property_NAME_get();
1084             internal static readonly int SENSITIVE = NDalicPINVOKE.Actor_Property_SENSITIVE_get();
1085             internal static readonly int LEAVE_REQUIRED = NDalicPINVOKE.Actor_Property_LEAVE_REQUIRED_get();
1086             internal static readonly int INHERIT_ORIENTATION = NDalicPINVOKE.Actor_Property_INHERIT_ORIENTATION_get();
1087             internal static readonly int INHERIT_SCALE = NDalicPINVOKE.Actor_Property_INHERIT_SCALE_get();
1088             internal static readonly int DRAW_MODE = NDalicPINVOKE.Actor_Property_DRAW_MODE_get();
1089             internal static readonly int SIZE_MODE_FACTOR = NDalicPINVOKE.Actor_Property_SIZE_MODE_FACTOR_get();
1090             internal static readonly int WIDTH_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_WIDTH_RESIZE_POLICY_get();
1091             internal static readonly int HEIGHT_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_HEIGHT_RESIZE_POLICY_get();
1092             internal static readonly int SIZE_SCALE_POLICY = NDalicPINVOKE.Actor_Property_SIZE_SCALE_POLICY_get();
1093             internal static readonly int WIDTH_FOR_HEIGHT = NDalicPINVOKE.Actor_Property_WIDTH_FOR_HEIGHT_get();
1094             internal static readonly int HEIGHT_FOR_WIDTH = NDalicPINVOKE.Actor_Property_HEIGHT_FOR_WIDTH_get();
1095             internal static readonly int PADDING = NDalicPINVOKE.Actor_Property_PADDING_get();
1096             internal static readonly int MINIMUM_SIZE = NDalicPINVOKE.Actor_Property_MINIMUM_SIZE_get();
1097             internal static readonly int MAXIMUM_SIZE = NDalicPINVOKE.Actor_Property_MAXIMUM_SIZE_get();
1098             internal static readonly int INHERIT_POSITION = NDalicPINVOKE.Actor_Property_INHERIT_POSITION_get();
1099             internal static readonly int CLIPPING_MODE = NDalicPINVOKE.Actor_Property_CLIPPING_MODE_get();
1100             internal static readonly int INHERIT_LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
1101             internal static readonly int LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_LAYOUT_DIRECTION_get();
1102             internal static readonly int MARGIN = NDalicPINVOKE.View_Property_MARGIN_get();
1103             internal static readonly int PADDINGEX = NDalicPINVOKE.View_Property_PADDING_get();
1104         }
1105
1106         /// <summary>
1107         /// Describes the direction to move the focus towards.
1108         /// </summary>
1109         /// <since_tizen> 3 </since_tizen>
1110         public enum FocusDirection
1111         {
1112             /// <summary>
1113             /// Move keyboard focus towards the left direction.
1114             /// </summary>
1115             /// <since_tizen> 3 </since_tizen>
1116             Left,
1117             /// <summary>
1118             /// Move keyboard focus towards the right direction.
1119             /// </summary>
1120             /// <since_tizen> 3 </since_tizen>
1121             Right,
1122             /// <summary>
1123             /// Move keyboard focus towards the up direction.
1124             /// </summary>
1125             /// <since_tizen> 3 </since_tizen>
1126             Up,
1127             /// <summary>
1128             /// Move keyboard focus towards the down direction.
1129             /// </summary>
1130             /// <since_tizen> 3 </since_tizen>
1131             Down,
1132             /// <summary>
1133             /// Move keyboard focus towards the previous page direction.
1134             /// </summary>
1135             /// <since_tizen> 3 </since_tizen>
1136             PageUp,
1137             /// <summary>
1138             /// Move keyboard focus towards the next page direction.
1139             /// </summary>
1140             /// <since_tizen> 3 </since_tizen>
1141             PageDown
1142         }
1143
1144         /// <summary>
1145         /// Creates a new instance of a view.
1146         /// </summary>
1147         /// <since_tizen> 3 </since_tizen>
1148         public View() : this(NDalicPINVOKE.View_New(), true)
1149         {
1150             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1151
1152         }
1153         internal View(View uiControl) : this(NDalicPINVOKE.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1154         {
1155             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1156         }
1157
1158         /// <summary>
1159         /// Downcasts a handle to view handle.<br />
1160         /// If handle points to a view, the downcast produces a valid handle.<br />
1161         /// If not, the returned handle is left uninitialized.<br />
1162         /// </summary>
1163         /// <param name="handle">A handle to an object.</param>
1164         /// <returns>A handle to a view or an uninitialized handle.</returns>
1165         /// <since_tizen> 3 </since_tizen>
1166         [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1167         [EditorBrowsable(EditorBrowsableState.Never)]
1168         public static View DownCast(BaseHandle handle)
1169         {
1170             View ret =  Registry.GetManagedBaseHandleFromNativePtr(handle) as View;
1171             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1172             return ret;
1173         }
1174
1175         /// <summary>
1176         /// [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1177         /// </summary>
1178         /// <since_tizen> 3 </since_tizen>
1179         [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1180         [EditorBrowsable(EditorBrowsableState.Never)]
1181         public static T DownCast<T>(View view) where T : View
1182         {
1183             T ret = Registry.GetManagedBaseHandleFromNativePtr(view) as T;
1184             if (ret != null)
1185             {
1186                 return ret;
1187             }
1188             return null;
1189         }
1190
1191         private View ConvertIdToView(uint id)
1192         {
1193             View view = null;
1194
1195             if (Parent is View)
1196             {
1197                 View parentView = Parent as View;
1198                 view = parentView.FindChildById(id);
1199             }
1200
1201             if (!view)
1202             {
1203                 view = Window.Instance.GetRootLayer().FindChildById(id);
1204             }
1205
1206             return view;
1207         }
1208
1209         internal void SetKeyInputFocus()
1210         {
1211             NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
1212             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1213         }
1214
1215         /// <summary>
1216         /// Queries whether the view has a focus.
1217         /// </summary>
1218         /// <returns>True if this view has a focus.</returns>
1219         /// <since_tizen> 3 </since_tizen>
1220         public bool HasFocus()
1221         {
1222             bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
1223             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1224             return ret;
1225         }
1226
1227         internal void ClearKeyInputFocus()
1228         {
1229             NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
1230             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1231         }
1232
1233         internal PinchGestureDetector GetPinchGestureDetector()
1234         {
1235             PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
1236             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1237             return ret;
1238         }
1239
1240         internal PanGestureDetector GetPanGestureDetector()
1241         {
1242             PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
1243             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1244             return ret;
1245         }
1246
1247         internal TapGestureDetector GetTapGestureDetector()
1248         {
1249             TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
1250             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1251             return ret;
1252         }
1253
1254         internal LongPressGestureDetector GetLongPressGestureDetector()
1255         {
1256             LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
1257             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1258             return ret;
1259         }
1260
1261         /// <summary>
1262         /// Sets the name of the style to be applied to the view.
1263         /// </summary>
1264         /// <param name="styleName">A string matching a style described in a stylesheet.</param>
1265         /// <since_tizen> 3 </since_tizen>
1266         public void SetStyleName(string styleName)
1267         {
1268             NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
1269             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1270         }
1271
1272         /// <summary>
1273         /// Retrieves the name of the style to be applied to the view (if any).
1274         /// </summary>
1275         /// <returns>A string matching a style, or an empty string.</returns>
1276         /// <since_tizen> 3 </since_tizen>
1277         public string GetStyleName()
1278         {
1279             string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
1280             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1281             return ret;
1282         }
1283
1284         internal void SetBackgroundColor(Vector4 color)
1285         {
1286             NDalicPINVOKE.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
1287             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1288         }
1289
1290         internal Vector4 GetBackgroundColor()
1291         {
1292             Vector4 ret = new Vector4(NDalicPINVOKE.View_GetBackgroundColor(swigCPtr), true);
1293             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1294             return ret;
1295         }
1296
1297         internal void SetBackgroundImage(Image image)
1298         {
1299             NDalicPINVOKE.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
1300             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1301         }
1302
1303         /// <summary>
1304         /// Clears the background.
1305         /// </summary>
1306         /// <since_tizen> 3 </since_tizen>
1307         public void ClearBackground()
1308         {
1309             NDalicPINVOKE.View_ClearBackground(swigCPtr);
1310             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1311         }
1312
1313         internal ControlKeySignal KeyEventSignal()
1314         {
1315             ControlKeySignal ret = new ControlKeySignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
1316             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1317             return ret;
1318         }
1319
1320         internal KeyInputFocusSignal KeyInputFocusGainedSignal()
1321         {
1322             KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
1323             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1324             return ret;
1325         }
1326
1327         internal KeyInputFocusSignal KeyInputFocusLostSignal()
1328         {
1329             KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
1330             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1331             return ret;
1332         }
1333
1334         internal View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1335         {
1336             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1337         }
1338
1339         internal enum PropertyRange
1340         {
1341             PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1342             CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1343             CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1344         }
1345
1346         /// <summary>
1347         /// The StyleName, type string.
1348         /// </summary>
1349         /// <since_tizen> 3 </since_tizen>
1350         public string StyleName
1351         {
1352             get
1353             {
1354                 string temp;
1355                 GetProperty(View.Property.STYLE_NAME).Get(out temp);
1356                 return temp;
1357             }
1358             set
1359             {
1360                 SetProperty(View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue(value));
1361             }
1362         }
1363
1364         /// <summary>
1365         /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
1366         /// </summary>
1367         /// <since_tizen> 3 </since_tizen>
1368         public Color BackgroundColor
1369         {
1370             get
1371             {
1372                 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1373
1374                 Tizen.NUI.PropertyMap background = Background;
1375                 int visualType = 0;
1376                 background.Find(Visual.Property.Type)?.Get(out visualType);
1377                 if (visualType == (int)Visual.Type.Color)
1378                 {
1379                     background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
1380                 }
1381
1382                 return backgroundColor;
1383             }
1384             set
1385             {
1386                 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1387             }
1388         }
1389
1390         /// <summary>
1391         /// Creates an animation to animate the background color visual. If there is no
1392         /// background visual, creates one with transparent black as it's mixColor.
1393         /// </summary>
1394         /// <since_tizen> 3 </since_tizen>
1395         public Animation AnimateBackgroundColor( object destinationValue,
1396                                                  int startTime,
1397                                                  int endTime,
1398                                                  AlphaFunction.BuiltinFunctions? alphaFunction = null,
1399                                                  object initialValue = null)
1400         {
1401             Tizen.NUI.PropertyMap background = Background;
1402
1403             if( background.Empty() )
1404             {
1405                 // If there is no background yet, ensure there is a transparent
1406                 // color visual
1407                 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1408                 background = Background;
1409             }
1410             return AnimateColor( "background", destinationValue, startTime, endTime, alphaFunction, initialValue );
1411         }
1412
1413         /// <summary>
1414         /// Creates an animation to animate the mixColor of the named visual.
1415         /// </summary>
1416         /// <since_tizen> 3 </since_tizen>
1417         public Animation AnimateColor( string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null )
1418         {
1419             Animation animation = null;
1420             {
1421                 PropertyMap _animator = new PropertyMap();
1422                 if( alphaFunction != null )
1423                 {
1424                     _animator.Add("alphaFunction", new PropertyValue( AlphaFunction.BuiltinToPropertyKey(alphaFunction) ) );
1425                 }
1426
1427                 PropertyMap _timePeriod = new PropertyMap();
1428                 _timePeriod.Add( "duration", new PropertyValue((endTime-startTime)/1000.0f) );
1429                 _timePeriod.Add( "delay", new PropertyValue( startTime/1000.0f ) );
1430                 _animator.Add( "timePeriod", new PropertyValue( _timePeriod ) );
1431
1432                 PropertyMap _transition = new PropertyMap();
1433                 _transition.Add( "animator", new PropertyValue( _animator ) );
1434                 _transition.Add( "target", new PropertyValue( targetVisual ) );
1435                 _transition.Add( "property", new PropertyValue( "mixColor" ) );
1436
1437                 if( initialColor != null )
1438                 {
1439                     PropertyValue initValue = PropertyValue.CreateFromObject( initialColor );
1440                     _transition.Add( "initialValue", initValue );
1441                 }
1442
1443                 PropertyValue destValue = PropertyValue.CreateFromObject( destinationColor );
1444                 _transition.Add( "targetValue", destValue );
1445                 TransitionData _transitionData = new TransitionData( _transition );
1446
1447                 animation = new Animation( NDalicManualPINVOKE.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true );
1448                 if (NDalicPINVOKE.SWIGPendingException.Pending)
1449                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1450             }
1451             return animation;
1452         }
1453
1454         /// <summary>
1455         /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
1456         /// </summary>
1457         /// <since_tizen> 3 </since_tizen>
1458         public string BackgroundImage
1459         {
1460             get
1461             {
1462                 string backgroundImage = "";
1463
1464                 Tizen.NUI.PropertyMap background = Background;
1465                 int visualType = 0;
1466                 background.Find(Visual.Property.Type)?.Get(out visualType);
1467                 if (visualType == (int)Visual.Type.Image)
1468                 {
1469                     background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
1470                 }
1471
1472                 return backgroundImage;
1473             }
1474             set
1475             {
1476                 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1477             }
1478         }
1479
1480         /// <summary>
1481         /// The background of view.
1482         /// </summary>
1483         /// <since_tizen> 3 </since_tizen>
1484         public Tizen.NUI.PropertyMap Background
1485         {
1486             get
1487             {
1488                 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1489                 GetProperty( View.Property.BACKGROUND ).Get(temp);
1490                 return temp;
1491             }
1492             set
1493             {
1494                 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1495             }
1496         }
1497
1498
1499         /// <summary>
1500         /// The current state of the view.
1501         /// </summary>
1502         /// <since_tizen> 3 </since_tizen>
1503         public States State
1504         {
1505             get
1506             {
1507                 int temp = 0;
1508                 if (GetProperty(View.Property.STATE).Get(out temp) == false)
1509                 {
1510                     NUILog.Error("State get error!");
1511                 }
1512                 switch (temp)
1513                 {
1514                     case 0:
1515                     {
1516                         return States.Normal;
1517                     }
1518                     case 1:
1519                     {
1520                         return States.Focused;
1521                     }
1522                     case 2:
1523                     {
1524                         return States.Disabled;
1525                     }
1526                     default:
1527                     {
1528                         return States.Normal;
1529                     }
1530                 }
1531             }
1532             set
1533             {
1534                 SetProperty(View.Property.STATE, new Tizen.NUI.PropertyValue((int)value));
1535             }
1536         }
1537
1538         /// <summary>
1539         /// The current sub state of the view.
1540         /// </summary>
1541         /// <since_tizen> 3 </since_tizen>
1542         public States SubState
1543         {
1544             get
1545             {
1546                 string temp;
1547                 if (GetProperty(View.Property.SUB_STATE).Get(out temp) == false)
1548                 {
1549                     NUILog.Error("subState get error!");
1550                 }
1551                 switch (temp)
1552                 {
1553                     case "NORMAL":
1554                         return States.Normal;
1555                     case "FOCUSED":
1556                         return States.Focused;
1557                     case "DISABLED":
1558                         return States.Disabled;
1559                     default:
1560                         return States.Normal;
1561                 }
1562             }
1563             set
1564             {
1565                 string valueToString = "";
1566                 switch (value)
1567                 {
1568                     case States.Normal:
1569                     {
1570                         valueToString = "NORMAL";
1571                         break;
1572                     }
1573                     case States.Focused:
1574                     {
1575                         valueToString = "FOCUSED";
1576                         break;
1577                     }
1578                     case States.Disabled:
1579                     {
1580                         valueToString = "DISABLED";
1581                         break;
1582                     }
1583                     default:
1584                     {
1585                         valueToString = "NORMAL";
1586                         break;
1587                     }
1588                 }
1589                 SetProperty(View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
1590             }
1591         }
1592
1593         /// <summary>
1594         /// Displays a tooltip
1595         /// </summary>
1596         /// <since_tizen> 3 </since_tizen>
1597         public Tizen.NUI.PropertyMap Tooltip
1598         {
1599             get
1600             {
1601                 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1602                 GetProperty(View.Property.TOOLTIP).Get(temp);
1603                 return temp;
1604             }
1605             set
1606             {
1607                 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1608             }
1609         }
1610
1611         /// <summary>
1612         /// Displays a tooltip as a text.
1613         /// </summary>
1614         /// <since_tizen> 3 </since_tizen>
1615         public string TooltipText
1616         {
1617             set
1618             {
1619                 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1620             }
1621         }
1622
1623         private int LeftFocusableViewId
1624         {
1625             get
1626             {
1627                 int temp = 0;
1628                 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
1629                 return temp;
1630             }
1631             set
1632             {
1633                 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1634             }
1635         }
1636
1637         private int RightFocusableViewId
1638         {
1639             get
1640             {
1641                 int temp = 0;
1642                 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
1643                 return temp;
1644             }
1645             set
1646             {
1647                 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1648             }
1649         }
1650
1651         private int UpFocusableViewId
1652         {
1653             get
1654             {
1655                 int temp = 0;
1656                 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
1657                 return temp;
1658             }
1659             set
1660             {
1661                 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1662             }
1663         }
1664
1665         private int DownFocusableViewId
1666         {
1667             get
1668             {
1669                 int temp = 0;
1670                 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
1671                 return temp;
1672             }
1673             set
1674             {
1675                 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1676             }
1677         }
1678
1679         /// <summary>
1680         /// The Child property of FlexContainer.<br />
1681         /// The proportion of the free space in the container, the flex item will receive.<br />
1682         /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
1683         /// </summary>
1684         /// <since_tizen> 3 </since_tizen>
1685         public float Flex
1686         {
1687             get
1688             {
1689                 float temp = 0.0f;
1690                 GetProperty(FlexContainer.ChildProperty.FLEX).Get(out temp);
1691                 return temp;
1692             }
1693             set
1694             {
1695                 SetProperty(FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue(value));
1696             }
1697         }
1698
1699         /// <summary>
1700         /// The Child property of FlexContainer.<br />
1701         /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
1702         /// </summary>
1703         /// <since_tizen> 3 </since_tizen>
1704         public int AlignSelf
1705         {
1706             get
1707             {
1708                 int temp = 0;
1709                 GetProperty(FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
1710                 return temp;
1711             }
1712             set
1713             {
1714                 SetProperty(FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue(value));
1715             }
1716         }
1717
1718         /// <summary>
1719         /// The Child property of FlexContainer.<br />
1720         /// The space around the flex item.<br />
1721         /// </summary>
1722         /// <since_tizen> 3 </since_tizen>
1723         public Vector4 FlexMargin
1724         {
1725             get
1726             {
1727                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1728                 GetProperty(FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
1729                 return temp;
1730             }
1731             set
1732             {
1733                 SetProperty(FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue(value));
1734             }
1735         }
1736
1737         /// <summary>
1738         /// The top-left cell this child occupies, if not set, the first available cell is used.
1739         /// </summary>
1740         /// <since_tizen> 3 </since_tizen>
1741         public Vector2 CellIndex
1742         {
1743             get
1744             {
1745                 Vector2 temp = new Vector2(0.0f, 0.0f);
1746                 GetProperty(TableView.ChildProperty.CELL_INDEX).Get(temp);
1747                 return temp;
1748             }
1749             set
1750             {
1751                 SetProperty(TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue(value));
1752             }
1753         }
1754
1755         /// <summary>
1756         /// The number of rows this child occupies, if not set, the default value is 1.
1757         /// </summary>
1758         /// <since_tizen> 3 </since_tizen>
1759         public float RowSpan
1760         {
1761             get
1762             {
1763                 float temp = 0.0f;
1764                 GetProperty(TableView.ChildProperty.ROW_SPAN).Get(out temp);
1765                 return temp;
1766             }
1767             set
1768             {
1769                 SetProperty(TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue(value));
1770             }
1771         }
1772
1773         /// <summary>
1774         /// The number of columns this child occupies, if not set, the default value is 1.
1775         /// </summary>
1776         /// <since_tizen> 3 </since_tizen>
1777         public float ColumnSpan
1778         {
1779             get
1780             {
1781                 float temp = 0.0f;
1782                 GetProperty(TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
1783                 return temp;
1784             }
1785             set
1786             {
1787                 SetProperty(TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue(value));
1788             }
1789         }
1790
1791         /// <summary>
1792         /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
1793         /// </summary>
1794         /// <since_tizen> 3 </since_tizen>
1795         public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
1796         {
1797             get
1798             {
1799                 string temp;
1800                 if (GetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
1801                 {
1802                     NUILog.Error("CellHorizontalAlignment get error!");
1803                 }
1804
1805                 switch (temp)
1806                 {
1807                     case "left":
1808                         return Tizen.NUI.HorizontalAlignmentType.Left;
1809                     case "center":
1810                         return Tizen.NUI.HorizontalAlignmentType.Center;
1811                     case "right":
1812                         return Tizen.NUI.HorizontalAlignmentType.Right;
1813                     default:
1814                         return Tizen.NUI.HorizontalAlignmentType.Left;
1815                 }
1816             }
1817             set
1818             {
1819                 string valueToString = "";
1820                 switch (value)
1821                 {
1822                     case Tizen.NUI.HorizontalAlignmentType.Left:
1823                     {
1824                         valueToString = "left";
1825                         break;
1826                     }
1827                     case Tizen.NUI.HorizontalAlignmentType.Center:
1828                     {
1829                         valueToString = "center";
1830                         break;
1831                     }
1832                     case Tizen.NUI.HorizontalAlignmentType.Right:
1833                     {
1834                         valueToString = "right";
1835                         break;
1836                     }
1837                     default:
1838                     {
1839                         valueToString = "left";
1840                         break;
1841                     }
1842                 }
1843                 SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1844             }
1845         }
1846
1847         /// <summary>
1848         /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
1849         /// </summary>
1850         /// <since_tizen> 3 </since_tizen>
1851         public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
1852         {
1853             get
1854             {
1855                 string temp;
1856                 GetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
1857                 {
1858                     NUILog.Error("CellVerticalAlignment get error!");
1859                 }
1860
1861                 switch (temp)
1862                 {
1863                     case "top":
1864                         return Tizen.NUI.VerticalAlignmentType.Top;
1865                     case "center":
1866                         return Tizen.NUI.VerticalAlignmentType.Center;
1867                     case "bottom":
1868                         return Tizen.NUI.VerticalAlignmentType.Bottom;
1869                     default:
1870                         return Tizen.NUI.VerticalAlignmentType.Top;
1871                 }
1872             }
1873             set
1874             {
1875                 string valueToString = "";
1876                 switch (value)
1877                 {
1878                     case Tizen.NUI.VerticalAlignmentType.Top:
1879                     {
1880                         valueToString = "top";
1881                         break;
1882                     }
1883                     case Tizen.NUI.VerticalAlignmentType.Center:
1884                     {
1885                         valueToString = "center";
1886                         break;
1887                     }
1888                     case Tizen.NUI.VerticalAlignmentType.Bottom:
1889                     {
1890                         valueToString = "bottom";
1891                         break;
1892                     }
1893                     default:
1894                     {
1895                         valueToString = "top";
1896                         break;
1897                     }
1898                 }
1899                 SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1900             }
1901         }
1902
1903         /// <summary>
1904         /// The left focusable view.<br />
1905         /// This will return null if not set.<br />
1906         /// This will also return null if the specified left focusable view is not on a window.<br />
1907         /// </summary>
1908         /// <since_tizen> 3 </since_tizen>
1909         public View LeftFocusableView
1910         {
1911             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1912             get
1913             {
1914                 if (LeftFocusableViewId >= 0)
1915                 {
1916                     return ConvertIdToView((uint)LeftFocusableViewId);
1917                 }
1918                 return null;
1919             }
1920             set
1921             {
1922                 if(value)
1923                 {
1924                     LeftFocusableViewId = (int)value.GetId();
1925                 }
1926                 else
1927                 {
1928                     LeftFocusableViewId = -1;
1929                 }
1930             }
1931         }
1932
1933         /// <summary>
1934         /// The right focusable view.<br />
1935         /// This will return null if not set.<br />
1936         /// This will also return null if the specified right focusable view is not on a window.<br />
1937         /// </summary>
1938         /// <since_tizen> 3 </since_tizen>
1939         public View RightFocusableView
1940         {
1941             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1942             get
1943             {
1944                 if (RightFocusableViewId >= 0)
1945                 {
1946                     return ConvertIdToView((uint)RightFocusableViewId);
1947                 }
1948                 return null;
1949             }
1950             set
1951             {
1952                 if(value)
1953                 {
1954                     RightFocusableViewId = (int)value.GetId();
1955                 }
1956                 else
1957                 {
1958                     RightFocusableViewId = -1;
1959                 }
1960             }
1961         }
1962
1963         /// <summary>
1964         /// The up focusable view.<br />
1965         /// This will return null if not set.<br />
1966         /// This will also return null if the specified up focusable view is not on a window.<br />
1967         /// </summary>
1968         /// <since_tizen> 3 </since_tizen>
1969         public View UpFocusableView
1970         {
1971             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1972             get
1973             {
1974                 if (UpFocusableViewId >= 0)
1975                 {
1976                     return ConvertIdToView((uint)UpFocusableViewId);
1977                 }
1978                 return null;
1979             }
1980             set
1981             {
1982                 if(value)
1983                 {
1984                     UpFocusableViewId = (int)value.GetId();
1985                 }
1986                 else
1987                 {
1988                     UpFocusableViewId = -1;
1989                 }
1990             }
1991         }
1992
1993         /// <summary>
1994         /// The down focusable view.<br />
1995         /// This will return null if not set.<br />
1996         /// This will also return null if the specified down focusable view is not on a window.<br />
1997         /// </summary>
1998         /// <since_tizen> 3 </since_tizen>
1999         public View DownFocusableView
2000         {
2001             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2002             get
2003             {
2004                 if (DownFocusableViewId >= 0)
2005                 {
2006                     return ConvertIdToView((uint)DownFocusableViewId);
2007                 }
2008                 return null;
2009             }
2010             set
2011             {
2012                 if(value)
2013                 {
2014                     DownFocusableViewId = (int)value.GetId();
2015                 }
2016                 else
2017                 {
2018                     DownFocusableViewId = -1;
2019                 }
2020             }
2021         }
2022
2023         /// <summary>
2024         /// Whether the view should be focusable by keyboard navigation.
2025         /// </summary>
2026         /// <since_tizen> 3 </since_tizen>
2027         public bool Focusable
2028         {
2029             set
2030             {
2031                 SetKeyboardFocusable(value);
2032             }
2033             get
2034             {
2035                 return IsKeyboardFocusable();
2036             }
2037         }
2038
2039         /// <summary>
2040         /// Enumeration for describing the states of the view.
2041         /// </summary>
2042         /// <since_tizen> 3 </since_tizen>
2043         public enum States
2044         {
2045             /// <summary>
2046             /// The normal state.
2047             /// </summary>
2048             Normal,
2049             /// <summary>
2050             /// The focused state.
2051             /// </summary>
2052             Focused,
2053             /// <summary>
2054             /// The disabled state.
2055             /// </summary>
2056             Disabled
2057         }
2058
2059         /// <summary>
2060         ///  Retrieves the position of the view.<br />
2061         ///  The coordinates are relative to the view's parent.<br />
2062         /// </summary>
2063         /// <since_tizen> 3 </since_tizen>
2064         public Position CurrentPosition
2065         {
2066             get
2067             {
2068                 return GetCurrentPosition();
2069             }
2070         }
2071
2072         /// <summary>
2073         /// Sets the size of a view for the width and the height.<br />
2074         /// Geometry can be scaled to fit within this area.<br />
2075         /// This does not interfere with the view's scale factor.<br />
2076         /// The views default depth is the minimum of width and height.<br />
2077         /// </summary>
2078         /// <since_tizen> 3 </since_tizen>
2079         public Size2D Size2D
2080         {
2081             get
2082             {
2083                 Size temp = new Size(0.0f, 0.0f, 0.0f);
2084                 GetProperty(View.Property.SIZE).Get(temp);
2085                 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
2086                 return size;
2087             }
2088             set
2089             {
2090                 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size(value)));
2091             }
2092         }
2093
2094         /// <summary>
2095         ///  Retrieves the size of the view.<br />
2096         ///  The coordinates are relative to the view's parent.<br />
2097         /// </summary>
2098         /// <since_tizen> 3 </since_tizen>
2099         public Size2D CurrentSize
2100         {
2101             get
2102             {
2103                 return GetCurrentSize();
2104             }
2105         }
2106
2107         /// <summary>
2108         /// [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
2109         /// </summary>
2110         /// <since_tizen> 3 </since_tizen>
2111         [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
2112         [EditorBrowsable(EditorBrowsableState.Never)]
2113         public bool Visible
2114         {
2115             get
2116             {
2117                 return IsVisible();
2118             }
2119         }
2120
2121         /// <summary>
2122         /// Retrieves and sets the view's opacity.<br />
2123         /// </summary>
2124         /// <since_tizen> 3 </since_tizen>
2125         public float Opacity
2126         {
2127             get
2128             {
2129                 float temp = 0.0f;
2130                 GetProperty(View.Property.OPACITY).Get(out temp);
2131                 return temp;
2132             }
2133             set
2134             {
2135                 SetProperty(View.Property.OPACITY, new Tizen.NUI.PropertyValue(value));
2136             }
2137         }
2138
2139         /// <summary>
2140         /// Sets the position of the view for X and Y.<br />
2141         /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2142         /// If the position inheritance is disabled, sets the world position.<br />
2143         /// </summary>
2144         /// <since_tizen> 3 </since_tizen>
2145         public Position2D Position2D
2146         {
2147             get
2148             {
2149                 Position temp = new Position(0.0f, 0.0f, 0.0f);
2150                 GetProperty(View.Property.POSITION).Get(temp);
2151                 return new Position2D(temp);
2152             }
2153             set
2154             {
2155                 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position(value)));
2156             }
2157         }
2158
2159         /// <summary>
2160         /// Retrieves the screen postion of the view.<br />
2161         /// </summary>
2162         /// <since_tizen> 3 </since_tizen>
2163         public Vector2 ScreenPosition
2164         {
2165             get
2166             {
2167                 Vector2 temp = new Vector2(0.0f, 0.0f);
2168                 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2169                 return temp;
2170             }
2171         }
2172
2173         /// <summary>
2174         /// Determines whether the pivot point should be used to determine the position of the view.
2175         /// This is true by default.
2176         /// </summary>
2177         /// <remarks>If false, then the top-left of the view is used for the position.
2178         /// Setting this to false will allow scaling or rotation around the anchor-point without affecting the view's position.
2179         /// </remarks>
2180         /// <since_tizen> 3 </since_tizen>
2181         public bool PositionUsesPivotPoint
2182         {
2183             get
2184             {
2185                 bool temp = false;
2186                 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2187                 return temp;
2188             }
2189             set
2190             {
2191                 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2192             }
2193         }
2194
2195         /// <summary>
2196         /// Please do not use! this will be deprecated.
2197         /// </summary>
2198         /// Please do not use! this will be deprecated!
2199         /// Instead please use PositionUsesPivotPoint.
2200         /// <since_tizen> 3 </since_tizen>
2201         [Obsolete("Please do not use! this will be deprecated, instead please use PositionUsesPivotPoint")]
2202         [EditorBrowsable(EditorBrowsableState.Never)]
2203         public bool PositionUsesAnchorPoint
2204         {
2205             get
2206             {
2207                 bool temp = false;
2208                 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2209                 return temp;
2210             }
2211             set
2212             {
2213                 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2214             }
2215         }
2216
2217         internal bool FocusState
2218         {
2219             get
2220             {
2221                 return IsKeyboardFocusable();
2222             }
2223             set
2224             {
2225                 SetKeyboardFocusable(value);
2226             }
2227         }
2228
2229         /// <summary>
2230         /// Queries whether the view is connected to the stage.<br />
2231         /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2232         /// </summary>
2233         /// <since_tizen> 3 </since_tizen>
2234         public bool IsOnWindow
2235         {
2236             get
2237             {
2238                 return OnWindow();
2239             }
2240         }
2241
2242         /// <summary>
2243         /// Gets the depth in the hierarchy for the view.
2244         /// </summary>
2245         /// <since_tizen> 3 </since_tizen>
2246         public int HierarchyDepth
2247         {
2248             get
2249             {
2250                 return GetHierarchyDepth();
2251             }
2252         }
2253
2254         /// <summary>
2255         /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2256         /// </summary>
2257         /// <remarks>
2258         /// Note the initial value is 0.
2259         /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2260         /// The values set by this property will likely change.
2261         /// </remarks>
2262         /// <since_tizen> 3 </since_tizen>
2263         public int SiblingOrder
2264         {
2265             get
2266             {
2267                 int temp = 0;
2268                 GetProperty(View.Property.SIBLING_ORDER).Get(out temp);
2269                 return temp;
2270             }
2271             set
2272             {
2273                 SetProperty(View.Property.SIBLING_ORDER, new Tizen.NUI.PropertyValue(value));
2274             }
2275         }
2276
2277         /// <summary>
2278         /// Returns the natural size of the view.
2279         /// </summary>
2280         /// <remarks>
2281         /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2282         /// </remarks>
2283         /// /// Please do not use! this will be deprecated!
2284         /// Instead please use NaturalSize2D.
2285         /// <since_tizen> 3 </since_tizen>
2286         [Obsolete("Please do not use! this will be deprecated, please use NaturalSize2D instead")]
2287         [EditorBrowsable(EditorBrowsableState.Never)]
2288         public Vector3 NaturalSize
2289         {
2290             get
2291             {
2292                 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2293                 if (NDalicPINVOKE.SWIGPendingException.Pending)
2294                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2295                 return ret;
2296             }
2297         }
2298
2299         /// <summary>
2300         /// Returns the natural size (Size2D) of the view.
2301         /// </summary>
2302         /// <remarks>
2303         /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2304         /// </remarks>
2305         /// <since_tizen> 4 </since_tizen>
2306         public Size2D NaturalSize2D
2307         {
2308             get
2309             {
2310                 Vector3 temp = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2311                 if (NDalicPINVOKE.SWIGPendingException.Pending)
2312                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2313
2314                 return new Size2D((int)temp.Width, (int)temp.Height);
2315             }
2316         }
2317
2318         /// <summary>
2319         /// Shows the view.
2320         /// </summary>
2321         /// <remarks>
2322         /// This is an asynchronous method.
2323         /// </remarks>
2324         /// <since_tizen> 3 </since_tizen>
2325         public void Show()
2326         {
2327             SetVisible(true);
2328         }
2329
2330         /// <summary>
2331         /// Hides the view.
2332         /// </summary>
2333         /// <remarks>
2334         /// This is an asynchronous method.
2335         /// If the view is hidden, then the view and its children will not be rendered.
2336         /// This is regardless of the individual visibility of the children, i.e., the view will only be rendered if all of its parents are shown.
2337         /// </remarks>
2338         /// <since_tizen> 3 </since_tizen>
2339         public void Hide()
2340         {
2341             SetVisible(false);
2342         }
2343
2344         internal void Raise()
2345         {
2346             var parentChildren = Parent?.Children;
2347
2348             if (parentChildren != null)
2349             {
2350                 int currentIndex = parentChildren.IndexOf(this);
2351
2352                 // If the view is not already the last item in the list.
2353                 if (currentIndex != parentChildren.Count -1)
2354                 {
2355                     View temp = parentChildren[currentIndex + 1];
2356                     parentChildren[currentIndex + 1] = this;
2357                     parentChildren[currentIndex] = temp;
2358                 }
2359             }
2360
2361             NDalicPINVOKE.Raise(swigCPtr);
2362             if (NDalicPINVOKE.SWIGPendingException.Pending)
2363                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2364         }
2365
2366         internal void Lower()
2367         {
2368             var parentChildren = Parent?.Children;
2369
2370             if (parentChildren != null)
2371             {
2372                 int currentIndex = parentChildren.IndexOf(this);
2373
2374                 // If the view is not already the first item in the list.
2375                 if (currentIndex > 0)
2376                 {
2377                     View temp = parentChildren[currentIndex - 1];
2378                     parentChildren[currentIndex - 1] = this;
2379                     parentChildren[currentIndex] = temp;
2380                 }
2381             }
2382
2383             NDalicPINVOKE.Lower(swigCPtr);
2384             if (NDalicPINVOKE.SWIGPendingException.Pending)
2385                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2386         }
2387
2388         /// <summary>
2389         /// Raises the view above all other views.
2390         /// </summary>
2391         /// <remarks>
2392         /// Sibling order of views within the parent will be updated automatically.
2393         /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
2394         /// </remarks>
2395         /// <since_tizen> 3 </since_tizen>
2396         public void RaiseToTop()
2397         {
2398             var parentChildren = Parent?.Children;
2399
2400             if (parentChildren != null)
2401             {
2402                 parentChildren.Remove(this);
2403                 parentChildren.Add(this);
2404             }
2405
2406             NDalicPINVOKE.RaiseToTop(swigCPtr);
2407             if (NDalicPINVOKE.SWIGPendingException.Pending)
2408                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2409         }
2410
2411         /// <summary>
2412         /// Lowers the view to the bottom of all views.
2413         /// </summary>
2414         /// <remarks>
2415         /// The sibling order of views within the parent will be updated automatically.
2416         /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2417         /// </remarks>
2418         /// <since_tizen> 3 </since_tizen>
2419         public void LowerToBottom()
2420         {
2421             var parentChildren = Parent?.Children;
2422
2423             if (parentChildren != null)
2424             {
2425                 parentChildren.Remove(this);
2426                 parentChildren.Insert(0, this);
2427             }
2428
2429             NDalicPINVOKE.LowerToBottom(swigCPtr);
2430             if (NDalicPINVOKE.SWIGPendingException.Pending)
2431                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2432         }
2433
2434         /// <summary>
2435         /// Queries if all resources required by a view are loaded and ready.
2436         /// </summary>
2437         /// <remarks>Most resources are only loaded when the control is placed on the stage.
2438         /// </remarks>
2439         /// <since_tizen> 3 </since_tizen>
2440         public bool IsResourceReady()
2441         {
2442             bool ret = NDalicPINVOKE.IsResourceReady(swigCPtr);
2443             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2444             return ret;
2445         }
2446
2447         /// <summary>
2448         /// Raises the view to above the target view.
2449         /// </summary>
2450         /// <remarks>The sibling order of views within the parent will be updated automatically.
2451         /// Views on the level above the target view will still be shown above this view.
2452         /// Raising this view above views with the same sibling order as each other will raise this view above them.
2453         /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2454         /// </remarks>
2455         /// <param name="target">Will be raised above this view.</param>
2456         internal void RaiseAbove(View target)
2457         {
2458             var parentChildren = Parent?.Children;
2459
2460             if (parentChildren != null)
2461             {
2462                 int currentIndex = parentChildren.IndexOf(this);
2463                 int targetIndex = parentChildren.IndexOf(target);
2464
2465                 // If the currentIndex is less than the target index and the target has the same parent.
2466                 if (currentIndex < targetIndex)
2467                 {
2468                     parentChildren.Remove(this);
2469                     parentChildren.Insert(targetIndex, this);
2470                 }
2471             }
2472
2473             NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
2474             if (NDalicPINVOKE.SWIGPendingException.Pending)
2475                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2476         }
2477
2478         /// <summary>
2479         /// Lowers the view to below the target view.
2480         /// </summary>
2481         /// <remarks>The sibling order of views within the parent will be updated automatically.
2482         /// Lowering this view below views with the same sibling order as each other will lower this view above them.
2483         /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2484         /// </remarks>
2485         /// <param name="target">Will be lowered below this view.</param>
2486         internal void LowerBelow(View target)
2487         {
2488             var parentChildren = Parent?.Children;
2489
2490             if (parentChildren != null)
2491             {
2492                 int currentIndex = parentChildren.IndexOf(this);
2493                 int targetIndex = parentChildren.IndexOf(target);
2494
2495                 // If the currentIndex is not already the 0th index and the target has the same parent.
2496                 if ((currentIndex != 0) && (targetIndex != -1) &&
2497                     (currentIndex > targetIndex))
2498                 {
2499                     parentChildren.Remove(this);
2500                     parentChildren.Insert(targetIndex, this);
2501                 }
2502             }
2503
2504             NDalicPINVOKE.LowerBelow(swigCPtr, View.getCPtr(target));
2505             if (NDalicPINVOKE.SWIGPendingException.Pending)
2506                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2507         }
2508
2509         internal string GetName()
2510         {
2511             string ret = NDalicPINVOKE.Actor_GetName(swigCPtr);
2512             if (NDalicPINVOKE.SWIGPendingException.Pending)
2513                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2514             return ret;
2515         }
2516
2517         internal void SetName(string name)
2518         {
2519             NDalicPINVOKE.Actor_SetName(swigCPtr, name);
2520             if (NDalicPINVOKE.SWIGPendingException.Pending)
2521                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2522         }
2523
2524         internal uint GetId()
2525         {
2526             uint ret = NDalicPINVOKE.Actor_GetId(swigCPtr);
2527             if (NDalicPINVOKE.SWIGPendingException.Pending)
2528                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2529             return ret;
2530         }
2531
2532         internal bool IsRoot()
2533         {
2534             bool ret = NDalicPINVOKE.Actor_IsRoot(swigCPtr);
2535             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2536             return ret;
2537         }
2538
2539         internal bool OnWindow()
2540         {
2541             bool ret = NDalicPINVOKE.Actor_OnStage(swigCPtr);
2542             if (NDalicPINVOKE.SWIGPendingException.Pending)
2543                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2544             return ret;
2545         }
2546
2547         /// <summary>
2548         /// Gets the parent layer of this view.If a view has no parent, this method does nothing.
2549         /// </summary>
2550         /// <pre>The view has been initialized. </pre>
2551         /// <returns>the parent layer of view </returns>
2552         /// <since_tizen> 5 </since_tizen>
2553         public Layer GetLayer()
2554         {
2555             IntPtr cPtr = NDalicPINVOKE.Actor_GetLayer(swigCPtr);
2556             Layer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Layer;
2557
2558             if (NDalicPINVOKE.SWIGPendingException.Pending)
2559                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2560             return ret;
2561         }
2562
2563         /// <summary>
2564         /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
2565         /// </summary>
2566         /// <pre>The (child) view has been initialized. </pre>
2567         /// <since_tizen> 4 </since_tizen>
2568         public void Unparent()
2569         {
2570             GetParent()?.Remove(this);
2571         }
2572
2573         /// <summary>
2574         /// Search through this view's hierarchy for a view with the given name.
2575         /// The view itself is also considered in the search.
2576         /// </summary>
2577         /// <pre>The view has been initialized.</pre>
2578         /// <param name="viewName">The name of the view to find.</param>
2579         /// <returns>A handle to the view if found, or an empty handle if not.</returns>
2580         /// <since_tizen> 3 </since_tizen>
2581         public View FindChildByName(string viewName)
2582         {
2583             IntPtr cPtr = NDalicPINVOKE.Actor_FindChildByName(swigCPtr, viewName);
2584
2585             View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2586
2587             if (NDalicPINVOKE.SWIGPendingException.Pending)
2588                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2589             return ret;
2590         }
2591
2592         internal View FindChildById(uint id)
2593         {
2594             IntPtr cPtr = NDalicPINVOKE.Actor_FindChildById(swigCPtr, id);
2595
2596             View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2597
2598             if (NDalicPINVOKE.SWIGPendingException.Pending)
2599                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2600             return ret;
2601         }
2602
2603         internal void SetParentOrigin(Vector3 origin)
2604         {
2605             NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
2606             if (NDalicPINVOKE.SWIGPendingException.Pending)
2607                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2608         }
2609
2610         internal Vector3 GetCurrentParentOrigin()
2611         {
2612             Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentParentOrigin(swigCPtr), true);
2613             if (NDalicPINVOKE.SWIGPendingException.Pending)
2614                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2615             return ret;
2616         }
2617
2618         internal void SetAnchorPoint(Vector3 anchorPoint)
2619         {
2620             NDalicPINVOKE.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
2621             if (NDalicPINVOKE.SWIGPendingException.Pending)
2622                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2623         }
2624
2625         internal Vector3 GetCurrentAnchorPoint()
2626         {
2627             Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentAnchorPoint(swigCPtr), true);
2628             if (NDalicPINVOKE.SWIGPendingException.Pending)
2629                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2630             return ret;
2631         }
2632
2633         internal void SetSize(float width, float height)
2634         {
2635             NDalicPINVOKE.Actor_SetSize__SWIG_0(swigCPtr, width, height);
2636             if (NDalicPINVOKE.SWIGPendingException.Pending)
2637                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2638         }
2639
2640         internal void SetSize(float width, float height, float depth)
2641         {
2642             NDalicPINVOKE.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
2643             if (NDalicPINVOKE.SWIGPendingException.Pending)
2644                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2645         }
2646
2647         internal void SetSize(Vector2 size)
2648         {
2649             NDalicPINVOKE.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
2650             if (NDalicPINVOKE.SWIGPendingException.Pending)
2651                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2652         }
2653
2654         internal void SetSize(Vector3 size)
2655         {
2656             NDalicPINVOKE.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
2657             if (NDalicPINVOKE.SWIGPendingException.Pending)
2658                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2659         }
2660
2661         internal Vector3 GetTargetSize()
2662         {
2663             Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetTargetSize(swigCPtr), true);
2664             if (NDalicPINVOKE.SWIGPendingException.Pending)
2665                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2666             return ret;
2667         }
2668
2669         internal Size2D GetCurrentSize()
2670         {
2671             Size ret = new Size(NDalicPINVOKE.Actor_GetCurrentSize(swigCPtr), true);
2672             if (NDalicPINVOKE.SWIGPendingException.Pending)
2673                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2674             Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
2675             return size;
2676         }
2677
2678         internal Vector3 GetNaturalSize()
2679         {
2680             Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2681             if (NDalicPINVOKE.SWIGPendingException.Pending)
2682                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2683             return ret;
2684         }
2685
2686         internal void SetPosition(float x, float y)
2687         {
2688             NDalicPINVOKE.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
2689             if (NDalicPINVOKE.SWIGPendingException.Pending)
2690                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2691         }
2692
2693         internal void SetPosition(float x, float y, float z)
2694         {
2695             NDalicPINVOKE.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
2696             if (NDalicPINVOKE.SWIGPendingException.Pending)
2697                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2698         }
2699
2700         internal void SetPosition(Vector3 position)
2701         {
2702             NDalicPINVOKE.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
2703             if (NDalicPINVOKE.SWIGPendingException.Pending)
2704                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2705         }
2706
2707         internal void SetX(float x)
2708         {
2709             NDalicPINVOKE.Actor_SetX(swigCPtr, x);
2710             if (NDalicPINVOKE.SWIGPendingException.Pending)
2711                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2712         }
2713
2714         internal void SetY(float y)
2715         {
2716             NDalicPINVOKE.Actor_SetY(swigCPtr, y);
2717             if (NDalicPINVOKE.SWIGPendingException.Pending)
2718                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2719         }
2720
2721         internal void SetZ(float z)
2722         {
2723             NDalicPINVOKE.Actor_SetZ(swigCPtr, z);
2724             if (NDalicPINVOKE.SWIGPendingException.Pending)
2725                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2726         }
2727
2728         internal void TranslateBy(Vector3 distance)
2729         {
2730             NDalicPINVOKE.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
2731             if (NDalicPINVOKE.SWIGPendingException.Pending)
2732                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2733         }
2734
2735         internal Position GetCurrentPosition()
2736         {
2737             Position ret = new Position(NDalicPINVOKE.Actor_GetCurrentPosition(swigCPtr), true);
2738             if (NDalicPINVOKE.SWIGPendingException.Pending)
2739                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2740             return ret;
2741         }
2742
2743         internal Vector3 GetCurrentWorldPosition()
2744         {
2745             Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldPosition(swigCPtr), true);
2746             if (NDalicPINVOKE.SWIGPendingException.Pending)
2747                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2748             return ret;
2749         }
2750
2751         internal void SetInheritPosition(bool inherit)
2752         {
2753             NDalicPINVOKE.Actor_SetInheritPosition(swigCPtr, inherit);
2754             if (NDalicPINVOKE.SWIGPendingException.Pending)
2755                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2756         }
2757
2758         internal bool IsPositionInherited()
2759         {
2760             bool ret = NDalicPINVOKE.Actor_IsPositionInherited(swigCPtr);
2761             if (NDalicPINVOKE.SWIGPendingException.Pending)
2762                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2763             return ret;
2764         }
2765
2766         internal void SetOrientation(Degree angle, Vector3 axis)
2767         {
2768             NDalicPINVOKE.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2769             if (NDalicPINVOKE.SWIGPendingException.Pending)
2770                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2771         }
2772
2773         internal void SetOrientation(Radian angle, Vector3 axis)
2774         {
2775             NDalicPINVOKE.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2776             if (NDalicPINVOKE.SWIGPendingException.Pending)
2777                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2778         }
2779
2780         internal void SetOrientation(Rotation orientation)
2781         {
2782             NDalicPINVOKE.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
2783             if (NDalicPINVOKE.SWIGPendingException.Pending)
2784                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2785         }
2786
2787         internal void RotateBy(Degree angle, Vector3 axis)
2788         {
2789             NDalicPINVOKE.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2790             if (NDalicPINVOKE.SWIGPendingException.Pending)
2791                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2792         }
2793
2794         internal void RotateBy(Radian angle, Vector3 axis)
2795         {
2796             NDalicPINVOKE.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2797             if (NDalicPINVOKE.SWIGPendingException.Pending)
2798                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2799         }
2800
2801         internal void RotateBy(Rotation relativeRotation)
2802         {
2803             NDalicPINVOKE.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
2804             if (NDalicPINVOKE.SWIGPendingException.Pending)
2805                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2806         }
2807
2808         internal Rotation GetCurrentOrientation()
2809         {
2810             Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentOrientation(swigCPtr), true);
2811             if (NDalicPINVOKE.SWIGPendingException.Pending)
2812                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2813             return ret;
2814         }
2815
2816         internal void SetInheritOrientation(bool inherit)
2817         {
2818             NDalicPINVOKE.Actor_SetInheritOrientation(swigCPtr, inherit);
2819             if (NDalicPINVOKE.SWIGPendingException.Pending)
2820                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2821         }
2822
2823         internal bool IsOrientationInherited()
2824         {
2825             bool ret = NDalicPINVOKE.Actor_IsOrientationInherited(swigCPtr);
2826             if (NDalicPINVOKE.SWIGPendingException.Pending)
2827                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2828             return ret;
2829         }
2830
2831         internal Rotation GetCurrentWorldOrientation()
2832         {
2833             Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentWorldOrientation(swigCPtr), true);
2834             if (NDalicPINVOKE.SWIGPendingException.Pending)
2835                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2836             return ret;
2837         }
2838
2839         internal void SetScale(float scale)
2840         {
2841             NDalicPINVOKE.Actor_SetScale__SWIG_0(swigCPtr, scale);
2842             if (NDalicPINVOKE.SWIGPendingException.Pending)
2843                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2844         }
2845
2846         internal void SetScale(float scaleX, float scaleY, float scaleZ)
2847         {
2848             NDalicPINVOKE.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
2849             if (NDalicPINVOKE.SWIGPendingException.Pending)
2850                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2851         }
2852
2853         internal void SetScale(Vector3 scale)
2854         {
2855             NDalicPINVOKE.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
2856             if (NDalicPINVOKE.SWIGPendingException.Pending)
2857                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2858         }
2859
2860         internal void ScaleBy(Vector3 relativeScale)
2861         {
2862             NDalicPINVOKE.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
2863             if (NDalicPINVOKE.SWIGPendingException.Pending)
2864                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2865         }
2866
2867         internal Vector3 GetCurrentScale()
2868         {
2869             Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentScale(swigCPtr), true);
2870             if (NDalicPINVOKE.SWIGPendingException.Pending)
2871                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2872             return ret;
2873         }
2874
2875         internal Vector3 GetCurrentWorldScale()
2876         {
2877             Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldScale(swigCPtr), true);
2878             if (NDalicPINVOKE.SWIGPendingException.Pending)
2879                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2880             return ret;
2881         }
2882
2883         internal void SetInheritScale(bool inherit)
2884         {
2885             NDalicPINVOKE.Actor_SetInheritScale(swigCPtr, inherit);
2886             if (NDalicPINVOKE.SWIGPendingException.Pending)
2887                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2888         }
2889
2890         internal bool IsScaleInherited()
2891         {
2892             bool ret = NDalicPINVOKE.Actor_IsScaleInherited(swigCPtr);
2893             if (NDalicPINVOKE.SWIGPendingException.Pending)
2894                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2895             return ret;
2896         }
2897
2898         internal Matrix GetCurrentWorldMatrix()
2899         {
2900             Matrix ret = new Matrix(NDalicPINVOKE.Actor_GetCurrentWorldMatrix(swigCPtr), true);
2901             if (NDalicPINVOKE.SWIGPendingException.Pending)
2902                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2903             return ret;
2904         }
2905
2906         internal void SetVisible(bool visible)
2907         {
2908             NDalicPINVOKE.Actor_SetVisible(swigCPtr, visible);
2909             if (NDalicPINVOKE.SWIGPendingException.Pending)
2910                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2911         }
2912
2913         internal bool IsVisible()
2914         {
2915             bool ret = NDalicPINVOKE.Actor_IsVisible(swigCPtr);
2916             if (NDalicPINVOKE.SWIGPendingException.Pending)
2917                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2918             return ret;
2919         }
2920
2921         internal void SetOpacity(float opacity)
2922         {
2923             NDalicPINVOKE.Actor_SetOpacity(swigCPtr, opacity);
2924             if (NDalicPINVOKE.SWIGPendingException.Pending)
2925                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2926         }
2927
2928         internal float GetCurrentOpacity()
2929         {
2930             float ret = NDalicPINVOKE.Actor_GetCurrentOpacity(swigCPtr);
2931             if (NDalicPINVOKE.SWIGPendingException.Pending)
2932                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2933             return ret;
2934         }
2935
2936         internal void SetColor(Vector4 color)
2937         {
2938             NDalicPINVOKE.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
2939             if (NDalicPINVOKE.SWIGPendingException.Pending)
2940                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2941         }
2942
2943         internal Vector4 GetCurrentColor()
2944         {
2945             Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentColor(swigCPtr), true);
2946             if (NDalicPINVOKE.SWIGPendingException.Pending)
2947                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2948             return ret;
2949         }
2950
2951         internal void SetColorMode(ColorMode colorMode)
2952         {
2953             NDalicPINVOKE.Actor_SetColorMode(swigCPtr, (int)colorMode);
2954             if (NDalicPINVOKE.SWIGPendingException.Pending)
2955                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2956         }
2957
2958         internal ColorMode GetColorMode()
2959         {
2960             ColorMode ret = (ColorMode)NDalicPINVOKE.Actor_GetColorMode(swigCPtr);
2961             if (NDalicPINVOKE.SWIGPendingException.Pending)
2962                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2963             return ret;
2964         }
2965
2966         internal Vector4 GetCurrentWorldColor()
2967         {
2968             Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentWorldColor(swigCPtr), true);
2969             if (NDalicPINVOKE.SWIGPendingException.Pending)
2970                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2971             return ret;
2972         }
2973
2974         internal void SetDrawMode(DrawModeType drawMode)
2975         {
2976             NDalicPINVOKE.Actor_SetDrawMode(swigCPtr, (int)drawMode);
2977             if (NDalicPINVOKE.SWIGPendingException.Pending)
2978                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2979         }
2980
2981         internal DrawModeType GetDrawMode()
2982         {
2983             DrawModeType ret = (DrawModeType)NDalicPINVOKE.Actor_GetDrawMode(swigCPtr);
2984             if (NDalicPINVOKE.SWIGPendingException.Pending)
2985                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2986             return ret;
2987         }
2988
2989         /// <summary>
2990         /// Converts screen coordinates into the view's coordinate system using the default camera.
2991         /// </summary>
2992         /// <pre>The view has been initialized.</pre>
2993         /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
2994         /// <param name="localX">On return, the X-coordinate relative to the view.</param>
2995         /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
2996         /// <param name="screenX">The screen X-coordinate.</param>
2997         /// <param name="screenY">The screen Y-coordinate.</param>
2998         /// <returns>True if the conversion succeeded.</returns>
2999         /// <since_tizen> 3 </since_tizen>
3000         public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
3001         {
3002             bool ret = NDalicPINVOKE.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
3003             if (NDalicPINVOKE.SWIGPendingException.Pending)
3004                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3005             return ret;
3006         }
3007
3008         internal void SetKeyboardFocusable(bool focusable)
3009         {
3010             NDalicPINVOKE.Actor_SetKeyboardFocusable(swigCPtr, focusable);
3011             if (NDalicPINVOKE.SWIGPendingException.Pending)
3012                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3013         }
3014
3015         internal bool IsKeyboardFocusable()
3016         {
3017             bool ret = NDalicPINVOKE.Actor_IsKeyboardFocusable(swigCPtr);
3018             if (NDalicPINVOKE.SWIGPendingException.Pending)
3019                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3020             return ret;
3021         }
3022
3023         internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
3024         {
3025             NDalicPINVOKE.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
3026             if (NDalicPINVOKE.SWIGPendingException.Pending)
3027                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3028         }
3029
3030         internal ResizePolicyType GetResizePolicy(DimensionType dimension)
3031         {
3032             ResizePolicyType ret = (ResizePolicyType)NDalicPINVOKE.Actor_GetResizePolicy(swigCPtr, (int)dimension);
3033             if (NDalicPINVOKE.SWIGPendingException.Pending)
3034                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3035             return ret;
3036         }
3037
3038         /// <summary>
3039         /// Sets the relative to parent size factor of the view.<br />
3040         /// This factor is only used when ResizePolicy is set to either:
3041         /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
3042         /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
3043         /// </summary>
3044         /// <pre>The view has been initialized.</pre>
3045         /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
3046         /// <since_tizen> 3 </since_tizen>
3047         public void SetSizeModeFactor(Vector3 factor)
3048         {
3049             NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
3050             if (NDalicPINVOKE.SWIGPendingException.Pending)
3051                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3052         }
3053
3054         internal Vector3 GetSizeModeFactor()
3055         {
3056             Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetSizeModeFactor(swigCPtr), true);
3057             if (NDalicPINVOKE.SWIGPendingException.Pending)
3058                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3059             return ret;
3060         }
3061
3062         /// <summary>
3063         /// Calculates the height of the view given a width.<br />
3064         /// The natural size is used for default calculation.<br />
3065         /// Size 0 is treated as aspect ratio 1:1.<br />
3066         /// </summary>
3067         /// <param name="width">The width to use.</param>
3068         /// <returns>The height based on the width.</returns>
3069         /// <since_tizen> 3 </since_tizen>
3070         public float GetHeightForWidth(float width)
3071         {
3072             float ret = NDalicPINVOKE.Actor_GetHeightForWidth(swigCPtr, width);
3073             if (NDalicPINVOKE.SWIGPendingException.Pending)
3074                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3075             return ret;
3076         }
3077
3078         /// <summary>
3079         /// Calculates the width of the view given a height.<br />
3080         /// The natural size is used for default calculation.<br />
3081         /// Size 0 is treated as aspect ratio 1:1.<br />
3082         /// </summary>
3083         /// <param name="height">The height to use.</param>
3084         /// <returns>The width based on the height.</returns>
3085         /// <since_tizen> 3 </since_tizen>
3086         public float GetWidthForHeight(float height)
3087         {
3088             float ret = NDalicPINVOKE.Actor_GetWidthForHeight(swigCPtr, height);
3089             if (NDalicPINVOKE.SWIGPendingException.Pending)
3090                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3091             return ret;
3092         }
3093
3094         /// <summary>
3095         /// Return the amount of size allocated for relayout.
3096         /// </summary>
3097         /// <param name="dimension">The dimension to retrieve.</param>
3098         /// <returns>Return the size.</returns>
3099         /// <since_tizen> 3 </since_tizen>
3100         public float GetRelayoutSize(DimensionType dimension)
3101         {
3102             float ret = NDalicPINVOKE.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
3103             if (NDalicPINVOKE.SWIGPendingException.Pending)
3104                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3105             return ret;
3106         }
3107
3108         /// <summary>
3109         /// Set the padding for the view.
3110         /// </summary>
3111         /// <param name="padding">Padding for the view.</param>
3112         /// <since_tizen> 3 </since_tizen>
3113         public void SetPadding(PaddingType padding)
3114         {
3115             NDalicPINVOKE.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
3116             if (NDalicPINVOKE.SWIGPendingException.Pending)
3117                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3118         }
3119
3120         /// <summary>
3121         /// Return the value of padding for the view.
3122         /// </summary>
3123         /// <param name="paddingOut">the value of padding for the view</param>
3124         /// <since_tizen> 3 </since_tizen>
3125         public void GetPadding(PaddingType paddingOut)
3126         {
3127             NDalicPINVOKE.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
3128             if (NDalicPINVOKE.SWIGPendingException.Pending)
3129                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3130         }
3131
3132         internal void SetMinimumSize(Vector2 size)
3133         {
3134             NDalicPINVOKE.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
3135             if (NDalicPINVOKE.SWIGPendingException.Pending)
3136                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3137         }
3138
3139         internal Vector2 GetMinimumSize()
3140         {
3141             Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMinimumSize(swigCPtr), true);
3142             if (NDalicPINVOKE.SWIGPendingException.Pending)
3143                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3144             return ret;
3145         }
3146
3147         internal void SetMaximumSize(Vector2 size)
3148         {
3149             NDalicPINVOKE.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
3150             if (NDalicPINVOKE.SWIGPendingException.Pending)
3151                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3152         }
3153
3154         internal Vector2 GetMaximumSize()
3155         {
3156             Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMaximumSize(swigCPtr), true);
3157             if (NDalicPINVOKE.SWIGPendingException.Pending)
3158                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3159             return ret;
3160         }
3161
3162         internal int GetHierarchyDepth()
3163         {
3164             int ret = NDalicPINVOKE.Actor_GetHierarchyDepth(swigCPtr);
3165             if (NDalicPINVOKE.SWIGPendingException.Pending)
3166                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3167             return ret;
3168         }
3169
3170         /// <since_tizen> 3 </since_tizen>
3171         public uint AddRenderer(Renderer renderer)
3172         {
3173             uint ret = NDalicPINVOKE.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
3174             if (NDalicPINVOKE.SWIGPendingException.Pending)
3175                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3176             return ret;
3177         }
3178
3179         internal uint GetRendererCount()
3180         {
3181             uint ret = NDalicPINVOKE.Actor_GetRendererCount(swigCPtr);
3182             if (NDalicPINVOKE.SWIGPendingException.Pending)
3183                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3184             return ret;
3185         }
3186
3187         /// <since_tizen> 3 </since_tizen>
3188         public Renderer GetRendererAt(uint index)
3189         {
3190             IntPtr cPtr = NDalicPINVOKE.Actor_GetRendererAt(swigCPtr, index);
3191             Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Renderer;
3192
3193             if (NDalicPINVOKE.SWIGPendingException.Pending)
3194                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3195             return ret;
3196         }
3197
3198         /// <since_tizen> 3 </since_tizen>
3199         public void RemoveRenderer(Renderer renderer)
3200         {
3201             NDalicPINVOKE.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
3202             if (NDalicPINVOKE.SWIGPendingException.Pending)
3203                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3204         }
3205
3206         /// <since_tizen> 3 </since_tizen>
3207         public void RemoveRenderer(uint index)
3208         {
3209             NDalicPINVOKE.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
3210             if (NDalicPINVOKE.SWIGPendingException.Pending)
3211                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3212         }
3213
3214         internal TouchDataSignal TouchSignal()
3215         {
3216             TouchDataSignal ret = new TouchDataSignal(NDalicPINVOKE.Actor_TouchSignal(swigCPtr), false);
3217             if (NDalicPINVOKE.SWIGPendingException.Pending)
3218                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3219             return ret;
3220         }
3221
3222         internal HoverSignal HoveredSignal()
3223         {
3224             HoverSignal ret = new HoverSignal(NDalicPINVOKE.Actor_HoveredSignal(swigCPtr), false);
3225             if (NDalicPINVOKE.SWIGPendingException.Pending)
3226                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3227             return ret;
3228         }
3229
3230         internal WheelSignal WheelEventSignal()
3231         {
3232             WheelSignal ret = new WheelSignal(NDalicPINVOKE.Actor_WheelEventSignal(swigCPtr), false);
3233             if (NDalicPINVOKE.SWIGPendingException.Pending)
3234                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3235             return ret;
3236         }
3237
3238         internal ViewSignal OnWindowSignal()
3239         {
3240             ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
3241             if (NDalicPINVOKE.SWIGPendingException.Pending)
3242                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3243             return ret;
3244         }
3245
3246         internal ViewSignal OffWindowSignal()
3247         {
3248             ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OffStageSignal(swigCPtr), false);
3249             if (NDalicPINVOKE.SWIGPendingException.Pending)
3250                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3251             return ret;
3252         }
3253
3254         internal ViewSignal OnRelayoutSignal()
3255         {
3256             ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnRelayoutSignal(swigCPtr), false);
3257             if (NDalicPINVOKE.SWIGPendingException.Pending)
3258                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3259             return ret;
3260         }
3261
3262         internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view) {
3263             ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(NDalicPINVOKE.VisibilityChangedSignal(View.getCPtr(view)), false);
3264             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3265             return ret;
3266         }
3267
3268
3269         internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view) {
3270             ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(NDalicManualPINVOKE.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
3271             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3272             return ret;
3273         }
3274
3275
3276         internal ViewSignal ResourcesLoadedSignal()
3277         {
3278             ViewSignal ret = new ViewSignal(NDalicPINVOKE.ResourceReadySignal(swigCPtr), false);
3279             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3280             return ret;
3281         }
3282
3283         /// <summary>
3284         /// Gets or sets the origin of a view within its parent's area.<br />
3285         /// This is expressed in unit coordinates, such that (0.0, 0.0, 0.5) is the top-left corner of the parent, and (1.0, 1.0, 0.5) is the bottom-right corner.<br />
3286         /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
3287         /// A view's position is the distance between this origin and the view's anchor-point.<br />
3288         /// </summary>
3289         /// <pre>The view has been initialized.</pre>
3290         /// <since_tizen> 3 </since_tizen>
3291         public Position ParentOrigin
3292         {
3293             get
3294             {
3295                 Position temp = new Position(0.0f, 0.0f, 0.0f);
3296                 GetProperty(View.Property.PARENT_ORIGIN).Get(temp);
3297                 return temp;
3298             }
3299             set
3300             {
3301                 SetProperty(View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue(value));
3302             }
3303         }
3304
3305         internal float ParentOriginX
3306         {
3307             get
3308             {
3309                 float temp = 0.0f;
3310                 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3311                 return temp;
3312             }
3313             set
3314             {
3315                 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3316             }
3317         }
3318
3319         internal float ParentOriginY
3320         {
3321             get
3322             {
3323                 float temp = 0.0f;
3324                 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3325                 return temp;
3326             }
3327             set
3328             {
3329                 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3330             }
3331         }
3332
3333         internal float ParentOriginZ
3334         {
3335             get
3336             {
3337                 float temp = 0.0f;
3338                 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3339                 return temp;
3340             }
3341             set
3342             {
3343                 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3344             }
3345         }
3346
3347         /// <summary>
3348         /// Gets or sets the anchor-point of a view.<br />
3349         /// This is expressed in unit coordinates, such that (0.0, 0.0, 0.5) is the top-left corner of the view, and (1.0, 1.0, 0.5) is the bottom-right corner.<br />
3350         /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
3351         /// A view position is the distance between its parent-origin and this anchor-point.<br />
3352         /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
3353         /// <pre>The view has been initialized.</pre>
3354         /// </summary>
3355         /// <since_tizen> 3 </since_tizen>
3356         public Position PivotPoint
3357         {
3358             get
3359             {
3360                 Position temp = new Position(0.0f, 0.0f, 0.0f);
3361                 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3362                 return temp;
3363             }
3364             set
3365             {
3366                 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3367             }
3368         }
3369
3370         internal float PivotPointX
3371         {
3372             get
3373             {
3374                 float temp = 0.0f;
3375                 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3376                 return temp;
3377             }
3378             set
3379             {
3380                 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3381             }
3382         }
3383
3384         internal float PivotPointY
3385         {
3386             get
3387             {
3388                 float temp = 0.0f;
3389                 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3390                 return temp;
3391             }
3392             set
3393             {
3394                 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3395             }
3396         }
3397
3398         internal float PivotPointZ
3399         {
3400             get
3401             {
3402                 float temp = 0.0f;
3403                 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3404                 return temp;
3405             }
3406             set
3407             {
3408                 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3409             }
3410         }
3411
3412         /// <summary>
3413         /// Gets or sets the size width of the view.
3414         /// </summary>
3415         /// <since_tizen> 3 </since_tizen>
3416         public float SizeWidth
3417         {
3418             get
3419             {
3420                 float temp = 0.0f;
3421                 GetProperty(View.Property.SIZE_WIDTH).Get(out temp);
3422                 return temp;
3423             }
3424             set
3425             {
3426                 SetProperty(View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
3427             }
3428         }
3429
3430         /// <summary>
3431         /// Gets or sets the size height of the view.
3432         /// </summary>
3433         /// <since_tizen> 3 </since_tizen>
3434         public float SizeHeight
3435         {
3436             get
3437             {
3438                 float temp = 0.0f;
3439                 GetProperty(View.Property.SIZE_HEIGHT).Get(out temp);
3440                 return temp;
3441             }
3442             set
3443             {
3444                 SetProperty(View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3445             }
3446         }
3447
3448         /// <summary>
3449         /// Gets or sets the position of the view.<br />
3450         /// By default, sets the position vector between the parent origin and pivot point (default).<br />
3451         /// If the position inheritance is disabled, sets the world position.<br />
3452         /// </summary>
3453         /// <since_tizen> 3 </since_tizen>
3454         public Position Position
3455         {
3456             get
3457             {
3458                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3459                 GetProperty(View.Property.POSITION).Get(temp);
3460                 return temp;
3461             }
3462             set
3463             {
3464                 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(value));
3465             }
3466         }
3467
3468         /// <summary>
3469         /// Gets or sets the position X of the view.
3470         /// </summary>
3471         /// <since_tizen> 3 </since_tizen>
3472         public float PositionX
3473         {
3474             get
3475             {
3476                 float temp = 0.0f;
3477                 GetProperty(View.Property.POSITION_X).Get(out temp);
3478                 return temp;
3479             }
3480             set
3481             {
3482                 SetProperty(View.Property.POSITION_X, new Tizen.NUI.PropertyValue(value));
3483             }
3484         }
3485
3486         /// <summary>
3487         /// Gets or sets the position Y of the view.
3488         /// </summary>
3489         /// <since_tizen> 3 </since_tizen>
3490         public float PositionY
3491         {
3492             get
3493             {
3494                 float temp = 0.0f;
3495                 GetProperty(View.Property.POSITION_Y).Get(out temp);
3496                 return temp;
3497             }
3498             set
3499             {
3500                 SetProperty(View.Property.POSITION_Y, new Tizen.NUI.PropertyValue(value));
3501             }
3502         }
3503
3504         /// <summary>
3505         /// Gets or sets the position Z of the view.
3506         /// </summary>
3507         /// <since_tizen> 3 </since_tizen>
3508         public float PositionZ
3509         {
3510             get
3511             {
3512                 float temp = 0.0f;
3513                 GetProperty(View.Property.POSITION_Z).Get(out temp);
3514                 return temp;
3515             }
3516             set
3517             {
3518                 SetProperty(View.Property.POSITION_Z, new Tizen.NUI.PropertyValue(value));
3519             }
3520         }
3521
3522         /// <summary>
3523         /// Gets or sets the world position of the view.
3524         /// </summary>
3525         /// <since_tizen> 3 </since_tizen>
3526         public Vector3 WorldPosition
3527         {
3528             get
3529             {
3530                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3531                 GetProperty(View.Property.WORLD_POSITION).Get(temp);
3532                 return temp;
3533             }
3534         }
3535
3536         internal float WorldPositionX
3537         {
3538             get
3539             {
3540                 float temp = 0.0f;
3541                 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3542                 return temp;
3543             }
3544         }
3545
3546         internal float WorldPositionY
3547         {
3548             get
3549             {
3550                 float temp = 0.0f;
3551                 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3552                 return temp;
3553             }
3554         }
3555
3556         internal float WorldPositionZ
3557         {
3558             get
3559             {
3560                 float temp = 0.0f;
3561                 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3562                 return temp;
3563             }
3564         }
3565
3566         /// <summary>
3567         /// Gets or sets the orientation of the view.<br />
3568         /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
3569         /// </summary>
3570         /// <remarks>This is an asynchronous method.</remarks>
3571         /// <since_tizen> 3 </since_tizen>
3572         public Rotation Orientation
3573         {
3574             get
3575             {
3576                 Rotation temp = new Rotation();
3577                 GetProperty(View.Property.ORIENTATION).Get(temp);
3578                 return temp;
3579             }
3580             set
3581             {
3582                 SetProperty(View.Property.ORIENTATION, new Tizen.NUI.PropertyValue(value));
3583             }
3584         }
3585
3586         /// <summary>
3587         /// Gets or sets the world orientation of the view.<br />
3588         /// </summary>
3589         /// <since_tizen> 3 </since_tizen>
3590         public Rotation WorldOrientation
3591         {
3592             get
3593             {
3594                 Rotation temp = new Rotation();
3595                 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
3596                 return temp;
3597             }
3598         }
3599
3600         /// <summary>
3601         /// Gets or sets the scale factor applied to the view.<br />
3602         /// </summary>
3603         /// <since_tizen> 3 </since_tizen>
3604         public Vector3 Scale
3605         {
3606             get
3607             {
3608                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3609                 GetProperty(View.Property.SCALE).Get(temp);
3610                 return temp;
3611             }
3612             set
3613             {
3614                 SetProperty(View.Property.SCALE, new Tizen.NUI.PropertyValue(value));
3615             }
3616         }
3617
3618         /// <summary>
3619         /// Gets or sets the scale X factor applied to the view.
3620         /// </summary>
3621         /// <since_tizen> 3 </since_tizen>
3622         public float ScaleX
3623         {
3624             get
3625             {
3626                 float temp = 0.0f;
3627                 GetProperty(View.Property.SCALE_X).Get(out temp);
3628                 return temp;
3629             }
3630             set
3631             {
3632                 SetProperty(View.Property.SCALE_X, new Tizen.NUI.PropertyValue(value));
3633             }
3634         }
3635
3636         /// <summary>
3637         /// Gets or sets the scale Y factor applied to the view.
3638         /// </summary>
3639         /// <since_tizen> 3 </since_tizen>
3640         public float ScaleY
3641         {
3642             get
3643             {
3644                 float temp = 0.0f;
3645                 GetProperty(View.Property.SCALE_Y).Get(out temp);
3646                 return temp;
3647             }
3648             set
3649             {
3650                 SetProperty(View.Property.SCALE_Y, new Tizen.NUI.PropertyValue(value));
3651             }
3652         }
3653
3654         /// <summary>
3655         /// Gets or sets the scale Z factor applied to the view.
3656         /// </summary>
3657         /// <since_tizen> 3 </since_tizen>
3658         public float ScaleZ
3659         {
3660             get
3661             {
3662                 float temp = 0.0f;
3663                 GetProperty(View.Property.SCALE_Z).Get(out temp);
3664                 return temp;
3665             }
3666             set
3667             {
3668                 SetProperty(View.Property.SCALE_Z, new Tizen.NUI.PropertyValue(value));
3669             }
3670         }
3671
3672         /// <summary>
3673         /// Gets the world scale of the view.
3674         /// </summary>
3675         /// <since_tizen> 3 </since_tizen>
3676         public Vector3 WorldScale
3677         {
3678             get
3679             {
3680                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3681                 GetProperty(View.Property.WORLD_SCALE).Get(temp);
3682                 return temp;
3683             }
3684         }
3685
3686         /// <summary>
3687         /// Retrieves the visibility flag of the view.
3688         /// </summary>
3689         /// <remarks>
3690         /// If the view is not visible, then the view and its children will not be rendered.
3691         /// This is regardless of the individual visibility values of the children, i.e., the view will only be rendered if all of its parents have visibility set to true.
3692         /// </remarks>
3693         /// <since_tizen> 3 </since_tizen>
3694         public bool Visibility
3695         {
3696             get
3697             {
3698                 bool temp = false;
3699                 GetProperty(View.Property.VISIBLE).Get(out temp);
3700                 return temp;
3701             }
3702         }
3703
3704         /// <summary>
3705         /// Gets the view's world color.
3706         /// </summary>
3707         /// <since_tizen> 3 </since_tizen>
3708         public Vector4 WorldColor
3709         {
3710             get
3711             {
3712                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3713                 GetProperty(View.Property.WORLD_COLOR).Get(temp);
3714                 return temp;
3715             }
3716         }
3717
3718         internal Matrix WorldMatrix
3719         {
3720             get
3721             {
3722                 Matrix temp = new Matrix();
3723                 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3724                 return temp;
3725             }
3726         }
3727
3728         /// <summary>
3729         /// Gets or sets the view's name.
3730         /// </summary>
3731         /// <since_tizen> 3 </since_tizen>
3732         public string Name
3733         {
3734             get
3735             {
3736                 string temp;
3737                 GetProperty(View.Property.NAME).Get(out temp);
3738                 return temp;
3739             }
3740             set
3741             {
3742                 SetProperty(View.Property.NAME, new Tizen.NUI.PropertyValue(value));
3743             }
3744         }
3745
3746         /// <summary>
3747         /// Get the number of children held by the view.
3748         /// </summary>
3749         /// <since_tizen> 3 </since_tizen>
3750         public new uint ChildCount
3751         {
3752             get
3753             {
3754                 return GetChildCount();
3755             }
3756         }
3757
3758         /// <summary>
3759         /// Gets the view's ID.
3760         /// Readonly
3761         /// </summary>
3762         /// <since_tizen> 3 </since_tizen>
3763         public uint ID
3764         {
3765             get
3766             {
3767                 return GetId();
3768             }
3769         }
3770
3771         /// <summary>
3772         /// Gets or sets the status of whether the view should emit touch or hover signals.
3773         /// </summary>
3774         /// <since_tizen> 3 </since_tizen>
3775         public bool Sensitive
3776         {
3777             get
3778             {
3779                 bool temp = false;
3780                 GetProperty(View.Property.SENSITIVE).Get(out temp);
3781                 return temp;
3782             }
3783             set
3784             {
3785                 SetProperty(View.Property.SENSITIVE, new Tizen.NUI.PropertyValue(value));
3786             }
3787         }
3788
3789         /// <summary>
3790         /// Gets or sets the status of whether the view should receive a notification when touch or hover motion events leave the boundary of the view.
3791         /// </summary>
3792         /// <since_tizen> 3 </since_tizen>
3793         public bool LeaveRequired
3794         {
3795             get
3796             {
3797                 bool temp = false;
3798                 GetProperty(View.Property.LEAVE_REQUIRED).Get(out temp);
3799                 return temp;
3800             }
3801             set
3802             {
3803                 SetProperty(View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue(value));
3804             }
3805         }
3806
3807         /// <summary>
3808         /// Gets or sets the status of whether a child view inherits it's parent's orientation.
3809         /// </summary>
3810         /// <since_tizen> 3 </since_tizen>
3811         public bool InheritOrientation
3812         {
3813             get
3814             {
3815                 bool temp = false;
3816                 GetProperty(View.Property.INHERIT_ORIENTATION).Get(out temp);
3817                 return temp;
3818             }
3819             set
3820             {
3821                 SetProperty(View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue(value));
3822             }
3823         }
3824
3825         /// <summary>
3826         /// Gets or sets the status of whether a child view inherits it's parent's scale.
3827         /// </summary>
3828         /// <since_tizen> 3 </since_tizen>
3829         public bool InheritScale
3830         {
3831             get
3832             {
3833                 bool temp = false;
3834                 GetProperty(View.Property.INHERIT_SCALE).Get(out temp);
3835                 return temp;
3836             }
3837             set
3838             {
3839                 SetProperty(View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue(value));
3840             }
3841         }
3842
3843         /// <summary>
3844         /// Gets or sets the status of how the view and its children should be drawn.<br />
3845         /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
3846         /// If an object is in a 3D layer, it will be depth-tested against other objects in the world, i.e., it may be obscured if other objects are in front.<br />
3847         /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
3848         /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
3849         /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
3850         /// </summary>
3851         /// <since_tizen> 3 </since_tizen>
3852         public DrawModeType DrawMode
3853         {
3854             get
3855             {
3856                 string temp;
3857                 if (GetProperty(View.Property.DRAW_MODE).Get(out temp) == false)
3858                 {
3859                     NUILog.Error("DrawMode get error!");
3860                 }
3861                 switch (temp)
3862                 {
3863                     case "NORMAL":
3864                     return DrawModeType.Normal;
3865                     case "OVERLAY_2D":
3866                     return DrawModeType.Overlay2D;
3867                     case "STENCIL":
3868                     return DrawModeType.Stencil;
3869                     default:
3870                     return DrawModeType.Normal;
3871                 }
3872             }
3873             set
3874             {
3875                 SetProperty(View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)value));
3876             }
3877         }
3878
3879         /// <summary>
3880         /// Gets or sets the relative to parent size factor of the view.<br />
3881         /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
3882         /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
3883         /// </summary>
3884         /// <since_tizen> 3 </since_tizen>
3885         public Vector3 SizeModeFactor
3886         {
3887             get
3888             {
3889                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3890                 GetProperty(View.Property.SIZE_MODE_FACTOR).Get(temp);
3891                 return temp;
3892             }
3893             set
3894             {
3895                 SetProperty(View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue(value));
3896             }
3897         }
3898
3899         /// <summary>
3900         /// Gets or sets the width resize policy to be used.
3901         /// </summary>
3902         /// <since_tizen> 3 </since_tizen>
3903         public ResizePolicyType WidthResizePolicy
3904         {
3905             get
3906             {
3907                 string temp;
3908                 if (GetProperty(View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
3909                 {
3910                     NUILog.Error("WidthResizePolicy get error!");
3911                 }
3912                 switch (temp)
3913                 {
3914                     case "FIXED":
3915                         return ResizePolicyType.Fixed;
3916                     case "USE_NATURAL_SIZE":
3917                         return ResizePolicyType.UseNaturalSize;
3918                     case "FILL_TO_PARENT":
3919                         return ResizePolicyType.FillToParent;
3920                     case "SIZE_RELATIVE_TO_PARENT":
3921                         return ResizePolicyType.SizeRelativeToParent;
3922                     case "SIZE_FIXED_OFFSET_FROM_PARENT":
3923                         return ResizePolicyType.SizeFixedOffsetFromParent;
3924                     case "FIT_TO_CHILDREN":
3925                         return ResizePolicyType.FitToChildren;
3926                     case "DIMENSION_DEPENDENCY":
3927                         return ResizePolicyType.DimensionDependency;
3928                     case "USE_ASSIGNED_SIZE":
3929                         return ResizePolicyType.UseAssignedSize;
3930                     default:
3931                         return ResizePolicyType.Fixed;
3932                 }
3933             }
3934             set
3935             {
3936                 SetProperty(View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3937             }
3938         }
3939
3940         /// <summary>
3941         /// Gets or sets the height resize policy to be used.
3942         /// </summary>
3943         /// <since_tizen> 3 </since_tizen>
3944         public ResizePolicyType HeightResizePolicy
3945         {
3946             get
3947             {
3948                 string temp;
3949                 if (GetProperty(View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
3950                 {
3951                     NUILog.Error("HeightResizePolicy get error!");
3952                 }
3953                 switch (temp)
3954                 {
3955                     case "FIXED":
3956                         return ResizePolicyType.Fixed;
3957                     case "USE_NATURAL_SIZE":
3958                         return ResizePolicyType.UseNaturalSize;
3959                     case "FILL_TO_PARENT":
3960                         return ResizePolicyType.FillToParent;
3961                     case "SIZE_RELATIVE_TO_PARENT":
3962                         return ResizePolicyType.SizeRelativeToParent;
3963                     case "SIZE_FIXED_OFFSET_FROM_PARENT":
3964                         return ResizePolicyType.SizeFixedOffsetFromParent;
3965                     case "FIT_TO_CHILDREN":
3966                         return ResizePolicyType.FitToChildren;
3967                     case "DIMENSION_DEPENDENCY":
3968                         return ResizePolicyType.DimensionDependency;
3969                     case "USE_ASSIGNED_SIZE":
3970                         return ResizePolicyType.UseAssignedSize;
3971                     default:
3972                         return ResizePolicyType.Fixed;
3973                 }
3974             }
3975             set
3976             {
3977                 SetProperty(View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3978             }
3979         }
3980
3981         /// <summary>
3982         /// Gets or sets the policy to use when setting size with size negotiation.<br />
3983         /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3984         /// </summary>
3985         /// <since_tizen> 3 </since_tizen>
3986         public SizeScalePolicyType SizeScalePolicy
3987         {
3988             get
3989             {
3990                 string temp;
3991                 if (GetProperty(View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
3992                 {
3993                     NUILog.Error("SizeScalePolicy get error!");
3994                 }
3995                 switch (temp)
3996                 {
3997                     case "USE_SIZE_SET":
3998                         return SizeScalePolicyType.UseSizeSet;
3999                     case "FIT_WITH_ASPECT_RATIO":
4000                         return SizeScalePolicyType.FitWithAspectRatio;
4001                     case "FILL_WITH_ASPECT_RATIO":
4002                         return SizeScalePolicyType.FillWithAspectRatio;
4003                     default:
4004                         return SizeScalePolicyType.UseSizeSet;
4005                 }
4006             }
4007             set
4008             {
4009                 string valueToString = "";
4010                 switch (value)
4011                 {
4012                     case SizeScalePolicyType.UseSizeSet:
4013                         {
4014                             valueToString = "USE_SIZE_SET";
4015                             break;
4016                         }
4017                     case SizeScalePolicyType.FitWithAspectRatio:
4018                         {
4019                             valueToString = "FIT_WITH_ASPECT_RATIO";
4020                             break;
4021                         }
4022                     case SizeScalePolicyType.FillWithAspectRatio:
4023                         {
4024                             valueToString = "FILL_WITH_ASPECT_RATIO";
4025                             break;
4026                         }
4027                     default:
4028                         {
4029                             valueToString = "USE_SIZE_SET";
4030                             break;
4031                         }
4032                 }
4033                 SetProperty(View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
4034             }
4035         }
4036
4037         /// <summary>
4038         ///  Gets or sets the status of whether the width size is dependent on the height size.
4039         /// </summary>
4040         /// <since_tizen> 3 </since_tizen>
4041         public bool WidthForHeight
4042         {
4043             get
4044             {
4045                 bool temp = false;
4046                 GetProperty(View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
4047                 return temp;
4048             }
4049             set
4050             {
4051                 SetProperty(View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue(value));
4052             }
4053         }
4054
4055         /// <summary>
4056         /// Gets or sets the status of whether the height size is dependent on the width size.
4057         /// </summary>
4058         /// <since_tizen> 3 </since_tizen>
4059         public bool HeightForWidth
4060         {
4061             get
4062             {
4063                 bool temp = false;
4064                 GetProperty(View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
4065                 return temp;
4066             }
4067             set
4068             {
4069                 SetProperty(View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue(value));
4070             }
4071         }
4072
4073         /// <summary>
4074         /// Gets or sets the padding for use in layout.
4075         /// </summary>
4076         /// <since_tizen> 3 </since_tizen>
4077         public Vector4 Padding
4078         {
4079             get
4080             {
4081                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
4082                 GetProperty(View.Property.PADDING).Get(temp);
4083                 return temp;
4084             }
4085             set
4086             {
4087                 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
4088             }
4089         }
4090
4091         /// <summary>
4092         /// Gets or sets the minimum size the view can be assigned in size negotiation.
4093         /// </summary>
4094         /// <since_tizen> 3 </since_tizen>
4095         public Size2D MinimumSize
4096         {
4097             get
4098             {
4099                 Size2D temp = new Size2D(0, 0);
4100                 GetProperty(View.Property.MINIMUM_SIZE).Get(temp);
4101                 return temp;
4102             }
4103             set
4104             {
4105                 SetProperty(View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4106             }
4107         }
4108
4109         /// <summary>
4110         /// Gets or sets the maximum size the view can be assigned in size negotiation.
4111         /// </summary>
4112         /// <since_tizen> 3 </since_tizen>
4113         public Size2D MaximumSize
4114         {
4115             get
4116             {
4117                 Size2D temp = new Size2D(0, 0);
4118                 GetProperty(View.Property.MAXIMUM_SIZE).Get(temp);
4119                 return temp;
4120             }
4121             set
4122             {
4123                 SetProperty(View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4124             }
4125         }
4126
4127         /// <summary>
4128         /// Gets or sets whether a child view inherits it's parent's position.<br />
4129         /// Default is to inherit.<br />
4130         /// Switching this off means that using position sets the view's world position, i.e., translates from the world origin (0,0,0) to the pivot point of the view.<br />
4131         /// </summary>
4132         /// <since_tizen> 3 </since_tizen>
4133         public bool InheritPosition
4134         {
4135             get
4136             {
4137                 bool temp = false;
4138                 GetProperty(View.Property.INHERIT_POSITION).Get(out temp);
4139                 return temp;
4140             }
4141             set
4142             {
4143                 SetProperty(View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue(value));
4144             }
4145         }
4146
4147         /// <summary>
4148         /// Gets or sets the clipping behavior (mode) of it's children.
4149         /// </summary>
4150         /// <since_tizen> 3 </since_tizen>
4151         public ClippingModeType ClippingMode
4152         {
4153             get
4154             {
4155                 string temp;
4156                 if (GetProperty(View.Property.CLIPPING_MODE).Get(out temp) == false)
4157                 {
4158                     NUILog.Error("ClippingMode get error!");
4159                 }
4160                 switch (temp)
4161                 {
4162                     case "DISABLED":
4163                     return ClippingModeType.Disabled;
4164                     case "CLIP_CHILDREN":
4165                     return ClippingModeType.ClipChildren;
4166                     case "CLIP_TO_BOUNDING_BOX":
4167                     return ClippingModeType.ClipToBoundingBox;
4168                     default:
4169                     return ClippingModeType.Disabled;
4170                 }
4171             }
4172             set
4173             {
4174                 SetProperty(View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)value));
4175             }
4176         }
4177
4178         /// <summary>
4179         /// Gets the number of renderers held by the view.
4180         /// </summary>
4181         /// <since_tizen> 3 </since_tizen>
4182         public uint RendererCount
4183         {
4184             get
4185             {
4186                 return GetRendererCount();
4187             }
4188         }
4189
4190
4191
4192         /// <summary>
4193         /// [Obsolete("Please do not use! this will be deprecated")]
4194         /// </summary>
4195         /// <since_tizen> 3 </since_tizen>
4196         /// Please do not use! this will be deprecated!
4197         /// Instead please use TouchEvent.
4198         [Obsolete("Please do not use! this will be deprecated, instead please use TouchEvent.")]
4199         [EditorBrowsable(EditorBrowsableState.Never)]
4200         public event EventHandlerWithReturnType<object, TouchEventArgs, bool> Touched
4201         {
4202             add
4203             {
4204                 if (_touchDataEventHandler == null)
4205                 {
4206                     _touchDataCallback = OnTouch;
4207                     this.TouchSignal().Connect(_touchDataCallback);
4208                 }
4209
4210                 _touchDataEventHandler += value;
4211             }
4212
4213             remove
4214             {
4215                 _touchDataEventHandler -= value;
4216
4217                 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
4218                 {
4219                     this.TouchSignal().Disconnect(_touchDataCallback);
4220                 }
4221
4222             }
4223         }
4224
4225         /// <summary>
4226         /// [Obsolete("Please do not use! this will be deprecated")]
4227         /// </summary>
4228         /// <since_tizen> 3 </since_tizen>
4229         /// Please do not use! this will be deprecated!
4230         /// Instead please use HoverEvent.
4231         [Obsolete("Please do not use! this will be deprecated, instead please use HoverEvent.")]
4232         [EditorBrowsable(EditorBrowsableState.Never)]
4233         public event EventHandlerWithReturnType<object, HoverEventArgs, bool> Hovered
4234         {
4235             add
4236             {
4237                 if (_hoverEventHandler == null)
4238                 {
4239                     _hoverEventCallback = OnHoverEvent;
4240                     this.HoveredSignal().Connect(_hoverEventCallback);
4241                 }
4242
4243                 _hoverEventHandler += value;
4244             }
4245
4246             remove
4247             {
4248                 _hoverEventHandler -= value;
4249
4250                 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
4251                 {
4252                     this.HoveredSignal().Disconnect(_hoverEventCallback);
4253                 }
4254
4255             }
4256         }
4257
4258         /// <summary>
4259         /// Please do not use! this will be deprecated.
4260         /// </summary>
4261         /// <since_tizen> 3 </since_tizen>
4262         /// Please do not use! this will be deprecated!
4263         /// Instead please use WheelEvent.
4264         [Obsolete("Please do not use! this will be deprecated, instead please use WheelEvent.")]
4265         [EditorBrowsable(EditorBrowsableState.Never)]
4266         public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelMoved
4267         {
4268             add
4269             {
4270                 if (_wheelEventHandler == null)
4271                 {
4272                     _wheelEventCallback = OnWheelEvent;
4273                     this.WheelEventSignal().Connect(_wheelEventCallback);
4274                 }
4275
4276                 _wheelEventHandler += value;
4277             }
4278
4279             remove
4280             {
4281                 _wheelEventHandler -= value;
4282
4283                 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
4284                 {
4285                     this.WheelEventSignal().Disconnect(_wheelEventCallback);
4286                 }
4287
4288             }
4289         }
4290
4291         /// <summary>
4292         /// [Obsolete("Please do not use! this will be deprecated")]
4293         /// </summary>
4294         /// <since_tizen> 3 </since_tizen>
4295         /// Please do not use! this will be deprecated!
4296         /// Instead please use PivotPoint.
4297         [Obsolete("Please do not use! this will be deprecated, instead please use PivotPoint")]
4298         [EditorBrowsable(EditorBrowsableState.Never)]
4299         public Position AnchorPoint
4300         {
4301             get
4302             {
4303                 Position temp = new Position(0.0f, 0.0f, 0.0f);
4304                 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
4305                 return temp;
4306             }
4307             set
4308             {
4309                 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
4310             }
4311         }
4312
4313         /// <summary>
4314         /// [Obsolete("Please do not use! this will be deprecated")]
4315         /// </summary>
4316         /// <since_tizen> 3 </since_tizen>
4317         [Obsolete("Please do not use! this will be deprecated, please use Size2D instead")]
4318         [EditorBrowsable(EditorBrowsableState.Never)]
4319         public Size Size
4320         {
4321             get
4322             {
4323                 Size temp = new Size(0.0f, 0.0f, 0.0f);
4324                 GetProperty(View.Property.SIZE).Get(temp);
4325                 return temp;
4326             }
4327             set
4328             {
4329                 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(value));
4330             }
4331         }
4332
4333         /// <summary>
4334         /// [Obsolete("Please do not use! this will be deprecated")]
4335         /// </summary>
4336         /// <since_tizen> 3 </since_tizen>
4337         /// Please do not use! this will be deprecated!
4338         /// Instead please use AddedToWindow.
4339         [Obsolete("Please do not use! this will be deprecated, instead please use AddedToWindow")]
4340         [EditorBrowsable(EditorBrowsableState.Never)]
4341         public event EventHandler OnWindowEvent
4342         {
4343             add
4344             {
4345                 if (_onWindowEventHandler == null)
4346                 {
4347                     _onWindowEventCallback = OnWindow;
4348                     this.OnWindowSignal().Connect(_onWindowEventCallback);
4349                 }
4350
4351                 _onWindowEventHandler += value;
4352             }
4353
4354             remove
4355             {
4356                 _onWindowEventHandler -= value;
4357
4358                 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
4359                 {
4360                     this.OnWindowSignal().Disconnect(_onWindowEventCallback);
4361                 }
4362             }
4363         }
4364
4365         /// <summary>
4366         /// [Obsolete("Please do not use! this will be deprecated")]
4367         /// </summary>
4368         /// <since_tizen> 3 </since_tizen>
4369         /// Please do not use! this will be deprecated!
4370         /// Instead please use RemovedFromWindow.
4371         [Obsolete("Please do not use! this will be deprecated, instead please use RemovedFromWindow")]
4372         [EditorBrowsable(EditorBrowsableState.Never)]
4373         public event EventHandler OffWindowEvent
4374         {
4375             add
4376             {
4377                 if (_offWindowEventHandler == null)
4378                 {
4379                     _offWindowEventCallback = OffWindow;
4380                     this.OffWindowSignal().Connect(_offWindowEventCallback);
4381                 }
4382
4383                 _offWindowEventHandler += value;
4384             }
4385
4386             remove
4387             {
4388                 _offWindowEventHandler -= value;
4389
4390                 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
4391                 {
4392                     this.OffWindowSignal().Disconnect(_offWindowEventCallback);
4393                 }
4394             }
4395         }
4396
4397         /// <summary>
4398         /// [Obsolete("Please do not use! this will be deprecated")]
4399         /// </summary>
4400         /// <since_tizen> 3 </since_tizen>
4401         /// Please do not use! this will be deprecated!
4402         /// Instead please use Relayout.
4403         [Obsolete("Please do not use! this will be deprecated, instead please use Relayout")]
4404         [EditorBrowsable(EditorBrowsableState.Never)]
4405         public event EventHandler OnRelayoutEvent
4406         {
4407             add
4408             {
4409                 if (_onRelayoutEventHandler == null)
4410                 {
4411                     _onRelayoutEventCallback = OnRelayout;
4412                     this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
4413                 }
4414
4415                 _onRelayoutEventHandler += value;
4416             }
4417
4418             remove
4419             {
4420                 _onRelayoutEventHandler -= value;
4421
4422                 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
4423                 {
4424                     this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
4425                 }
4426
4427             }
4428         }
4429
4430         /// <summary>
4431         /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4432         /// </summary>
4433         /// <since_tizen> 3 </since_tizen>
4434         //"Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4435         /// <since_tizen> 3 </since_tizen>
4436         [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
4437         public new View Parent
4438         {
4439             get
4440             {
4441                 View ret;
4442                 IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
4443
4444                 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
4445
4446                 if (basehandle is Layer)
4447                 {
4448                     ret = new View(cPtr, false);
4449                 }
4450                 else
4451                 {
4452                     ret = basehandle as View;
4453                 }
4454
4455                 if (NDalicPINVOKE.SWIGPendingException.Pending)
4456                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4457                 return ret;
4458             }
4459         }
4460
4461         /// <summary>
4462         /// Gets/Sets whether inherit parent's the layout Direction.
4463         /// </summary>
4464         /// <since_tizen> 4 </since_tizen>
4465         public bool InheritLayoutDirection
4466         {
4467             get
4468             {
4469                 bool temp = false;
4470                 GetProperty(View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
4471                 return temp;
4472             }
4473             set
4474             {
4475                 SetProperty(View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue(value));
4476             }
4477         }
4478
4479         /// <summary>
4480         /// Gets/Sets the layout Direction.
4481         /// </summary>
4482         /// <since_tizen> 4 </since_tizen>
4483         public ViewLayoutDirectionType LayoutDirection
4484         {
4485             get
4486             {
4487                 int temp;
4488                 if (GetProperty(View.Property.LAYOUT_DIRECTION).Get(out temp) == false)
4489                 {
4490                     NUILog.Error("LAYOUT_DIRECTION get error!");
4491                 }
4492                 return (ViewLayoutDirectionType)temp;
4493             }
4494             set
4495             {
4496                 SetProperty(View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)value));
4497             }
4498         }
4499
4500         /// <summary>
4501         /// Gets or sets the Margin for use in layout.
4502         /// </summary>
4503         /// <since_tizen> 4 </since_tizen>
4504         public Extents Margin
4505         {
4506             get
4507             {
4508                 Extents temp = new Extents(0, 0, 0, 0);
4509                 GetProperty(View.Property.MARGIN).Get(temp);
4510                 return temp;
4511             }
4512             set
4513             {
4514                 SetProperty(View.Property.MARGIN, new Tizen.NUI.PropertyValue(value));
4515             }
4516         }
4517
4518         /// <summary>
4519         /// Gets or sets the Padding for use in layout.
4520         /// </summary>
4521         /// <since_tizen> 4 </since_tizen>
4522         public Extents PaddingEX
4523         {
4524             get
4525             {
4526                 Extents temp = new Extents(0, 0, 0, 0);
4527                 GetProperty(View.Property.PADDINGEX).Get(temp);
4528                 return temp;
4529             }
4530             set
4531             {
4532                 SetProperty(View.Property.PADDINGEX, new Tizen.NUI.PropertyValue(value));
4533             }
4534         }
4535     }
4536
4537     /// <summary>
4538     /// The View layout Direction type.
4539     /// </summary>
4540     /// <since_tizen> 4 </since_tizen>
4541     public enum ViewLayoutDirectionType
4542     {
4543         /// <summary>
4544         /// Left to right.
4545         /// </summary>
4546         /// <since_tizen> 4 </since_tizen>
4547         LTR,
4548         /// <summary>
4549         /// Right to left.
4550         /// </summary>
4551         /// <since_tizen> 4 </since_tizen>
4552         RTL
4553     }
4554 }