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