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);
161 // Dispose all Children of this View.
162 foreach (View childView in Children)
164 childView?.Dispose();
169 private void DisConnectFromSignals()
171 // Save current CPtr.
172 global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
174 // Use BaseHandle CPtr as current might have been deleted already in derived classes.
175 swigCPtr = GetBaseHandleCPtrHandleRef;
177 if (_onRelayoutEventCallback != null)
179 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
182 if (_offWindowEventCallback != null)
184 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
187 if (_onWindowEventCallback != null)
189 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
192 if (_wheelEventCallback != null)
194 this.WheelEventSignal().Disconnect(_wheelEventCallback);
197 if (_hoverEventCallback != null)
199 this.HoveredSignal().Disconnect(_hoverEventCallback);
202 if (_touchDataCallback != null)
204 this.TouchSignal().Disconnect(_touchDataCallback);
207 if (_ResourcesLoadedCallback != null)
209 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
212 if (_offWindowEventCallback != null)
214 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
217 if (_onWindowEventCallback != null)
219 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
222 if (_wheelEventCallback != null)
224 this.WheelEventSignal().Disconnect(_wheelEventCallback);
227 if (_hoverEventCallback != null)
229 this.HoveredSignal().Disconnect(_hoverEventCallback);
232 if (_touchDataCallback != null)
234 this.TouchSignal().Disconnect(_touchDataCallback);
237 if (_onRelayoutEventCallback != null)
239 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
242 if (_keyCallback != null)
244 this.KeyEventSignal().Disconnect(_keyCallback);
247 if (_keyInputFocusLostCallback != null)
249 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
252 if (_keyInputFocusGainedCallback != null)
254 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
257 // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
258 // Restore current CPtr.
259 swigCPtr = currentCPtr;
262 private EventHandler _keyInputFocusGainedEventHandler;
263 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
264 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
265 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
268 /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
269 /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.<br />
271 /// <since_tizen> 3 </since_tizen>
272 public event EventHandler FocusGained
276 if (_keyInputFocusGainedEventHandler == null)
278 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
279 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
282 _keyInputFocusGainedEventHandler += value;
287 _keyInputFocusGainedEventHandler -= value;
289 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
291 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
296 private void OnKeyInputFocusGained(IntPtr view)
298 if (_keyInputFocusGainedEventHandler != null)
300 _keyInputFocusGainedEventHandler(this, null);
305 private EventHandler _keyInputFocusLostEventHandler;
306 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
307 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
308 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
311 /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
312 /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.<br />
314 /// <since_tizen> 3 </since_tizen>
315 public event EventHandler FocusLost
319 if (_keyInputFocusLostEventHandler == null)
321 _keyInputFocusLostCallback = OnKeyInputFocusLost;
322 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
325 _keyInputFocusLostEventHandler += value;
330 _keyInputFocusLostEventHandler -= value;
332 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
334 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
339 private void OnKeyInputFocusLost(IntPtr view)
341 if (_keyInputFocusLostEventHandler != null)
343 _keyInputFocusLostEventHandler(this, null);
348 /// Event arguments that passed via the KeyEvent signal.
350 public class KeyEventArgs : EventArgs
355 /// Key - is the key sent to the view.
357 /// <since_tizen> 3 </since_tizen>
371 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
372 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
373 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
374 private KeyCallbackType _keyCallback;
377 /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
378 /// The KeyPressed signal is emitted when the key event is received.<br />
380 /// <since_tizen> 4 </since_tizen>
381 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
385 if (_keyEventHandler == null)
387 _keyCallback = OnKeyEvent;
388 this.KeyEventSignal().Connect(_keyCallback);
391 _keyEventHandler += value;
396 _keyEventHandler -= value;
398 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
400 this.KeyEventSignal().Disconnect(_keyCallback);
405 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
407 KeyEventArgs e = new KeyEventArgs();
411 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
413 if (_keyEventHandler != null)
415 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
417 // Oring the result of each callback.
418 foreach ( EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList )
420 result |= del( this, e );
427 private EventHandler _onRelayoutEventHandler;
428 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
429 private delegate void OnRelayoutEventCallbackType(IntPtr control);
430 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
433 /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.<br />
434 /// The OnRelayout signal is emitted after the size has been set on the view during relayout.<br />
436 /// <since_tizen> 3 </since_tizen>
437 public event EventHandler Relayout
441 if (_onRelayoutEventHandler == null)
443 _onRelayoutEventCallback = OnRelayout;
444 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
447 _onRelayoutEventHandler += value;
452 _onRelayoutEventHandler -= value;
454 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
456 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
462 // Callback for View OnRelayout signal
463 private void OnRelayout(IntPtr data)
465 if (_onRelayoutEventHandler != null)
467 _onRelayoutEventHandler(this, null);
472 /// Event arguments that passed via the touch signal.
474 public class TouchEventArgs : EventArgs
476 private Touch _touch;
479 /// Touch - contains the information of touch points.
481 /// <since_tizen> 3 </since_tizen>
495 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
496 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
497 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
498 private TouchDataCallbackType _touchDataCallback;
501 /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
502 /// The touched signal is emitted when the touch input is received.<br />
504 /// <since_tizen> 4 </since_tizen>
505 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> TouchEvent
509 if (_touchDataEventHandler == null)
511 _touchDataCallback = OnTouch;
512 this.TouchSignal().Connect(_touchDataCallback);
515 _touchDataEventHandler += value;
520 _touchDataEventHandler -= value;
522 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
524 this.TouchSignal().Disconnect(_touchDataCallback);
530 // Callback for View TouchSignal
531 private bool OnTouch(IntPtr view, IntPtr touchData)
533 TouchEventArgs e = new TouchEventArgs();
535 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
537 if (_touchDataEventHandler != null)
539 return _touchDataEventHandler(this, e);
546 /// Event arguments that passed via the hover signal.
548 public class HoverEventArgs : EventArgs
550 private Hover _hover;
553 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
555 /// <since_tizen> 3 </since_tizen>
569 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
570 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
571 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
572 private HoverEventCallbackType _hoverEventCallback;
575 /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
576 /// The hovered signal is emitted when the hover input is received.<br />
578 /// <since_tizen> 4 </since_tizen>
579 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> HoverEvent
583 if (_hoverEventHandler == null)
585 _hoverEventCallback = OnHoverEvent;
586 this.HoveredSignal().Connect(_hoverEventCallback);
589 _hoverEventHandler += value;
594 _hoverEventHandler -= value;
596 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
598 this.HoveredSignal().Disconnect(_hoverEventCallback);
604 // Callback for View Hover signal
605 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
607 HoverEventArgs e = new HoverEventArgs();
609 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
611 if (_hoverEventHandler != null)
613 return _hoverEventHandler(this, e);
620 /// Event arguments that passed via the wheel signal.
622 public class WheelEventArgs : EventArgs
624 private Wheel _wheel;
627 /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
629 /// <since_tizen> 3 </since_tizen>
643 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
644 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
645 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
646 private WheelEventCallbackType _wheelEventCallback;
649 /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
650 /// The WheelMoved signal is emitted when the wheel event is received.<br />
652 /// <since_tizen> 4 </since_tizen>
653 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelEvent
657 if (_wheelEventHandler == null)
659 _wheelEventCallback = OnWheelEvent;
660 this.WheelEventSignal().Connect(_wheelEventCallback);
663 _wheelEventHandler += value;
668 _wheelEventHandler -= value;
670 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
672 this.WheelEventSignal().Disconnect(_wheelEventCallback);
678 // Callback for View Wheel signal
679 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
681 WheelEventArgs e = new WheelEventArgs();
683 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
685 if (_wheelEventHandler != null)
687 return _wheelEventHandler(this, e);
693 private EventHandler _onWindowEventHandler;
694 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
695 private delegate void OnWindowEventCallbackType(IntPtr control);
696 private OnWindowEventCallbackType _onWindowEventCallback;
699 /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.<br />
700 /// The OnWindow signal is emitted after the view has been connected to the window.<br />
702 /// <since_tizen> 3 </since_tizen>
703 public event EventHandler AddedToWindow
707 if (_onWindowEventHandler == null)
709 _onWindowEventCallback = OnWindow;
710 this.OnWindowSignal().Connect(_onWindowEventCallback);
713 _onWindowEventHandler += value;
718 _onWindowEventHandler -= value;
720 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
722 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
727 // Callback for View OnWindow signal
728 private void OnWindow(IntPtr data)
730 if (_onWindowEventHandler != null)
732 _onWindowEventHandler(this, null);
737 private EventHandler _offWindowEventHandler;
738 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
739 private delegate void OffWindowEventCallbackType(IntPtr control);
740 private OffWindowEventCallbackType _offWindowEventCallback;
743 /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.<br />
744 /// OffWindow signal is emitted after the view has been disconnected from the window.<br />
746 /// <since_tizen> 3 </since_tizen>
747 public event EventHandler RemovedFromWindow
751 if (_offWindowEventHandler == null)
753 _offWindowEventCallback = OffWindow;
754 this.OffWindowSignal().Connect(_offWindowEventCallback);
757 _offWindowEventHandler += value;
762 _offWindowEventHandler -= value;
764 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
766 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
771 // Callback for View OffWindow signal
772 private void OffWindow(IntPtr data)
774 if (_offWindowEventHandler != null)
776 _offWindowEventHandler(this, null);
781 /// Event arguments of visibility changed.
783 public class VisibilityChangedEventArgs : EventArgs
786 private bool _visibility;
787 private VisibilityChangeType _type;
790 /// The view, or child of view, whose visibility has changed.
792 /// <since_tizen> 3 </since_tizen>
806 /// Whether the view is now visible or not.
808 /// <since_tizen> 3 </since_tizen>
809 public bool Visibility
822 /// Whether the view's visible property has changed or a parent's.
824 /// <since_tizen> 3 </since_tizen>
825 public VisibilityChangeType Type
838 private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
839 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
840 private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
841 private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
844 /// An event for visibility change which can be used to subscribe or unsubscribe the event handler.<br />
845 /// This signal is emitted when the visible property of this or a parent view is changed.<br />
847 /// <since_tizen> 3 </since_tizen>
848 public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
852 if (_visibilityChangedEventHandler == null)
854 _visibilityChangedEventCallback = OnVisibilityChanged;
855 VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
858 _visibilityChangedEventHandler += value;
863 _visibilityChangedEventHandler -= value;
865 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
867 VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
872 // Callback for View visibility change signal
873 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
875 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
878 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
880 e.Visibility = visibility;
883 if (_visibilityChangedEventHandler != null)
885 _visibilityChangedEventHandler(this, e);
891 /// Event arguments of layout direction changed.
893 public class LayoutDirectionChangedEventArgs : EventArgs
896 private ViewLayoutDirectionType _type;
899 /// The view, or child of view, whose layout direction has changed.
901 /// <since_tizen> 4 </since_tizen>
915 /// Whether the view's layout direction property has changed or a parent's.
917 /// <since_tizen> 4 </since_tizen>
918 public ViewLayoutDirectionType Type
931 private EventHandler<LayoutDirectionChangedEventArgs> _layoutDirectionChangedEventHandler;
932 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
933 private delegate void LayoutDirectionChangedEventCallbackType(IntPtr data, ViewLayoutDirectionType type);
934 private LayoutDirectionChangedEventCallbackType _layoutDirectionChangedEventCallback;
937 /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.<br />
938 /// This signal is emitted when the layout direction property of this or a parent view is changed.<br />
940 /// <since_tizen> 4 </since_tizen>
941 public event EventHandler<LayoutDirectionChangedEventArgs> LayoutDirectionChanged
945 if (_layoutDirectionChangedEventHandler == null)
947 _layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
948 LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
951 _layoutDirectionChangedEventHandler += value;
956 _layoutDirectionChangedEventHandler -= value;
958 if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
960 LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
965 // Callback for View layout direction change signal
966 private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
968 LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
971 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
975 if (_layoutDirectionChangedEventHandler != null)
977 _layoutDirectionChangedEventHandler(this, e);
987 // Resource Ready Signal
989 private EventHandler _resourcesLoadedEventHandler;
990 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
991 private delegate void ResourcesLoadedCallbackType(IntPtr control);
992 private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
995 /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
996 /// This signal is emitted after all resources required by a view are loaded and ready.<br />
998 /// <since_tizen> 4 </since_tizen>
999 public event EventHandler ResourcesLoaded
1003 if (_resourcesLoadedEventHandler == null)
1005 _ResourcesLoadedCallback = OnResourcesLoaded;
1006 this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
1009 _resourcesLoadedEventHandler += value;
1014 _resourcesLoadedEventHandler -= value;
1016 if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1018 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
1023 private void OnResourcesLoaded(IntPtr view)
1025 if (_resourcesLoadedEventHandler != null)
1027 _resourcesLoadedEventHandler(this, null);
1031 internal IntPtr GetPtrfromView()
1033 return (IntPtr)swigCPtr;
1036 internal class Property
1038 internal static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
1039 internal static readonly int STATE = NDalicManualPINVOKE.View_Property_STATE_get();
1040 internal static readonly int SUB_STATE = NDalicManualPINVOKE.View_Property_SUB_STATE_get();
1041 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
1042 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
1043 internal static readonly int UP_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
1044 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
1045 internal static readonly int STYLE_NAME = NDalicPINVOKE.View_Property_STYLE_NAME_get();
1046 internal static readonly int BACKGROUND = NDalicPINVOKE.View_Property_BACKGROUND_get();
1047 internal static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
1048 internal static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
1049 internal static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
1050 internal static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
1051 internal static readonly int PARENT_ORIGIN = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_get();
1052 internal static readonly int PARENT_ORIGIN_X = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_X_get();
1053 internal static readonly int PARENT_ORIGIN_Y = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Y_get();
1054 internal static readonly int PARENT_ORIGIN_Z = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Z_get();
1055 internal static readonly int ANCHOR_POINT = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_get();
1056 internal static readonly int ANCHOR_POINT_X = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_X_get();
1057 internal static readonly int ANCHOR_POINT_Y = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Y_get();
1058 internal static readonly int ANCHOR_POINT_Z = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Z_get();
1059 internal static readonly int SIZE = NDalicPINVOKE.Actor_Property_SIZE_get();
1060 internal static readonly int SIZE_WIDTH = NDalicPINVOKE.Actor_Property_SIZE_WIDTH_get();
1061 internal static readonly int SIZE_HEIGHT = NDalicPINVOKE.Actor_Property_SIZE_HEIGHT_get();
1062 internal static readonly int SIZE_DEPTH = NDalicPINVOKE.Actor_Property_SIZE_DEPTH_get();
1063 internal static readonly int POSITION = NDalicPINVOKE.Actor_Property_POSITION_get();
1064 internal static readonly int POSITION_X = NDalicPINVOKE.Actor_Property_POSITION_X_get();
1065 internal static readonly int POSITION_Y = NDalicPINVOKE.Actor_Property_POSITION_Y_get();
1066 internal static readonly int POSITION_Z = NDalicPINVOKE.Actor_Property_POSITION_Z_get();
1067 internal static readonly int WORLD_POSITION = NDalicPINVOKE.Actor_Property_WORLD_POSITION_get();
1068 internal static readonly int WORLD_POSITION_X = NDalicPINVOKE.Actor_Property_WORLD_POSITION_X_get();
1069 internal static readonly int WORLD_POSITION_Y = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Y_get();
1070 internal static readonly int WORLD_POSITION_Z = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Z_get();
1071 internal static readonly int ORIENTATION = NDalicPINVOKE.Actor_Property_ORIENTATION_get();
1072 internal static readonly int WORLD_ORIENTATION = NDalicPINVOKE.Actor_Property_WORLD_ORIENTATION_get();
1073 internal static readonly int SCALE = NDalicPINVOKE.Actor_Property_SCALE_get();
1074 internal static readonly int SCALE_X = NDalicPINVOKE.Actor_Property_SCALE_X_get();
1075 internal static readonly int SCALE_Y = NDalicPINVOKE.Actor_Property_SCALE_Y_get();
1076 internal static readonly int SCALE_Z = NDalicPINVOKE.Actor_Property_SCALE_Z_get();
1077 internal static readonly int WORLD_SCALE = NDalicPINVOKE.Actor_Property_WORLD_SCALE_get();
1078 internal static readonly int VISIBLE = NDalicPINVOKE.Actor_Property_VISIBLE_get();
1079 internal static readonly int WORLD_COLOR = NDalicPINVOKE.Actor_Property_WORLD_COLOR_get();
1080 internal static readonly int WORLD_MATRIX = NDalicPINVOKE.Actor_Property_WORLD_MATRIX_get();
1081 internal static readonly int NAME = NDalicPINVOKE.Actor_Property_NAME_get();
1082 internal static readonly int SENSITIVE = NDalicPINVOKE.Actor_Property_SENSITIVE_get();
1083 internal static readonly int LEAVE_REQUIRED = NDalicPINVOKE.Actor_Property_LEAVE_REQUIRED_get();
1084 internal static readonly int INHERIT_ORIENTATION = NDalicPINVOKE.Actor_Property_INHERIT_ORIENTATION_get();
1085 internal static readonly int INHERIT_SCALE = NDalicPINVOKE.Actor_Property_INHERIT_SCALE_get();
1086 internal static readonly int DRAW_MODE = NDalicPINVOKE.Actor_Property_DRAW_MODE_get();
1087 internal static readonly int SIZE_MODE_FACTOR = NDalicPINVOKE.Actor_Property_SIZE_MODE_FACTOR_get();
1088 internal static readonly int WIDTH_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_WIDTH_RESIZE_POLICY_get();
1089 internal static readonly int HEIGHT_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_HEIGHT_RESIZE_POLICY_get();
1090 internal static readonly int SIZE_SCALE_POLICY = NDalicPINVOKE.Actor_Property_SIZE_SCALE_POLICY_get();
1091 internal static readonly int WIDTH_FOR_HEIGHT = NDalicPINVOKE.Actor_Property_WIDTH_FOR_HEIGHT_get();
1092 internal static readonly int HEIGHT_FOR_WIDTH = NDalicPINVOKE.Actor_Property_HEIGHT_FOR_WIDTH_get();
1093 internal static readonly int PADDING = NDalicPINVOKE.Actor_Property_PADDING_get();
1094 internal static readonly int MINIMUM_SIZE = NDalicPINVOKE.Actor_Property_MINIMUM_SIZE_get();
1095 internal static readonly int MAXIMUM_SIZE = NDalicPINVOKE.Actor_Property_MAXIMUM_SIZE_get();
1096 internal static readonly int INHERIT_POSITION = NDalicPINVOKE.Actor_Property_INHERIT_POSITION_get();
1097 internal static readonly int CLIPPING_MODE = NDalicPINVOKE.Actor_Property_CLIPPING_MODE_get();
1098 internal static readonly int INHERIT_LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
1099 internal static readonly int LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_LAYOUT_DIRECTION_get();
1100 internal static readonly int MARGIN = NDalicPINVOKE.View_Property_MARGIN_get();
1101 internal static readonly int PADDINGEX = NDalicPINVOKE.View_Property_PADDING_get();
1105 /// Describes the direction to move the focus towards.
1107 /// <since_tizen> 3 </since_tizen>
1108 public enum FocusDirection
1111 /// Move keyboard focus towards the left direction.
1113 /// <since_tizen> 3 </since_tizen>
1116 /// Move keyboard focus towards the right direction.
1118 /// <since_tizen> 3 </since_tizen>
1121 /// Move keyboard focus towards the up direction.
1123 /// <since_tizen> 3 </since_tizen>
1126 /// Move keyboard focus towards the down direction.
1128 /// <since_tizen> 3 </since_tizen>
1131 /// Move keyboard focus towards the previous page direction.
1133 /// <since_tizen> 3 </since_tizen>
1136 /// Move keyboard focus towards the next page direction.
1138 /// <since_tizen> 3 </since_tizen>
1143 /// Creates a new instance of a view.
1145 /// <since_tizen> 3 </since_tizen>
1146 public View() : this(NDalicPINVOKE.View_New(), true)
1148 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1151 internal View(View uiControl) : this(NDalicPINVOKE.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1153 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1157 /// Downcasts a handle to view handle.<br />
1158 /// If handle points to a view, the downcast produces a valid handle.<br />
1159 /// If not, the returned handle is left uninitialized.<br />
1161 /// <param name="handle">A handle to an object.</param>
1162 /// <returns>A handle to a view or an uninitialized handle.</returns>
1163 [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1164 public static View DownCast(BaseHandle handle)
1166 View ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as View;
1167 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1172 /// [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1174 /// <since_tizen> 3 </since_tizen>
1175 [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1176 public static T DownCast<T>(View view) where T : View
1178 T ret = Registry.GetManagedBaseHandleFromNativePtr(view) as T;
1186 private View ConvertIdToView(uint id)
1192 View parentView = Parent as View;
1193 view = parentView.FindChildById(id);
1198 view = Window.Instance.GetRootLayer().FindChildById(id);
1204 internal void SetKeyInputFocus()
1206 NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
1207 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1211 /// Queries whether the view has a focus.
1213 /// <returns>True if this view has a focus.</returns>
1214 /// <since_tizen> 3 </since_tizen>
1215 public bool HasFocus()
1217 bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
1218 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1222 internal void ClearKeyInputFocus()
1224 NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
1225 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1228 internal PinchGestureDetector GetPinchGestureDetector()
1230 PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
1231 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1235 internal PanGestureDetector GetPanGestureDetector()
1237 PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
1238 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1242 internal TapGestureDetector GetTapGestureDetector()
1244 TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
1245 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1249 internal LongPressGestureDetector GetLongPressGestureDetector()
1251 LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
1252 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1257 /// Sets the name of the style to be applied to the view.
1259 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
1260 /// <since_tizen> 3 </since_tizen>
1261 public void SetStyleName(string styleName)
1263 NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
1264 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1268 /// Retrieves the name of the style to be applied to the view (if any).
1270 /// <returns>A string matching a style, or an empty string.</returns>
1271 /// <since_tizen> 3 </since_tizen>
1272 public string GetStyleName()
1274 string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
1275 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1279 internal void SetBackgroundColor(Vector4 color)
1281 NDalicPINVOKE.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
1282 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1285 internal Vector4 GetBackgroundColor()
1287 Vector4 ret = new Vector4(NDalicPINVOKE.View_GetBackgroundColor(swigCPtr), true);
1288 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1292 internal void SetBackgroundImage(Image image)
1294 NDalicPINVOKE.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
1295 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1299 /// Clears the background.
1301 /// <since_tizen> 3 </since_tizen>
1302 public void ClearBackground()
1304 NDalicPINVOKE.View_ClearBackground(swigCPtr);
1305 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1308 internal ControlKeySignal KeyEventSignal()
1310 ControlKeySignal ret = new ControlKeySignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
1311 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1315 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
1317 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
1318 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1322 internal KeyInputFocusSignal KeyInputFocusLostSignal()
1324 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
1325 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1329 internal View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1331 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1334 internal enum PropertyRange
1336 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1337 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1338 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1342 /// The StyleName, type string.
1344 /// <since_tizen> 3 </since_tizen>
1345 public string StyleName
1350 GetProperty(View.Property.STYLE_NAME).Get(out temp);
1355 SetProperty(View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue(value));
1360 /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
1362 /// <since_tizen> 3 </since_tizen>
1363 public Color BackgroundColor
1367 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1369 Tizen.NUI.PropertyMap background = Background;
1371 background.Find(Visual.Property.Type)?.Get(out visualType);
1372 if (visualType == (int)Visual.Type.Color)
1374 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
1377 return backgroundColor;
1381 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1386 /// Creates an animation to animate the background color visual. If there is no
1387 /// background visual, creates one with transparent black as it's mixColor.
1389 /// <since_tizen> 4 </since_tizen>
1390 public Animation AnimateBackgroundColor( object destinationValue,
1393 AlphaFunction.BuiltinFunctions? alphaFunction = null,
1394 object initialValue = null)
1396 Tizen.NUI.PropertyMap background = Background;
1398 if( background.Empty() )
1400 // If there is no background yet, ensure there is a transparent
1402 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1403 background = Background;
1405 return AnimateColor( "background", destinationValue, startTime, endTime, alphaFunction, initialValue );
1409 /// Creates an animation to animate the mixColor of the named visual.
1411 /// <since_tizen> 4 </since_tizen>
1412 public Animation AnimateColor( string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null )
1414 Animation animation = null;
1416 PropertyMap _animator = new PropertyMap();
1417 if( alphaFunction != null )
1419 _animator.Add("alphaFunction", new PropertyValue( AlphaFunction.BuiltinToPropertyKey(alphaFunction) ) );
1422 PropertyMap _timePeriod = new PropertyMap();
1423 _timePeriod.Add( "duration", new PropertyValue((endTime-startTime)/1000.0f) );
1424 _timePeriod.Add( "delay", new PropertyValue( startTime/1000.0f ) );
1425 _animator.Add( "timePeriod", new PropertyValue( _timePeriod ) );
1427 PropertyMap _transition = new PropertyMap();
1428 _transition.Add( "animator", new PropertyValue( _animator ) );
1429 _transition.Add( "target", new PropertyValue( targetVisual ) );
1430 _transition.Add( "property", new PropertyValue( "mixColor" ) );
1432 if( initialColor != null )
1434 PropertyValue initValue = PropertyValue.CreateFromObject( initialColor );
1435 _transition.Add( "initialValue", initValue );
1438 PropertyValue destValue = PropertyValue.CreateFromObject( destinationColor );
1439 _transition.Add( "targetValue", destValue );
1440 TransitionData _transitionData = new TransitionData( _transition );
1442 animation = new Animation( NDalicManualPINVOKE.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true );
1443 if (NDalicPINVOKE.SWIGPendingException.Pending)
1444 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1450 /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
1452 /// <since_tizen> 3 </since_tizen>
1453 public string BackgroundImage
1457 string backgroundImage = "";
1459 Tizen.NUI.PropertyMap background = Background;
1461 background.Find(Visual.Property.Type)?.Get(out visualType);
1462 if (visualType == (int)Visual.Type.Image)
1464 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
1467 return backgroundImage;
1471 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1476 /// The background of view.
1478 /// <since_tizen> 3 </since_tizen>
1479 public Tizen.NUI.PropertyMap Background
1483 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1484 GetProperty( View.Property.BACKGROUND ).Get(temp);
1489 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1495 /// The current state of the view.
1497 /// <since_tizen> 3 </since_tizen>
1503 if (GetProperty(View.Property.STATE).Get(out temp) == false)
1505 NUILog.Error("State get error!");
1511 return States.Normal;
1515 return States.Focused;
1519 return States.Disabled;
1523 return States.Normal;
1529 SetProperty(View.Property.STATE, new Tizen.NUI.PropertyValue((int)value));
1534 /// The current sub state of the view.
1536 /// <since_tizen> 3 </since_tizen>
1537 public States SubState
1542 if (GetProperty(View.Property.SUB_STATE).Get(out temp) == false)
1544 NUILog.Error("subState get error!");
1549 return States.Normal;
1551 return States.Focused;
1553 return States.Disabled;
1555 return States.Normal;
1560 string valueToString = "";
1565 valueToString = "NORMAL";
1568 case States.Focused:
1570 valueToString = "FOCUSED";
1573 case States.Disabled:
1575 valueToString = "DISABLED";
1580 valueToString = "NORMAL";
1584 SetProperty(View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
1589 /// Displays a tooltip
1591 /// <since_tizen> 3 </since_tizen>
1592 public Tizen.NUI.PropertyMap Tooltip
1596 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1597 GetProperty(View.Property.TOOLTIP).Get(temp);
1602 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1607 /// Displays a tooltip as a text.
1609 /// <since_tizen> 3 </since_tizen>
1610 public string TooltipText
1614 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1618 private int LeftFocusableViewId
1623 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
1628 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1632 private int RightFocusableViewId
1637 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
1642 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1646 private int UpFocusableViewId
1651 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
1656 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1660 private int DownFocusableViewId
1665 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
1670 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1675 /// The Child property of FlexContainer.<br />
1676 /// The proportion of the free space in the container, the flex item will receive.<br />
1677 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
1679 /// <since_tizen> 3 </since_tizen>
1685 GetProperty(FlexContainer.ChildProperty.FLEX).Get(out temp);
1690 SetProperty(FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue(value));
1695 /// The Child property of FlexContainer.<br />
1696 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
1698 /// <since_tizen> 3 </since_tizen>
1699 public int AlignSelf
1704 GetProperty(FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
1709 SetProperty(FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue(value));
1714 /// The Child property of FlexContainer.<br />
1715 /// The space around the flex item.<br />
1717 /// <since_tizen> 3 </since_tizen>
1718 public Vector4 FlexMargin
1722 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1723 GetProperty(FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
1728 SetProperty(FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue(value));
1733 /// The top-left cell this child occupies, if not set, the first available cell is used.
1735 /// <since_tizen> 3 </since_tizen>
1736 public Vector2 CellIndex
1740 Vector2 temp = new Vector2(0.0f, 0.0f);
1741 GetProperty(TableView.ChildProperty.CELL_INDEX).Get(temp);
1746 SetProperty(TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue(value));
1751 /// The number of rows this child occupies, if not set, the default value is 1.
1753 /// <since_tizen> 3 </since_tizen>
1754 public float RowSpan
1759 GetProperty(TableView.ChildProperty.ROW_SPAN).Get(out temp);
1764 SetProperty(TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue(value));
1769 /// The number of columns this child occupies, if not set, the default value is 1.
1771 /// <since_tizen> 3 </since_tizen>
1772 public float ColumnSpan
1777 GetProperty(TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
1782 SetProperty(TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue(value));
1787 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
1789 /// <since_tizen> 3 </since_tizen>
1790 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
1795 if (GetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
1797 NUILog.Error("CellHorizontalAlignment get error!");
1803 return Tizen.NUI.HorizontalAlignmentType.Left;
1805 return Tizen.NUI.HorizontalAlignmentType.Center;
1807 return Tizen.NUI.HorizontalAlignmentType.Right;
1809 return Tizen.NUI.HorizontalAlignmentType.Left;
1814 string valueToString = "";
1817 case Tizen.NUI.HorizontalAlignmentType.Left:
1819 valueToString = "left";
1822 case Tizen.NUI.HorizontalAlignmentType.Center:
1824 valueToString = "center";
1827 case Tizen.NUI.HorizontalAlignmentType.Right:
1829 valueToString = "right";
1834 valueToString = "left";
1838 SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1843 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
1845 /// <since_tizen> 3 </since_tizen>
1846 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
1851 GetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
1853 NUILog.Error("CellVerticalAlignment get error!");
1859 return Tizen.NUI.VerticalAlignmentType.Top;
1861 return Tizen.NUI.VerticalAlignmentType.Center;
1863 return Tizen.NUI.VerticalAlignmentType.Bottom;
1865 return Tizen.NUI.VerticalAlignmentType.Top;
1870 string valueToString = "";
1873 case Tizen.NUI.VerticalAlignmentType.Top:
1875 valueToString = "top";
1878 case Tizen.NUI.VerticalAlignmentType.Center:
1880 valueToString = "center";
1883 case Tizen.NUI.VerticalAlignmentType.Bottom:
1885 valueToString = "bottom";
1890 valueToString = "top";
1894 SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1899 /// The left focusable view.<br />
1900 /// This will return null if not set.<br />
1901 /// This will also return null if the specified left focusable view is not on a window.<br />
1903 /// <since_tizen> 3 </since_tizen>
1904 public View LeftFocusableView
1906 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1909 if (LeftFocusableViewId >= 0)
1911 return ConvertIdToView((uint)LeftFocusableViewId);
1919 LeftFocusableViewId = (int)value.GetId();
1923 LeftFocusableViewId = -1;
1929 /// The right focusable view.<br />
1930 /// This will return null if not set.<br />
1931 /// This will also return null if the specified right focusable view is not on a window.<br />
1933 /// <since_tizen> 3 </since_tizen>
1934 public View RightFocusableView
1936 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1939 if (RightFocusableViewId >= 0)
1941 return ConvertIdToView((uint)RightFocusableViewId);
1949 RightFocusableViewId = (int)value.GetId();
1953 RightFocusableViewId = -1;
1959 /// The up focusable view.<br />
1960 /// This will return null if not set.<br />
1961 /// This will also return null if the specified up focusable view is not on a window.<br />
1963 /// <since_tizen> 3 </since_tizen>
1964 public View UpFocusableView
1966 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1969 if (UpFocusableViewId >= 0)
1971 return ConvertIdToView((uint)UpFocusableViewId);
1979 UpFocusableViewId = (int)value.GetId();
1983 UpFocusableViewId = -1;
1989 /// The down focusable view.<br />
1990 /// This will return null if not set.<br />
1991 /// This will also return null if the specified down focusable view is not on a window.<br />
1993 /// <since_tizen> 3 </since_tizen>
1994 public View DownFocusableView
1996 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1999 if (DownFocusableViewId >= 0)
2001 return ConvertIdToView((uint)DownFocusableViewId);
2009 DownFocusableViewId = (int)value.GetId();
2013 DownFocusableViewId = -1;
2019 /// Whether the view should be focusable by keyboard navigation.
2021 /// <since_tizen> 3 </since_tizen>
2022 public bool Focusable
2026 SetKeyboardFocusable(value);
2030 return IsKeyboardFocusable();
2035 /// Enumeration for describing the states of the view.
2037 /// <since_tizen> 3 </since_tizen>
2041 /// The normal state.
2045 /// The focused state.
2049 /// The disabled state.
2055 /// Retrieves the position of the view.<br />
2056 /// The coordinates are relative to the view's parent.<br />
2058 /// <since_tizen> 3 </since_tizen>
2059 public Position CurrentPosition
2063 return GetCurrentPosition();
2068 /// Sets the size of a view for the width and the height.<br />
2069 /// Geometry can be scaled to fit within this area.<br />
2070 /// This does not interfere with the view's scale factor.<br />
2071 /// The views default depth is the minimum of width and height.<br />
2073 /// <since_tizen> 3 </since_tizen>
2074 public Size2D Size2D
2078 Size temp = new Size(0.0f, 0.0f, 0.0f);
2079 GetProperty(View.Property.SIZE).Get(temp);
2080 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
2085 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size(value)));
2090 /// Retrieves the size of the view.<br />
2091 /// The coordinates are relative to the view's parent.<br />
2093 /// <since_tizen> 3 </since_tizen>
2094 public Size2D CurrentSize
2098 return GetCurrentSize();
2103 /// [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
2105 /// <since_tizen> 3 </since_tizen>
2106 [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
2116 /// Retrieves and sets the view's opacity.<br />
2118 /// <since_tizen> 3 </since_tizen>
2119 public float Opacity
2124 GetProperty(View.Property.OPACITY).Get(out temp);
2129 SetProperty(View.Property.OPACITY, new Tizen.NUI.PropertyValue(value));
2134 /// Sets the position of the view for X and Y.<br />
2135 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2136 /// If the position inheritance is disabled, sets the world position.<br />
2138 /// <since_tizen> 3 </since_tizen>
2139 public Position2D Position2D
2143 Position temp = new Position(0.0f, 0.0f, 0.0f);
2144 GetProperty(View.Property.POSITION).Get(temp);
2145 return new Position2D(temp);
2149 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position(value)));
2154 /// Retrieves the screen postion of the view.<br />
2156 /// <since_tizen> 3 </since_tizen>
2157 public Vector2 ScreenPosition
2161 Vector2 temp = new Vector2(0.0f, 0.0f);
2162 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2168 /// Determines whether the pivot point should be used to determine the position of the view.
2169 /// This is true by default.
2171 /// <remarks>If false, then the top-left of the view is used for the position.
2172 /// Setting this to false will allow scaling or rotation around the anchor-point without affecting the view's position.
2174 /// <since_tizen> 4 </since_tizen>
2175 public bool PositionUsesPivotPoint
2180 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2185 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2190 /// [Obsolete("Please do not use! this will be deprecated")]
2192 /// <since_tizen> 3 </since_tizen>
2193 [Obsolete("Please do not use! this will be deprecated")]
2194 public bool PositionUsesAnchorPoint
2199 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2204 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2208 internal bool FocusState
2212 return IsKeyboardFocusable();
2216 SetKeyboardFocusable(value);
2221 /// Queries whether the view is connected to the stage.<br />
2222 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2224 /// <since_tizen> 3 </since_tizen>
2225 public bool IsOnWindow
2234 /// Gets the depth in the hierarchy for the view.
2236 /// <since_tizen> 3 </since_tizen>
2237 public int HierarchyDepth
2241 return GetHierarchyDepth();
2246 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2249 /// Note the initial value is 0.
2250 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2251 /// The values set by this property will likely change.
2253 /// <since_tizen> 3 </since_tizen>
2254 public int SiblingOrder
2259 GetProperty(View.Property.SIBLING_ORDER).Get(out temp);
2264 SetProperty(View.Property.SIBLING_ORDER, new Tizen.NUI.PropertyValue(value));
2269 /// Returns the natural size of the view.
2272 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2274 [Obsolete("Please do not use! this will be deprecated, please use NaturalSize2D instead")]
2275 public Vector3 NaturalSize
2279 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2280 if (NDalicPINVOKE.SWIGPendingException.Pending)
2281 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2287 /// Returns the natural size (Size2D) of the view.
2290 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2292 /// <since_tizen> 4 </since_tizen>
2293 public Size2D NaturalSize2D
2297 Vector3 temp = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2298 if (NDalicPINVOKE.SWIGPendingException.Pending)
2299 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2301 return new Size2D((int)temp.Width, (int)temp.Height);
2309 /// This is an asynchronous method.
2311 /// <since_tizen> 3 </since_tizen>
2321 /// This is an asynchronous method.
2322 /// If the view is hidden, then the view and its children will not be rendered.
2323 /// 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.
2325 /// <since_tizen> 3 </since_tizen>
2331 internal void Raise()
2333 var parentChildren = Parent?.Children;
2335 if (parentChildren != null)
2337 int currentIndex = parentChildren.IndexOf(this);
2339 // If the view is not already the last item in the list.
2340 if (currentIndex != parentChildren.Count -1)
2342 View temp = parentChildren[currentIndex + 1];
2343 parentChildren[currentIndex + 1] = this;
2344 parentChildren[currentIndex] = temp;
2348 NDalicPINVOKE.Raise(swigCPtr);
2349 if (NDalicPINVOKE.SWIGPendingException.Pending)
2350 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2353 internal void Lower()
2355 var parentChildren = Parent?.Children;
2357 if (parentChildren != null)
2359 int currentIndex = parentChildren.IndexOf(this);
2361 // If the view is not already the first item in the list.
2362 if (currentIndex > 0)
2364 View temp = parentChildren[currentIndex - 1];
2365 parentChildren[currentIndex - 1] = this;
2366 parentChildren[currentIndex] = temp;
2370 NDalicPINVOKE.Lower(swigCPtr);
2371 if (NDalicPINVOKE.SWIGPendingException.Pending)
2372 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2376 /// Raises the view above all other views.
2379 /// Sibling order of views within the parent will be updated automatically.
2380 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
2382 /// <since_tizen> 3 </since_tizen>
2383 public void RaiseToTop()
2385 var parentChildren = Parent?.Children;
2387 if (parentChildren != null)
2389 parentChildren.Remove(this);
2390 parentChildren.Add(this);
2393 NDalicPINVOKE.RaiseToTop(swigCPtr);
2394 if (NDalicPINVOKE.SWIGPendingException.Pending)
2395 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2399 /// Lowers the view to the bottom of all views.
2402 /// The sibling order of views within the parent will be updated automatically.
2403 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2405 /// <since_tizen> 3 </since_tizen>
2406 public void LowerToBottom()
2408 var parentChildren = Parent?.Children;
2410 if (parentChildren != null)
2412 parentChildren.Remove(this);
2413 parentChildren.Insert(0, this);
2416 NDalicPINVOKE.LowerToBottom(swigCPtr);
2417 if (NDalicPINVOKE.SWIGPendingException.Pending)
2418 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2422 /// Queries if all resources required by a view are loaded and ready.
2424 /// <remarks>Most resources are only loaded when the control is placed on the stage.
2426 /// <since_tizen> 4 </since_tizen>
2427 public bool IsResourceReady()
2429 bool ret = NDalicPINVOKE.IsResourceReady(swigCPtr);
2430 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2435 /// Raises the view to above the target view.
2437 /// <remarks>The sibling order of views within the parent will be updated automatically.
2438 /// Views on the level above the target view will still be shown above this view.
2439 /// Raising this view above views with the same sibling order as each other will raise this view above them.
2440 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2442 /// <param name="target">Will be raised above this view.</param>
2443 internal void RaiseAbove(View target)
2445 var parentChildren = Parent?.Children;
2447 if (parentChildren != null)
2449 int currentIndex = parentChildren.IndexOf(this);
2450 int targetIndex = parentChildren.IndexOf(target);
2452 // If the currentIndex is less than the target index and the target has the same parent.
2453 if (currentIndex < targetIndex)
2455 parentChildren.Remove(this);
2456 parentChildren.Insert(targetIndex, this);
2460 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
2461 if (NDalicPINVOKE.SWIGPendingException.Pending)
2462 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2466 /// Lowers the view to below the target view.
2468 /// <remarks>The sibling order of views within the parent will be updated automatically.
2469 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
2470 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2472 /// <param name="target">Will be lowered below this view.</param>
2473 internal void LowerBelow(View target)
2475 var parentChildren = Parent?.Children;
2477 if (parentChildren != null)
2479 int currentIndex = parentChildren.IndexOf(this);
2480 int targetIndex = parentChildren.IndexOf(target);
2482 // If the currentIndex is not already the 0th index and the target has the same parent.
2483 if ((currentIndex != 0) && (targetIndex != -1) &&
2484 (currentIndex > targetIndex))
2486 parentChildren.Remove(this);
2487 parentChildren.Insert(targetIndex, this);
2491 NDalicPINVOKE.LowerBelow(swigCPtr, View.getCPtr(target));
2492 if (NDalicPINVOKE.SWIGPendingException.Pending)
2493 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2496 internal string GetName()
2498 string ret = NDalicPINVOKE.Actor_GetName(swigCPtr);
2499 if (NDalicPINVOKE.SWIGPendingException.Pending)
2500 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2504 internal void SetName(string name)
2506 NDalicPINVOKE.Actor_SetName(swigCPtr, name);
2507 if (NDalicPINVOKE.SWIGPendingException.Pending)
2508 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2511 internal uint GetId()
2513 uint ret = NDalicPINVOKE.Actor_GetId(swigCPtr);
2514 if (NDalicPINVOKE.SWIGPendingException.Pending)
2515 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2519 internal bool IsRoot()
2521 bool ret = NDalicPINVOKE.Actor_IsRoot(swigCPtr);
2522 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2526 internal bool OnWindow()
2528 bool ret = NDalicPINVOKE.Actor_OnStage(swigCPtr);
2529 if (NDalicPINVOKE.SWIGPendingException.Pending)
2530 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2534 internal Layer GetLayer()
2536 IntPtr cPtr = NDalicPINVOKE.Actor_GetLayer(swigCPtr);
2537 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Layer;
2539 if (NDalicPINVOKE.SWIGPendingException.Pending)
2540 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2545 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
2547 /// <pre>The (child) view has been initialized. </pre>
2548 /// <since_tizen> 4 </since_tizen>
2549 public void Unparent()
2551 GetParent()?.Remove(this);
2555 /// Search through this view's hierarchy for a view with the given name.
2556 /// The view itself is also considered in the search.
2558 /// <pre>The view has been initialized.</pre>
2559 /// <param name="viewName">The name of the view to find.</param>
2560 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
2561 /// <since_tizen> 3 </since_tizen>
2562 public View FindChildByName(string viewName)
2564 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildByName(swigCPtr, viewName);
2566 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2568 if (NDalicPINVOKE.SWIGPendingException.Pending)
2569 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2573 internal View FindChildById(uint id)
2575 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildById(swigCPtr, id);
2577 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2579 if (NDalicPINVOKE.SWIGPendingException.Pending)
2580 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2584 internal void SetParentOrigin(Vector3 origin)
2586 NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
2587 if (NDalicPINVOKE.SWIGPendingException.Pending)
2588 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2591 internal Vector3 GetCurrentParentOrigin()
2593 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentParentOrigin(swigCPtr), true);
2594 if (NDalicPINVOKE.SWIGPendingException.Pending)
2595 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2599 internal void SetAnchorPoint(Vector3 anchorPoint)
2601 NDalicPINVOKE.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
2602 if (NDalicPINVOKE.SWIGPendingException.Pending)
2603 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2606 internal Vector3 GetCurrentAnchorPoint()
2608 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentAnchorPoint(swigCPtr), true);
2609 if (NDalicPINVOKE.SWIGPendingException.Pending)
2610 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2614 internal void SetSize(float width, float height)
2616 NDalicPINVOKE.Actor_SetSize__SWIG_0(swigCPtr, width, height);
2617 if (NDalicPINVOKE.SWIGPendingException.Pending)
2618 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2621 internal void SetSize(float width, float height, float depth)
2623 NDalicPINVOKE.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
2624 if (NDalicPINVOKE.SWIGPendingException.Pending)
2625 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2628 internal void SetSize(Vector2 size)
2630 NDalicPINVOKE.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
2631 if (NDalicPINVOKE.SWIGPendingException.Pending)
2632 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2635 internal void SetSize(Vector3 size)
2637 NDalicPINVOKE.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
2638 if (NDalicPINVOKE.SWIGPendingException.Pending)
2639 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2642 internal Vector3 GetTargetSize()
2644 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetTargetSize(swigCPtr), true);
2645 if (NDalicPINVOKE.SWIGPendingException.Pending)
2646 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2650 internal Size2D GetCurrentSize()
2652 Size ret = new Size(NDalicPINVOKE.Actor_GetCurrentSize(swigCPtr), true);
2653 if (NDalicPINVOKE.SWIGPendingException.Pending)
2654 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2655 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
2659 internal Vector3 GetNaturalSize()
2661 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2662 if (NDalicPINVOKE.SWIGPendingException.Pending)
2663 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2667 internal void SetPosition(float x, float y)
2669 NDalicPINVOKE.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
2670 if (NDalicPINVOKE.SWIGPendingException.Pending)
2671 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2674 internal void SetPosition(float x, float y, float z)
2676 NDalicPINVOKE.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
2677 if (NDalicPINVOKE.SWIGPendingException.Pending)
2678 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2681 internal void SetPosition(Vector3 position)
2683 NDalicPINVOKE.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
2684 if (NDalicPINVOKE.SWIGPendingException.Pending)
2685 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2688 internal void SetX(float x)
2690 NDalicPINVOKE.Actor_SetX(swigCPtr, x);
2691 if (NDalicPINVOKE.SWIGPendingException.Pending)
2692 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2695 internal void SetY(float y)
2697 NDalicPINVOKE.Actor_SetY(swigCPtr, y);
2698 if (NDalicPINVOKE.SWIGPendingException.Pending)
2699 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2702 internal void SetZ(float z)
2704 NDalicPINVOKE.Actor_SetZ(swigCPtr, z);
2705 if (NDalicPINVOKE.SWIGPendingException.Pending)
2706 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2709 internal void TranslateBy(Vector3 distance)
2711 NDalicPINVOKE.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
2712 if (NDalicPINVOKE.SWIGPendingException.Pending)
2713 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2716 internal Position GetCurrentPosition()
2718 Position ret = new Position(NDalicPINVOKE.Actor_GetCurrentPosition(swigCPtr), true);
2719 if (NDalicPINVOKE.SWIGPendingException.Pending)
2720 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2724 internal Vector3 GetCurrentWorldPosition()
2726 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldPosition(swigCPtr), true);
2727 if (NDalicPINVOKE.SWIGPendingException.Pending)
2728 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2732 internal void SetInheritPosition(bool inherit)
2734 NDalicPINVOKE.Actor_SetInheritPosition(swigCPtr, inherit);
2735 if (NDalicPINVOKE.SWIGPendingException.Pending)
2736 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2739 internal bool IsPositionInherited()
2741 bool ret = NDalicPINVOKE.Actor_IsPositionInherited(swigCPtr);
2742 if (NDalicPINVOKE.SWIGPendingException.Pending)
2743 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2747 internal void SetOrientation(Degree angle, Vector3 axis)
2749 NDalicPINVOKE.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2750 if (NDalicPINVOKE.SWIGPendingException.Pending)
2751 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2754 internal void SetOrientation(Radian angle, Vector3 axis)
2756 NDalicPINVOKE.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2757 if (NDalicPINVOKE.SWIGPendingException.Pending)
2758 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2761 internal void SetOrientation(Rotation orientation)
2763 NDalicPINVOKE.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
2764 if (NDalicPINVOKE.SWIGPendingException.Pending)
2765 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2768 internal void RotateBy(Degree angle, Vector3 axis)
2770 NDalicPINVOKE.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2771 if (NDalicPINVOKE.SWIGPendingException.Pending)
2772 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2775 internal void RotateBy(Radian angle, Vector3 axis)
2777 NDalicPINVOKE.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2778 if (NDalicPINVOKE.SWIGPendingException.Pending)
2779 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2782 internal void RotateBy(Rotation relativeRotation)
2784 NDalicPINVOKE.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
2785 if (NDalicPINVOKE.SWIGPendingException.Pending)
2786 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2789 internal Rotation GetCurrentOrientation()
2791 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentOrientation(swigCPtr), true);
2792 if (NDalicPINVOKE.SWIGPendingException.Pending)
2793 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2797 internal void SetInheritOrientation(bool inherit)
2799 NDalicPINVOKE.Actor_SetInheritOrientation(swigCPtr, inherit);
2800 if (NDalicPINVOKE.SWIGPendingException.Pending)
2801 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2804 internal bool IsOrientationInherited()
2806 bool ret = NDalicPINVOKE.Actor_IsOrientationInherited(swigCPtr);
2807 if (NDalicPINVOKE.SWIGPendingException.Pending)
2808 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2812 internal Rotation GetCurrentWorldOrientation()
2814 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentWorldOrientation(swigCPtr), true);
2815 if (NDalicPINVOKE.SWIGPendingException.Pending)
2816 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2820 internal void SetScale(float scale)
2822 NDalicPINVOKE.Actor_SetScale__SWIG_0(swigCPtr, scale);
2823 if (NDalicPINVOKE.SWIGPendingException.Pending)
2824 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2827 internal void SetScale(float scaleX, float scaleY, float scaleZ)
2829 NDalicPINVOKE.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
2830 if (NDalicPINVOKE.SWIGPendingException.Pending)
2831 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2834 internal void SetScale(Vector3 scale)
2836 NDalicPINVOKE.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
2837 if (NDalicPINVOKE.SWIGPendingException.Pending)
2838 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2841 internal void ScaleBy(Vector3 relativeScale)
2843 NDalicPINVOKE.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
2844 if (NDalicPINVOKE.SWIGPendingException.Pending)
2845 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2848 internal Vector3 GetCurrentScale()
2850 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentScale(swigCPtr), true);
2851 if (NDalicPINVOKE.SWIGPendingException.Pending)
2852 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2856 internal Vector3 GetCurrentWorldScale()
2858 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldScale(swigCPtr), true);
2859 if (NDalicPINVOKE.SWIGPendingException.Pending)
2860 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2864 internal void SetInheritScale(bool inherit)
2866 NDalicPINVOKE.Actor_SetInheritScale(swigCPtr, inherit);
2867 if (NDalicPINVOKE.SWIGPendingException.Pending)
2868 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2871 internal bool IsScaleInherited()
2873 bool ret = NDalicPINVOKE.Actor_IsScaleInherited(swigCPtr);
2874 if (NDalicPINVOKE.SWIGPendingException.Pending)
2875 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2879 internal Matrix GetCurrentWorldMatrix()
2881 Matrix ret = new Matrix(NDalicPINVOKE.Actor_GetCurrentWorldMatrix(swigCPtr), true);
2882 if (NDalicPINVOKE.SWIGPendingException.Pending)
2883 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2887 internal void SetVisible(bool visible)
2889 NDalicPINVOKE.Actor_SetVisible(swigCPtr, visible);
2890 if (NDalicPINVOKE.SWIGPendingException.Pending)
2891 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2894 internal bool IsVisible()
2896 bool ret = NDalicPINVOKE.Actor_IsVisible(swigCPtr);
2897 if (NDalicPINVOKE.SWIGPendingException.Pending)
2898 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2902 internal void SetOpacity(float opacity)
2904 NDalicPINVOKE.Actor_SetOpacity(swigCPtr, opacity);
2905 if (NDalicPINVOKE.SWIGPendingException.Pending)
2906 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2909 internal float GetCurrentOpacity()
2911 float ret = NDalicPINVOKE.Actor_GetCurrentOpacity(swigCPtr);
2912 if (NDalicPINVOKE.SWIGPendingException.Pending)
2913 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2917 internal void SetColor(Vector4 color)
2919 NDalicPINVOKE.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
2920 if (NDalicPINVOKE.SWIGPendingException.Pending)
2921 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2924 internal Vector4 GetCurrentColor()
2926 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentColor(swigCPtr), true);
2927 if (NDalicPINVOKE.SWIGPendingException.Pending)
2928 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2932 internal void SetColorMode(ColorMode colorMode)
2934 NDalicPINVOKE.Actor_SetColorMode(swigCPtr, (int)colorMode);
2935 if (NDalicPINVOKE.SWIGPendingException.Pending)
2936 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2939 internal ColorMode GetColorMode()
2941 ColorMode ret = (ColorMode)NDalicPINVOKE.Actor_GetColorMode(swigCPtr);
2942 if (NDalicPINVOKE.SWIGPendingException.Pending)
2943 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2947 internal Vector4 GetCurrentWorldColor()
2949 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentWorldColor(swigCPtr), true);
2950 if (NDalicPINVOKE.SWIGPendingException.Pending)
2951 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2955 internal void SetDrawMode(DrawModeType drawMode)
2957 NDalicPINVOKE.Actor_SetDrawMode(swigCPtr, (int)drawMode);
2958 if (NDalicPINVOKE.SWIGPendingException.Pending)
2959 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2962 internal DrawModeType GetDrawMode()
2964 DrawModeType ret = (DrawModeType)NDalicPINVOKE.Actor_GetDrawMode(swigCPtr);
2965 if (NDalicPINVOKE.SWIGPendingException.Pending)
2966 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2971 /// Converts screen coordinates into the view's coordinate system using the default camera.
2973 /// <pre>The view has been initialized.</pre>
2974 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
2975 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
2976 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
2977 /// <param name="screenX">The screen X-coordinate.</param>
2978 /// <param name="screenY">The screen Y-coordinate.</param>
2979 /// <returns>True if the conversion succeeded.</returns>
2980 /// <since_tizen> 3 </since_tizen>
2981 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
2983 bool ret = NDalicPINVOKE.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
2984 if (NDalicPINVOKE.SWIGPendingException.Pending)
2985 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2989 internal void SetKeyboardFocusable(bool focusable)
2991 NDalicPINVOKE.Actor_SetKeyboardFocusable(swigCPtr, focusable);
2992 if (NDalicPINVOKE.SWIGPendingException.Pending)
2993 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2996 internal bool IsKeyboardFocusable()
2998 bool ret = NDalicPINVOKE.Actor_IsKeyboardFocusable(swigCPtr);
2999 if (NDalicPINVOKE.SWIGPendingException.Pending)
3000 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3004 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
3006 NDalicPINVOKE.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
3007 if (NDalicPINVOKE.SWIGPendingException.Pending)
3008 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3011 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
3013 ResizePolicyType ret = (ResizePolicyType)NDalicPINVOKE.Actor_GetResizePolicy(swigCPtr, (int)dimension);
3014 if (NDalicPINVOKE.SWIGPendingException.Pending)
3015 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3020 /// Sets the relative to parent size factor of the view.<br />
3021 /// This factor is only used when ResizePolicy is set to either:
3022 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
3023 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
3025 /// <pre>The view has been initialized.</pre>
3026 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
3027 /// <since_tizen> 3 </since_tizen>
3028 public void SetSizeModeFactor(Vector3 factor)
3030 NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
3031 if (NDalicPINVOKE.SWIGPendingException.Pending)
3032 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3035 internal Vector3 GetSizeModeFactor()
3037 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetSizeModeFactor(swigCPtr), true);
3038 if (NDalicPINVOKE.SWIGPendingException.Pending)
3039 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3044 /// Calculates the height of the view given a width.<br />
3045 /// The natural size is used for default calculation.<br />
3046 /// Size 0 is treated as aspect ratio 1:1.<br />
3048 /// <param name="width">The width to use.</param>
3049 /// <returns>The height based on the width.</returns>
3050 /// <since_tizen> 3 </since_tizen>
3051 public float GetHeightForWidth(float width)
3053 float ret = NDalicPINVOKE.Actor_GetHeightForWidth(swigCPtr, width);
3054 if (NDalicPINVOKE.SWIGPendingException.Pending)
3055 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3060 /// Calculates the width of the view given a height.<br />
3061 /// The natural size is used for default calculation.<br />
3062 /// Size 0 is treated as aspect ratio 1:1.<br />
3064 /// <param name="height">The height to use.</param>
3065 /// <returns>The width based on the height.</returns>
3066 /// <since_tizen> 3 </since_tizen>
3067 public float GetWidthForHeight(float height)
3069 float ret = NDalicPINVOKE.Actor_GetWidthForHeight(swigCPtr, height);
3070 if (NDalicPINVOKE.SWIGPendingException.Pending)
3071 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3076 /// Return the amount of size allocated for relayout.
3078 /// <param name="dimension">The dimension to retrieve.</param>
3079 /// <returns>Return the size.</returns>
3080 /// <since_tizen> 3 </since_tizen>
3081 public float GetRelayoutSize(DimensionType dimension)
3083 float ret = NDalicPINVOKE.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
3084 if (NDalicPINVOKE.SWIGPendingException.Pending)
3085 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3090 /// Set the padding for the view.
3092 /// <param name="padding">Padding for the view.</param>
3093 /// <since_tizen> 3 </since_tizen>
3094 public void SetPadding(PaddingType padding)
3096 NDalicPINVOKE.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
3097 if (NDalicPINVOKE.SWIGPendingException.Pending)
3098 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3102 /// Return the value of padding for the view.
3104 /// <param name="paddingOut">the value of padding for the view</param>
3105 /// <since_tizen> 3 </since_tizen>
3106 public void GetPadding(PaddingType paddingOut)
3108 NDalicPINVOKE.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
3109 if (NDalicPINVOKE.SWIGPendingException.Pending)
3110 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3113 internal void SetMinimumSize(Vector2 size)
3115 NDalicPINVOKE.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
3116 if (NDalicPINVOKE.SWIGPendingException.Pending)
3117 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3120 internal Vector2 GetMinimumSize()
3122 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMinimumSize(swigCPtr), true);
3123 if (NDalicPINVOKE.SWIGPendingException.Pending)
3124 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3128 internal void SetMaximumSize(Vector2 size)
3130 NDalicPINVOKE.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
3131 if (NDalicPINVOKE.SWIGPendingException.Pending)
3132 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3135 internal Vector2 GetMaximumSize()
3137 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMaximumSize(swigCPtr), true);
3138 if (NDalicPINVOKE.SWIGPendingException.Pending)
3139 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3143 internal int GetHierarchyDepth()
3145 int ret = NDalicPINVOKE.Actor_GetHierarchyDepth(swigCPtr);
3146 if (NDalicPINVOKE.SWIGPendingException.Pending)
3147 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3151 /// <since_tizen> 4 </since_tizen>
3152 public uint AddRenderer(Renderer renderer)
3154 uint ret = NDalicPINVOKE.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
3155 if (NDalicPINVOKE.SWIGPendingException.Pending)
3156 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3160 internal uint GetRendererCount()
3162 uint ret = NDalicPINVOKE.Actor_GetRendererCount(swigCPtr);
3163 if (NDalicPINVOKE.SWIGPendingException.Pending)
3164 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3168 /// <since_tizen> 4 </since_tizen>
3169 public Renderer GetRendererAt(uint index)
3171 IntPtr cPtr = NDalicPINVOKE.Actor_GetRendererAt(swigCPtr, index);
3172 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Renderer;
3174 if (NDalicPINVOKE.SWIGPendingException.Pending)
3175 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3179 /// <since_tizen> 4 </since_tizen>
3180 public void RemoveRenderer(Renderer renderer)
3182 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
3183 if (NDalicPINVOKE.SWIGPendingException.Pending)
3184 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3187 /// <since_tizen> 4 </since_tizen>
3188 public void RemoveRenderer(uint index)
3190 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
3191 if (NDalicPINVOKE.SWIGPendingException.Pending)
3192 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3195 internal TouchDataSignal TouchSignal()
3197 TouchDataSignal ret = new TouchDataSignal(NDalicPINVOKE.Actor_TouchSignal(swigCPtr), false);
3198 if (NDalicPINVOKE.SWIGPendingException.Pending)
3199 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3203 internal HoverSignal HoveredSignal()
3205 HoverSignal ret = new HoverSignal(NDalicPINVOKE.Actor_HoveredSignal(swigCPtr), false);
3206 if (NDalicPINVOKE.SWIGPendingException.Pending)
3207 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3211 internal WheelSignal WheelEventSignal()
3213 WheelSignal ret = new WheelSignal(NDalicPINVOKE.Actor_WheelEventSignal(swigCPtr), false);
3214 if (NDalicPINVOKE.SWIGPendingException.Pending)
3215 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3219 internal ViewSignal OnWindowSignal()
3221 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
3222 if (NDalicPINVOKE.SWIGPendingException.Pending)
3223 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3227 internal ViewSignal OffWindowSignal()
3229 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OffStageSignal(swigCPtr), false);
3230 if (NDalicPINVOKE.SWIGPendingException.Pending)
3231 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3235 internal ViewSignal OnRelayoutSignal()
3237 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnRelayoutSignal(swigCPtr), false);
3238 if (NDalicPINVOKE.SWIGPendingException.Pending)
3239 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3243 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view) {
3244 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(NDalicPINVOKE.VisibilityChangedSignal(View.getCPtr(view)), false);
3245 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3250 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view) {
3251 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(NDalicManualPINVOKE.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
3252 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3257 internal ViewSignal ResourcesLoadedSignal()
3259 ViewSignal ret = new ViewSignal(NDalicPINVOKE.ResourceReadySignal(swigCPtr), false);
3260 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3265 /// Gets or sets the origin of a view within its parent's area.<br />
3266 /// 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 />
3267 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
3268 /// A view's position is the distance between this origin and the view's anchor-point.<br />
3270 /// <pre>The view has been initialized.</pre>
3271 /// <since_tizen> 3 </since_tizen>
3272 public Position ParentOrigin
3276 Position temp = new Position(0.0f, 0.0f, 0.0f);
3277 GetProperty(View.Property.PARENT_ORIGIN).Get(temp);
3282 SetProperty(View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue(value));
3286 internal float ParentOriginX
3291 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3296 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3300 internal float ParentOriginY
3305 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3310 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3314 internal float ParentOriginZ
3319 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3324 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3329 /// Gets or sets the anchor-point of a view.<br />
3330 /// 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 />
3331 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
3332 /// A view position is the distance between its parent-origin and this anchor-point.<br />
3333 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
3334 /// <pre>The view has been initialized.</pre>
3336 /// <since_tizen> 3 </since_tizen>
3337 public Position PivotPoint
3341 Position temp = new Position(0.0f, 0.0f, 0.0f);
3342 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3347 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3351 internal float PivotPointX
3356 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3361 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3365 internal float PivotPointY
3370 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3375 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3379 internal float PivotPointZ
3384 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3389 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3394 /// Gets or sets the size width of the view.
3396 /// <since_tizen> 3 </since_tizen>
3397 public float SizeWidth
3402 GetProperty(View.Property.SIZE_WIDTH).Get(out temp);
3407 SetProperty(View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
3412 /// Gets or sets the size height of the view.
3414 /// <since_tizen> 3 </since_tizen>
3415 public float SizeHeight
3420 GetProperty(View.Property.SIZE_HEIGHT).Get(out temp);
3425 SetProperty(View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3430 /// Gets or sets the position of the view.<br />
3431 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
3432 /// If the position inheritance is disabled, sets the world position.<br />
3434 /// <since_tizen> 3 </since_tizen>
3435 public Position Position
3439 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3440 GetProperty(View.Property.POSITION).Get(temp);
3445 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(value));
3450 /// Gets or sets the position X of the view.
3452 /// <since_tizen> 3 </since_tizen>
3453 public float PositionX
3458 GetProperty(View.Property.POSITION_X).Get(out temp);
3463 SetProperty(View.Property.POSITION_X, new Tizen.NUI.PropertyValue(value));
3468 /// Gets or sets the position Y of the view.
3470 /// <since_tizen> 3 </since_tizen>
3471 public float PositionY
3476 GetProperty(View.Property.POSITION_Y).Get(out temp);
3481 SetProperty(View.Property.POSITION_Y, new Tizen.NUI.PropertyValue(value));
3486 /// Gets or sets the position Z of the view.
3488 /// <since_tizen> 3 </since_tizen>
3489 public float PositionZ
3494 GetProperty(View.Property.POSITION_Z).Get(out temp);
3499 SetProperty(View.Property.POSITION_Z, new Tizen.NUI.PropertyValue(value));
3504 /// Gets or sets the world position of the view.
3506 /// <since_tizen> 3 </since_tizen>
3507 public Vector3 WorldPosition
3511 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3512 GetProperty(View.Property.WORLD_POSITION).Get(temp);
3517 internal float WorldPositionX
3522 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3527 internal float WorldPositionY
3532 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3537 internal float WorldPositionZ
3542 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3548 /// Gets or sets the orientation of the view.<br />
3549 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
3551 /// <remarks>This is an asynchronous method.</remarks>
3552 /// <since_tizen> 3 </since_tizen>
3553 public Rotation Orientation
3557 Rotation temp = new Rotation();
3558 GetProperty(View.Property.ORIENTATION).Get(temp);
3563 SetProperty(View.Property.ORIENTATION, new Tizen.NUI.PropertyValue(value));
3568 /// Gets or sets the world orientation of the view.<br />
3570 /// <since_tizen> 3 </since_tizen>
3571 public Rotation WorldOrientation
3575 Rotation temp = new Rotation();
3576 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
3582 /// Gets or sets the scale factor applied to the view.<br />
3584 /// <since_tizen> 3 </since_tizen>
3585 public Vector3 Scale
3589 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3590 GetProperty(View.Property.SCALE).Get(temp);
3595 SetProperty(View.Property.SCALE, new Tizen.NUI.PropertyValue(value));
3600 /// Gets or sets the scale X factor applied to the view.
3602 /// <since_tizen> 3 </since_tizen>
3608 GetProperty(View.Property.SCALE_X).Get(out temp);
3613 SetProperty(View.Property.SCALE_X, new Tizen.NUI.PropertyValue(value));
3618 /// Gets or sets the scale Y factor applied to the view.
3620 /// <since_tizen> 3 </since_tizen>
3626 GetProperty(View.Property.SCALE_Y).Get(out temp);
3631 SetProperty(View.Property.SCALE_Y, new Tizen.NUI.PropertyValue(value));
3636 /// Gets or sets the scale Z factor applied to the view.
3638 /// <since_tizen> 3 </since_tizen>
3644 GetProperty(View.Property.SCALE_Z).Get(out temp);
3649 SetProperty(View.Property.SCALE_Z, new Tizen.NUI.PropertyValue(value));
3654 /// Gets the world scale of the view.
3656 /// <since_tizen> 3 </since_tizen>
3657 public Vector3 WorldScale
3661 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3662 GetProperty(View.Property.WORLD_SCALE).Get(temp);
3668 /// Retrieves the visibility flag of the view.
3671 /// If the view is not visible, then the view and its children will not be rendered.
3672 /// 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.
3674 /// <since_tizen> 3 </since_tizen>
3675 public bool Visibility
3680 GetProperty(View.Property.VISIBLE).Get(out temp);
3686 /// Gets the view's world color.
3688 /// <since_tizen> 3 </since_tizen>
3689 public Vector4 WorldColor
3693 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3694 GetProperty(View.Property.WORLD_COLOR).Get(temp);
3699 internal Matrix WorldMatrix
3703 Matrix temp = new Matrix();
3704 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3710 /// Gets or sets the view's name.
3712 /// <since_tizen> 3 </since_tizen>
3718 GetProperty(View.Property.NAME).Get(out temp);
3723 SetProperty(View.Property.NAME, new Tizen.NUI.PropertyValue(value));
3728 /// Get the number of children held by the view.
3730 /// <since_tizen> 3 </since_tizen>
3731 public new uint ChildCount
3735 return GetChildCount();
3740 /// Gets the view's ID.
3743 /// <since_tizen> 3 </since_tizen>
3753 /// Gets or sets the status of whether the view should emit touch or hover signals.
3755 /// <since_tizen> 3 </since_tizen>
3756 public bool Sensitive
3761 GetProperty(View.Property.SENSITIVE).Get(out temp);
3766 SetProperty(View.Property.SENSITIVE, new Tizen.NUI.PropertyValue(value));
3771 /// 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.
3773 /// <since_tizen> 3 </since_tizen>
3774 public bool LeaveRequired
3779 GetProperty(View.Property.LEAVE_REQUIRED).Get(out temp);
3784 SetProperty(View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue(value));
3789 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
3791 /// <since_tizen> 3 </since_tizen>
3792 public bool InheritOrientation
3797 GetProperty(View.Property.INHERIT_ORIENTATION).Get(out temp);
3802 SetProperty(View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue(value));
3807 /// Gets or sets the status of whether a child view inherits it's parent's scale.
3809 /// <since_tizen> 3 </since_tizen>
3810 public bool InheritScale
3815 GetProperty(View.Property.INHERIT_SCALE).Get(out temp);
3820 SetProperty(View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue(value));
3825 /// Gets or sets the status of how the view and its children should be drawn.<br />
3826 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
3827 /// 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 />
3828 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
3829 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
3830 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
3832 /// <since_tizen> 3 </since_tizen>
3833 public DrawModeType DrawMode
3838 if (GetProperty(View.Property.DRAW_MODE).Get(out temp) == false)
3840 NUILog.Error("DrawMode get error!");
3845 return DrawModeType.Normal;
3847 return DrawModeType.Overlay2D;
3849 return DrawModeType.Stencil;
3851 return DrawModeType.Normal;
3856 SetProperty(View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)value));
3861 /// Gets or sets the relative to parent size factor of the view.<br />
3862 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
3863 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
3865 /// <since_tizen> 3 </since_tizen>
3866 public Vector3 SizeModeFactor
3870 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3871 GetProperty(View.Property.SIZE_MODE_FACTOR).Get(temp);
3876 SetProperty(View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue(value));
3881 /// Gets or sets the width resize policy to be used.
3883 /// <since_tizen> 3 </since_tizen>
3884 public ResizePolicyType WidthResizePolicy
3889 if (GetProperty(View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
3891 NUILog.Error("WidthResizePolicy get error!");
3896 return ResizePolicyType.Fixed;
3897 case "USE_NATURAL_SIZE":
3898 return ResizePolicyType.UseNaturalSize;
3899 case "FILL_TO_PARENT":
3900 return ResizePolicyType.FillToParent;
3901 case "SIZE_RELATIVE_TO_PARENT":
3902 return ResizePolicyType.SizeRelativeToParent;
3903 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3904 return ResizePolicyType.SizeFixedOffsetFromParent;
3905 case "FIT_TO_CHILDREN":
3906 return ResizePolicyType.FitToChildren;
3907 case "DIMENSION_DEPENDENCY":
3908 return ResizePolicyType.DimensionDependency;
3909 case "USE_ASSIGNED_SIZE":
3910 return ResizePolicyType.UseAssignedSize;
3912 return ResizePolicyType.Fixed;
3917 SetProperty(View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3922 /// Gets or sets the height resize policy to be used.
3924 /// <since_tizen> 3 </since_tizen>
3925 public ResizePolicyType HeightResizePolicy
3930 if (GetProperty(View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
3932 NUILog.Error("HeightResizePolicy get error!");
3937 return ResizePolicyType.Fixed;
3938 case "USE_NATURAL_SIZE":
3939 return ResizePolicyType.UseNaturalSize;
3940 case "FILL_TO_PARENT":
3941 return ResizePolicyType.FillToParent;
3942 case "SIZE_RELATIVE_TO_PARENT":
3943 return ResizePolicyType.SizeRelativeToParent;
3944 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3945 return ResizePolicyType.SizeFixedOffsetFromParent;
3946 case "FIT_TO_CHILDREN":
3947 return ResizePolicyType.FitToChildren;
3948 case "DIMENSION_DEPENDENCY":
3949 return ResizePolicyType.DimensionDependency;
3950 case "USE_ASSIGNED_SIZE":
3951 return ResizePolicyType.UseAssignedSize;
3953 return ResizePolicyType.Fixed;
3958 SetProperty(View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3963 /// Gets or sets the policy to use when setting size with size negotiation.<br />
3964 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3966 /// <since_tizen> 3 </since_tizen>
3967 public SizeScalePolicyType SizeScalePolicy
3972 if (GetProperty(View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
3974 NUILog.Error("SizeScalePolicy get error!");
3978 case "USE_SIZE_SET":
3979 return SizeScalePolicyType.UseSizeSet;
3980 case "FIT_WITH_ASPECT_RATIO":
3981 return SizeScalePolicyType.FitWithAspectRatio;
3982 case "FILL_WITH_ASPECT_RATIO":
3983 return SizeScalePolicyType.FillWithAspectRatio;
3985 return SizeScalePolicyType.UseSizeSet;
3990 string valueToString = "";
3993 case SizeScalePolicyType.UseSizeSet:
3995 valueToString = "USE_SIZE_SET";
3998 case SizeScalePolicyType.FitWithAspectRatio:
4000 valueToString = "FIT_WITH_ASPECT_RATIO";
4003 case SizeScalePolicyType.FillWithAspectRatio:
4005 valueToString = "FILL_WITH_ASPECT_RATIO";
4010 valueToString = "USE_SIZE_SET";
4014 SetProperty(View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
4019 /// Gets or sets the status of whether the width size is dependent on the height size.
4021 /// <since_tizen> 3 </since_tizen>
4022 public bool WidthForHeight
4027 GetProperty(View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
4032 SetProperty(View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue(value));
4037 /// Gets or sets the status of whether the height size is dependent on the width size.
4039 /// <since_tizen> 3 </since_tizen>
4040 public bool HeightForWidth
4045 GetProperty(View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
4050 SetProperty(View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue(value));
4055 /// Gets or sets the padding for use in layout.
4057 /// <since_tizen> 3 </since_tizen>
4058 public Vector4 Padding
4062 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
4063 GetProperty(View.Property.PADDING).Get(temp);
4068 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
4073 /// Gets or sets the minimum size the view can be assigned in size negotiation.
4075 /// <since_tizen> 3 </since_tizen>
4076 public Size2D MinimumSize
4080 Size2D temp = new Size2D(0, 0);
4081 GetProperty(View.Property.MINIMUM_SIZE).Get(temp);
4086 SetProperty(View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4091 /// Gets or sets the maximum size the view can be assigned in size negotiation.
4093 /// <since_tizen> 3 </since_tizen>
4094 public Size2D MaximumSize
4098 Size2D temp = new Size2D(0, 0);
4099 GetProperty(View.Property.MAXIMUM_SIZE).Get(temp);
4104 SetProperty(View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4109 /// Gets or sets whether a child view inherits it's parent's position.<br />
4110 /// Default is to inherit.<br />
4111 /// 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 />
4113 /// <since_tizen> 3 </since_tizen>
4114 public bool InheritPosition
4119 GetProperty(View.Property.INHERIT_POSITION).Get(out temp);
4124 SetProperty(View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue(value));
4129 /// Gets or sets the clipping behavior (mode) of it's children.
4131 /// <since_tizen> 3 </since_tizen>
4132 public ClippingModeType ClippingMode
4137 if (GetProperty(View.Property.CLIPPING_MODE).Get(out temp) == false)
4139 NUILog.Error("ClippingMode get error!");
4144 return ClippingModeType.Disabled;
4145 case "CLIP_CHILDREN":
4146 return ClippingModeType.ClipChildren;
4147 case "CLIP_TO_BOUNDING_BOX":
4148 return ClippingModeType.ClipToBoundingBox;
4150 return ClippingModeType.Disabled;
4155 SetProperty(View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)value));
4160 /// Gets the number of renderers held by the view.
4162 /// <since_tizen> 4 </since_tizen>
4163 public uint RendererCount
4167 return GetRendererCount();
4174 /// [Obsolete("Please do not use! this will be deprecated")]
4176 /// <since_tizen> 3 </since_tizen>
4177 [Obsolete("Please do not use! this will be deprecated")]
4178 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> Touched
4182 if (_touchDataEventHandler == null)
4184 _touchDataCallback = OnTouch;
4185 this.TouchSignal().Connect(_touchDataCallback);
4188 _touchDataEventHandler += value;
4193 _touchDataEventHandler -= value;
4195 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
4197 this.TouchSignal().Disconnect(_touchDataCallback);
4204 /// [Obsolete("Please do not use! this will be deprecated")]
4206 /// <since_tizen> 3 </since_tizen>
4207 [Obsolete("Please do not use! this will be deprecated")]
4208 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> Hovered
4212 if (_hoverEventHandler == null)
4214 _hoverEventCallback = OnHoverEvent;
4215 this.HoveredSignal().Connect(_hoverEventCallback);
4218 _hoverEventHandler += value;
4223 _hoverEventHandler -= value;
4225 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
4227 this.HoveredSignal().Disconnect(_hoverEventCallback);
4234 /// [Obsolete("Please do not use! this will be deprecated")]
4236 /// <since_tizen> 3 </since_tizen>
4237 [Obsolete("Please do not use! this will be deprecated")]
4238 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelMoved
4242 if (_wheelEventHandler == null)
4244 _wheelEventCallback = OnWheelEvent;
4245 this.WheelEventSignal().Connect(_wheelEventCallback);
4248 _wheelEventHandler += value;
4253 _wheelEventHandler -= value;
4255 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
4257 this.WheelEventSignal().Disconnect(_wheelEventCallback);
4264 /// [Obsolete("Please do not use! this will be deprecated")]
4266 /// <since_tizen> 3 </since_tizen>
4267 [Obsolete("Please do not use! this will be deprecated")]
4268 public Position AnchorPoint
4272 Position temp = new Position(0.0f, 0.0f, 0.0f);
4273 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
4278 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
4283 /// [Obsolete("Please do not use! this will be deprecated")]
4285 /// <since_tizen> 3 </since_tizen>
4286 [Obsolete("Please do not use! this will be deprecated, please use Size2D instead")]
4291 Size temp = new Size(0.0f, 0.0f, 0.0f);
4292 GetProperty(View.Property.SIZE).Get(temp);
4297 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(value));
4302 /// [Obsolete("Please do not use! this will be deprecated")]
4304 /// <since_tizen> 3 </since_tizen>
4305 [Obsolete("Please do not use! this will be deprecated")]
4306 public event EventHandler OnWindowEvent
4310 if (_onWindowEventHandler == null)
4312 _onWindowEventCallback = OnWindow;
4313 this.OnWindowSignal().Connect(_onWindowEventCallback);
4316 _onWindowEventHandler += value;
4321 _onWindowEventHandler -= value;
4323 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
4325 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
4331 /// [Obsolete("Please do not use! this will be deprecated")]
4333 /// <since_tizen> 3 </since_tizen>
4334 [Obsolete("Please do not use! this will be deprecated")]
4335 public event EventHandler OffWindowEvent
4339 if (_offWindowEventHandler == null)
4341 _offWindowEventCallback = OffWindow;
4342 this.OffWindowSignal().Connect(_offWindowEventCallback);
4345 _offWindowEventHandler += value;
4350 _offWindowEventHandler -= value;
4352 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
4354 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
4360 /// [Obsolete("Please do not use! this will be deprecated")]
4362 /// <since_tizen> 3 </since_tizen>
4363 [Obsolete("Please do not use! this will be deprecated")]
4364 public event EventHandler OnRelayoutEvent
4368 if (_onRelayoutEventHandler == null)
4370 _onRelayoutEventCallback = OnRelayout;
4371 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
4374 _onRelayoutEventHandler += value;
4379 _onRelayoutEventHandler -= value;
4381 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
4383 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
4390 /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4392 /// <since_tizen> 3 </since_tizen>
4393 //"Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4394 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
4395 public new View Parent
4400 IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
4402 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
4404 if (basehandle is Layer)
4406 ret = new View(cPtr, false);
4410 ret = basehandle as View;
4413 if (NDalicPINVOKE.SWIGPendingException.Pending)
4414 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4420 /// Gets/Sets whether inherit parent's the layout Direction.
4422 /// <since_tizen> 4 </since_tizen>
4423 public bool InheritLayoutDirection
4428 GetProperty(View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
4433 SetProperty(View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue(value));
4438 /// Gets/Sets the layout Direction.
4440 /// <since_tizen> 4 </since_tizen>
4441 public ViewLayoutDirectionType LayoutDirection
4446 if (GetProperty(View.Property.LAYOUT_DIRECTION).Get(out temp) == false)
4448 NUILog.Error("LAYOUT_DIRECTION get error!");
4450 return (ViewLayoutDirectionType)temp;
4454 SetProperty(View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)value));
4459 /// Gets or sets the Margin for use in layout.
4461 public Extents Margin
4465 Extents temp = new Extents(0, 0, 0, 0);
4466 GetProperty(View.Property.MARGIN).Get(temp);
4471 SetProperty(View.Property.MARGIN, new Tizen.NUI.PropertyValue(value));
4476 /// Gets or sets the Padding for use in layout.
4478 public Extents PaddingEX
4482 Extents temp = new Extents(0, 0, 0, 0);
4483 GetProperty(View.Property.PADDINGEX).Get(temp);
4488 SetProperty(View.Property.PADDINGEX, new Tizen.NUI.PropertyValue(value));
4494 /// The View layout Direction type.
4496 /// <since_tizen> 4 </since_tizen>
4497 public enum ViewLayoutDirectionType