2 * Copyright(c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 namespace Tizen.NUI.BaseComponents
22 using System.Runtime.InteropServices;
25 /// View is the base class for all views.
27 public class View : Container
29 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
32 internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.View_SWIGUpcast(cPtr), cMemoryOwn)
34 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
35 PositionUsesPivotPoint = false;
38 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
40 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
43 // From Container Base class
46 /// Adds a child view to this view.
48 /// <seealso cref="Container.Add" />
49 /// <since_tizen> 4 </since_tizen>
50 public override void Add(View child)
52 NDalicPINVOKE.Actor_Add(swigCPtr, View.getCPtr(child));
53 if (NDalicPINVOKE.SWIGPendingException.Pending)
54 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
60 /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
62 /// <seealso cref="Container.Remove" />
63 /// <since_tizen> 4 </since_tizen>
64 public override void Remove(View child)
66 NDalicPINVOKE.Actor_Remove(swigCPtr, View.getCPtr(child));
67 if (NDalicPINVOKE.SWIGPendingException.Pending)
68 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
70 Children.Remove(child);
74 /// Retrieves a child view by index.
76 /// <seealso cref="Container.GetChildAt" />
77 /// <since_tizen> 4 </since_tizen>
78 public override View GetChildAt(uint index)
80 if (index < Children.Count)
82 return Children[Convert.ToInt32(index)];
91 /// Retrieves the number of children held by the view.
93 /// <seealso cref="Container.GetChildCount" />
94 public override uint GetChildCount()
96 return Convert.ToUInt32(Children.Count);
100 /// Gets the views parent.
102 /// <seealso cref="Container.GetParent()" />
103 public override Container GetParent()
105 IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
107 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
109 if (NDalicPINVOKE.SWIGPendingException.Pending)
110 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
112 return basehandle as Container;
115 internal bool IsTopLevelView()
117 if(GetParent() is Layer)
125 /// you can override it to clean-up your own resources.
127 /// <param name="type">DisposeTypes</param>
128 /// <since_tizen> 3 </since_tizen>
129 protected override void Dispose(DisposeTypes type)
136 if(type == DisposeTypes.Explicit)
139 //Release your own managed resources here.
140 //You should release all of your own disposable objects here.
143 //Release your own unmanaged resources here.
144 //You should not access any managed member here except static instance.
145 //because the execution order of Finalizes is non-deterministic.
147 DisConnectFromSignals();
149 if (swigCPtr.Handle != global::System.IntPtr.Zero)
154 NDalicPINVOKE.delete_View(swigCPtr);
156 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
163 private void DisConnectFromSignals()
165 // Save current CPtr.
166 global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
168 // Use BaseHandle CPtr as current might have been deleted already in derived classes.
169 swigCPtr = GetBaseHandleCPtrHandleRef;
171 if (_onRelayoutEventCallback != null)
173 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
176 if (_offWindowEventCallback != null)
178 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
181 if (_onWindowEventCallback != null)
183 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
186 if (_wheelEventCallback != null)
188 this.WheelEventSignal().Disconnect(_wheelEventCallback);
191 if (_hoverEventCallback != null)
193 this.HoveredSignal().Disconnect(_hoverEventCallback);
196 if (_touchDataCallback != null)
198 this.TouchSignal().Disconnect(_touchDataCallback);
201 if (_ResourcesLoadedCallback != null)
203 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
206 if (_offWindowEventCallback != null)
208 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
211 if (_onWindowEventCallback != null)
213 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
216 if (_wheelEventCallback != null)
218 this.WheelEventSignal().Disconnect(_wheelEventCallback);
221 if (_hoverEventCallback != null)
223 this.HoveredSignal().Disconnect(_hoverEventCallback);
226 if (_touchDataCallback != null)
228 this.TouchSignal().Disconnect(_touchDataCallback);
231 if (_onRelayoutEventCallback != null)
233 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
236 if (_keyCallback != null)
238 this.KeyEventSignal().Disconnect(_keyCallback);
241 if (_keyInputFocusLostCallback != null)
243 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
246 if (_keyInputFocusGainedCallback != null)
248 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
251 // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
252 // Restore current CPtr.
253 swigCPtr = currentCPtr;
256 private EventHandler _keyInputFocusGainedEventHandler;
257 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
258 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
259 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
262 /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
263 /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.<br />
265 /// <since_tizen> 3 </since_tizen>
266 public event EventHandler FocusGained
270 if (_keyInputFocusGainedEventHandler == null)
272 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
273 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
276 _keyInputFocusGainedEventHandler += value;
281 _keyInputFocusGainedEventHandler -= value;
283 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
285 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
290 private void OnKeyInputFocusGained(IntPtr view)
292 if (_keyInputFocusGainedEventHandler != null)
294 _keyInputFocusGainedEventHandler(this, null);
299 private EventHandler _keyInputFocusLostEventHandler;
300 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
301 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
302 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
305 /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
306 /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.<br />
308 /// <since_tizen> 3 </since_tizen>
309 public event EventHandler FocusLost
313 if (_keyInputFocusLostEventHandler == null)
315 _keyInputFocusLostCallback = OnKeyInputFocusLost;
316 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
319 _keyInputFocusLostEventHandler += value;
324 _keyInputFocusLostEventHandler -= value;
326 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
328 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
333 private void OnKeyInputFocusLost(IntPtr view)
335 if (_keyInputFocusLostEventHandler != null)
337 _keyInputFocusLostEventHandler(this, null);
342 /// Event arguments that passed via the KeyEvent signal.
344 public class KeyEventArgs : EventArgs
349 /// Key - is the key sent to the view.
351 /// <since_tizen> 3 </since_tizen>
365 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
366 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
367 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
368 private KeyCallbackType _keyCallback;
371 /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
372 /// The KeyPressed signal is emitted when the key event is received.<br />
374 /// <since_tizen> 4 </since_tizen>
375 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
379 if (_keyEventHandler == null)
381 _keyCallback = OnKeyEvent;
382 this.KeyEventSignal().Connect(_keyCallback);
385 _keyEventHandler += value;
390 _keyEventHandler -= value;
392 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
394 this.KeyEventSignal().Disconnect(_keyCallback);
399 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
401 KeyEventArgs e = new KeyEventArgs();
405 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
407 if (_keyEventHandler != null)
409 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
411 // Oring the result of each callback.
412 foreach ( EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList )
414 result |= del( this, e );
421 private EventHandler _onRelayoutEventHandler;
422 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
423 private delegate void OnRelayoutEventCallbackType(IntPtr control);
424 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
427 /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.<br />
428 /// The OnRelayout signal is emitted after the size has been set on the view during relayout.<br />
430 /// <since_tizen> 3 </since_tizen>
431 public event EventHandler Relayout
435 if (_onRelayoutEventHandler == null)
437 _onRelayoutEventCallback = OnRelayout;
438 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
441 _onRelayoutEventHandler += value;
446 _onRelayoutEventHandler -= value;
448 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
450 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
456 // Callback for View OnRelayout signal
457 private void OnRelayout(IntPtr data)
459 if (_onRelayoutEventHandler != null)
461 _onRelayoutEventHandler(this, null);
466 /// Event arguments that passed via the touch signal.
468 public class TouchEventArgs : EventArgs
470 private Touch _touch;
473 /// Touch - contains the information of touch points.
475 /// <since_tizen> 3 </since_tizen>
489 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
490 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
491 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
492 private TouchDataCallbackType _touchDataCallback;
495 /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
496 /// The touched signal is emitted when the touch input is received.<br />
498 /// <since_tizen> 4 </since_tizen>
499 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> TouchEvent
503 if (_touchDataEventHandler == null)
505 _touchDataCallback = OnTouch;
506 this.TouchSignal().Connect(_touchDataCallback);
509 _touchDataEventHandler += value;
514 _touchDataEventHandler -= value;
516 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
518 this.TouchSignal().Disconnect(_touchDataCallback);
524 // Callback for View TouchSignal
525 private bool OnTouch(IntPtr view, IntPtr touchData)
527 TouchEventArgs e = new TouchEventArgs();
529 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
531 if (_touchDataEventHandler != null)
533 return _touchDataEventHandler(this, e);
540 /// Event arguments that passed via the hover signal.
542 public class HoverEventArgs : EventArgs
544 private Hover _hover;
547 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
549 /// <since_tizen> 3 </since_tizen>
563 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
564 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
565 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
566 private HoverEventCallbackType _hoverEventCallback;
569 /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
570 /// The hovered signal is emitted when the hover input is received.<br />
572 /// <since_tizen> 4 </since_tizen>
573 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> HoverEvent
577 if (_hoverEventHandler == null)
579 _hoverEventCallback = OnHoverEvent;
580 this.HoveredSignal().Connect(_hoverEventCallback);
583 _hoverEventHandler += value;
588 _hoverEventHandler -= value;
590 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
592 this.HoveredSignal().Disconnect(_hoverEventCallback);
598 // Callback for View Hover signal
599 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
601 HoverEventArgs e = new HoverEventArgs();
603 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
605 if (_hoverEventHandler != null)
607 return _hoverEventHandler(this, e);
614 /// Event arguments that passed via the wheel signal.
616 public class WheelEventArgs : EventArgs
618 private Wheel _wheel;
621 /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
623 /// <since_tizen> 3 </since_tizen>
637 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
638 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
639 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
640 private WheelEventCallbackType _wheelEventCallback;
643 /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
644 /// The WheelMoved signal is emitted when the wheel event is received.<br />
646 /// <since_tizen> 4 </since_tizen>
647 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelEvent
651 if (_wheelEventHandler == null)
653 _wheelEventCallback = OnWheelEvent;
654 this.WheelEventSignal().Connect(_wheelEventCallback);
657 _wheelEventHandler += value;
662 _wheelEventHandler -= value;
664 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
666 this.WheelEventSignal().Disconnect(_wheelEventCallback);
672 // Callback for View Wheel signal
673 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
675 WheelEventArgs e = new WheelEventArgs();
677 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
679 if (_wheelEventHandler != null)
681 return _wheelEventHandler(this, e);
687 private EventHandler _onWindowEventHandler;
688 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
689 private delegate void OnWindowEventCallbackType(IntPtr control);
690 private OnWindowEventCallbackType _onWindowEventCallback;
693 /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.<br />
694 /// The OnWindow signal is emitted after the view has been connected to the window.<br />
696 /// <since_tizen> 3 </since_tizen>
697 public event EventHandler AddedToWindow
701 if (_onWindowEventHandler == null)
703 _onWindowEventCallback = OnWindow;
704 this.OnWindowSignal().Connect(_onWindowEventCallback);
707 _onWindowEventHandler += value;
712 _onWindowEventHandler -= value;
714 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
716 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
721 // Callback for View OnWindow signal
722 private void OnWindow(IntPtr data)
724 if (_onWindowEventHandler != null)
726 _onWindowEventHandler(this, null);
731 private EventHandler _offWindowEventHandler;
732 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
733 private delegate void OffWindowEventCallbackType(IntPtr control);
734 private OffWindowEventCallbackType _offWindowEventCallback;
737 /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.<br />
738 /// OffWindow signal is emitted after the view has been disconnected from the window.<br />
740 /// <since_tizen> 3 </since_tizen>
741 public event EventHandler RemovedFromWindow
745 if (_offWindowEventHandler == null)
747 _offWindowEventCallback = OffWindow;
748 this.OffWindowSignal().Connect(_offWindowEventCallback);
751 _offWindowEventHandler += value;
756 _offWindowEventHandler -= value;
758 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
760 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
765 // Callback for View OffWindow signal
766 private void OffWindow(IntPtr data)
768 if (_offWindowEventHandler != null)
770 _offWindowEventHandler(this, null);
775 /// Event arguments of visibility changed.
777 public class VisibilityChangedEventArgs : EventArgs
780 private bool _visibility;
781 private VisibilityChangeType _type;
784 /// The view, or child of view, whose visibility has changed.
786 /// <since_tizen> 3 </since_tizen>
800 /// Whether the view is now visible or not.
802 /// <since_tizen> 3 </since_tizen>
803 public bool Visibility
816 /// Whether the view's visible property has changed or a parent's.
818 /// <since_tizen> 3 </since_tizen>
819 public VisibilityChangeType Type
832 private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
833 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
834 private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
835 private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
838 /// An event for visibility change which can be used to subscribe or unsubscribe the event handler.<br />
839 /// This signal is emitted when the visible property of this or a parent view is changed.<br />
841 /// <since_tizen> 3 </since_tizen>
842 public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
846 if (_visibilityChangedEventHandler == null)
848 _visibilityChangedEventCallback = OnVisibilityChanged;
849 VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
852 _visibilityChangedEventHandler += value;
857 _visibilityChangedEventHandler -= value;
859 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
861 VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
866 // Callback for View visibility change signal
867 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
869 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
872 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
874 e.Visibility = visibility;
877 if (_visibilityChangedEventHandler != null)
879 _visibilityChangedEventHandler(this, e);
885 /// Event arguments of layout direction changed.
887 public class LayoutDirectionChangedEventArgs : EventArgs
890 private ViewLayoutDirectionType _type;
893 /// The view, or child of view, whose layout direction has changed.
895 /// <since_tizen> 4 </since_tizen>
909 /// Whether the view's layout direction property has changed or a parent's.
911 /// <since_tizen> 4 </since_tizen>
912 public ViewLayoutDirectionType Type
925 private EventHandler<LayoutDirectionChangedEventArgs> _layoutDirectionChangedEventHandler;
926 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
927 private delegate void LayoutDirectionChangedEventCallbackType(IntPtr data, ViewLayoutDirectionType type);
928 private LayoutDirectionChangedEventCallbackType _layoutDirectionChangedEventCallback;
931 /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.<br />
932 /// This signal is emitted when the layout direction property of this or a parent view is changed.<br />
934 /// <since_tizen> 4 </since_tizen>
935 public event EventHandler<LayoutDirectionChangedEventArgs> LayoutDirectionChanged
939 if (_layoutDirectionChangedEventHandler == null)
941 _layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
942 LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
945 _layoutDirectionChangedEventHandler += value;
950 _layoutDirectionChangedEventHandler -= value;
952 if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
954 LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
959 // Callback for View layout direction change signal
960 private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
962 LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
965 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
969 if (_layoutDirectionChangedEventHandler != null)
971 _layoutDirectionChangedEventHandler(this, e);
981 // Resource Ready Signal
983 private EventHandler _resourcesLoadedEventHandler;
984 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
985 private delegate void ResourcesLoadedCallbackType(IntPtr control);
986 private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
989 /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
990 /// This signal is emitted after all resources required by a view are loaded and ready.<br />
992 /// <since_tizen> 4 </since_tizen>
993 public event EventHandler ResourcesLoaded
997 if (_resourcesLoadedEventHandler == null)
999 _ResourcesLoadedCallback = OnResourcesLoaded;
1000 this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
1003 _resourcesLoadedEventHandler += value;
1008 _resourcesLoadedEventHandler -= value;
1010 if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1012 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
1017 private void OnResourcesLoaded(IntPtr view)
1019 if (_resourcesLoadedEventHandler != null)
1021 _resourcesLoadedEventHandler(this, null);
1025 internal IntPtr GetPtrfromView()
1027 return (IntPtr)swigCPtr;
1030 internal class Property
1032 internal static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
1033 internal static readonly int STATE = NDalicManualPINVOKE.View_Property_STATE_get();
1034 internal static readonly int SUB_STATE = NDalicManualPINVOKE.View_Property_SUB_STATE_get();
1035 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
1036 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
1037 internal static readonly int UP_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
1038 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
1039 internal static readonly int STYLE_NAME = NDalicPINVOKE.View_Property_STYLE_NAME_get();
1040 internal static readonly int BACKGROUND = NDalicPINVOKE.View_Property_BACKGROUND_get();
1041 internal static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
1042 internal static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
1043 internal static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
1044 internal static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
1045 internal static readonly int PARENT_ORIGIN = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_get();
1046 internal static readonly int PARENT_ORIGIN_X = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_X_get();
1047 internal static readonly int PARENT_ORIGIN_Y = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Y_get();
1048 internal static readonly int PARENT_ORIGIN_Z = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Z_get();
1049 internal static readonly int ANCHOR_POINT = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_get();
1050 internal static readonly int ANCHOR_POINT_X = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_X_get();
1051 internal static readonly int ANCHOR_POINT_Y = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Y_get();
1052 internal static readonly int ANCHOR_POINT_Z = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Z_get();
1053 internal static readonly int SIZE = NDalicPINVOKE.Actor_Property_SIZE_get();
1054 internal static readonly int SIZE_WIDTH = NDalicPINVOKE.Actor_Property_SIZE_WIDTH_get();
1055 internal static readonly int SIZE_HEIGHT = NDalicPINVOKE.Actor_Property_SIZE_HEIGHT_get();
1056 internal static readonly int SIZE_DEPTH = NDalicPINVOKE.Actor_Property_SIZE_DEPTH_get();
1057 internal static readonly int POSITION = NDalicPINVOKE.Actor_Property_POSITION_get();
1058 internal static readonly int POSITION_X = NDalicPINVOKE.Actor_Property_POSITION_X_get();
1059 internal static readonly int POSITION_Y = NDalicPINVOKE.Actor_Property_POSITION_Y_get();
1060 internal static readonly int POSITION_Z = NDalicPINVOKE.Actor_Property_POSITION_Z_get();
1061 internal static readonly int WORLD_POSITION = NDalicPINVOKE.Actor_Property_WORLD_POSITION_get();
1062 internal static readonly int WORLD_POSITION_X = NDalicPINVOKE.Actor_Property_WORLD_POSITION_X_get();
1063 internal static readonly int WORLD_POSITION_Y = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Y_get();
1064 internal static readonly int WORLD_POSITION_Z = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Z_get();
1065 internal static readonly int ORIENTATION = NDalicPINVOKE.Actor_Property_ORIENTATION_get();
1066 internal static readonly int WORLD_ORIENTATION = NDalicPINVOKE.Actor_Property_WORLD_ORIENTATION_get();
1067 internal static readonly int SCALE = NDalicPINVOKE.Actor_Property_SCALE_get();
1068 internal static readonly int SCALE_X = NDalicPINVOKE.Actor_Property_SCALE_X_get();
1069 internal static readonly int SCALE_Y = NDalicPINVOKE.Actor_Property_SCALE_Y_get();
1070 internal static readonly int SCALE_Z = NDalicPINVOKE.Actor_Property_SCALE_Z_get();
1071 internal static readonly int WORLD_SCALE = NDalicPINVOKE.Actor_Property_WORLD_SCALE_get();
1072 internal static readonly int VISIBLE = NDalicPINVOKE.Actor_Property_VISIBLE_get();
1073 internal static readonly int WORLD_COLOR = NDalicPINVOKE.Actor_Property_WORLD_COLOR_get();
1074 internal static readonly int WORLD_MATRIX = NDalicPINVOKE.Actor_Property_WORLD_MATRIX_get();
1075 internal static readonly int NAME = NDalicPINVOKE.Actor_Property_NAME_get();
1076 internal static readonly int SENSITIVE = NDalicPINVOKE.Actor_Property_SENSITIVE_get();
1077 internal static readonly int LEAVE_REQUIRED = NDalicPINVOKE.Actor_Property_LEAVE_REQUIRED_get();
1078 internal static readonly int INHERIT_ORIENTATION = NDalicPINVOKE.Actor_Property_INHERIT_ORIENTATION_get();
1079 internal static readonly int INHERIT_SCALE = NDalicPINVOKE.Actor_Property_INHERIT_SCALE_get();
1080 internal static readonly int DRAW_MODE = NDalicPINVOKE.Actor_Property_DRAW_MODE_get();
1081 internal static readonly int SIZE_MODE_FACTOR = NDalicPINVOKE.Actor_Property_SIZE_MODE_FACTOR_get();
1082 internal static readonly int WIDTH_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_WIDTH_RESIZE_POLICY_get();
1083 internal static readonly int HEIGHT_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_HEIGHT_RESIZE_POLICY_get();
1084 internal static readonly int SIZE_SCALE_POLICY = NDalicPINVOKE.Actor_Property_SIZE_SCALE_POLICY_get();
1085 internal static readonly int WIDTH_FOR_HEIGHT = NDalicPINVOKE.Actor_Property_WIDTH_FOR_HEIGHT_get();
1086 internal static readonly int HEIGHT_FOR_WIDTH = NDalicPINVOKE.Actor_Property_HEIGHT_FOR_WIDTH_get();
1087 internal static readonly int PADDING = NDalicPINVOKE.Actor_Property_PADDING_get();
1088 internal static readonly int MINIMUM_SIZE = NDalicPINVOKE.Actor_Property_MINIMUM_SIZE_get();
1089 internal static readonly int MAXIMUM_SIZE = NDalicPINVOKE.Actor_Property_MAXIMUM_SIZE_get();
1090 internal static readonly int INHERIT_POSITION = NDalicPINVOKE.Actor_Property_INHERIT_POSITION_get();
1091 internal static readonly int CLIPPING_MODE = NDalicPINVOKE.Actor_Property_CLIPPING_MODE_get();
1092 internal static readonly int INHERIT_LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
1093 internal static readonly int LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_LAYOUT_DIRECTION_get();
1094 internal static readonly int MARGIN = NDalicPINVOKE.View_Property_MARGIN_get();
1095 internal static readonly int PADDINGEX = NDalicPINVOKE.View_Property_PADDING_get();
1099 /// Describes the direction to move the focus towards.
1101 /// <since_tizen> 3 </since_tizen>
1102 public enum FocusDirection
1105 /// Move keyboard focus towards the left direction.
1107 /// <since_tizen> 3 </since_tizen>
1110 /// Move keyboard focus towards the right direction.
1112 /// <since_tizen> 3 </since_tizen>
1115 /// Move keyboard focus towards the up direction.
1117 /// <since_tizen> 3 </since_tizen>
1120 /// Move keyboard focus towards the down direction.
1122 /// <since_tizen> 3 </since_tizen>
1125 /// Move keyboard focus towards the previous page direction.
1127 /// <since_tizen> 3 </since_tizen>
1130 /// Move keyboard focus towards the next page direction.
1132 /// <since_tizen> 3 </since_tizen>
1137 /// Creates a new instance of a view.
1139 /// <since_tizen> 3 </since_tizen>
1140 public View() : this(NDalicPINVOKE.View_New(), true)
1142 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1145 internal View(View uiControl) : this(NDalicPINVOKE.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1147 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1151 /// Downcasts a handle to view handle.<br />
1152 /// If handle points to a view, the downcast produces a valid handle.<br />
1153 /// If not, the returned handle is left uninitialized.<br />
1155 /// <param name="handle">A handle to an object.</param>
1156 /// <returns>A handle to a view or an uninitialized handle.</returns>
1157 [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1158 public static View DownCast(BaseHandle handle)
1160 View ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as View;
1161 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1166 /// [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1168 /// <since_tizen> 3 </since_tizen>
1169 [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1170 public static T DownCast<T>(View view) where T : View
1172 T ret = Registry.GetManagedBaseHandleFromNativePtr(view) as T;
1180 private View ConvertIdToView(uint id)
1186 View parentView = Parent as View;
1187 view = parentView.FindChildById(id);
1192 view = Window.Instance.GetRootLayer().FindChildById(id);
1198 internal void SetKeyInputFocus()
1200 NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
1201 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1205 /// Queries whether the view has a focus.
1207 /// <returns>True if this view has a focus.</returns>
1208 /// <since_tizen> 3 </since_tizen>
1209 public bool HasFocus()
1211 bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
1212 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1216 internal void ClearKeyInputFocus()
1218 NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
1219 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1222 internal PinchGestureDetector GetPinchGestureDetector()
1224 PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
1225 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1229 internal PanGestureDetector GetPanGestureDetector()
1231 PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
1232 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1236 internal TapGestureDetector GetTapGestureDetector()
1238 TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
1239 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1243 internal LongPressGestureDetector GetLongPressGestureDetector()
1245 LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
1246 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1251 /// Sets the name of the style to be applied to the view.
1253 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
1254 /// <since_tizen> 3 </since_tizen>
1255 public void SetStyleName(string styleName)
1257 NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
1258 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1262 /// Retrieves the name of the style to be applied to the view (if any).
1264 /// <returns>A string matching a style, or an empty string.</returns>
1265 /// <since_tizen> 3 </since_tizen>
1266 public string GetStyleName()
1268 string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
1269 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1273 internal void SetBackgroundColor(Vector4 color)
1275 NDalicPINVOKE.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
1276 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1279 internal Vector4 GetBackgroundColor()
1281 Vector4 ret = new Vector4(NDalicPINVOKE.View_GetBackgroundColor(swigCPtr), true);
1282 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1286 internal void SetBackgroundImage(Image image)
1288 NDalicPINVOKE.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
1289 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1293 /// Clears the background.
1295 /// <since_tizen> 3 </since_tizen>
1296 public void ClearBackground()
1298 NDalicPINVOKE.View_ClearBackground(swigCPtr);
1299 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1302 internal ControlKeySignal KeyEventSignal()
1304 ControlKeySignal ret = new ControlKeySignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
1305 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1309 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
1311 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
1312 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1316 internal KeyInputFocusSignal KeyInputFocusLostSignal()
1318 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
1319 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1323 internal View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1325 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1328 internal enum PropertyRange
1330 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1331 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1332 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1336 /// The StyleName, type string.
1338 /// <since_tizen> 3 </since_tizen>
1339 public string StyleName
1344 GetProperty(View.Property.STYLE_NAME).Get(out temp);
1349 SetProperty(View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue(value));
1354 /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
1356 /// <since_tizen> 3 </since_tizen>
1357 public Color BackgroundColor
1361 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1363 Tizen.NUI.PropertyMap background = Background;
1365 background.Find(Visual.Property.Type)?.Get(out visualType);
1366 if (visualType == (int)Visual.Type.Color)
1368 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
1371 return backgroundColor;
1375 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1380 /// Creates an animation to animate the background color visual. If there is no
1381 /// background visual, creates one with transparent black as it's mixColor.
1383 /// <since_tizen> 4 </since_tizen>
1384 public Animation AnimateBackgroundColor( object destinationValue,
1387 AlphaFunction.BuiltinFunctions? alphaFunction = null,
1388 object initialValue = null)
1390 Tizen.NUI.PropertyMap background = Background;
1392 if( background.Empty() )
1394 // If there is no background yet, ensure there is a transparent
1396 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1397 background = Background;
1399 return AnimateColor( "background", destinationValue, startTime, endTime, alphaFunction, initialValue );
1403 /// Creates an animation to animate the mixColor of the named visual.
1405 /// <since_tizen> 4 </since_tizen>
1406 public Animation AnimateColor( string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null )
1408 Animation animation = null;
1410 PropertyMap _animator = new PropertyMap();
1411 if( alphaFunction != null )
1413 _animator.Add("alphaFunction", new PropertyValue( AlphaFunction.BuiltinToPropertyKey(alphaFunction) ) );
1416 PropertyMap _timePeriod = new PropertyMap();
1417 _timePeriod.Add( "duration", new PropertyValue((endTime-startTime)/1000.0f) );
1418 _timePeriod.Add( "delay", new PropertyValue( startTime/1000.0f ) );
1419 _animator.Add( "timePeriod", new PropertyValue( _timePeriod ) );
1421 PropertyMap _transition = new PropertyMap();
1422 _transition.Add( "animator", new PropertyValue( _animator ) );
1423 _transition.Add( "target", new PropertyValue( targetVisual ) );
1424 _transition.Add( "property", new PropertyValue( "mixColor" ) );
1426 if( initialColor != null )
1428 PropertyValue initValue = PropertyValue.CreateFromObject( initialColor );
1429 _transition.Add( "initialValue", initValue );
1432 PropertyValue destValue = PropertyValue.CreateFromObject( destinationColor );
1433 _transition.Add( "targetValue", destValue );
1434 TransitionData _transitionData = new TransitionData( _transition );
1436 animation = new Animation( NDalicManualPINVOKE.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true );
1437 if (NDalicPINVOKE.SWIGPendingException.Pending)
1438 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1444 /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
1446 /// <since_tizen> 3 </since_tizen>
1447 public string BackgroundImage
1451 string backgroundImage = "";
1453 Tizen.NUI.PropertyMap background = Background;
1455 background.Find(Visual.Property.Type)?.Get(out visualType);
1456 if (visualType == (int)Visual.Type.Image)
1458 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
1461 return backgroundImage;
1465 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1470 /// The background of view.
1472 /// <since_tizen> 3 </since_tizen>
1473 public Tizen.NUI.PropertyMap Background
1477 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1478 GetProperty( View.Property.BACKGROUND ).Get(temp);
1483 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1489 /// The current state of the view.
1491 /// <since_tizen> 3 </since_tizen>
1497 if (GetProperty(View.Property.STATE).Get(out temp) == false)
1499 NUILog.Error("State get error!");
1505 return States.Normal;
1509 return States.Focused;
1513 return States.Disabled;
1517 return States.Normal;
1523 SetProperty(View.Property.STATE, new Tizen.NUI.PropertyValue((int)value));
1528 /// The current sub state of the view.
1530 /// <since_tizen> 3 </since_tizen>
1531 public States SubState
1536 if (GetProperty(View.Property.SUB_STATE).Get(out temp) == false)
1538 NUILog.Error("subState get error!");
1543 return States.Normal;
1545 return States.Focused;
1547 return States.Disabled;
1549 return States.Normal;
1554 string valueToString = "";
1559 valueToString = "NORMAL";
1562 case States.Focused:
1564 valueToString = "FOCUSED";
1567 case States.Disabled:
1569 valueToString = "DISABLED";
1574 valueToString = "NORMAL";
1578 SetProperty(View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
1583 /// Displays a tooltip
1585 /// <since_tizen> 3 </since_tizen>
1586 public Tizen.NUI.PropertyMap Tooltip
1590 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1591 GetProperty(View.Property.TOOLTIP).Get(temp);
1596 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1601 /// Displays a tooltip as a text.
1603 /// <since_tizen> 3 </since_tizen>
1604 public string TooltipText
1608 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1612 private int LeftFocusableViewId
1617 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
1622 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1626 private int RightFocusableViewId
1631 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
1636 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1640 private int UpFocusableViewId
1645 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
1650 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1654 private int DownFocusableViewId
1659 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
1664 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1669 /// The Child property of FlexContainer.<br />
1670 /// The proportion of the free space in the container, the flex item will receive.<br />
1671 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
1673 /// <since_tizen> 3 </since_tizen>
1679 GetProperty(FlexContainer.ChildProperty.FLEX).Get(out temp);
1684 SetProperty(FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue(value));
1689 /// The Child property of FlexContainer.<br />
1690 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
1692 /// <since_tizen> 3 </since_tizen>
1693 public int AlignSelf
1698 GetProperty(FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
1703 SetProperty(FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue(value));
1708 /// The Child property of FlexContainer.<br />
1709 /// The space around the flex item.<br />
1711 /// <since_tizen> 3 </since_tizen>
1712 public Vector4 FlexMargin
1716 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1717 GetProperty(FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
1722 SetProperty(FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue(value));
1727 /// The top-left cell this child occupies, if not set, the first available cell is used.
1729 /// <since_tizen> 3 </since_tizen>
1730 public Vector2 CellIndex
1734 Vector2 temp = new Vector2(0.0f, 0.0f);
1735 GetProperty(TableView.ChildProperty.CELL_INDEX).Get(temp);
1740 SetProperty(TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue(value));
1745 /// The number of rows this child occupies, if not set, the default value is 1.
1747 /// <since_tizen> 3 </since_tizen>
1748 public float RowSpan
1753 GetProperty(TableView.ChildProperty.ROW_SPAN).Get(out temp);
1758 SetProperty(TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue(value));
1763 /// The number of columns this child occupies, if not set, the default value is 1.
1765 /// <since_tizen> 3 </since_tizen>
1766 public float ColumnSpan
1771 GetProperty(TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
1776 SetProperty(TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue(value));
1781 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
1783 /// <since_tizen> 3 </since_tizen>
1784 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
1789 if (GetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
1791 NUILog.Error("CellHorizontalAlignment get error!");
1797 return Tizen.NUI.HorizontalAlignmentType.Left;
1799 return Tizen.NUI.HorizontalAlignmentType.Center;
1801 return Tizen.NUI.HorizontalAlignmentType.Right;
1803 return Tizen.NUI.HorizontalAlignmentType.Left;
1808 string valueToString = "";
1811 case Tizen.NUI.HorizontalAlignmentType.Left:
1813 valueToString = "left";
1816 case Tizen.NUI.HorizontalAlignmentType.Center:
1818 valueToString = "center";
1821 case Tizen.NUI.HorizontalAlignmentType.Right:
1823 valueToString = "right";
1828 valueToString = "left";
1832 SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1837 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
1839 /// <since_tizen> 3 </since_tizen>
1840 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
1845 GetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
1847 NUILog.Error("CellVerticalAlignment get error!");
1853 return Tizen.NUI.VerticalAlignmentType.Top;
1855 return Tizen.NUI.VerticalAlignmentType.Center;
1857 return Tizen.NUI.VerticalAlignmentType.Bottom;
1859 return Tizen.NUI.VerticalAlignmentType.Top;
1864 string valueToString = "";
1867 case Tizen.NUI.VerticalAlignmentType.Top:
1869 valueToString = "top";
1872 case Tizen.NUI.VerticalAlignmentType.Center:
1874 valueToString = "center";
1877 case Tizen.NUI.VerticalAlignmentType.Bottom:
1879 valueToString = "bottom";
1884 valueToString = "top";
1888 SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1893 /// The left focusable view.<br />
1894 /// This will return null if not set.<br />
1895 /// This will also return null if the specified left focusable view is not on a window.<br />
1897 /// <since_tizen> 3 </since_tizen>
1898 public View LeftFocusableView
1900 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1903 if (LeftFocusableViewId >= 0)
1905 return ConvertIdToView((uint)LeftFocusableViewId);
1913 LeftFocusableViewId = (int)value.GetId();
1917 LeftFocusableViewId = -1;
1923 /// The right focusable view.<br />
1924 /// This will return null if not set.<br />
1925 /// This will also return null if the specified right focusable view is not on a window.<br />
1927 /// <since_tizen> 3 </since_tizen>
1928 public View RightFocusableView
1930 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1933 if (RightFocusableViewId >= 0)
1935 return ConvertIdToView((uint)RightFocusableViewId);
1943 RightFocusableViewId = (int)value.GetId();
1947 RightFocusableViewId = -1;
1953 /// The up focusable view.<br />
1954 /// This will return null if not set.<br />
1955 /// This will also return null if the specified up focusable view is not on a window.<br />
1957 /// <since_tizen> 3 </since_tizen>
1958 public View UpFocusableView
1960 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1963 if (UpFocusableViewId >= 0)
1965 return ConvertIdToView((uint)UpFocusableViewId);
1973 UpFocusableViewId = (int)value.GetId();
1977 UpFocusableViewId = -1;
1983 /// The down focusable view.<br />
1984 /// This will return null if not set.<br />
1985 /// This will also return null if the specified down focusable view is not on a window.<br />
1987 /// <since_tizen> 3 </since_tizen>
1988 public View DownFocusableView
1990 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1993 if (DownFocusableViewId >= 0)
1995 return ConvertIdToView((uint)DownFocusableViewId);
2003 DownFocusableViewId = (int)value.GetId();
2007 DownFocusableViewId = -1;
2013 /// Whether the view should be focusable by keyboard navigation.
2015 /// <since_tizen> 3 </since_tizen>
2016 public bool Focusable
2020 SetKeyboardFocusable(value);
2024 return IsKeyboardFocusable();
2029 /// Enumeration for describing the states of the view.
2031 /// <since_tizen> 3 </since_tizen>
2035 /// The normal state.
2039 /// The focused state.
2043 /// The disabled state.
2049 /// Retrieves the position of the view.<br />
2050 /// The coordinates are relative to the view's parent.<br />
2052 /// <since_tizen> 3 </since_tizen>
2053 public Position CurrentPosition
2057 return GetCurrentPosition();
2062 /// Sets the size of a view for the width and the height.<br />
2063 /// Geometry can be scaled to fit within this area.<br />
2064 /// This does not interfere with the view's scale factor.<br />
2065 /// The views default depth is the minimum of width and height.<br />
2067 /// <since_tizen> 3 </since_tizen>
2068 public Size2D Size2D
2072 Size temp = new Size(0.0f, 0.0f, 0.0f);
2073 GetProperty(View.Property.SIZE).Get(temp);
2074 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
2079 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size(value)));
2084 /// Retrieves the size of the view.<br />
2085 /// The coordinates are relative to the view's parent.<br />
2087 /// <since_tizen> 3 </since_tizen>
2088 public Size2D CurrentSize
2092 return GetCurrentSize();
2097 /// [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
2099 /// <since_tizen> 3 </since_tizen>
2100 [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
2110 /// Retrieves and sets the view's opacity.<br />
2112 /// <since_tizen> 3 </since_tizen>
2113 public float Opacity
2118 GetProperty(View.Property.OPACITY).Get(out temp);
2123 SetProperty(View.Property.OPACITY, new Tizen.NUI.PropertyValue(value));
2128 /// Sets the position of the view for X and Y.<br />
2129 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2130 /// If the position inheritance is disabled, sets the world position.<br />
2132 /// <since_tizen> 3 </since_tizen>
2133 public Position2D Position2D
2137 Position temp = new Position(0.0f, 0.0f, 0.0f);
2138 GetProperty(View.Property.POSITION).Get(temp);
2139 return new Position2D(temp);
2143 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position(value)));
2148 /// Retrieves the screen postion of the view.<br />
2150 /// <since_tizen> 3 </since_tizen>
2151 public Vector2 ScreenPosition
2155 Vector2 temp = new Vector2(0.0f, 0.0f);
2156 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2162 /// Determines whether the pivot point should be used to determine the position of the view.
2163 /// This is true by default.
2165 /// <remarks>If false, then the top-left of the view is used for the position.
2166 /// Setting this to false will allow scaling or rotation around the anchor-point without affecting the view's position.
2168 /// <since_tizen> 4 </since_tizen>
2169 public bool PositionUsesPivotPoint
2174 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2179 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2184 /// [Obsolete("Please do not use! this will be deprecated")]
2186 /// <since_tizen> 3 </since_tizen>
2187 [Obsolete("Please do not use! this will be deprecated")]
2188 public bool PositionUsesAnchorPoint
2193 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2198 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2202 internal bool FocusState
2206 return IsKeyboardFocusable();
2210 SetKeyboardFocusable(value);
2215 /// Queries whether the view is connected to the stage.<br />
2216 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2218 /// <since_tizen> 3 </since_tizen>
2219 public bool IsOnWindow
2228 /// Gets the depth in the hierarchy for the view.
2230 /// <since_tizen> 3 </since_tizen>
2231 public int HierarchyDepth
2235 return GetHierarchyDepth();
2240 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2243 /// Note the initial value is 0.
2244 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2245 /// The values set by this property will likely change.
2247 /// <since_tizen> 3 </since_tizen>
2248 public int SiblingOrder
2253 GetProperty(View.Property.SIBLING_ORDER).Get(out temp);
2258 SetProperty(View.Property.SIBLING_ORDER, new Tizen.NUI.PropertyValue(value));
2263 /// Returns the natural size of the view.
2266 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2268 [Obsolete("Please do not use! this will be deprecated, please use NaturalSize2D instead")]
2269 public Vector3 NaturalSize
2273 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2274 if (NDalicPINVOKE.SWIGPendingException.Pending)
2275 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2281 /// Returns the natural size (Size2D) of the view.
2284 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2286 /// <since_tizen> 4 </since_tizen>
2287 public Size2D NaturalSize2D
2291 Vector3 temp = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2292 if (NDalicPINVOKE.SWIGPendingException.Pending)
2293 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2295 return new Size2D((int)temp.Width, (int)temp.Height);
2303 /// This is an asynchronous method.
2305 /// <since_tizen> 3 </since_tizen>
2315 /// This is an asynchronous method.
2316 /// If the view is hidden, then the view and its children will not be rendered.
2317 /// This is regardless of the individual visibility of the children, i.e., the view will only be rendered if all of its parents are shown.
2319 /// <since_tizen> 3 </since_tizen>
2325 internal void Raise()
2327 var parentChildren = Parent?.Children;
2329 if (parentChildren != null)
2331 int currentIndex = parentChildren.IndexOf(this);
2333 // If the view is not already the last item in the list.
2334 if (currentIndex != parentChildren.Count -1)
2336 View temp = parentChildren[currentIndex + 1];
2337 parentChildren[currentIndex + 1] = this;
2338 parentChildren[currentIndex] = temp;
2342 NDalicPINVOKE.Raise(swigCPtr);
2343 if (NDalicPINVOKE.SWIGPendingException.Pending)
2344 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2347 internal void Lower()
2349 var parentChildren = Parent?.Children;
2351 if (parentChildren != null)
2353 int currentIndex = parentChildren.IndexOf(this);
2355 // If the view is not already the first item in the list.
2356 if (currentIndex > 0)
2358 View temp = parentChildren[currentIndex - 1];
2359 parentChildren[currentIndex - 1] = this;
2360 parentChildren[currentIndex] = temp;
2364 NDalicPINVOKE.Lower(swigCPtr);
2365 if (NDalicPINVOKE.SWIGPendingException.Pending)
2366 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2370 /// Raises the view above all other views.
2373 /// Sibling order of views within the parent will be updated automatically.
2374 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
2376 /// <since_tizen> 3 </since_tizen>
2377 public void RaiseToTop()
2379 var parentChildren = Parent?.Children;
2381 if (parentChildren != null)
2383 parentChildren.Remove(this);
2384 parentChildren.Add(this);
2387 NDalicPINVOKE.RaiseToTop(swigCPtr);
2388 if (NDalicPINVOKE.SWIGPendingException.Pending)
2389 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2393 /// Lowers the view to the bottom of all views.
2396 /// The sibling order of views within the parent will be updated automatically.
2397 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2399 /// <since_tizen> 3 </since_tizen>
2400 public void LowerToBottom()
2402 var parentChildren = Parent?.Children;
2404 if (parentChildren != null)
2406 parentChildren.Remove(this);
2407 parentChildren.Insert(0, this);
2410 NDalicPINVOKE.LowerToBottom(swigCPtr);
2411 if (NDalicPINVOKE.SWIGPendingException.Pending)
2412 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2416 /// Queries if all resources required by a view are loaded and ready.
2418 /// <remarks>Most resources are only loaded when the control is placed on the stage.
2420 /// <since_tizen> 4 </since_tizen>
2421 public bool IsResourceReady()
2423 bool ret = NDalicPINVOKE.IsResourceReady(swigCPtr);
2424 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2429 /// Raises the view to above the target view.
2431 /// <remarks>The sibling order of views within the parent will be updated automatically.
2432 /// Views on the level above the target view will still be shown above this view.
2433 /// Raising this view above views with the same sibling order as each other will raise this view above them.
2434 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2436 /// <param name="target">Will be raised above this view.</param>
2437 internal void RaiseAbove(View target)
2439 var parentChildren = Parent?.Children;
2441 if (parentChildren != null)
2443 int currentIndex = parentChildren.IndexOf(this);
2444 int targetIndex = parentChildren.IndexOf(target);
2446 // If the currentIndex is less than the target index and the target has the same parent.
2447 if (currentIndex < targetIndex)
2449 parentChildren.Remove(this);
2450 parentChildren.Insert(targetIndex, this);
2454 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
2455 if (NDalicPINVOKE.SWIGPendingException.Pending)
2456 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2460 /// Lowers the view to below the target view.
2462 /// <remarks>The sibling order of views within the parent will be updated automatically.
2463 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
2464 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2466 /// <param name="target">Will be lowered below this view.</param>
2467 internal void LowerBelow(View target)
2469 var parentChildren = Parent?.Children;
2471 if (parentChildren != null)
2473 int currentIndex = parentChildren.IndexOf(this);
2474 int targetIndex = parentChildren.IndexOf(target);
2476 // If the currentIndex is not already the 0th index and the target has the same parent.
2477 if ((currentIndex != 0) && (targetIndex != -1) &&
2478 (currentIndex > targetIndex))
2480 parentChildren.Remove(this);
2481 parentChildren.Insert(targetIndex, this);
2485 NDalicPINVOKE.LowerBelow(swigCPtr, View.getCPtr(target));
2486 if (NDalicPINVOKE.SWIGPendingException.Pending)
2487 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2490 internal string GetName()
2492 string ret = NDalicPINVOKE.Actor_GetName(swigCPtr);
2493 if (NDalicPINVOKE.SWIGPendingException.Pending)
2494 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2498 internal void SetName(string name)
2500 NDalicPINVOKE.Actor_SetName(swigCPtr, name);
2501 if (NDalicPINVOKE.SWIGPendingException.Pending)
2502 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2505 internal uint GetId()
2507 uint ret = NDalicPINVOKE.Actor_GetId(swigCPtr);
2508 if (NDalicPINVOKE.SWIGPendingException.Pending)
2509 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2513 internal bool IsRoot()
2515 bool ret = NDalicPINVOKE.Actor_IsRoot(swigCPtr);
2516 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2520 internal bool OnWindow()
2522 bool ret = NDalicPINVOKE.Actor_OnStage(swigCPtr);
2523 if (NDalicPINVOKE.SWIGPendingException.Pending)
2524 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2528 internal Layer GetLayer()
2530 IntPtr cPtr = NDalicPINVOKE.Actor_GetLayer(swigCPtr);
2531 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Layer;
2533 if (NDalicPINVOKE.SWIGPendingException.Pending)
2534 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2539 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
2541 /// <pre>The (child) view has been initialized. </pre>
2542 /// <since_tizen> 4 </since_tizen>
2543 public void Unparent()
2545 GetParent()?.Remove(this);
2549 /// Search through this view's hierarchy for a view with the given name.
2550 /// The view itself is also considered in the search.
2552 /// <pre>The view has been initialized.</pre>
2553 /// <param name="viewName">The name of the view to find.</param>
2554 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
2555 /// <since_tizen> 3 </since_tizen>
2556 public View FindChildByName(string viewName)
2558 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildByName(swigCPtr, viewName);
2560 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2562 if (NDalicPINVOKE.SWIGPendingException.Pending)
2563 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2567 internal View FindChildById(uint id)
2569 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildById(swigCPtr, id);
2571 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2573 if (NDalicPINVOKE.SWIGPendingException.Pending)
2574 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2578 internal void SetParentOrigin(Vector3 origin)
2580 NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
2581 if (NDalicPINVOKE.SWIGPendingException.Pending)
2582 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2585 internal Vector3 GetCurrentParentOrigin()
2587 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentParentOrigin(swigCPtr), true);
2588 if (NDalicPINVOKE.SWIGPendingException.Pending)
2589 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2593 internal void SetAnchorPoint(Vector3 anchorPoint)
2595 NDalicPINVOKE.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
2596 if (NDalicPINVOKE.SWIGPendingException.Pending)
2597 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2600 internal Vector3 GetCurrentAnchorPoint()
2602 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentAnchorPoint(swigCPtr), true);
2603 if (NDalicPINVOKE.SWIGPendingException.Pending)
2604 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2608 internal void SetSize(float width, float height)
2610 NDalicPINVOKE.Actor_SetSize__SWIG_0(swigCPtr, width, height);
2611 if (NDalicPINVOKE.SWIGPendingException.Pending)
2612 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2615 internal void SetSize(float width, float height, float depth)
2617 NDalicPINVOKE.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
2618 if (NDalicPINVOKE.SWIGPendingException.Pending)
2619 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2622 internal void SetSize(Vector2 size)
2624 NDalicPINVOKE.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
2625 if (NDalicPINVOKE.SWIGPendingException.Pending)
2626 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2629 internal void SetSize(Vector3 size)
2631 NDalicPINVOKE.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
2632 if (NDalicPINVOKE.SWIGPendingException.Pending)
2633 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2636 internal Vector3 GetTargetSize()
2638 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetTargetSize(swigCPtr), true);
2639 if (NDalicPINVOKE.SWIGPendingException.Pending)
2640 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2644 internal Size2D GetCurrentSize()
2646 Size ret = new Size(NDalicPINVOKE.Actor_GetCurrentSize(swigCPtr), true);
2647 if (NDalicPINVOKE.SWIGPendingException.Pending)
2648 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2649 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
2653 internal Vector3 GetNaturalSize()
2655 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2656 if (NDalicPINVOKE.SWIGPendingException.Pending)
2657 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2661 internal void SetPosition(float x, float y)
2663 NDalicPINVOKE.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
2664 if (NDalicPINVOKE.SWIGPendingException.Pending)
2665 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2668 internal void SetPosition(float x, float y, float z)
2670 NDalicPINVOKE.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
2671 if (NDalicPINVOKE.SWIGPendingException.Pending)
2672 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2675 internal void SetPosition(Vector3 position)
2677 NDalicPINVOKE.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
2678 if (NDalicPINVOKE.SWIGPendingException.Pending)
2679 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2682 internal void SetX(float x)
2684 NDalicPINVOKE.Actor_SetX(swigCPtr, x);
2685 if (NDalicPINVOKE.SWIGPendingException.Pending)
2686 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2689 internal void SetY(float y)
2691 NDalicPINVOKE.Actor_SetY(swigCPtr, y);
2692 if (NDalicPINVOKE.SWIGPendingException.Pending)
2693 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2696 internal void SetZ(float z)
2698 NDalicPINVOKE.Actor_SetZ(swigCPtr, z);
2699 if (NDalicPINVOKE.SWIGPendingException.Pending)
2700 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2703 internal void TranslateBy(Vector3 distance)
2705 NDalicPINVOKE.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
2706 if (NDalicPINVOKE.SWIGPendingException.Pending)
2707 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2710 internal Position GetCurrentPosition()
2712 Position ret = new Position(NDalicPINVOKE.Actor_GetCurrentPosition(swigCPtr), true);
2713 if (NDalicPINVOKE.SWIGPendingException.Pending)
2714 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2718 internal Vector3 GetCurrentWorldPosition()
2720 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldPosition(swigCPtr), true);
2721 if (NDalicPINVOKE.SWIGPendingException.Pending)
2722 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2726 internal void SetInheritPosition(bool inherit)
2728 NDalicPINVOKE.Actor_SetInheritPosition(swigCPtr, inherit);
2729 if (NDalicPINVOKE.SWIGPendingException.Pending)
2730 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2733 internal bool IsPositionInherited()
2735 bool ret = NDalicPINVOKE.Actor_IsPositionInherited(swigCPtr);
2736 if (NDalicPINVOKE.SWIGPendingException.Pending)
2737 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2741 internal void SetOrientation(Degree angle, Vector3 axis)
2743 NDalicPINVOKE.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2744 if (NDalicPINVOKE.SWIGPendingException.Pending)
2745 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2748 internal void SetOrientation(Radian angle, Vector3 axis)
2750 NDalicPINVOKE.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2751 if (NDalicPINVOKE.SWIGPendingException.Pending)
2752 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2755 internal void SetOrientation(Rotation orientation)
2757 NDalicPINVOKE.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
2758 if (NDalicPINVOKE.SWIGPendingException.Pending)
2759 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2762 internal void RotateBy(Degree angle, Vector3 axis)
2764 NDalicPINVOKE.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2765 if (NDalicPINVOKE.SWIGPendingException.Pending)
2766 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2769 internal void RotateBy(Radian angle, Vector3 axis)
2771 NDalicPINVOKE.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2772 if (NDalicPINVOKE.SWIGPendingException.Pending)
2773 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2776 internal void RotateBy(Rotation relativeRotation)
2778 NDalicPINVOKE.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
2779 if (NDalicPINVOKE.SWIGPendingException.Pending)
2780 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2783 internal Rotation GetCurrentOrientation()
2785 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentOrientation(swigCPtr), true);
2786 if (NDalicPINVOKE.SWIGPendingException.Pending)
2787 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2791 internal void SetInheritOrientation(bool inherit)
2793 NDalicPINVOKE.Actor_SetInheritOrientation(swigCPtr, inherit);
2794 if (NDalicPINVOKE.SWIGPendingException.Pending)
2795 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2798 internal bool IsOrientationInherited()
2800 bool ret = NDalicPINVOKE.Actor_IsOrientationInherited(swigCPtr);
2801 if (NDalicPINVOKE.SWIGPendingException.Pending)
2802 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2806 internal Rotation GetCurrentWorldOrientation()
2808 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentWorldOrientation(swigCPtr), true);
2809 if (NDalicPINVOKE.SWIGPendingException.Pending)
2810 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2814 internal void SetScale(float scale)
2816 NDalicPINVOKE.Actor_SetScale__SWIG_0(swigCPtr, scale);
2817 if (NDalicPINVOKE.SWIGPendingException.Pending)
2818 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2821 internal void SetScale(float scaleX, float scaleY, float scaleZ)
2823 NDalicPINVOKE.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
2824 if (NDalicPINVOKE.SWIGPendingException.Pending)
2825 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2828 internal void SetScale(Vector3 scale)
2830 NDalicPINVOKE.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
2831 if (NDalicPINVOKE.SWIGPendingException.Pending)
2832 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2835 internal void ScaleBy(Vector3 relativeScale)
2837 NDalicPINVOKE.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
2838 if (NDalicPINVOKE.SWIGPendingException.Pending)
2839 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2842 internal Vector3 GetCurrentScale()
2844 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentScale(swigCPtr), true);
2845 if (NDalicPINVOKE.SWIGPendingException.Pending)
2846 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2850 internal Vector3 GetCurrentWorldScale()
2852 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldScale(swigCPtr), true);
2853 if (NDalicPINVOKE.SWIGPendingException.Pending)
2854 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2858 internal void SetInheritScale(bool inherit)
2860 NDalicPINVOKE.Actor_SetInheritScale(swigCPtr, inherit);
2861 if (NDalicPINVOKE.SWIGPendingException.Pending)
2862 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2865 internal bool IsScaleInherited()
2867 bool ret = NDalicPINVOKE.Actor_IsScaleInherited(swigCPtr);
2868 if (NDalicPINVOKE.SWIGPendingException.Pending)
2869 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2873 internal Matrix GetCurrentWorldMatrix()
2875 Matrix ret = new Matrix(NDalicPINVOKE.Actor_GetCurrentWorldMatrix(swigCPtr), true);
2876 if (NDalicPINVOKE.SWIGPendingException.Pending)
2877 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2881 internal void SetVisible(bool visible)
2883 NDalicPINVOKE.Actor_SetVisible(swigCPtr, visible);
2884 if (NDalicPINVOKE.SWIGPendingException.Pending)
2885 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2888 internal bool IsVisible()
2890 bool ret = NDalicPINVOKE.Actor_IsVisible(swigCPtr);
2891 if (NDalicPINVOKE.SWIGPendingException.Pending)
2892 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2896 internal void SetOpacity(float opacity)
2898 NDalicPINVOKE.Actor_SetOpacity(swigCPtr, opacity);
2899 if (NDalicPINVOKE.SWIGPendingException.Pending)
2900 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2903 internal float GetCurrentOpacity()
2905 float ret = NDalicPINVOKE.Actor_GetCurrentOpacity(swigCPtr);
2906 if (NDalicPINVOKE.SWIGPendingException.Pending)
2907 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2911 internal void SetColor(Vector4 color)
2913 NDalicPINVOKE.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
2914 if (NDalicPINVOKE.SWIGPendingException.Pending)
2915 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2918 internal Vector4 GetCurrentColor()
2920 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentColor(swigCPtr), true);
2921 if (NDalicPINVOKE.SWIGPendingException.Pending)
2922 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2926 internal void SetColorMode(ColorMode colorMode)
2928 NDalicPINVOKE.Actor_SetColorMode(swigCPtr, (int)colorMode);
2929 if (NDalicPINVOKE.SWIGPendingException.Pending)
2930 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2933 internal ColorMode GetColorMode()
2935 ColorMode ret = (ColorMode)NDalicPINVOKE.Actor_GetColorMode(swigCPtr);
2936 if (NDalicPINVOKE.SWIGPendingException.Pending)
2937 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2941 internal Vector4 GetCurrentWorldColor()
2943 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentWorldColor(swigCPtr), true);
2944 if (NDalicPINVOKE.SWIGPendingException.Pending)
2945 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2949 internal void SetDrawMode(DrawModeType drawMode)
2951 NDalicPINVOKE.Actor_SetDrawMode(swigCPtr, (int)drawMode);
2952 if (NDalicPINVOKE.SWIGPendingException.Pending)
2953 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2956 internal DrawModeType GetDrawMode()
2958 DrawModeType ret = (DrawModeType)NDalicPINVOKE.Actor_GetDrawMode(swigCPtr);
2959 if (NDalicPINVOKE.SWIGPendingException.Pending)
2960 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2965 /// Converts screen coordinates into the view's coordinate system using the default camera.
2967 /// <pre>The view has been initialized.</pre>
2968 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
2969 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
2970 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
2971 /// <param name="screenX">The screen X-coordinate.</param>
2972 /// <param name="screenY">The screen Y-coordinate.</param>
2973 /// <returns>True if the conversion succeeded.</returns>
2974 /// <since_tizen> 3 </since_tizen>
2975 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
2977 bool ret = NDalicPINVOKE.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
2978 if (NDalicPINVOKE.SWIGPendingException.Pending)
2979 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2983 internal void SetKeyboardFocusable(bool focusable)
2985 NDalicPINVOKE.Actor_SetKeyboardFocusable(swigCPtr, focusable);
2986 if (NDalicPINVOKE.SWIGPendingException.Pending)
2987 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2990 internal bool IsKeyboardFocusable()
2992 bool ret = NDalicPINVOKE.Actor_IsKeyboardFocusable(swigCPtr);
2993 if (NDalicPINVOKE.SWIGPendingException.Pending)
2994 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2998 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
3000 NDalicPINVOKE.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
3001 if (NDalicPINVOKE.SWIGPendingException.Pending)
3002 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3005 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
3007 ResizePolicyType ret = (ResizePolicyType)NDalicPINVOKE.Actor_GetResizePolicy(swigCPtr, (int)dimension);
3008 if (NDalicPINVOKE.SWIGPendingException.Pending)
3009 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3014 /// Sets the relative to parent size factor of the view.<br />
3015 /// This factor is only used when ResizePolicy is set to either:
3016 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
3017 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
3019 /// <pre>The view has been initialized.</pre>
3020 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
3021 /// <since_tizen> 3 </since_tizen>
3022 public void SetSizeModeFactor(Vector3 factor)
3024 NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
3025 if (NDalicPINVOKE.SWIGPendingException.Pending)
3026 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3029 internal Vector3 GetSizeModeFactor()
3031 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetSizeModeFactor(swigCPtr), true);
3032 if (NDalicPINVOKE.SWIGPendingException.Pending)
3033 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3038 /// Calculates the height of the view given a width.<br />
3039 /// The natural size is used for default calculation.<br />
3040 /// Size 0 is treated as aspect ratio 1:1.<br />
3042 /// <param name="width">The width to use.</param>
3043 /// <returns>The height based on the width.</returns>
3044 /// <since_tizen> 3 </since_tizen>
3045 public float GetHeightForWidth(float width)
3047 float ret = NDalicPINVOKE.Actor_GetHeightForWidth(swigCPtr, width);
3048 if (NDalicPINVOKE.SWIGPendingException.Pending)
3049 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3054 /// Calculates the width of the view given a height.<br />
3055 /// The natural size is used for default calculation.<br />
3056 /// Size 0 is treated as aspect ratio 1:1.<br />
3058 /// <param name="height">The height to use.</param>
3059 /// <returns>The width based on the height.</returns>
3060 /// <since_tizen> 3 </since_tizen>
3061 public float GetWidthForHeight(float height)
3063 float ret = NDalicPINVOKE.Actor_GetWidthForHeight(swigCPtr, height);
3064 if (NDalicPINVOKE.SWIGPendingException.Pending)
3065 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3070 /// Return the amount of size allocated for relayout.
3072 /// <param name="dimension">The dimension to retrieve.</param>
3073 /// <returns>Return the size.</returns>
3074 /// <since_tizen> 3 </since_tizen>
3075 public float GetRelayoutSize(DimensionType dimension)
3077 float ret = NDalicPINVOKE.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
3078 if (NDalicPINVOKE.SWIGPendingException.Pending)
3079 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3084 /// Set the padding for the view.
3086 /// <param name="padding">Padding for the view.</param>
3087 /// <since_tizen> 3 </since_tizen>
3088 public void SetPadding(PaddingType padding)
3090 NDalicPINVOKE.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
3091 if (NDalicPINVOKE.SWIGPendingException.Pending)
3092 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3096 /// Return the value of padding for the view.
3098 /// <param name="paddingOut">the value of padding for the view</param>
3099 /// <since_tizen> 3 </since_tizen>
3100 public void GetPadding(PaddingType paddingOut)
3102 NDalicPINVOKE.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
3103 if (NDalicPINVOKE.SWIGPendingException.Pending)
3104 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3107 internal void SetMinimumSize(Vector2 size)
3109 NDalicPINVOKE.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
3110 if (NDalicPINVOKE.SWIGPendingException.Pending)
3111 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3114 internal Vector2 GetMinimumSize()
3116 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMinimumSize(swigCPtr), true);
3117 if (NDalicPINVOKE.SWIGPendingException.Pending)
3118 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3122 internal void SetMaximumSize(Vector2 size)
3124 NDalicPINVOKE.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
3125 if (NDalicPINVOKE.SWIGPendingException.Pending)
3126 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3129 internal Vector2 GetMaximumSize()
3131 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMaximumSize(swigCPtr), true);
3132 if (NDalicPINVOKE.SWIGPendingException.Pending)
3133 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3137 internal int GetHierarchyDepth()
3139 int ret = NDalicPINVOKE.Actor_GetHierarchyDepth(swigCPtr);
3140 if (NDalicPINVOKE.SWIGPendingException.Pending)
3141 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3145 /// <since_tizen> 4 </since_tizen>
3146 public uint AddRenderer(Renderer renderer)
3148 uint ret = NDalicPINVOKE.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
3149 if (NDalicPINVOKE.SWIGPendingException.Pending)
3150 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3154 internal uint GetRendererCount()
3156 uint ret = NDalicPINVOKE.Actor_GetRendererCount(swigCPtr);
3157 if (NDalicPINVOKE.SWIGPendingException.Pending)
3158 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3162 /// <since_tizen> 4 </since_tizen>
3163 public Renderer GetRendererAt(uint index)
3165 IntPtr cPtr = NDalicPINVOKE.Actor_GetRendererAt(swigCPtr, index);
3166 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Renderer;
3168 if (NDalicPINVOKE.SWIGPendingException.Pending)
3169 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3173 /// <since_tizen> 4 </since_tizen>
3174 public void RemoveRenderer(Renderer renderer)
3176 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
3177 if (NDalicPINVOKE.SWIGPendingException.Pending)
3178 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3181 /// <since_tizen> 4 </since_tizen>
3182 public void RemoveRenderer(uint index)
3184 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
3185 if (NDalicPINVOKE.SWIGPendingException.Pending)
3186 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3189 internal TouchDataSignal TouchSignal()
3191 TouchDataSignal ret = new TouchDataSignal(NDalicPINVOKE.Actor_TouchSignal(swigCPtr), false);
3192 if (NDalicPINVOKE.SWIGPendingException.Pending)
3193 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3197 internal HoverSignal HoveredSignal()
3199 HoverSignal ret = new HoverSignal(NDalicPINVOKE.Actor_HoveredSignal(swigCPtr), false);
3200 if (NDalicPINVOKE.SWIGPendingException.Pending)
3201 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3205 internal WheelSignal WheelEventSignal()
3207 WheelSignal ret = new WheelSignal(NDalicPINVOKE.Actor_WheelEventSignal(swigCPtr), false);
3208 if (NDalicPINVOKE.SWIGPendingException.Pending)
3209 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3213 internal ViewSignal OnWindowSignal()
3215 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
3216 if (NDalicPINVOKE.SWIGPendingException.Pending)
3217 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3221 internal ViewSignal OffWindowSignal()
3223 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OffStageSignal(swigCPtr), false);
3224 if (NDalicPINVOKE.SWIGPendingException.Pending)
3225 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3229 internal ViewSignal OnRelayoutSignal()
3231 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnRelayoutSignal(swigCPtr), false);
3232 if (NDalicPINVOKE.SWIGPendingException.Pending)
3233 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3237 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view) {
3238 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(NDalicPINVOKE.VisibilityChangedSignal(View.getCPtr(view)), false);
3239 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3244 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view) {
3245 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(NDalicManualPINVOKE.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
3246 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3251 internal ViewSignal ResourcesLoadedSignal()
3253 ViewSignal ret = new ViewSignal(NDalicPINVOKE.ResourceReadySignal(swigCPtr), false);
3254 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3259 /// Gets or sets the origin of a view within its parent's area.<br />
3260 /// 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 />
3261 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
3262 /// A view's position is the distance between this origin and the view's anchor-point.<br />
3264 /// <pre>The view has been initialized.</pre>
3265 /// <since_tizen> 3 </since_tizen>
3266 public Position ParentOrigin
3270 Position temp = new Position(0.0f, 0.0f, 0.0f);
3271 GetProperty(View.Property.PARENT_ORIGIN).Get(temp);
3276 SetProperty(View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue(value));
3280 internal float ParentOriginX
3285 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3290 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3294 internal float ParentOriginY
3299 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3304 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3308 internal float ParentOriginZ
3313 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3318 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3323 /// Gets or sets the anchor-point of a view.<br />
3324 /// 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 />
3325 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
3326 /// A view position is the distance between its parent-origin and this anchor-point.<br />
3327 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
3328 /// <pre>The view has been initialized.</pre>
3330 /// <since_tizen> 3 </since_tizen>
3331 public Position PivotPoint
3335 Position temp = new Position(0.0f, 0.0f, 0.0f);
3336 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3341 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3345 internal float PivotPointX
3350 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3355 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3359 internal float PivotPointY
3364 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3369 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3373 internal float PivotPointZ
3378 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3383 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3388 /// Gets or sets the size width of the view.
3390 /// <since_tizen> 3 </since_tizen>
3391 public float SizeWidth
3396 GetProperty(View.Property.SIZE_WIDTH).Get(out temp);
3401 SetProperty(View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
3406 /// Gets or sets the size height of the view.
3408 /// <since_tizen> 3 </since_tizen>
3409 public float SizeHeight
3414 GetProperty(View.Property.SIZE_HEIGHT).Get(out temp);
3419 SetProperty(View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3424 /// Gets or sets the position of the view.<br />
3425 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
3426 /// If the position inheritance is disabled, sets the world position.<br />
3428 /// <since_tizen> 3 </since_tizen>
3429 public Position Position
3433 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3434 GetProperty(View.Property.POSITION).Get(temp);
3439 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(value));
3444 /// Gets or sets the position X of the view.
3446 /// <since_tizen> 3 </since_tizen>
3447 public float PositionX
3452 GetProperty(View.Property.POSITION_X).Get(out temp);
3457 SetProperty(View.Property.POSITION_X, new Tizen.NUI.PropertyValue(value));
3462 /// Gets or sets the position Y of the view.
3464 /// <since_tizen> 3 </since_tizen>
3465 public float PositionY
3470 GetProperty(View.Property.POSITION_Y).Get(out temp);
3475 SetProperty(View.Property.POSITION_Y, new Tizen.NUI.PropertyValue(value));
3480 /// Gets or sets the position Z of the view.
3482 /// <since_tizen> 3 </since_tizen>
3483 public float PositionZ
3488 GetProperty(View.Property.POSITION_Z).Get(out temp);
3493 SetProperty(View.Property.POSITION_Z, new Tizen.NUI.PropertyValue(value));
3498 /// Gets or sets the world position of the view.
3500 /// <since_tizen> 3 </since_tizen>
3501 public Vector3 WorldPosition
3505 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3506 GetProperty(View.Property.WORLD_POSITION).Get(temp);
3511 internal float WorldPositionX
3516 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3521 internal float WorldPositionY
3526 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3531 internal float WorldPositionZ
3536 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3542 /// Gets or sets the orientation of the view.<br />
3543 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
3545 /// <remarks>This is an asynchronous method.</remarks>
3546 /// <since_tizen> 3 </since_tizen>
3547 public Rotation Orientation
3551 Rotation temp = new Rotation();
3552 GetProperty(View.Property.ORIENTATION).Get(temp);
3557 SetProperty(View.Property.ORIENTATION, new Tizen.NUI.PropertyValue(value));
3562 /// Gets or sets the world orientation of the view.<br />
3564 /// <since_tizen> 3 </since_tizen>
3565 public Rotation WorldOrientation
3569 Rotation temp = new Rotation();
3570 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
3576 /// Gets or sets the scale factor applied to the view.<br />
3578 /// <since_tizen> 3 </since_tizen>
3579 public Vector3 Scale
3583 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3584 GetProperty(View.Property.SCALE).Get(temp);
3589 SetProperty(View.Property.SCALE, new Tizen.NUI.PropertyValue(value));
3594 /// Gets or sets the scale X factor applied to the view.
3596 /// <since_tizen> 3 </since_tizen>
3602 GetProperty(View.Property.SCALE_X).Get(out temp);
3607 SetProperty(View.Property.SCALE_X, new Tizen.NUI.PropertyValue(value));
3612 /// Gets or sets the scale Y factor applied to the view.
3614 /// <since_tizen> 3 </since_tizen>
3620 GetProperty(View.Property.SCALE_Y).Get(out temp);
3625 SetProperty(View.Property.SCALE_Y, new Tizen.NUI.PropertyValue(value));
3630 /// Gets or sets the scale Z factor applied to the view.
3632 /// <since_tizen> 3 </since_tizen>
3638 GetProperty(View.Property.SCALE_Z).Get(out temp);
3643 SetProperty(View.Property.SCALE_Z, new Tizen.NUI.PropertyValue(value));
3648 /// Gets the world scale of the view.
3650 /// <since_tizen> 3 </since_tizen>
3651 public Vector3 WorldScale
3655 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3656 GetProperty(View.Property.WORLD_SCALE).Get(temp);
3662 /// Retrieves the visibility flag of the view.
3665 /// If the view is not visible, then the view and its children will not be rendered.
3666 /// This is regardless of the individual visibility values of the children, i.e., the view will only be rendered if all of its parents have visibility set to true.
3668 /// <since_tizen> 3 </since_tizen>
3669 public bool Visibility
3674 GetProperty(View.Property.VISIBLE).Get(out temp);
3680 /// Gets the view's world color.
3682 /// <since_tizen> 3 </since_tizen>
3683 public Vector4 WorldColor
3687 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3688 GetProperty(View.Property.WORLD_COLOR).Get(temp);
3693 internal Matrix WorldMatrix
3697 Matrix temp = new Matrix();
3698 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3704 /// Gets or sets the view's name.
3706 /// <since_tizen> 3 </since_tizen>
3712 GetProperty(View.Property.NAME).Get(out temp);
3717 SetProperty(View.Property.NAME, new Tizen.NUI.PropertyValue(value));
3722 /// Get the number of children held by the view.
3724 /// <since_tizen> 3 </since_tizen>
3725 public new uint ChildCount
3729 return GetChildCount();
3734 /// Gets the view's ID.
3737 /// <since_tizen> 3 </since_tizen>
3747 /// Gets or sets the status of whether the view should emit touch or hover signals.
3749 /// <since_tizen> 3 </since_tizen>
3750 public bool Sensitive
3755 GetProperty(View.Property.SENSITIVE).Get(out temp);
3760 SetProperty(View.Property.SENSITIVE, new Tizen.NUI.PropertyValue(value));
3765 /// Gets or sets the status of whether the view should receive a notification when touch or hover motion events leave the boundary of the view.
3767 /// <since_tizen> 3 </since_tizen>
3768 public bool LeaveRequired
3773 GetProperty(View.Property.LEAVE_REQUIRED).Get(out temp);
3778 SetProperty(View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue(value));
3783 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
3785 /// <since_tizen> 3 </since_tizen>
3786 public bool InheritOrientation
3791 GetProperty(View.Property.INHERIT_ORIENTATION).Get(out temp);
3796 SetProperty(View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue(value));
3801 /// Gets or sets the status of whether a child view inherits it's parent's scale.
3803 /// <since_tizen> 3 </since_tizen>
3804 public bool InheritScale
3809 GetProperty(View.Property.INHERIT_SCALE).Get(out temp);
3814 SetProperty(View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue(value));
3819 /// Gets or sets the status of how the view and its children should be drawn.<br />
3820 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
3821 /// 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 />
3822 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
3823 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
3824 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
3826 /// <since_tizen> 3 </since_tizen>
3827 public DrawModeType DrawMode
3832 if (GetProperty(View.Property.DRAW_MODE).Get(out temp) == false)
3834 NUILog.Error("DrawMode get error!");
3839 return DrawModeType.Normal;
3841 return DrawModeType.Overlay2D;
3843 return DrawModeType.Stencil;
3845 return DrawModeType.Normal;
3850 SetProperty(View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)value));
3855 /// Gets or sets the relative to parent size factor of the view.<br />
3856 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
3857 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
3859 /// <since_tizen> 3 </since_tizen>
3860 public Vector3 SizeModeFactor
3864 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3865 GetProperty(View.Property.SIZE_MODE_FACTOR).Get(temp);
3870 SetProperty(View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue(value));
3875 /// Gets or sets the width resize policy to be used.
3877 /// <since_tizen> 3 </since_tizen>
3878 public ResizePolicyType WidthResizePolicy
3883 if (GetProperty(View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
3885 NUILog.Error("WidthResizePolicy get error!");
3890 return ResizePolicyType.Fixed;
3891 case "USE_NATURAL_SIZE":
3892 return ResizePolicyType.UseNaturalSize;
3893 case "FILL_TO_PARENT":
3894 return ResizePolicyType.FillToParent;
3895 case "SIZE_RELATIVE_TO_PARENT":
3896 return ResizePolicyType.SizeRelativeToParent;
3897 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3898 return ResizePolicyType.SizeFixedOffsetFromParent;
3899 case "FIT_TO_CHILDREN":
3900 return ResizePolicyType.FitToChildren;
3901 case "DIMENSION_DEPENDENCY":
3902 return ResizePolicyType.DimensionDependency;
3903 case "USE_ASSIGNED_SIZE":
3904 return ResizePolicyType.UseAssignedSize;
3906 return ResizePolicyType.Fixed;
3911 SetProperty(View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3916 /// Gets or sets the height resize policy to be used.
3918 /// <since_tizen> 3 </since_tizen>
3919 public ResizePolicyType HeightResizePolicy
3924 if (GetProperty(View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
3926 NUILog.Error("HeightResizePolicy get error!");
3931 return ResizePolicyType.Fixed;
3932 case "USE_NATURAL_SIZE":
3933 return ResizePolicyType.UseNaturalSize;
3934 case "FILL_TO_PARENT":
3935 return ResizePolicyType.FillToParent;
3936 case "SIZE_RELATIVE_TO_PARENT":
3937 return ResizePolicyType.SizeRelativeToParent;
3938 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3939 return ResizePolicyType.SizeFixedOffsetFromParent;
3940 case "FIT_TO_CHILDREN":
3941 return ResizePolicyType.FitToChildren;
3942 case "DIMENSION_DEPENDENCY":
3943 return ResizePolicyType.DimensionDependency;
3944 case "USE_ASSIGNED_SIZE":
3945 return ResizePolicyType.UseAssignedSize;
3947 return ResizePolicyType.Fixed;
3952 SetProperty(View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3957 /// Gets or sets the policy to use when setting size with size negotiation.<br />
3958 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3960 /// <since_tizen> 3 </since_tizen>
3961 public SizeScalePolicyType SizeScalePolicy
3966 if (GetProperty(View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
3968 NUILog.Error("SizeScalePolicy get error!");
3972 case "USE_SIZE_SET":
3973 return SizeScalePolicyType.UseSizeSet;
3974 case "FIT_WITH_ASPECT_RATIO":
3975 return SizeScalePolicyType.FitWithAspectRatio;
3976 case "FILL_WITH_ASPECT_RATIO":
3977 return SizeScalePolicyType.FillWithAspectRatio;
3979 return SizeScalePolicyType.UseSizeSet;
3984 string valueToString = "";
3987 case SizeScalePolicyType.UseSizeSet:
3989 valueToString = "USE_SIZE_SET";
3992 case SizeScalePolicyType.FitWithAspectRatio:
3994 valueToString = "FIT_WITH_ASPECT_RATIO";
3997 case SizeScalePolicyType.FillWithAspectRatio:
3999 valueToString = "FILL_WITH_ASPECT_RATIO";
4004 valueToString = "USE_SIZE_SET";
4008 SetProperty(View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
4013 /// Gets or sets the status of whether the width size is dependent on the height size.
4015 /// <since_tizen> 3 </since_tizen>
4016 public bool WidthForHeight
4021 GetProperty(View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
4026 SetProperty(View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue(value));
4031 /// Gets or sets the status of whether the height size is dependent on the width size.
4033 /// <since_tizen> 3 </since_tizen>
4034 public bool HeightForWidth
4039 GetProperty(View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
4044 SetProperty(View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue(value));
4049 /// Gets or sets the padding for use in layout.
4051 /// <since_tizen> 3 </since_tizen>
4052 public Vector4 Padding
4056 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
4057 GetProperty(View.Property.PADDING).Get(temp);
4062 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
4067 /// Gets or sets the minimum size the view can be assigned in size negotiation.
4069 /// <since_tizen> 3 </since_tizen>
4070 public Size2D MinimumSize
4074 Size2D temp = new Size2D(0, 0);
4075 GetProperty(View.Property.MINIMUM_SIZE).Get(temp);
4080 SetProperty(View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4085 /// Gets or sets the maximum size the view can be assigned in size negotiation.
4087 /// <since_tizen> 3 </since_tizen>
4088 public Size2D MaximumSize
4092 Size2D temp = new Size2D(0, 0);
4093 GetProperty(View.Property.MAXIMUM_SIZE).Get(temp);
4098 SetProperty(View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4103 /// Gets or sets whether a child view inherits it's parent's position.<br />
4104 /// Default is to inherit.<br />
4105 /// Switching this off means that using position sets the view's world position, i.e., translates from the world origin (0,0,0) to the pivot point of the view.<br />
4107 /// <since_tizen> 3 </since_tizen>
4108 public bool InheritPosition
4113 GetProperty(View.Property.INHERIT_POSITION).Get(out temp);
4118 SetProperty(View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue(value));
4123 /// Gets or sets the clipping behavior (mode) of it's children.
4125 /// <since_tizen> 3 </since_tizen>
4126 public ClippingModeType ClippingMode
4131 if (GetProperty(View.Property.CLIPPING_MODE).Get(out temp) == false)
4133 NUILog.Error("ClippingMode get error!");
4138 return ClippingModeType.Disabled;
4139 case "CLIP_CHILDREN":
4140 return ClippingModeType.ClipChildren;
4141 case "CLIP_TO_BOUNDING_BOX":
4142 return ClippingModeType.ClipToBoundingBox;
4144 return ClippingModeType.Disabled;
4149 SetProperty(View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)value));
4154 /// Gets the number of renderers held by the view.
4156 /// <since_tizen> 4 </since_tizen>
4157 public uint RendererCount
4161 return GetRendererCount();
4168 /// [Obsolete("Please do not use! this will be deprecated")]
4170 /// <since_tizen> 3 </since_tizen>
4171 [Obsolete("Please do not use! this will be deprecated")]
4172 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> Touched
4176 if (_touchDataEventHandler == null)
4178 _touchDataCallback = OnTouch;
4179 this.TouchSignal().Connect(_touchDataCallback);
4182 _touchDataEventHandler += value;
4187 _touchDataEventHandler -= value;
4189 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
4191 this.TouchSignal().Disconnect(_touchDataCallback);
4198 /// [Obsolete("Please do not use! this will be deprecated")]
4200 /// <since_tizen> 3 </since_tizen>
4201 [Obsolete("Please do not use! this will be deprecated")]
4202 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> Hovered
4206 if (_hoverEventHandler == null)
4208 _hoverEventCallback = OnHoverEvent;
4209 this.HoveredSignal().Connect(_hoverEventCallback);
4212 _hoverEventHandler += value;
4217 _hoverEventHandler -= value;
4219 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
4221 this.HoveredSignal().Disconnect(_hoverEventCallback);
4228 /// [Obsolete("Please do not use! this will be deprecated")]
4230 /// <since_tizen> 3 </since_tizen>
4231 [Obsolete("Please do not use! this will be deprecated")]
4232 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelMoved
4236 if (_wheelEventHandler == null)
4238 _wheelEventCallback = OnWheelEvent;
4239 this.WheelEventSignal().Connect(_wheelEventCallback);
4242 _wheelEventHandler += value;
4247 _wheelEventHandler -= value;
4249 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
4251 this.WheelEventSignal().Disconnect(_wheelEventCallback);
4258 /// [Obsolete("Please do not use! this will be deprecated")]
4260 /// <since_tizen> 3 </since_tizen>
4261 [Obsolete("Please do not use! this will be deprecated")]
4262 public Position AnchorPoint
4266 Position temp = new Position(0.0f, 0.0f, 0.0f);
4267 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
4272 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
4277 /// [Obsolete("Please do not use! this will be deprecated")]
4279 /// <since_tizen> 3 </since_tizen>
4280 [Obsolete("Please do not use! this will be deprecated, please use Size2D instead")]
4285 Size temp = new Size(0.0f, 0.0f, 0.0f);
4286 GetProperty(View.Property.SIZE).Get(temp);
4291 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(value));
4296 /// [Obsolete("Please do not use! this will be deprecated")]
4298 /// <since_tizen> 3 </since_tizen>
4299 [Obsolete("Please do not use! this will be deprecated")]
4300 public event EventHandler OnWindowEvent
4304 if (_onWindowEventHandler == null)
4306 _onWindowEventCallback = OnWindow;
4307 this.OnWindowSignal().Connect(_onWindowEventCallback);
4310 _onWindowEventHandler += value;
4315 _onWindowEventHandler -= value;
4317 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
4319 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
4325 /// [Obsolete("Please do not use! this will be deprecated")]
4327 /// <since_tizen> 3 </since_tizen>
4328 [Obsolete("Please do not use! this will be deprecated")]
4329 public event EventHandler OffWindowEvent
4333 if (_offWindowEventHandler == null)
4335 _offWindowEventCallback = OffWindow;
4336 this.OffWindowSignal().Connect(_offWindowEventCallback);
4339 _offWindowEventHandler += value;
4344 _offWindowEventHandler -= value;
4346 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
4348 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
4354 /// [Obsolete("Please do not use! this will be deprecated")]
4356 /// <since_tizen> 3 </since_tizen>
4357 [Obsolete("Please do not use! this will be deprecated")]
4358 public event EventHandler OnRelayoutEvent
4362 if (_onRelayoutEventHandler == null)
4364 _onRelayoutEventCallback = OnRelayout;
4365 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
4368 _onRelayoutEventHandler += value;
4373 _onRelayoutEventHandler -= value;
4375 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
4377 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
4384 /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4386 /// <since_tizen> 3 </since_tizen>
4387 //"Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4388 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
4389 public new View Parent
4394 IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
4396 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
4398 if (basehandle is Layer)
4400 ret = new View(cPtr, false);
4404 ret = basehandle as View;
4407 if (NDalicPINVOKE.SWIGPendingException.Pending)
4408 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4414 /// Gets/Sets whether inherit parent's the layout Direction.
4416 /// <since_tizen> 4 </since_tizen>
4417 public bool InheritLayoutDirection
4422 GetProperty(View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
4427 SetProperty(View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue(value));
4432 /// Gets/Sets the layout Direction.
4434 /// <since_tizen> 4 </since_tizen>
4435 public ViewLayoutDirectionType LayoutDirection
4440 if (GetProperty(View.Property.LAYOUT_DIRECTION).Get(out temp) == false)
4442 NUILog.Error("LAYOUT_DIRECTION get error!");
4444 return (ViewLayoutDirectionType)temp;
4448 SetProperty(View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)value));
4453 /// Gets or sets the Margin for use in layout.
4455 public Extents Margin
4459 Extents temp = new Extents(0, 0, 0, 0);
4460 GetProperty(View.Property.MARGIN).Get(temp);
4465 SetProperty(View.Property.MARGIN, new Tizen.NUI.PropertyValue(value));
4470 /// Gets or sets the Padding for use in layout.
4472 public Extents PaddingEX
4476 Extents temp = new Extents(0, 0, 0, 0);
4477 GetProperty(View.Property.PADDINGEX).Get(temp);
4482 SetProperty(View.Property.PADDINGEX, new Tizen.NUI.PropertyValue(value));
4488 /// The View layout Direction type.
4490 /// <since_tizen> 4 </since_tizen>
4491 public enum ViewLayoutDirectionType