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