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();
1103 /// Describes the direction to move the focus towards.
1105 /// <since_tizen> 3 </since_tizen>
1106 public enum FocusDirection
1109 /// Move keyboard focus towards the left direction.
1111 /// <since_tizen> 3 </since_tizen>
1114 /// Move keyboard focus towards the right direction.
1116 /// <since_tizen> 3 </since_tizen>
1119 /// Move keyboard focus towards the up direction.
1121 /// <since_tizen> 3 </since_tizen>
1124 /// Move keyboard focus towards the down direction.
1126 /// <since_tizen> 3 </since_tizen>
1129 /// Move keyboard focus towards the previous page direction.
1131 /// <since_tizen> 3 </since_tizen>
1134 /// Move keyboard focus towards the next page direction.
1136 /// <since_tizen> 3 </since_tizen>
1141 /// Creates a new instance of a view.
1143 /// <since_tizen> 3 </since_tizen>
1144 public View() : this(NDalicPINVOKE.View_New(), true)
1146 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1149 internal View(View uiControl) : this(NDalicPINVOKE.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1151 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1155 /// Downcasts a handle to view handle.<br />
1156 /// If handle points to a view, the downcast produces a valid handle.<br />
1157 /// If not, the returned handle is left uninitialized.<br />
1159 /// <param name="handle">A handle to an object.</param>
1160 /// <returns>A handle to a view or an uninitialized handle.</returns>
1161 [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1162 public static View DownCast(BaseHandle handle)
1164 View ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as View;
1165 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1170 /// [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1172 /// <since_tizen> 3 </since_tizen>
1173 [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1174 public static T DownCast<T>(View view) where T : View
1176 T ret = Registry.GetManagedBaseHandleFromNativePtr(view) as T;
1184 private View ConvertIdToView(uint id)
1190 View parentView = Parent as View;
1191 view = parentView.FindChildById(id);
1196 view = Window.Instance.GetRootLayer().FindChildById(id);
1202 internal void SetKeyInputFocus()
1204 NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
1205 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1209 /// Queries whether the view has a focus.
1211 /// <returns>True if this view has a focus.</returns>
1212 /// <since_tizen> 3 </since_tizen>
1213 public bool HasFocus()
1215 bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
1216 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1220 internal void ClearKeyInputFocus()
1222 NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
1223 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1226 internal PinchGestureDetector GetPinchGestureDetector()
1228 PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
1229 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1233 internal PanGestureDetector GetPanGestureDetector()
1235 PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
1236 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1240 internal TapGestureDetector GetTapGestureDetector()
1242 TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
1243 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1247 internal LongPressGestureDetector GetLongPressGestureDetector()
1249 LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
1250 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1255 /// Sets the name of the style to be applied to the view.
1257 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
1258 /// <since_tizen> 3 </since_tizen>
1259 public void SetStyleName(string styleName)
1261 NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
1262 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1266 /// Retrieves the name of the style to be applied to the view (if any).
1268 /// <returns>A string matching a style, or an empty string.</returns>
1269 /// <since_tizen> 3 </since_tizen>
1270 public string GetStyleName()
1272 string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
1273 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1277 internal void SetBackgroundColor(Vector4 color)
1279 NDalicPINVOKE.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
1280 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1283 internal Vector4 GetBackgroundColor()
1285 Vector4 ret = new Vector4(NDalicPINVOKE.View_GetBackgroundColor(swigCPtr), true);
1286 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1290 internal void SetBackgroundImage(Image image)
1292 NDalicPINVOKE.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
1293 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1297 /// Clears the background.
1299 /// <since_tizen> 3 </since_tizen>
1300 public void ClearBackground()
1302 NDalicPINVOKE.View_ClearBackground(swigCPtr);
1303 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1306 internal ControlKeySignal KeyEventSignal()
1308 ControlKeySignal ret = new ControlKeySignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
1309 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1313 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
1315 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
1316 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1320 internal KeyInputFocusSignal KeyInputFocusLostSignal()
1322 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
1323 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1327 internal View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1329 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1332 internal enum PropertyRange
1334 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1335 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1336 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1340 /// The StyleName, type string.
1342 /// <since_tizen> 3 </since_tizen>
1343 public string StyleName
1348 GetProperty(View.Property.STYLE_NAME).Get(out temp);
1353 SetProperty(View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue(value));
1358 /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
1360 /// <since_tizen> 3 </since_tizen>
1361 public Color BackgroundColor
1365 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1367 Tizen.NUI.PropertyMap background = Background;
1369 background.Find(Visual.Property.Type)?.Get(out visualType);
1370 if (visualType == (int)Visual.Type.Color)
1372 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
1375 return backgroundColor;
1379 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1384 /// Creates an animation to animate the background color visual. If there is no
1385 /// background visual, creates one with transparent black as it's mixColor.
1387 /// <since_tizen> 4 </since_tizen>
1388 public Animation AnimateBackgroundColor( object destinationValue,
1391 AlphaFunction.BuiltinFunctions? alphaFunction = null,
1392 object initialValue = null)
1394 Tizen.NUI.PropertyMap background = Background;
1396 if( background.Empty() )
1398 // If there is no background yet, ensure there is a transparent
1400 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1401 background = Background;
1403 return AnimateColor( "background", destinationValue, startTime, endTime, alphaFunction, initialValue );
1407 /// Creates an animation to animate the mixColor of the named visual.
1409 /// <since_tizen> 4 </since_tizen>
1410 public Animation AnimateColor( string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null )
1412 Animation animation = null;
1414 PropertyMap _animator = new PropertyMap();
1415 if( alphaFunction != null )
1417 _animator.Add("alphaFunction", new PropertyValue( AlphaFunction.BuiltinToPropertyKey(alphaFunction) ) );
1420 PropertyMap _timePeriod = new PropertyMap();
1421 _timePeriod.Add( "duration", new PropertyValue((endTime-startTime)/1000.0f) );
1422 _timePeriod.Add( "delay", new PropertyValue( startTime/1000.0f ) );
1423 _animator.Add( "timePeriod", new PropertyValue( _timePeriod ) );
1425 PropertyMap _transition = new PropertyMap();
1426 _transition.Add( "animator", new PropertyValue( _animator ) );
1427 _transition.Add( "target", new PropertyValue( targetVisual ) );
1428 _transition.Add( "property", new PropertyValue( "mixColor" ) );
1430 if( initialColor != null )
1432 PropertyValue initValue = PropertyValue.CreateFromObject( initialColor );
1433 _transition.Add( "initialValue", initValue );
1436 PropertyValue destValue = PropertyValue.CreateFromObject( destinationColor );
1437 _transition.Add( "targetValue", destValue );
1438 TransitionData _transitionData = new TransitionData( _transition );
1440 animation = new Animation( NDalicManualPINVOKE.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true );
1441 if (NDalicPINVOKE.SWIGPendingException.Pending)
1442 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1448 /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
1450 /// <since_tizen> 3 </since_tizen>
1451 public string BackgroundImage
1455 string backgroundImage = "";
1457 Tizen.NUI.PropertyMap background = Background;
1459 background.Find(Visual.Property.Type)?.Get(out visualType);
1460 if (visualType == (int)Visual.Type.Image)
1462 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
1465 return backgroundImage;
1469 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1474 /// The background of view.
1476 /// <since_tizen> 3 </since_tizen>
1477 public Tizen.NUI.PropertyMap Background
1481 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1482 GetProperty( View.Property.BACKGROUND ).Get(temp);
1487 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1493 /// The current state of the view.
1495 /// <since_tizen> 3 </since_tizen>
1501 if (GetProperty(View.Property.STATE).Get(out temp) == false)
1503 NUILog.Error("State get error!");
1509 return States.Normal;
1513 return States.Focused;
1517 return States.Disabled;
1521 return States.Normal;
1527 SetProperty(View.Property.STATE, new Tizen.NUI.PropertyValue((int)value));
1532 /// The current sub state of the view.
1534 /// <since_tizen> 3 </since_tizen>
1535 public States SubState
1540 if (GetProperty(View.Property.SUB_STATE).Get(out temp) == false)
1542 NUILog.Error("subState get error!");
1547 return States.Normal;
1549 return States.Focused;
1551 return States.Disabled;
1553 return States.Normal;
1558 string valueToString = "";
1563 valueToString = "NORMAL";
1566 case States.Focused:
1568 valueToString = "FOCUSED";
1571 case States.Disabled:
1573 valueToString = "DISABLED";
1578 valueToString = "NORMAL";
1582 SetProperty(View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
1587 /// Displays a tooltip
1589 /// <since_tizen> 3 </since_tizen>
1590 public Tizen.NUI.PropertyMap Tooltip
1594 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1595 GetProperty(View.Property.TOOLTIP).Get(temp);
1600 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1605 /// Displays a tooltip as a text.
1607 /// <since_tizen> 3 </since_tizen>
1608 public string TooltipText
1612 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1616 private int LeftFocusableViewId
1621 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
1626 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1630 private int RightFocusableViewId
1635 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
1640 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1644 private int UpFocusableViewId
1649 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
1654 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1658 private int DownFocusableViewId
1663 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
1668 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1673 /// The Child property of FlexContainer.<br />
1674 /// The proportion of the free space in the container, the flex item will receive.<br />
1675 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
1677 /// <since_tizen> 3 </since_tizen>
1683 GetProperty(FlexContainer.ChildProperty.FLEX).Get(out temp);
1688 SetProperty(FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue(value));
1693 /// The Child property of FlexContainer.<br />
1694 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
1696 /// <since_tizen> 3 </since_tizen>
1697 public int AlignSelf
1702 GetProperty(FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
1707 SetProperty(FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue(value));
1712 /// The Child property of FlexContainer.<br />
1713 /// The space around the flex item.<br />
1715 /// <since_tizen> 3 </since_tizen>
1716 public Vector4 FlexMargin
1720 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1721 GetProperty(FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
1726 SetProperty(FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue(value));
1731 /// The top-left cell this child occupies, if not set, the first available cell is used.
1733 /// <since_tizen> 3 </since_tizen>
1734 public Vector2 CellIndex
1738 Vector2 temp = new Vector2(0.0f, 0.0f);
1739 GetProperty(TableView.ChildProperty.CELL_INDEX).Get(temp);
1744 SetProperty(TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue(value));
1749 /// The number of rows this child occupies, if not set, the default value is 1.
1751 /// <since_tizen> 3 </since_tizen>
1752 public float RowSpan
1757 GetProperty(TableView.ChildProperty.ROW_SPAN).Get(out temp);
1762 SetProperty(TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue(value));
1767 /// The number of columns this child occupies, if not set, the default value is 1.
1769 /// <since_tizen> 3 </since_tizen>
1770 public float ColumnSpan
1775 GetProperty(TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
1780 SetProperty(TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue(value));
1785 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
1787 /// <since_tizen> 3 </since_tizen>
1788 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
1793 if (GetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
1795 NUILog.Error("CellHorizontalAlignment get error!");
1801 return Tizen.NUI.HorizontalAlignmentType.Left;
1803 return Tizen.NUI.HorizontalAlignmentType.Center;
1805 return Tizen.NUI.HorizontalAlignmentType.Right;
1807 return Tizen.NUI.HorizontalAlignmentType.Left;
1812 string valueToString = "";
1815 case Tizen.NUI.HorizontalAlignmentType.Left:
1817 valueToString = "left";
1820 case Tizen.NUI.HorizontalAlignmentType.Center:
1822 valueToString = "center";
1825 case Tizen.NUI.HorizontalAlignmentType.Right:
1827 valueToString = "right";
1832 valueToString = "left";
1836 SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1841 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
1843 /// <since_tizen> 3 </since_tizen>
1844 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
1849 GetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
1851 NUILog.Error("CellVerticalAlignment get error!");
1857 return Tizen.NUI.VerticalAlignmentType.Top;
1859 return Tizen.NUI.VerticalAlignmentType.Center;
1861 return Tizen.NUI.VerticalAlignmentType.Bottom;
1863 return Tizen.NUI.VerticalAlignmentType.Top;
1868 string valueToString = "";
1871 case Tizen.NUI.VerticalAlignmentType.Top:
1873 valueToString = "top";
1876 case Tizen.NUI.VerticalAlignmentType.Center:
1878 valueToString = "center";
1881 case Tizen.NUI.VerticalAlignmentType.Bottom:
1883 valueToString = "bottom";
1888 valueToString = "top";
1892 SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1897 /// The left focusable view.<br />
1898 /// This will return null if not set.<br />
1899 /// This will also return null if the specified left focusable view is not on a window.<br />
1901 /// <since_tizen> 3 </since_tizen>
1902 public View LeftFocusableView
1904 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1907 if (LeftFocusableViewId >= 0)
1909 return ConvertIdToView((uint)LeftFocusableViewId);
1915 LeftFocusableViewId = (int)value.GetId();
1920 /// The right focusable view.<br />
1921 /// This will return null if not set.<br />
1922 /// This will also return null if the specified right focusable view is not on a window.<br />
1924 /// <since_tizen> 3 </since_tizen>
1925 public View RightFocusableView
1927 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1930 if (RightFocusableViewId >= 0)
1932 return ConvertIdToView((uint)RightFocusableViewId);
1938 RightFocusableViewId = (int)value.GetId();
1943 /// The up focusable view.<br />
1944 /// This will return null if not set.<br />
1945 /// This will also return null if the specified up focusable view is not on a window.<br />
1947 /// <since_tizen> 3 </since_tizen>
1948 public View UpFocusableView
1950 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1953 if (UpFocusableViewId >= 0)
1955 return ConvertIdToView((uint)UpFocusableViewId);
1961 UpFocusableViewId = (int)value.GetId();
1966 /// The down focusable view.<br />
1967 /// This will return null if not set.<br />
1968 /// This will also return null if the specified down focusable view is not on a window.<br />
1970 /// <since_tizen> 3 </since_tizen>
1971 public View DownFocusableView
1973 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1976 if (DownFocusableViewId >= 0)
1978 return ConvertIdToView((uint)DownFocusableViewId);
1984 DownFocusableViewId = (int)value.GetId();
1989 /// Whether the view should be focusable by keyboard navigation.
1991 /// <since_tizen> 3 </since_tizen>
1992 public bool Focusable
1996 SetKeyboardFocusable(value);
2000 return IsKeyboardFocusable();
2005 /// Enumeration for describing the states of the view.
2007 /// <since_tizen> 3 </since_tizen>
2011 /// The normal state.
2015 /// The focused state.
2019 /// The disabled state.
2025 /// Retrieves the position of the view.<br />
2026 /// The coordinates are relative to the view's parent.<br />
2028 /// <since_tizen> 3 </since_tizen>
2029 public Position CurrentPosition
2033 return GetCurrentPosition();
2038 /// Sets the size of a view for the width and the height.<br />
2039 /// Geometry can be scaled to fit within this area.<br />
2040 /// This does not interfere with the view's scale factor.<br />
2041 /// The views default depth is the minimum of width and height.<br />
2043 /// <since_tizen> 3 </since_tizen>
2044 public Size2D Size2D
2048 Size temp = new Size(0.0f, 0.0f, 0.0f);
2049 GetProperty(View.Property.SIZE).Get(temp);
2050 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
2055 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size(value)));
2060 /// Retrieves the size of the view.<br />
2061 /// The coordinates are relative to the view's parent.<br />
2063 /// <since_tizen> 3 </since_tizen>
2064 public Size2D CurrentSize
2068 return GetCurrentSize();
2073 /// [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
2075 /// <since_tizen> 3 </since_tizen>
2076 [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
2086 /// Retrieves and sets the view's opacity.<br />
2088 /// <since_tizen> 3 </since_tizen>
2089 public float Opacity
2094 GetProperty(View.Property.OPACITY).Get(out temp);
2099 SetProperty(View.Property.OPACITY, new Tizen.NUI.PropertyValue(value));
2104 /// Sets the position of the view for X and Y.<br />
2105 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2106 /// If the position inheritance is disabled, sets the world position.<br />
2108 /// <since_tizen> 3 </since_tizen>
2109 public Position2D Position2D
2113 Position temp = new Position(0.0f, 0.0f, 0.0f);
2114 GetProperty(View.Property.POSITION).Get(temp);
2115 return new Position2D(temp);
2119 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position(value)));
2124 /// Retrieves the screen postion of the view.<br />
2126 /// <since_tizen> 3 </since_tizen>
2127 public Vector2 ScreenPosition
2131 Vector2 temp = new Vector2(0.0f, 0.0f);
2132 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2138 /// Determines whether the pivot point should be used to determine the position of the view.
2139 /// This is true by default.
2141 /// <remarks>If false, then the top-left of the view is used for the position.
2142 /// Setting this to false will allow scaling or rotation around the anchor-point without affecting the view's position.
2144 /// <since_tizen> 4 </since_tizen>
2145 public bool PositionUsesPivotPoint
2150 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2155 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2160 /// [Obsolete("Please do not use! this will be deprecated")]
2162 /// <since_tizen> 3 </since_tizen>
2163 [Obsolete("Please do not use! this will be deprecated")]
2164 public bool PositionUsesAnchorPoint
2169 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2174 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2178 internal bool FocusState
2182 return IsKeyboardFocusable();
2186 SetKeyboardFocusable(value);
2191 /// Queries whether the view is connected to the stage.<br />
2192 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2194 /// <since_tizen> 3 </since_tizen>
2195 public bool IsOnWindow
2204 /// Gets the depth in the hierarchy for the view.
2206 /// <since_tizen> 3 </since_tizen>
2207 public int HierarchyDepth
2211 return GetHierarchyDepth();
2216 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2219 /// Note the initial value is 0.
2220 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2221 /// The values set by this property will likely change.
2223 /// <since_tizen> 3 </since_tizen>
2224 public int SiblingOrder
2229 GetProperty(View.Property.SIBLING_ORDER).Get(out temp);
2234 SetProperty(View.Property.SIBLING_ORDER, new Tizen.NUI.PropertyValue(value));
2239 /// Returns the natural size of the view.
2242 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2244 [Obsolete("Please do not use! this will be deprecated, please use NaturalSize2D instead")]
2245 public Vector3 NaturalSize
2249 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2250 if (NDalicPINVOKE.SWIGPendingException.Pending)
2251 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2257 /// Returns the natural size (Size2D) of the view.
2260 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2262 /// <since_tizen> 4 </since_tizen>
2263 public Size2D NaturalSize2D
2267 Vector3 temp = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2268 if (NDalicPINVOKE.SWIGPendingException.Pending)
2269 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2271 return new Size2D((int)temp.Width, (int)temp.Height);
2279 /// This is an asynchronous method.
2281 /// <since_tizen> 3 </since_tizen>
2291 /// This is an asynchronous method.
2292 /// If the view is hidden, then the view and its children will not be rendered.
2293 /// 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.
2295 /// <since_tizen> 3 </since_tizen>
2301 internal void Raise()
2303 var parentChildren = Parent?.Children;
2305 if (parentChildren != null)
2307 int currentIndex = parentChildren.IndexOf(this);
2309 // If the view is not already the last item in the list.
2310 if (currentIndex != parentChildren.Count -1)
2312 View temp = parentChildren[currentIndex + 1];
2313 parentChildren[currentIndex + 1] = this;
2314 parentChildren[currentIndex] = temp;
2318 NDalicPINVOKE.Raise(swigCPtr);
2319 if (NDalicPINVOKE.SWIGPendingException.Pending)
2320 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2323 internal void Lower()
2325 var parentChildren = Parent?.Children;
2327 if (parentChildren != null)
2329 int currentIndex = parentChildren.IndexOf(this);
2331 // If the view is not already the first item in the list.
2332 if (currentIndex > 0)
2334 View temp = parentChildren[currentIndex - 1];
2335 parentChildren[currentIndex - 1] = this;
2336 parentChildren[currentIndex] = temp;
2340 NDalicPINVOKE.Lower(swigCPtr);
2341 if (NDalicPINVOKE.SWIGPendingException.Pending)
2342 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2346 /// Raises the view above all other views.
2349 /// Sibling order of views within the parent will be updated automatically.
2350 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
2352 /// <since_tizen> 3 </since_tizen>
2353 public void RaiseToTop()
2355 var parentChildren = Parent?.Children;
2357 if (parentChildren != null)
2359 parentChildren.Remove(this);
2360 parentChildren.Add(this);
2363 NDalicPINVOKE.RaiseToTop(swigCPtr);
2364 if (NDalicPINVOKE.SWIGPendingException.Pending)
2365 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2369 /// Lowers the view to the bottom of all views.
2372 /// The sibling order of views within the parent will be updated automatically.
2373 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2375 /// <since_tizen> 3 </since_tizen>
2376 public void LowerToBottom()
2378 var parentChildren = Parent?.Children;
2380 if (parentChildren != null)
2382 parentChildren.Remove(this);
2383 parentChildren.Insert(0, this);
2386 NDalicPINVOKE.LowerToBottom(swigCPtr);
2387 if (NDalicPINVOKE.SWIGPendingException.Pending)
2388 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2392 /// Queries if all resources required by a view are loaded and ready.
2394 /// <remarks>Most resources are only loaded when the control is placed on the stage.
2396 /// <since_tizen> 4 </since_tizen>
2397 public bool IsResourceReady()
2399 bool ret = NDalicPINVOKE.IsResourceReady(swigCPtr);
2400 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2405 /// Raises the view to above the target view.
2407 /// <remarks>The sibling order of views within the parent will be updated automatically.
2408 /// Views on the level above the target view will still be shown above this view.
2409 /// Raising this view above views with the same sibling order as each other will raise this view above them.
2410 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2412 /// <param name="target">Will be raised above this view.</param>
2413 internal void RaiseAbove(View target)
2415 var parentChildren = Parent?.Children;
2417 if (parentChildren != null)
2419 int currentIndex = parentChildren.IndexOf(this);
2420 int targetIndex = parentChildren.IndexOf(target);
2422 // If the currentIndex is less than the target index and the target has the same parent.
2423 if (currentIndex < targetIndex)
2425 parentChildren.Remove(this);
2426 parentChildren.Insert(targetIndex, this);
2430 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
2431 if (NDalicPINVOKE.SWIGPendingException.Pending)
2432 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2436 /// Lowers the view to below the target view.
2438 /// <remarks>The sibling order of views within the parent will be updated automatically.
2439 /// Lowering this view below views with the same sibling order as each other will lower 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 lowered below this view.</param>
2443 internal void LowerBelow(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 not already the 0th index and the target has the same parent.
2453 if ((currentIndex != 0) && (targetIndex != -1) &&
2454 (currentIndex > targetIndex))
2456 parentChildren.Remove(this);
2457 parentChildren.Insert(targetIndex, this);
2461 NDalicPINVOKE.LowerBelow(swigCPtr, View.getCPtr(target));
2462 if (NDalicPINVOKE.SWIGPendingException.Pending)
2463 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2466 internal string GetName()
2468 string ret = NDalicPINVOKE.Actor_GetName(swigCPtr);
2469 if (NDalicPINVOKE.SWIGPendingException.Pending)
2470 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2474 internal void SetName(string name)
2476 NDalicPINVOKE.Actor_SetName(swigCPtr, name);
2477 if (NDalicPINVOKE.SWIGPendingException.Pending)
2478 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2481 internal uint GetId()
2483 uint ret = NDalicPINVOKE.Actor_GetId(swigCPtr);
2484 if (NDalicPINVOKE.SWIGPendingException.Pending)
2485 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2489 internal bool IsRoot()
2491 bool ret = NDalicPINVOKE.Actor_IsRoot(swigCPtr);
2492 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2496 internal bool OnWindow()
2498 bool ret = NDalicPINVOKE.Actor_OnStage(swigCPtr);
2499 if (NDalicPINVOKE.SWIGPendingException.Pending)
2500 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2504 internal Layer GetLayer()
2506 IntPtr cPtr = NDalicPINVOKE.Actor_GetLayer(swigCPtr);
2507 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Layer;
2509 if (NDalicPINVOKE.SWIGPendingException.Pending)
2510 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2515 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
2517 /// <pre>The (child) view has been initialized. </pre>
2518 /// <since_tizen> 4 </since_tizen>
2519 public void Unparent()
2521 GetParent()?.Remove(this);
2525 /// Search through this view's hierarchy for a view with the given name.
2526 /// The view itself is also considered in the search.
2528 /// <pre>The view has been initialized.</pre>
2529 /// <param name="viewName">The name of the view to find.</param>
2530 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
2531 /// <since_tizen> 3 </since_tizen>
2532 public View FindChildByName(string viewName)
2534 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildByName(swigCPtr, viewName);
2536 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2538 if (NDalicPINVOKE.SWIGPendingException.Pending)
2539 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2543 internal View FindChildById(uint id)
2545 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildById(swigCPtr, id);
2547 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2549 if (NDalicPINVOKE.SWIGPendingException.Pending)
2550 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2554 internal void SetParentOrigin(Vector3 origin)
2556 NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
2557 if (NDalicPINVOKE.SWIGPendingException.Pending)
2558 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2561 internal Vector3 GetCurrentParentOrigin()
2563 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentParentOrigin(swigCPtr), true);
2564 if (NDalicPINVOKE.SWIGPendingException.Pending)
2565 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2569 internal void SetAnchorPoint(Vector3 anchorPoint)
2571 NDalicPINVOKE.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
2572 if (NDalicPINVOKE.SWIGPendingException.Pending)
2573 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2576 internal Vector3 GetCurrentAnchorPoint()
2578 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentAnchorPoint(swigCPtr), true);
2579 if (NDalicPINVOKE.SWIGPendingException.Pending)
2580 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2584 internal void SetSize(float width, float height)
2586 NDalicPINVOKE.Actor_SetSize__SWIG_0(swigCPtr, width, height);
2587 if (NDalicPINVOKE.SWIGPendingException.Pending)
2588 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2591 internal void SetSize(float width, float height, float depth)
2593 NDalicPINVOKE.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
2594 if (NDalicPINVOKE.SWIGPendingException.Pending)
2595 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2598 internal void SetSize(Vector2 size)
2600 NDalicPINVOKE.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
2601 if (NDalicPINVOKE.SWIGPendingException.Pending)
2602 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2605 internal void SetSize(Vector3 size)
2607 NDalicPINVOKE.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
2608 if (NDalicPINVOKE.SWIGPendingException.Pending)
2609 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2612 internal Vector3 GetTargetSize()
2614 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetTargetSize(swigCPtr), true);
2615 if (NDalicPINVOKE.SWIGPendingException.Pending)
2616 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2620 internal Size2D GetCurrentSize()
2622 Size ret = new Size(NDalicPINVOKE.Actor_GetCurrentSize(swigCPtr), true);
2623 if (NDalicPINVOKE.SWIGPendingException.Pending)
2624 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2625 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
2629 internal Vector3 GetNaturalSize()
2631 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2632 if (NDalicPINVOKE.SWIGPendingException.Pending)
2633 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2637 internal void SetPosition(float x, float y)
2639 NDalicPINVOKE.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
2640 if (NDalicPINVOKE.SWIGPendingException.Pending)
2641 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2644 internal void SetPosition(float x, float y, float z)
2646 NDalicPINVOKE.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
2647 if (NDalicPINVOKE.SWIGPendingException.Pending)
2648 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2651 internal void SetPosition(Vector3 position)
2653 NDalicPINVOKE.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
2654 if (NDalicPINVOKE.SWIGPendingException.Pending)
2655 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2658 internal void SetX(float x)
2660 NDalicPINVOKE.Actor_SetX(swigCPtr, x);
2661 if (NDalicPINVOKE.SWIGPendingException.Pending)
2662 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2665 internal void SetY(float y)
2667 NDalicPINVOKE.Actor_SetY(swigCPtr, y);
2668 if (NDalicPINVOKE.SWIGPendingException.Pending)
2669 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2672 internal void SetZ(float z)
2674 NDalicPINVOKE.Actor_SetZ(swigCPtr, z);
2675 if (NDalicPINVOKE.SWIGPendingException.Pending)
2676 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2679 internal void TranslateBy(Vector3 distance)
2681 NDalicPINVOKE.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
2682 if (NDalicPINVOKE.SWIGPendingException.Pending)
2683 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2686 internal Position GetCurrentPosition()
2688 Position ret = new Position(NDalicPINVOKE.Actor_GetCurrentPosition(swigCPtr), true);
2689 if (NDalicPINVOKE.SWIGPendingException.Pending)
2690 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2694 internal Vector3 GetCurrentWorldPosition()
2696 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldPosition(swigCPtr), true);
2697 if (NDalicPINVOKE.SWIGPendingException.Pending)
2698 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2702 internal void SetInheritPosition(bool inherit)
2704 NDalicPINVOKE.Actor_SetInheritPosition(swigCPtr, inherit);
2705 if (NDalicPINVOKE.SWIGPendingException.Pending)
2706 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2709 internal bool IsPositionInherited()
2711 bool ret = NDalicPINVOKE.Actor_IsPositionInherited(swigCPtr);
2712 if (NDalicPINVOKE.SWIGPendingException.Pending)
2713 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2717 internal void SetOrientation(Degree angle, Vector3 axis)
2719 NDalicPINVOKE.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2720 if (NDalicPINVOKE.SWIGPendingException.Pending)
2721 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2724 internal void SetOrientation(Radian angle, Vector3 axis)
2726 NDalicPINVOKE.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2727 if (NDalicPINVOKE.SWIGPendingException.Pending)
2728 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2731 internal void SetOrientation(Rotation orientation)
2733 NDalicPINVOKE.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
2734 if (NDalicPINVOKE.SWIGPendingException.Pending)
2735 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2738 internal void RotateBy(Degree angle, Vector3 axis)
2740 NDalicPINVOKE.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2741 if (NDalicPINVOKE.SWIGPendingException.Pending)
2742 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2745 internal void RotateBy(Radian angle, Vector3 axis)
2747 NDalicPINVOKE.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2748 if (NDalicPINVOKE.SWIGPendingException.Pending)
2749 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2752 internal void RotateBy(Rotation relativeRotation)
2754 NDalicPINVOKE.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
2755 if (NDalicPINVOKE.SWIGPendingException.Pending)
2756 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2759 internal Rotation GetCurrentOrientation()
2761 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentOrientation(swigCPtr), true);
2762 if (NDalicPINVOKE.SWIGPendingException.Pending)
2763 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2767 internal void SetInheritOrientation(bool inherit)
2769 NDalicPINVOKE.Actor_SetInheritOrientation(swigCPtr, inherit);
2770 if (NDalicPINVOKE.SWIGPendingException.Pending)
2771 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2774 internal bool IsOrientationInherited()
2776 bool ret = NDalicPINVOKE.Actor_IsOrientationInherited(swigCPtr);
2777 if (NDalicPINVOKE.SWIGPendingException.Pending)
2778 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2782 internal Rotation GetCurrentWorldOrientation()
2784 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentWorldOrientation(swigCPtr), true);
2785 if (NDalicPINVOKE.SWIGPendingException.Pending)
2786 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2790 internal void SetScale(float scale)
2792 NDalicPINVOKE.Actor_SetScale__SWIG_0(swigCPtr, scale);
2793 if (NDalicPINVOKE.SWIGPendingException.Pending)
2794 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2797 internal void SetScale(float scaleX, float scaleY, float scaleZ)
2799 NDalicPINVOKE.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
2800 if (NDalicPINVOKE.SWIGPendingException.Pending)
2801 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2804 internal void SetScale(Vector3 scale)
2806 NDalicPINVOKE.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
2807 if (NDalicPINVOKE.SWIGPendingException.Pending)
2808 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2811 internal void ScaleBy(Vector3 relativeScale)
2813 NDalicPINVOKE.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
2814 if (NDalicPINVOKE.SWIGPendingException.Pending)
2815 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2818 internal Vector3 GetCurrentScale()
2820 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentScale(swigCPtr), true);
2821 if (NDalicPINVOKE.SWIGPendingException.Pending)
2822 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2826 internal Vector3 GetCurrentWorldScale()
2828 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldScale(swigCPtr), true);
2829 if (NDalicPINVOKE.SWIGPendingException.Pending)
2830 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2834 internal void SetInheritScale(bool inherit)
2836 NDalicPINVOKE.Actor_SetInheritScale(swigCPtr, inherit);
2837 if (NDalicPINVOKE.SWIGPendingException.Pending)
2838 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2841 internal bool IsScaleInherited()
2843 bool ret = NDalicPINVOKE.Actor_IsScaleInherited(swigCPtr);
2844 if (NDalicPINVOKE.SWIGPendingException.Pending)
2845 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2849 internal Matrix GetCurrentWorldMatrix()
2851 Matrix ret = new Matrix(NDalicPINVOKE.Actor_GetCurrentWorldMatrix(swigCPtr), true);
2852 if (NDalicPINVOKE.SWIGPendingException.Pending)
2853 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2857 internal void SetVisible(bool visible)
2859 NDalicPINVOKE.Actor_SetVisible(swigCPtr, visible);
2860 if (NDalicPINVOKE.SWIGPendingException.Pending)
2861 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2864 internal bool IsVisible()
2866 bool ret = NDalicPINVOKE.Actor_IsVisible(swigCPtr);
2867 if (NDalicPINVOKE.SWIGPendingException.Pending)
2868 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2872 internal void SetOpacity(float opacity)
2874 NDalicPINVOKE.Actor_SetOpacity(swigCPtr, opacity);
2875 if (NDalicPINVOKE.SWIGPendingException.Pending)
2876 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2879 internal float GetCurrentOpacity()
2881 float ret = NDalicPINVOKE.Actor_GetCurrentOpacity(swigCPtr);
2882 if (NDalicPINVOKE.SWIGPendingException.Pending)
2883 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2887 internal void SetColor(Vector4 color)
2889 NDalicPINVOKE.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
2890 if (NDalicPINVOKE.SWIGPendingException.Pending)
2891 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2894 internal Vector4 GetCurrentColor()
2896 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentColor(swigCPtr), true);
2897 if (NDalicPINVOKE.SWIGPendingException.Pending)
2898 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2902 internal void SetColorMode(ColorMode colorMode)
2904 NDalicPINVOKE.Actor_SetColorMode(swigCPtr, (int)colorMode);
2905 if (NDalicPINVOKE.SWIGPendingException.Pending)
2906 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2909 internal ColorMode GetColorMode()
2911 ColorMode ret = (ColorMode)NDalicPINVOKE.Actor_GetColorMode(swigCPtr);
2912 if (NDalicPINVOKE.SWIGPendingException.Pending)
2913 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2917 internal Vector4 GetCurrentWorldColor()
2919 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentWorldColor(swigCPtr), true);
2920 if (NDalicPINVOKE.SWIGPendingException.Pending)
2921 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2925 internal void SetDrawMode(DrawModeType drawMode)
2927 NDalicPINVOKE.Actor_SetDrawMode(swigCPtr, (int)drawMode);
2928 if (NDalicPINVOKE.SWIGPendingException.Pending)
2929 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2932 internal DrawModeType GetDrawMode()
2934 DrawModeType ret = (DrawModeType)NDalicPINVOKE.Actor_GetDrawMode(swigCPtr);
2935 if (NDalicPINVOKE.SWIGPendingException.Pending)
2936 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2941 /// Converts screen coordinates into the view's coordinate system using the default camera.
2943 /// <pre>The view has been initialized.</pre>
2944 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
2945 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
2946 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
2947 /// <param name="screenX">The screen X-coordinate.</param>
2948 /// <param name="screenY">The screen Y-coordinate.</param>
2949 /// <returns>True if the conversion succeeded.</returns>
2950 /// <since_tizen> 3 </since_tizen>
2951 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
2953 bool ret = NDalicPINVOKE.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
2954 if (NDalicPINVOKE.SWIGPendingException.Pending)
2955 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2959 internal void SetKeyboardFocusable(bool focusable)
2961 NDalicPINVOKE.Actor_SetKeyboardFocusable(swigCPtr, focusable);
2962 if (NDalicPINVOKE.SWIGPendingException.Pending)
2963 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2966 internal bool IsKeyboardFocusable()
2968 bool ret = NDalicPINVOKE.Actor_IsKeyboardFocusable(swigCPtr);
2969 if (NDalicPINVOKE.SWIGPendingException.Pending)
2970 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2974 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
2976 NDalicPINVOKE.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
2977 if (NDalicPINVOKE.SWIGPendingException.Pending)
2978 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2981 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
2983 ResizePolicyType ret = (ResizePolicyType)NDalicPINVOKE.Actor_GetResizePolicy(swigCPtr, (int)dimension);
2984 if (NDalicPINVOKE.SWIGPendingException.Pending)
2985 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2990 /// Sets the relative to parent size factor of the view.<br />
2991 /// This factor is only used when ResizePolicy is set to either:
2992 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
2993 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
2995 /// <pre>The view has been initialized.</pre>
2996 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
2997 /// <since_tizen> 3 </since_tizen>
2998 public void SetSizeModeFactor(Vector3 factor)
3000 NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
3001 if (NDalicPINVOKE.SWIGPendingException.Pending)
3002 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3005 internal Vector3 GetSizeModeFactor()
3007 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetSizeModeFactor(swigCPtr), true);
3008 if (NDalicPINVOKE.SWIGPendingException.Pending)
3009 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3014 /// Calculates the height of the view given a width.<br />
3015 /// The natural size is used for default calculation.<br />
3016 /// Size 0 is treated as aspect ratio 1:1.<br />
3018 /// <param name="width">The width to use.</param>
3019 /// <returns>The height based on the width.</returns>
3020 /// <since_tizen> 3 </since_tizen>
3021 public float GetHeightForWidth(float width)
3023 float ret = NDalicPINVOKE.Actor_GetHeightForWidth(swigCPtr, width);
3024 if (NDalicPINVOKE.SWIGPendingException.Pending)
3025 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3030 /// Calculates the width of the view given a height.<br />
3031 /// The natural size is used for default calculation.<br />
3032 /// Size 0 is treated as aspect ratio 1:1.<br />
3034 /// <param name="height">The height to use.</param>
3035 /// <returns>The width based on the height.</returns>
3036 /// <since_tizen> 3 </since_tizen>
3037 public float GetWidthForHeight(float height)
3039 float ret = NDalicPINVOKE.Actor_GetWidthForHeight(swigCPtr, height);
3040 if (NDalicPINVOKE.SWIGPendingException.Pending)
3041 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3046 /// Return the amount of size allocated for relayout.
3048 /// <param name="dimension">The dimension to retrieve.</param>
3049 /// <returns>Return the size.</returns>
3050 /// <since_tizen> 3 </since_tizen>
3051 public float GetRelayoutSize(DimensionType dimension)
3053 float ret = NDalicPINVOKE.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
3054 if (NDalicPINVOKE.SWIGPendingException.Pending)
3055 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3060 /// Set the padding for the view.
3062 /// <param name="padding">Padding for the view.</param>
3063 /// <since_tizen> 3 </since_tizen>
3064 public void SetPadding(PaddingType padding)
3066 NDalicPINVOKE.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
3067 if (NDalicPINVOKE.SWIGPendingException.Pending)
3068 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3072 /// Return the value of padding for the view.
3074 /// <param name="paddingOut">the value of padding for the view</param>
3075 /// <since_tizen> 3 </since_tizen>
3076 public void GetPadding(PaddingType paddingOut)
3078 NDalicPINVOKE.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
3079 if (NDalicPINVOKE.SWIGPendingException.Pending)
3080 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3083 internal void SetMinimumSize(Vector2 size)
3085 NDalicPINVOKE.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
3086 if (NDalicPINVOKE.SWIGPendingException.Pending)
3087 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3090 internal Vector2 GetMinimumSize()
3092 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMinimumSize(swigCPtr), true);
3093 if (NDalicPINVOKE.SWIGPendingException.Pending)
3094 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3098 internal void SetMaximumSize(Vector2 size)
3100 NDalicPINVOKE.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
3101 if (NDalicPINVOKE.SWIGPendingException.Pending)
3102 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3105 internal Vector2 GetMaximumSize()
3107 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMaximumSize(swigCPtr), true);
3108 if (NDalicPINVOKE.SWIGPendingException.Pending)
3109 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3113 internal int GetHierarchyDepth()
3115 int ret = NDalicPINVOKE.Actor_GetHierarchyDepth(swigCPtr);
3116 if (NDalicPINVOKE.SWIGPendingException.Pending)
3117 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3121 /// <since_tizen> 4 </since_tizen>
3122 public uint AddRenderer(Renderer renderer)
3124 uint ret = NDalicPINVOKE.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
3125 if (NDalicPINVOKE.SWIGPendingException.Pending)
3126 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3130 internal uint GetRendererCount()
3132 uint ret = NDalicPINVOKE.Actor_GetRendererCount(swigCPtr);
3133 if (NDalicPINVOKE.SWIGPendingException.Pending)
3134 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3138 /// <since_tizen> 4 </since_tizen>
3139 public Renderer GetRendererAt(uint index)
3141 IntPtr cPtr = NDalicPINVOKE.Actor_GetRendererAt(swigCPtr, index);
3142 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Renderer;
3144 if (NDalicPINVOKE.SWIGPendingException.Pending)
3145 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3149 /// <since_tizen> 4 </since_tizen>
3150 public void RemoveRenderer(Renderer renderer)
3152 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
3153 if (NDalicPINVOKE.SWIGPendingException.Pending)
3154 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3157 /// <since_tizen> 4 </since_tizen>
3158 public void RemoveRenderer(uint index)
3160 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
3161 if (NDalicPINVOKE.SWIGPendingException.Pending)
3162 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3165 internal TouchDataSignal TouchSignal()
3167 TouchDataSignal ret = new TouchDataSignal(NDalicPINVOKE.Actor_TouchSignal(swigCPtr), false);
3168 if (NDalicPINVOKE.SWIGPendingException.Pending)
3169 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3173 internal HoverSignal HoveredSignal()
3175 HoverSignal ret = new HoverSignal(NDalicPINVOKE.Actor_HoveredSignal(swigCPtr), false);
3176 if (NDalicPINVOKE.SWIGPendingException.Pending)
3177 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3181 internal WheelSignal WheelEventSignal()
3183 WheelSignal ret = new WheelSignal(NDalicPINVOKE.Actor_WheelEventSignal(swigCPtr), false);
3184 if (NDalicPINVOKE.SWIGPendingException.Pending)
3185 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3189 internal ViewSignal OnWindowSignal()
3191 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
3192 if (NDalicPINVOKE.SWIGPendingException.Pending)
3193 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3197 internal ViewSignal OffWindowSignal()
3199 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OffStageSignal(swigCPtr), false);
3200 if (NDalicPINVOKE.SWIGPendingException.Pending)
3201 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3205 internal ViewSignal OnRelayoutSignal()
3207 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnRelayoutSignal(swigCPtr), false);
3208 if (NDalicPINVOKE.SWIGPendingException.Pending)
3209 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3213 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view) {
3214 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(NDalicPINVOKE.VisibilityChangedSignal(View.getCPtr(view)), false);
3215 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3220 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view) {
3221 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(NDalicManualPINVOKE.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
3222 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3227 internal ViewSignal ResourcesLoadedSignal()
3229 ViewSignal ret = new ViewSignal(NDalicPINVOKE.ResourceReadySignal(swigCPtr), false);
3230 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3235 /// Gets or sets the origin of a view within its parent's area.<br />
3236 /// 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 />
3237 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
3238 /// A view's position is the distance between this origin and the view's anchor-point.<br />
3240 /// <pre>The view has been initialized.</pre>
3241 /// <since_tizen> 3 </since_tizen>
3242 public Position ParentOrigin
3246 Position temp = new Position(0.0f, 0.0f, 0.0f);
3247 GetProperty(View.Property.PARENT_ORIGIN).Get(temp);
3252 SetProperty(View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue(value));
3256 internal float ParentOriginX
3261 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3266 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3270 internal float ParentOriginY
3275 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3280 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3284 internal float ParentOriginZ
3289 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3294 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3299 /// Gets or sets the anchor-point of a view.<br />
3300 /// 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 />
3301 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
3302 /// A view position is the distance between its parent-origin and this anchor-point.<br />
3303 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
3304 /// <pre>The view has been initialized.</pre>
3306 /// <since_tizen> 3 </since_tizen>
3307 public Position PivotPoint
3311 Position temp = new Position(0.0f, 0.0f, 0.0f);
3312 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3317 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3321 internal float PivotPointX
3326 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3331 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3335 internal float PivotPointY
3340 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3345 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3349 internal float PivotPointZ
3354 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3359 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3364 /// Gets or sets the size width of the view.
3366 /// <since_tizen> 3 </since_tizen>
3367 public float SizeWidth
3372 GetProperty(View.Property.SIZE_WIDTH).Get(out temp);
3377 SetProperty(View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
3382 /// Gets or sets the size height of the view.
3384 /// <since_tizen> 3 </since_tizen>
3385 public float SizeHeight
3390 GetProperty(View.Property.SIZE_HEIGHT).Get(out temp);
3395 SetProperty(View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3400 /// Gets or sets the position of the view.<br />
3401 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
3402 /// If the position inheritance is disabled, sets the world position.<br />
3404 /// <since_tizen> 3 </since_tizen>
3405 public Position Position
3409 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3410 GetProperty(View.Property.POSITION).Get(temp);
3415 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(value));
3420 /// Gets or sets the position X of the view.
3422 /// <since_tizen> 3 </since_tizen>
3423 public float PositionX
3428 GetProperty(View.Property.POSITION_X).Get(out temp);
3433 SetProperty(View.Property.POSITION_X, new Tizen.NUI.PropertyValue(value));
3438 /// Gets or sets the position Y of the view.
3440 /// <since_tizen> 3 </since_tizen>
3441 public float PositionY
3446 GetProperty(View.Property.POSITION_Y).Get(out temp);
3451 SetProperty(View.Property.POSITION_Y, new Tizen.NUI.PropertyValue(value));
3456 /// Gets or sets the position Z of the view.
3458 /// <since_tizen> 3 </since_tizen>
3459 public float PositionZ
3464 GetProperty(View.Property.POSITION_Z).Get(out temp);
3469 SetProperty(View.Property.POSITION_Z, new Tizen.NUI.PropertyValue(value));
3474 /// Gets or sets the world position of the view.
3476 /// <since_tizen> 3 </since_tizen>
3477 public Vector3 WorldPosition
3481 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3482 GetProperty(View.Property.WORLD_POSITION).Get(temp);
3487 internal float WorldPositionX
3492 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3497 internal float WorldPositionY
3502 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3507 internal float WorldPositionZ
3512 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3518 /// Gets or sets the orientation of the view.<br />
3519 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
3521 /// <remarks>This is an asynchronous method.</remarks>
3522 /// <since_tizen> 3 </since_tizen>
3523 public Rotation Orientation
3527 Rotation temp = new Rotation();
3528 GetProperty(View.Property.ORIENTATION).Get(temp);
3533 SetProperty(View.Property.ORIENTATION, new Tizen.NUI.PropertyValue(value));
3538 /// Gets or sets the world orientation of the view.<br />
3540 /// <since_tizen> 3 </since_tizen>
3541 public Rotation WorldOrientation
3545 Rotation temp = new Rotation();
3546 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
3552 /// Gets or sets the scale factor applied to the view.<br />
3554 /// <since_tizen> 3 </since_tizen>
3555 public Vector3 Scale
3559 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3560 GetProperty(View.Property.SCALE).Get(temp);
3565 SetProperty(View.Property.SCALE, new Tizen.NUI.PropertyValue(value));
3570 /// Gets or sets the scale X factor applied to the view.
3572 /// <since_tizen> 3 </since_tizen>
3578 GetProperty(View.Property.SCALE_X).Get(out temp);
3583 SetProperty(View.Property.SCALE_X, new Tizen.NUI.PropertyValue(value));
3588 /// Gets or sets the scale Y factor applied to the view.
3590 /// <since_tizen> 3 </since_tizen>
3596 GetProperty(View.Property.SCALE_Y).Get(out temp);
3601 SetProperty(View.Property.SCALE_Y, new Tizen.NUI.PropertyValue(value));
3606 /// Gets or sets the scale Z factor applied to the view.
3608 /// <since_tizen> 3 </since_tizen>
3614 GetProperty(View.Property.SCALE_Z).Get(out temp);
3619 SetProperty(View.Property.SCALE_Z, new Tizen.NUI.PropertyValue(value));
3624 /// Gets the world scale of the view.
3626 /// <since_tizen> 3 </since_tizen>
3627 public Vector3 WorldScale
3631 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3632 GetProperty(View.Property.WORLD_SCALE).Get(temp);
3638 /// Retrieves the visibility flag of the view.
3641 /// If the view is not visible, then the view and its children will not be rendered.
3642 /// 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.
3644 /// <since_tizen> 3 </since_tizen>
3645 public bool Visibility
3650 GetProperty(View.Property.VISIBLE).Get(out temp);
3656 /// Gets the view's world color.
3658 /// <since_tizen> 3 </since_tizen>
3659 public Vector4 WorldColor
3663 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3664 GetProperty(View.Property.WORLD_COLOR).Get(temp);
3669 internal Matrix WorldMatrix
3673 Matrix temp = new Matrix();
3674 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3680 /// Gets or sets the view's name.
3682 /// <since_tizen> 3 </since_tizen>
3688 GetProperty(View.Property.NAME).Get(out temp);
3693 SetProperty(View.Property.NAME, new Tizen.NUI.PropertyValue(value));
3698 /// Get the number of children held by the view.
3700 /// <since_tizen> 3 </since_tizen>
3701 public new uint ChildCount
3705 return GetChildCount();
3710 /// Gets the view's ID.
3713 /// <since_tizen> 3 </since_tizen>
3723 /// Gets or sets the status of whether the view should emit touch or hover signals.
3725 /// <since_tizen> 3 </since_tizen>
3726 public bool Sensitive
3731 GetProperty(View.Property.SENSITIVE).Get(out temp);
3736 SetProperty(View.Property.SENSITIVE, new Tizen.NUI.PropertyValue(value));
3741 /// 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.
3743 /// <since_tizen> 3 </since_tizen>
3744 public bool LeaveRequired
3749 GetProperty(View.Property.LEAVE_REQUIRED).Get(out temp);
3754 SetProperty(View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue(value));
3759 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
3761 /// <since_tizen> 3 </since_tizen>
3762 public bool InheritOrientation
3767 GetProperty(View.Property.INHERIT_ORIENTATION).Get(out temp);
3772 SetProperty(View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue(value));
3777 /// Gets or sets the status of whether a child view inherits it's parent's scale.
3779 /// <since_tizen> 3 </since_tizen>
3780 public bool InheritScale
3785 GetProperty(View.Property.INHERIT_SCALE).Get(out temp);
3790 SetProperty(View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue(value));
3795 /// Gets or sets the status of how the view and its children should be drawn.<br />
3796 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
3797 /// 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 />
3798 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
3799 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
3800 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
3802 /// <since_tizen> 3 </since_tizen>
3803 public DrawModeType DrawMode
3808 if (GetProperty(View.Property.DRAW_MODE).Get(out temp) == false)
3810 NUILog.Error("DrawMode get error!");
3815 return DrawModeType.Normal;
3817 return DrawModeType.Overlay2D;
3819 return DrawModeType.Stencil;
3821 return DrawModeType.Normal;
3826 SetProperty(View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)value));
3831 /// Gets or sets the relative to parent size factor of the view.<br />
3832 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
3833 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
3835 /// <since_tizen> 3 </since_tizen>
3836 public Vector3 SizeModeFactor
3840 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3841 GetProperty(View.Property.SIZE_MODE_FACTOR).Get(temp);
3846 SetProperty(View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue(value));
3851 /// Gets or sets the width resize policy to be used.
3853 /// <since_tizen> 3 </since_tizen>
3854 public ResizePolicyType WidthResizePolicy
3859 if (GetProperty(View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
3861 NUILog.Error("WidthResizePolicy get error!");
3866 return ResizePolicyType.Fixed;
3867 case "USE_NATURAL_SIZE":
3868 return ResizePolicyType.UseNaturalSize;
3869 case "FILL_TO_PARENT":
3870 return ResizePolicyType.FillToParent;
3871 case "SIZE_RELATIVE_TO_PARENT":
3872 return ResizePolicyType.SizeRelativeToParent;
3873 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3874 return ResizePolicyType.SizeFixedOffsetFromParent;
3875 case "FIT_TO_CHILDREN":
3876 return ResizePolicyType.FitToChildren;
3877 case "DIMENSION_DEPENDENCY":
3878 return ResizePolicyType.DimensionDependency;
3879 case "USE_ASSIGNED_SIZE":
3880 return ResizePolicyType.UseAssignedSize;
3882 return ResizePolicyType.Fixed;
3887 SetProperty(View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3892 /// Gets or sets the height resize policy to be used.
3894 /// <since_tizen> 3 </since_tizen>
3895 public ResizePolicyType HeightResizePolicy
3900 if (GetProperty(View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
3902 NUILog.Error("HeightResizePolicy get error!");
3907 return ResizePolicyType.Fixed;
3908 case "USE_NATURAL_SIZE":
3909 return ResizePolicyType.UseNaturalSize;
3910 case "FILL_TO_PARENT":
3911 return ResizePolicyType.FillToParent;
3912 case "SIZE_RELATIVE_TO_PARENT":
3913 return ResizePolicyType.SizeRelativeToParent;
3914 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3915 return ResizePolicyType.SizeFixedOffsetFromParent;
3916 case "FIT_TO_CHILDREN":
3917 return ResizePolicyType.FitToChildren;
3918 case "DIMENSION_DEPENDENCY":
3919 return ResizePolicyType.DimensionDependency;
3920 case "USE_ASSIGNED_SIZE":
3921 return ResizePolicyType.UseAssignedSize;
3923 return ResizePolicyType.Fixed;
3928 SetProperty(View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3933 /// Gets or sets the policy to use when setting size with size negotiation.<br />
3934 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3936 /// <since_tizen> 3 </since_tizen>
3937 public SizeScalePolicyType SizeScalePolicy
3942 if (GetProperty(View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
3944 NUILog.Error("SizeScalePolicy get error!");
3948 case "USE_SIZE_SET":
3949 return SizeScalePolicyType.UseSizeSet;
3950 case "FIT_WITH_ASPECT_RATIO":
3951 return SizeScalePolicyType.FitWithAspectRatio;
3952 case "FILL_WITH_ASPECT_RATIO":
3953 return SizeScalePolicyType.FillWithAspectRatio;
3955 return SizeScalePolicyType.UseSizeSet;
3960 string valueToString = "";
3963 case SizeScalePolicyType.UseSizeSet:
3965 valueToString = "USE_SIZE_SET";
3968 case SizeScalePolicyType.FitWithAspectRatio:
3970 valueToString = "FIT_WITH_ASPECT_RATIO";
3973 case SizeScalePolicyType.FillWithAspectRatio:
3975 valueToString = "FILL_WITH_ASPECT_RATIO";
3980 valueToString = "USE_SIZE_SET";
3984 SetProperty(View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
3989 /// Gets or sets the status of whether the width size is dependent on the height size.
3991 /// <since_tizen> 3 </since_tizen>
3992 public bool WidthForHeight
3997 GetProperty(View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
4002 SetProperty(View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue(value));
4007 /// Gets or sets the status of whether the height size is dependent on the width size.
4009 /// <since_tizen> 3 </since_tizen>
4010 public bool HeightForWidth
4015 GetProperty(View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
4020 SetProperty(View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue(value));
4025 /// Gets or sets the padding for use in layout.
4027 /// <since_tizen> 3 </since_tizen>
4028 public Vector4 Padding
4032 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
4033 GetProperty(View.Property.PADDING).Get(temp);
4038 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
4043 /// Gets or sets the minimum size the view can be assigned in size negotiation.
4045 /// <since_tizen> 3 </since_tizen>
4046 public Size2D MinimumSize
4050 Size2D temp = new Size2D(0, 0);
4051 GetProperty(View.Property.MINIMUM_SIZE).Get(temp);
4056 SetProperty(View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4061 /// Gets or sets the maximum size the view can be assigned in size negotiation.
4063 /// <since_tizen> 3 </since_tizen>
4064 public Size2D MaximumSize
4068 Size2D temp = new Size2D(0, 0);
4069 GetProperty(View.Property.MAXIMUM_SIZE).Get(temp);
4074 SetProperty(View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4079 /// Gets or sets whether a child view inherits it's parent's position.<br />
4080 /// Default is to inherit.<br />
4081 /// 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 />
4083 /// <since_tizen> 3 </since_tizen>
4084 public bool InheritPosition
4089 GetProperty(View.Property.INHERIT_POSITION).Get(out temp);
4094 SetProperty(View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue(value));
4099 /// Gets or sets the clipping behavior (mode) of it's children.
4101 /// <since_tizen> 3 </since_tizen>
4102 public ClippingModeType ClippingMode
4107 if (GetProperty(View.Property.CLIPPING_MODE).Get(out temp) == false)
4109 NUILog.Error("ClippingMode get error!");
4114 return ClippingModeType.Disabled;
4115 case "CLIP_CHILDREN":
4116 return ClippingModeType.ClipChildren;
4117 case "CLIP_TO_BOUNDING_BOX":
4118 return ClippingModeType.ClipToBoundingBox;
4120 return ClippingModeType.Disabled;
4125 SetProperty(View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)value));
4130 /// Gets the number of renderers held by the view.
4132 /// <since_tizen> 4 </since_tizen>
4133 public uint RendererCount
4137 return GetRendererCount();
4144 /// [Obsolete("Please do not use! this will be deprecated")]
4146 /// <since_tizen> 3 </since_tizen>
4147 [Obsolete("Please do not use! this will be deprecated")]
4148 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> Touched
4152 if (_touchDataEventHandler == null)
4154 _touchDataCallback = OnTouch;
4155 this.TouchSignal().Connect(_touchDataCallback);
4158 _touchDataEventHandler += value;
4163 _touchDataEventHandler -= value;
4165 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
4167 this.TouchSignal().Disconnect(_touchDataCallback);
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, HoverEventArgs, bool> Hovered
4182 if (_hoverEventHandler == null)
4184 _hoverEventCallback = OnHoverEvent;
4185 this.HoveredSignal().Connect(_hoverEventCallback);
4188 _hoverEventHandler += value;
4193 _hoverEventHandler -= value;
4195 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
4197 this.HoveredSignal().Disconnect(_hoverEventCallback);
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, WheelEventArgs, bool> WheelMoved
4212 if (_wheelEventHandler == null)
4214 _wheelEventCallback = OnWheelEvent;
4215 this.WheelEventSignal().Connect(_wheelEventCallback);
4218 _wheelEventHandler += value;
4223 _wheelEventHandler -= value;
4225 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
4227 this.WheelEventSignal().Disconnect(_wheelEventCallback);
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 Position AnchorPoint
4242 Position temp = new Position(0.0f, 0.0f, 0.0f);
4243 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
4248 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
4253 /// [Obsolete("Please do not use! this will be deprecated")]
4255 /// <since_tizen> 3 </since_tizen>
4256 [Obsolete("Please do not use! this will be deprecated, please use Size2D instead")]
4261 Size temp = new Size(0.0f, 0.0f, 0.0f);
4262 GetProperty(View.Property.SIZE).Get(temp);
4267 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(value));
4272 /// [Obsolete("Please do not use! this will be deprecated")]
4274 /// <since_tizen> 3 </since_tizen>
4275 [Obsolete("Please do not use! this will be deprecated")]
4276 public event EventHandler OnWindowEvent
4280 if (_onWindowEventHandler == null)
4282 _onWindowEventCallback = OnWindow;
4283 this.OnWindowSignal().Connect(_onWindowEventCallback);
4286 _onWindowEventHandler += value;
4291 _onWindowEventHandler -= value;
4293 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
4295 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
4301 /// [Obsolete("Please do not use! this will be deprecated")]
4303 /// <since_tizen> 3 </since_tizen>
4304 [Obsolete("Please do not use! this will be deprecated")]
4305 public event EventHandler OffWindowEvent
4309 if (_offWindowEventHandler == null)
4311 _offWindowEventCallback = OffWindow;
4312 this.OffWindowSignal().Connect(_offWindowEventCallback);
4315 _offWindowEventHandler += value;
4320 _offWindowEventHandler -= value;
4322 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
4324 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
4330 /// [Obsolete("Please do not use! this will be deprecated")]
4332 /// <since_tizen> 3 </since_tizen>
4333 [Obsolete("Please do not use! this will be deprecated")]
4334 public event EventHandler OnRelayoutEvent
4338 if (_onRelayoutEventHandler == null)
4340 _onRelayoutEventCallback = OnRelayout;
4341 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
4344 _onRelayoutEventHandler += value;
4349 _onRelayoutEventHandler -= value;
4351 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
4353 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
4360 /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4362 /// <since_tizen> 3 </since_tizen>
4363 //"Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4364 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
4365 public new View Parent
4370 IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
4372 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
4374 if (basehandle is Layer)
4376 ret = new View(cPtr, false);
4380 ret = basehandle as View;
4383 if (NDalicPINVOKE.SWIGPendingException.Pending)
4384 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4390 /// Gets/Sets whether inherit parent's the layout Direction.
4392 /// <since_tizen> 4 </since_tizen>
4393 public bool InheritLayoutDirection
4398 GetProperty(View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
4403 SetProperty(View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue(value));
4408 /// Gets/Sets the layout Direction.
4410 /// <since_tizen> 4 </since_tizen>
4411 public ViewLayoutDirectionType LayoutDirection
4416 if (GetProperty(View.Property.LAYOUT_DIRECTION).Get(out temp) == false)
4418 NUILog.Error("LAYOUT_DIRECTION get error!");
4420 return (ViewLayoutDirectionType)temp;
4424 SetProperty(View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)value));
4430 /// The View layout Direction type.
4432 /// <since_tizen> 4 </since_tizen>
4433 public enum ViewLayoutDirectionType