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;
31 internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.View_SWIGUpcast(cPtr), cMemoryOwn)
33 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
34 PositionUsesPivotPoint = false;
37 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
39 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
42 // From Container Base class
45 /// Adds a child view to this view.
47 /// <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();
58 /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
60 /// <seealso cref="Container.Remove">
62 /// <since_tizen> 4 </since_tizen>
63 public override void Remove(View child)
65 NDalicPINVOKE.Actor_Remove(swigCPtr, View.getCPtr(child));
66 if (NDalicPINVOKE.SWIGPendingException.Pending)
67 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
71 /// Retrieves a child view by index.
73 /// <seealso cref="Container.GetChildAt">
75 /// <since_tizen> 4 </since_tizen>
76 public override View GetChildAt(uint index)
78 IntPtr cPtr = NDalicPINVOKE.Actor_GetChildAt(swigCPtr, index);
80 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
82 if (NDalicPINVOKE.SWIGPendingException.Pending)
83 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
88 /// Retrieves the number of children held by the view.
90 /// <seealso cref="Container.GetChildCount">
92 protected override uint GetChildCount()
94 uint ret = NDalicPINVOKE.Actor_GetChildCount(swigCPtr);
95 if (NDalicPINVOKE.SWIGPendingException.Pending)
96 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
101 /// Gets the views parent.
103 /// <seealso cref="Container.GetParent()" />
104 protected override Container GetParent()
107 IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
109 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
111 if(basehandle is Layer)
113 ret = basehandle as Layer;
117 ret = basehandle as View;
120 if (NDalicPINVOKE.SWIGPendingException.Pending)
121 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
126 /// This is temporal API. Currently Parent returns View but Container class has been introduced so 'View Parent' will be changed 'Container Parent' later soon, then this will be removed
128 /// <since_tizen> 3 </since_tizen>
129 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
130 public Container GetContainerParent()
132 return this.GetParent();
135 internal bool IsTopLevelView()
137 if(GetContainerParent() is Layer)
145 /// you can override it to clean-up your own resources.
147 /// <param name="type">DisposeTypes</param>
148 /// <since_tizen> 3 </since_tizen>
149 protected override void Dispose(DisposeTypes type)
156 if(type == DisposeTypes.Explicit)
159 //Release your own managed resources here.
160 //You should release all of your own disposable objects here.
163 //Release your own unmanaged resources here.
164 //You should not access any managed member here except static instance.
165 //because the execution order of Finalizes is non-deterministic.
167 DisConnectFromSignals();
169 if (swigCPtr.Handle != global::System.IntPtr.Zero)
174 NDalicPINVOKE.delete_View(swigCPtr);
176 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
182 private void DisConnectFromSignals()
184 // Save current CPtr.
185 global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
187 // Use BaseHandle CPtr as current might have been deleted already in derived classes.
188 swigCPtr = GetBaseHandleCPtrHandleRef;
190 if (_onRelayoutEventCallback != null)
192 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
195 if (_offWindowEventCallback != null)
197 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
200 if (_onWindowEventCallback != null)
202 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
205 if (_wheelEventCallback != null)
207 this.WheelEventSignal().Disconnect(_wheelEventCallback);
210 if (_hoverEventCallback != null)
212 this.HoveredSignal().Disconnect(_hoverEventCallback);
215 if (_touchDataCallback != null)
217 this.TouchSignal().Disconnect(_touchDataCallback);
220 if (_ResourcesLoadedCallback != null)
222 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
225 if (_offWindowEventCallback != null)
227 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
230 if (_onWindowEventCallback != null)
232 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
235 if (_wheelEventCallback != null)
237 this.WheelEventSignal().Disconnect(_wheelEventCallback);
240 if (_hoverEventCallback != null)
242 this.HoveredSignal().Disconnect(_hoverEventCallback);
245 if (_touchDataCallback != null)
247 this.TouchSignal().Disconnect(_touchDataCallback);
250 if (_onRelayoutEventCallback != null)
252 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
255 if (_keyCallback != null)
257 this.KeyEventSignal().Disconnect(_keyCallback);
260 if (_keyInputFocusLostCallback != null)
262 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
265 if (_keyInputFocusGainedCallback != null)
267 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
270 // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
271 // Restore current CPtr.
272 swigCPtr = currentCPtr;
275 private EventHandler _keyInputFocusGainedEventHandler;
276 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
277 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
278 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
281 /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
282 /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.<br />
284 /// <since_tizen> 3 </since_tizen>
285 public event EventHandler FocusGained
289 if (_keyInputFocusGainedEventHandler == null)
291 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
292 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
295 _keyInputFocusGainedEventHandler += value;
300 _keyInputFocusGainedEventHandler -= value;
302 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
304 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
309 private void OnKeyInputFocusGained(IntPtr view)
311 if (_keyInputFocusGainedEventHandler != null)
313 _keyInputFocusGainedEventHandler(this, null);
318 private EventHandler _keyInputFocusLostEventHandler;
319 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
320 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
321 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
324 /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
325 /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.<br />
327 /// <since_tizen> 3 </since_tizen>
328 public event EventHandler FocusLost
332 if (_keyInputFocusLostEventHandler == null)
334 _keyInputFocusLostCallback = OnKeyInputFocusLost;
335 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
338 _keyInputFocusLostEventHandler += value;
343 _keyInputFocusLostEventHandler -= value;
345 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
347 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
352 private void OnKeyInputFocusLost(IntPtr view)
354 if (_keyInputFocusLostEventHandler != null)
356 _keyInputFocusLostEventHandler(this, null);
361 /// Event arguments that passed via the KeyEvent signal.
363 public class KeyEventArgs : EventArgs
368 /// Key - is the key sent to the view.
370 /// <since_tizen> 3 </since_tizen>
384 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
385 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
386 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
387 private KeyCallbackType _keyCallback;
390 /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
391 /// The KeyPressed signal is emitted when the key event is received.<br />
393 /// <since_tizen> 4 </since_tizen>
394 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
398 if (_keyEventHandler == null)
400 _keyCallback = OnKeyEvent;
401 this.KeyEventSignal().Connect(_keyCallback);
404 _keyEventHandler += value;
409 _keyEventHandler -= value;
411 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
413 this.KeyEventSignal().Disconnect(_keyCallback);
418 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
420 KeyEventArgs e = new KeyEventArgs();
424 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
426 if (_keyEventHandler != null)
428 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
430 // Oring the result of each callback.
431 foreach ( EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList )
433 result |= del( this, e );
440 private EventHandler _onRelayoutEventHandler;
441 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
442 private delegate void OnRelayoutEventCallbackType(IntPtr control);
443 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
446 /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.<br />
447 /// The OnRelayout signal is emitted after the size has been set on the view during relayout.<br />
449 /// <since_tizen> 3 </since_tizen>
450 public event EventHandler Relayout
454 if (_onRelayoutEventHandler == null)
456 _onRelayoutEventCallback = OnRelayout;
457 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
460 _onRelayoutEventHandler += value;
465 _onRelayoutEventHandler -= value;
467 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
469 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
475 // Callback for View OnRelayout signal
476 private void OnRelayout(IntPtr data)
478 if (_onRelayoutEventHandler != null)
480 _onRelayoutEventHandler(this, null);
485 /// Event arguments that passed via the touch signal.
487 public class TouchEventArgs : EventArgs
489 private Touch _touch;
492 /// Touch - contains the information of touch points.
494 /// <since_tizen> 3 </since_tizen>
508 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
509 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
510 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
511 private TouchDataCallbackType _touchDataCallback;
514 /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
515 /// The touched signal is emitted when the touch input is received.<br />
517 /// <since_tizen> 4 </since_tizen>
518 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> TouchEvent
522 if (_touchDataEventHandler == null)
524 _touchDataCallback = OnTouch;
525 this.TouchSignal().Connect(_touchDataCallback);
528 _touchDataEventHandler += value;
533 _touchDataEventHandler -= value;
535 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
537 this.TouchSignal().Disconnect(_touchDataCallback);
543 // Callback for View TouchSignal
544 private bool OnTouch(IntPtr view, IntPtr touchData)
546 TouchEventArgs e = new TouchEventArgs();
548 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
550 if (_touchDataEventHandler != null)
552 return _touchDataEventHandler(this, e);
559 /// Event arguments that passed via the hover signal.
561 public class HoverEventArgs : EventArgs
563 private Hover _hover;
566 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
568 /// <since_tizen> 3 </since_tizen>
582 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
583 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
584 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
585 private HoverEventCallbackType _hoverEventCallback;
588 /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
589 /// The hovered signal is emitted when the hover input is received.<br />
591 /// <since_tizen> 4 </since_tizen>
592 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> HoverEvent
596 if (_hoverEventHandler == null)
598 _hoverEventCallback = OnHoverEvent;
599 this.HoveredSignal().Connect(_hoverEventCallback);
602 _hoverEventHandler += value;
607 _hoverEventHandler -= value;
609 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
611 this.HoveredSignal().Disconnect(_hoverEventCallback);
617 // Callback for View Hover signal
618 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
620 HoverEventArgs e = new HoverEventArgs();
622 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
624 if (_hoverEventHandler != null)
626 return _hoverEventHandler(this, e);
633 /// Event arguments that passed via the wheel signal.
635 public class WheelEventArgs : EventArgs
637 private Wheel _wheel;
640 /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
642 /// <since_tizen> 3 </since_tizen>
656 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
657 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
658 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
659 private WheelEventCallbackType _wheelEventCallback;
662 /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
663 /// The WheelMoved signal is emitted when the wheel event is received.<br />
665 /// <since_tizen> 4 </since_tizen>
666 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelEvent
670 if (_wheelEventHandler == null)
672 _wheelEventCallback = OnWheelEvent;
673 this.WheelEventSignal().Connect(_wheelEventCallback);
676 _wheelEventHandler += value;
681 _wheelEventHandler -= value;
683 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
685 this.WheelEventSignal().Disconnect(_wheelEventCallback);
691 // Callback for View Wheel signal
692 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
694 WheelEventArgs e = new WheelEventArgs();
696 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
698 if (_wheelEventHandler != null)
700 return _wheelEventHandler(this, e);
706 private EventHandler _onWindowEventHandler;
707 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
708 private delegate void OnWindowEventCallbackType(IntPtr control);
709 private OnWindowEventCallbackType _onWindowEventCallback;
712 /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.<br />
713 /// The OnWindow signal is emitted after the view has been connected to the window.<br />
715 /// <since_tizen> 3 </since_tizen>
716 public event EventHandler AddedToWindow
720 if (_onWindowEventHandler == null)
722 _onWindowEventCallback = OnWindow;
723 this.OnWindowSignal().Connect(_onWindowEventCallback);
726 _onWindowEventHandler += value;
731 _onWindowEventHandler -= value;
733 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
735 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
740 // Callback for View OnWindow signal
741 private void OnWindow(IntPtr data)
743 if (_onWindowEventHandler != null)
745 _onWindowEventHandler(this, null);
750 private EventHandler _offWindowEventHandler;
751 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
752 private delegate void OffWindowEventCallbackType(IntPtr control);
753 private OffWindowEventCallbackType _offWindowEventCallback;
756 /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.<br />
757 /// OffWindow signal is emitted after the view has been disconnected from the window.<br />
759 /// <since_tizen> 3 </since_tizen>
760 public event EventHandler RemovedFromWindow
764 if (_offWindowEventHandler == null)
766 _offWindowEventCallback = OffWindow;
767 this.OffWindowSignal().Connect(_offWindowEventCallback);
770 _offWindowEventHandler += value;
775 _offWindowEventHandler -= value;
777 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
779 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
784 // Callback for View OffWindow signal
785 private void OffWindow(IntPtr data)
787 if (_offWindowEventHandler != null)
789 _offWindowEventHandler(this, null);
794 /// Event arguments of visibility changed.
796 public class VisibilityChangedEventArgs : EventArgs
799 private bool _visibility;
800 private VisibilityChangeType _type;
803 /// The view, or child of view, whose visibility has changed.
805 /// <since_tizen> 3 </since_tizen>
819 /// Whether the view is now visible or not.
821 /// <since_tizen> 3 </since_tizen>
822 public bool Visibility
835 /// Whether the view's visible property has changed or a parent's.
837 /// <since_tizen> 3 </since_tizen>
838 public VisibilityChangeType Type
851 private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
852 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
853 private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
854 private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
857 /// An event for visibility change which can be used to subscribe or unsubscribe the event handler.<br />
858 /// This signal is emitted when the visible property of this or a parent view is changed.<br />
860 /// <since_tizen> 3 </since_tizen>
861 public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
865 if (_visibilityChangedEventHandler == null)
867 _visibilityChangedEventCallback = OnVisibilityChanged;
868 VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
871 _visibilityChangedEventHandler += value;
876 _visibilityChangedEventHandler -= value;
878 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
880 VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
885 // Callback for View visibility change signal
886 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
888 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
891 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
893 e.Visibility = visibility;
896 if (_visibilityChangedEventHandler != null)
898 _visibilityChangedEventHandler(this, e);
904 /// Event arguments of layout direction changed.
906 public class LayoutDirectionChangedEventArgs : EventArgs
909 private ViewLayoutDirectionType _type;
912 /// The view, or child of view, whose layout direction has changed.
914 /// <since_tizen> 4 </since_tizen>
928 /// Whether the view's layout direction property has changed or a parent's.
930 /// <since_tizen> 4 </since_tizen>
931 public ViewLayoutDirectionType Type
944 private EventHandler<LayoutDirectionChangedEventArgs> _layoutDirectionChangedEventHandler;
945 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
946 private delegate void LayoutDirectionChangedEventCallbackType(IntPtr data, ViewLayoutDirectionType type);
947 private LayoutDirectionChangedEventCallbackType _layoutDirectionChangedEventCallback;
950 /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.<br />
951 /// This signal is emitted when the layout direction property of this or a parent view is changed.<br />
953 /// <since_tizen> 4 </since_tizen>
954 public event EventHandler<LayoutDirectionChangedEventArgs> LayoutDirectionChanged
958 if (_layoutDirectionChangedEventHandler == null)
960 _layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
961 LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
964 _layoutDirectionChangedEventHandler += value;
969 _layoutDirectionChangedEventHandler -= value;
971 if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
973 LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
978 // Callback for View layout direction change signal
979 private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
981 LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
984 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
988 if (_layoutDirectionChangedEventHandler != null)
990 _layoutDirectionChangedEventHandler(this, e);
1000 // Resource Ready Signal
1002 private EventHandler _resourcesLoadedEventHandler;
1003 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1004 private delegate void ResourcesLoadedCallbackType(IntPtr control);
1005 private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
1008 /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1009 /// This signal is emitted after all resources required by a view are loaded and ready.<br />
1011 /// <since_tizen> 4 </since_tizen>
1012 public event EventHandler ResourcesLoaded
1016 if (_resourcesLoadedEventHandler == null)
1018 _ResourcesLoadedCallback = OnResourcesLoaded;
1019 this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
1022 _resourcesLoadedEventHandler += value;
1027 _resourcesLoadedEventHandler -= value;
1029 if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1031 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
1036 private void OnResourcesLoaded(IntPtr view)
1038 if (_resourcesLoadedEventHandler != null)
1040 _resourcesLoadedEventHandler(this, null);
1044 internal IntPtr GetPtrfromView()
1046 return (IntPtr)swigCPtr;
1049 internal class Property
1051 internal static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
1052 internal static readonly int STATE = NDalicManualPINVOKE.View_Property_STATE_get();
1053 internal static readonly int SUB_STATE = NDalicManualPINVOKE.View_Property_SUB_STATE_get();
1054 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
1055 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
1056 internal static readonly int UP_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
1057 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
1058 internal static readonly int STYLE_NAME = NDalicPINVOKE.View_Property_STYLE_NAME_get();
1059 internal static readonly int BACKGROUND = NDalicPINVOKE.View_Property_BACKGROUND_get();
1060 internal static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
1061 internal static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
1062 internal static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
1063 internal static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
1064 internal static readonly int PARENT_ORIGIN = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_get();
1065 internal static readonly int PARENT_ORIGIN_X = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_X_get();
1066 internal static readonly int PARENT_ORIGIN_Y = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Y_get();
1067 internal static readonly int PARENT_ORIGIN_Z = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Z_get();
1068 internal static readonly int ANCHOR_POINT = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_get();
1069 internal static readonly int ANCHOR_POINT_X = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_X_get();
1070 internal static readonly int ANCHOR_POINT_Y = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Y_get();
1071 internal static readonly int ANCHOR_POINT_Z = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Z_get();
1072 internal static readonly int SIZE = NDalicPINVOKE.Actor_Property_SIZE_get();
1073 internal static readonly int SIZE_WIDTH = NDalicPINVOKE.Actor_Property_SIZE_WIDTH_get();
1074 internal static readonly int SIZE_HEIGHT = NDalicPINVOKE.Actor_Property_SIZE_HEIGHT_get();
1075 internal static readonly int SIZE_DEPTH = NDalicPINVOKE.Actor_Property_SIZE_DEPTH_get();
1076 internal static readonly int POSITION = NDalicPINVOKE.Actor_Property_POSITION_get();
1077 internal static readonly int POSITION_X = NDalicPINVOKE.Actor_Property_POSITION_X_get();
1078 internal static readonly int POSITION_Y = NDalicPINVOKE.Actor_Property_POSITION_Y_get();
1079 internal static readonly int POSITION_Z = NDalicPINVOKE.Actor_Property_POSITION_Z_get();
1080 internal static readonly int WORLD_POSITION = NDalicPINVOKE.Actor_Property_WORLD_POSITION_get();
1081 internal static readonly int WORLD_POSITION_X = NDalicPINVOKE.Actor_Property_WORLD_POSITION_X_get();
1082 internal static readonly int WORLD_POSITION_Y = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Y_get();
1083 internal static readonly int WORLD_POSITION_Z = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Z_get();
1084 internal static readonly int ORIENTATION = NDalicPINVOKE.Actor_Property_ORIENTATION_get();
1085 internal static readonly int WORLD_ORIENTATION = NDalicPINVOKE.Actor_Property_WORLD_ORIENTATION_get();
1086 internal static readonly int SCALE = NDalicPINVOKE.Actor_Property_SCALE_get();
1087 internal static readonly int SCALE_X = NDalicPINVOKE.Actor_Property_SCALE_X_get();
1088 internal static readonly int SCALE_Y = NDalicPINVOKE.Actor_Property_SCALE_Y_get();
1089 internal static readonly int SCALE_Z = NDalicPINVOKE.Actor_Property_SCALE_Z_get();
1090 internal static readonly int WORLD_SCALE = NDalicPINVOKE.Actor_Property_WORLD_SCALE_get();
1091 internal static readonly int VISIBLE = NDalicPINVOKE.Actor_Property_VISIBLE_get();
1092 internal static readonly int WORLD_COLOR = NDalicPINVOKE.Actor_Property_WORLD_COLOR_get();
1093 internal static readonly int WORLD_MATRIX = NDalicPINVOKE.Actor_Property_WORLD_MATRIX_get();
1094 internal static readonly int NAME = NDalicPINVOKE.Actor_Property_NAME_get();
1095 internal static readonly int SENSITIVE = NDalicPINVOKE.Actor_Property_SENSITIVE_get();
1096 internal static readonly int LEAVE_REQUIRED = NDalicPINVOKE.Actor_Property_LEAVE_REQUIRED_get();
1097 internal static readonly int INHERIT_ORIENTATION = NDalicPINVOKE.Actor_Property_INHERIT_ORIENTATION_get();
1098 internal static readonly int INHERIT_SCALE = NDalicPINVOKE.Actor_Property_INHERIT_SCALE_get();
1099 internal static readonly int DRAW_MODE = NDalicPINVOKE.Actor_Property_DRAW_MODE_get();
1100 internal static readonly int SIZE_MODE_FACTOR = NDalicPINVOKE.Actor_Property_SIZE_MODE_FACTOR_get();
1101 internal static readonly int WIDTH_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_WIDTH_RESIZE_POLICY_get();
1102 internal static readonly int HEIGHT_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_HEIGHT_RESIZE_POLICY_get();
1103 internal static readonly int SIZE_SCALE_POLICY = NDalicPINVOKE.Actor_Property_SIZE_SCALE_POLICY_get();
1104 internal static readonly int WIDTH_FOR_HEIGHT = NDalicPINVOKE.Actor_Property_WIDTH_FOR_HEIGHT_get();
1105 internal static readonly int HEIGHT_FOR_WIDTH = NDalicPINVOKE.Actor_Property_HEIGHT_FOR_WIDTH_get();
1106 internal static readonly int PADDING = NDalicPINVOKE.Actor_Property_PADDING_get();
1107 internal static readonly int MINIMUM_SIZE = NDalicPINVOKE.Actor_Property_MINIMUM_SIZE_get();
1108 internal static readonly int MAXIMUM_SIZE = NDalicPINVOKE.Actor_Property_MAXIMUM_SIZE_get();
1109 internal static readonly int INHERIT_POSITION = NDalicPINVOKE.Actor_Property_INHERIT_POSITION_get();
1110 internal static readonly int CLIPPING_MODE = NDalicPINVOKE.Actor_Property_CLIPPING_MODE_get();
1111 internal static readonly int INHERIT_LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
1112 internal static readonly int LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_LAYOUT_DIRECTION_get();
1116 /// Describes the direction to move the focus towards.
1118 /// <since_tizen> 3 </since_tizen>
1119 public enum FocusDirection
1122 /// Move keyboard focus towards the left direction.
1124 /// <since_tizen> 3 </since_tizen>
1127 /// Move keyboard focus towards the right direction.
1129 /// <since_tizen> 3 </since_tizen>
1132 /// Move keyboard focus towards the up direction.
1134 /// <since_tizen> 3 </since_tizen>
1137 /// Move keyboard focus towards the down direction.
1139 /// <since_tizen> 3 </since_tizen>
1142 /// Move keyboard focus towards the previous page direction.
1144 /// <since_tizen> 3 </since_tizen>
1147 /// Move keyboard focus towards the next page direction.
1149 /// <since_tizen> 3 </since_tizen>
1154 /// Creates a new instance of a view.
1156 /// <since_tizen> 3 </since_tizen>
1157 public View() : this(NDalicPINVOKE.View_New(), true)
1159 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1162 internal View(View uiControl) : this(NDalicPINVOKE.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1164 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1168 /// Downcasts a handle to view handle.<br />
1169 /// If handle points to a view, the downcast produces a valid handle.<br />
1170 /// If not, the returned handle is left uninitialized.<br />
1172 /// <param name="handle">A handle to an object.</param>
1173 /// <returns>A handle to a view or an uninitialized handle.</returns>
1174 [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1175 public static View DownCast(BaseHandle handle)
1177 View ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as View;
1178 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1183 /// [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1185 /// <since_tizen> 3 </since_tizen>
1186 [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1187 public static T DownCast<T>(View view) where T : View
1189 T ret = Registry.GetManagedBaseHandleFromNativePtr(view) as T;
1197 private View ConvertIdToView(uint id)
1203 View parentView = Parent as View;
1204 view = parentView.FindChildById(id);
1209 view = Window.Instance.GetRootLayer().FindChildById(id);
1215 internal void SetKeyInputFocus()
1217 NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
1218 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1222 /// Queries whether the view has a focus.
1224 /// <returns>True if this view has a focus.</returns>
1225 /// <since_tizen> 3 </since_tizen>
1226 public bool HasFocus()
1228 bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
1229 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1233 internal void ClearKeyInputFocus()
1235 NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
1236 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1239 internal PinchGestureDetector GetPinchGestureDetector()
1241 PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
1242 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1246 internal PanGestureDetector GetPanGestureDetector()
1248 PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
1249 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1253 internal TapGestureDetector GetTapGestureDetector()
1255 TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
1256 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1260 internal LongPressGestureDetector GetLongPressGestureDetector()
1262 LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
1263 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1268 /// Sets the name of the style to be applied to the view.
1270 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
1271 /// <since_tizen> 3 </since_tizen>
1272 public void SetStyleName(string styleName)
1274 NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
1275 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1279 /// Retrieves the name of the style to be applied to the view (if any).
1281 /// <returns>A string matching a style, or an empty string.</returns>
1282 /// <since_tizen> 3 </since_tizen>
1283 public string GetStyleName()
1285 string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
1286 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1290 internal void SetBackgroundColor(Vector4 color)
1292 NDalicPINVOKE.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
1293 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1296 internal Vector4 GetBackgroundColor()
1298 Vector4 ret = new Vector4(NDalicPINVOKE.View_GetBackgroundColor(swigCPtr), true);
1299 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1303 internal void SetBackgroundImage(Image image)
1305 NDalicPINVOKE.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
1306 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1310 /// Clears the background.
1312 /// <since_tizen> 3 </since_tizen>
1313 public void ClearBackground()
1315 NDalicPINVOKE.View_ClearBackground(swigCPtr);
1316 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1319 internal ControlKeySignal KeyEventSignal()
1321 ControlKeySignal ret = new ControlKeySignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
1322 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1326 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
1328 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
1329 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1333 internal KeyInputFocusSignal KeyInputFocusLostSignal()
1335 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
1336 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1340 internal View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1342 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1345 internal enum PropertyRange
1347 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1348 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1349 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1353 /// The StyleName, type string.
1355 /// <since_tizen> 3 </since_tizen>
1356 public string StyleName
1361 GetProperty(View.Property.STYLE_NAME).Get(out temp);
1366 SetProperty(View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue(value));
1371 /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
1373 /// <since_tizen> 3 </since_tizen>
1374 public Color BackgroundColor
1378 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1380 Tizen.NUI.PropertyMap background = Background;
1382 background.Find(Visual.Property.Type)?.Get(out visualType);
1383 if (visualType == (int)Visual.Type.Color)
1385 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
1388 return backgroundColor;
1392 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1397 /// Creates an animation to animate the background color visual. If there is no
1398 /// background visual, creates one with transparent black as it's mixColor.
1400 /// <since_tizen> 4 </since_tizen>
1401 public Animation AnimateBackgroundColor( object destinationValue,
1404 AlphaFunction.BuiltinFunctions? alphaFunction = null,
1405 object initialValue = null)
1407 Tizen.NUI.PropertyMap background = Background;
1409 if( background.Empty() )
1411 // If there is no background yet, ensure there is a transparent
1413 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1414 background = Background;
1416 return AnimateColor( "background", destinationValue, startTime, endTime, alphaFunction, initialValue );
1420 /// Creates an animation to animate the mixColor of the named visual.
1422 /// <since_tizen> 4 </since_tizen>
1423 public Animation AnimateColor( string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null )
1425 Animation animation = null;
1427 PropertyMap _animator = new PropertyMap();
1428 if( alphaFunction != null )
1430 _animator.Add("alphaFunction", new PropertyValue( AlphaFunction.BuiltinToPropertyKey(alphaFunction) ) );
1433 PropertyMap _timePeriod = new PropertyMap();
1434 _timePeriod.Add( "duration", new PropertyValue((endTime-startTime)/1000.0f) );
1435 _timePeriod.Add( "delay", new PropertyValue( startTime/1000.0f ) );
1436 _animator.Add( "timePeriod", new PropertyValue( _timePeriod ) );
1438 PropertyMap _transition = new PropertyMap();
1439 _transition.Add( "animator", new PropertyValue( _animator ) );
1440 _transition.Add( "target", new PropertyValue( targetVisual ) );
1441 _transition.Add( "property", new PropertyValue( "mixColor" ) );
1443 if( initialColor != null )
1445 PropertyValue initValue = PropertyValue.CreateFromObject( initialColor );
1446 _transition.Add( "initialValue", initValue );
1449 PropertyValue destValue = PropertyValue.CreateFromObject( destinationColor );
1450 _transition.Add( "targetValue", destValue );
1451 TransitionData _transitionData = new TransitionData( _transition );
1453 animation = new Animation( NDalicManualPINVOKE.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true );
1454 if (NDalicPINVOKE.SWIGPendingException.Pending)
1455 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1461 /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
1463 /// <since_tizen> 3 </since_tizen>
1464 public string BackgroundImage
1468 string backgroundImage = "";
1470 Tizen.NUI.PropertyMap background = Background;
1472 background.Find(Visual.Property.Type)?.Get(out visualType);
1473 if (visualType == (int)Visual.Type.Image)
1475 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
1478 return backgroundImage;
1482 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1487 /// The background of view.
1489 /// <since_tizen> 3 </since_tizen>
1490 public Tizen.NUI.PropertyMap Background
1494 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1495 GetProperty( View.Property.BACKGROUND ).Get(temp);
1500 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1506 /// The current state of the view.
1508 /// <since_tizen> 3 </since_tizen>
1514 if (GetProperty(View.Property.STATE).Get(out temp) == false)
1516 NUILog.Error("State get error!");
1522 return States.Normal;
1526 return States.Focused;
1530 return States.Disabled;
1534 return States.Normal;
1540 SetProperty(View.Property.STATE, new Tizen.NUI.PropertyValue((int)value));
1545 /// The current sub state of the view.
1547 /// <since_tizen> 3 </since_tizen>
1548 public States SubState
1553 if (GetProperty(View.Property.SUB_STATE).Get(out temp) == false)
1555 NUILog.Error("subState get error!");
1560 return States.Normal;
1562 return States.Focused;
1564 return States.Disabled;
1566 return States.Normal;
1571 string valueToString = "";
1576 valueToString = "NORMAL";
1579 case States.Focused:
1581 valueToString = "FOCUSED";
1584 case States.Disabled:
1586 valueToString = "DISABLED";
1591 valueToString = "NORMAL";
1595 SetProperty(View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
1600 /// Displays a tooltip
1602 /// <since_tizen> 3 </since_tizen>
1603 public Tizen.NUI.PropertyMap Tooltip
1607 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1608 GetProperty(View.Property.TOOLTIP).Get(temp);
1613 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1618 /// Displays a tooltip as a text.
1620 /// <since_tizen> 3 </since_tizen>
1621 public string TooltipText
1625 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1629 private int LeftFocusableViewId
1634 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
1639 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1643 private int RightFocusableViewId
1648 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
1653 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1657 private int UpFocusableViewId
1662 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
1667 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1671 private int DownFocusableViewId
1676 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
1681 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1686 /// The Child property of FlexContainer.<br />
1687 /// The proportion of the free space in the container, the flex item will receive.<br />
1688 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
1690 /// <since_tizen> 3 </since_tizen>
1696 GetProperty(FlexContainer.ChildProperty.FLEX).Get(out temp);
1701 SetProperty(FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue(value));
1706 /// The Child property of FlexContainer.<br />
1707 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
1709 /// <since_tizen> 3 </since_tizen>
1710 public int AlignSelf
1715 GetProperty(FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
1720 SetProperty(FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue(value));
1725 /// The Child property of FlexContainer.<br />
1726 /// The space around the flex item.<br />
1728 /// <since_tizen> 3 </since_tizen>
1729 public Vector4 FlexMargin
1733 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1734 GetProperty(FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
1739 SetProperty(FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue(value));
1744 /// The top-left cell this child occupies, if not set, the first available cell is used.
1746 /// <since_tizen> 3 </since_tizen>
1747 public Vector2 CellIndex
1751 Vector2 temp = new Vector2(0.0f, 0.0f);
1752 GetProperty(TableView.ChildProperty.CELL_INDEX).Get(temp);
1757 SetProperty(TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue(value));
1762 /// The number of rows this child occupies, if not set, the default value is 1.
1764 /// <since_tizen> 3 </since_tizen>
1765 public float RowSpan
1770 GetProperty(TableView.ChildProperty.ROW_SPAN).Get(out temp);
1775 SetProperty(TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue(value));
1780 /// The number of columns this child occupies, if not set, the default value is 1.
1782 /// <since_tizen> 3 </since_tizen>
1783 public float ColumnSpan
1788 GetProperty(TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
1793 SetProperty(TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue(value));
1798 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
1800 /// <since_tizen> 3 </since_tizen>
1801 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
1806 if (GetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
1808 NUILog.Error("CellHorizontalAlignment get error!");
1814 return Tizen.NUI.HorizontalAlignmentType.Left;
1816 return Tizen.NUI.HorizontalAlignmentType.Center;
1818 return Tizen.NUI.HorizontalAlignmentType.Right;
1820 return Tizen.NUI.HorizontalAlignmentType.Left;
1825 string valueToString = "";
1828 case Tizen.NUI.HorizontalAlignmentType.Left:
1830 valueToString = "left";
1833 case Tizen.NUI.HorizontalAlignmentType.Center:
1835 valueToString = "center";
1838 case Tizen.NUI.HorizontalAlignmentType.Right:
1840 valueToString = "right";
1845 valueToString = "left";
1849 SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1854 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
1856 /// <since_tizen> 3 </since_tizen>
1857 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
1862 GetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
1864 NUILog.Error("CellVerticalAlignment get error!");
1870 return Tizen.NUI.VerticalAlignmentType.Top;
1872 return Tizen.NUI.VerticalAlignmentType.Center;
1874 return Tizen.NUI.VerticalAlignmentType.Bottom;
1876 return Tizen.NUI.VerticalAlignmentType.Top;
1881 string valueToString = "";
1884 case Tizen.NUI.VerticalAlignmentType.Top:
1886 valueToString = "top";
1889 case Tizen.NUI.VerticalAlignmentType.Center:
1891 valueToString = "center";
1894 case Tizen.NUI.VerticalAlignmentType.Bottom:
1896 valueToString = "bottom";
1901 valueToString = "top";
1905 SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1910 /// The left focusable view.<br />
1911 /// This will return null if not set.<br />
1912 /// This will also return null if the specified left focusable view is not on a window.<br />
1914 /// <since_tizen> 3 </since_tizen>
1915 public View LeftFocusableView
1917 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1920 if (LeftFocusableViewId >= 0)
1922 return ConvertIdToView((uint)LeftFocusableViewId);
1928 LeftFocusableViewId = (int)value.GetId();
1933 /// The right focusable view.<br />
1934 /// This will return null if not set.<br />
1935 /// This will also return null if the specified right focusable view is not on a window.<br />
1937 /// <since_tizen> 3 </since_tizen>
1938 public View RightFocusableView
1940 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1943 if (RightFocusableViewId >= 0)
1945 return ConvertIdToView((uint)RightFocusableViewId);
1951 RightFocusableViewId = (int)value.GetId();
1956 /// The up focusable view.<br />
1957 /// This will return null if not set.<br />
1958 /// This will also return null if the specified up focusable view is not on a window.<br />
1960 /// <since_tizen> 3 </since_tizen>
1961 public View UpFocusableView
1963 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1966 if (UpFocusableViewId >= 0)
1968 return ConvertIdToView((uint)UpFocusableViewId);
1974 UpFocusableViewId = (int)value.GetId();
1979 /// The down focusable view.<br />
1980 /// This will return null if not set.<br />
1981 /// This will also return null if the specified down focusable view is not on a window.<br />
1983 /// <since_tizen> 3 </since_tizen>
1984 public View DownFocusableView
1986 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1989 if (DownFocusableViewId >= 0)
1991 return ConvertIdToView((uint)DownFocusableViewId);
1997 DownFocusableViewId = (int)value.GetId();
2002 /// Whether the view should be focusable by keyboard navigation.
2004 /// <since_tizen> 3 </since_tizen>
2005 public bool Focusable
2009 SetKeyboardFocusable(value);
2013 return IsKeyboardFocusable();
2018 /// Enumeration for describing the states of the view.
2020 /// <since_tizen> 3 </since_tizen>
2024 /// The normal state.
2028 /// The focused state.
2032 /// The disabled state.
2038 /// Retrieves the position of the view.<br />
2039 /// The coordinates are relative to the view's parent.<br />
2041 /// <since_tizen> 3 </since_tizen>
2042 public Position CurrentPosition
2046 return GetCurrentPosition();
2051 /// Sets the size of a view for the width and the height.<br />
2052 /// Geometry can be scaled to fit within this area.<br />
2053 /// This does not interfere with the view's scale factor.<br />
2054 /// The views default depth is the minimum of width and height.<br />
2056 /// <since_tizen> 3 </since_tizen>
2057 public Size2D Size2D
2061 Size temp = new Size(0.0f, 0.0f, 0.0f);
2062 GetProperty(View.Property.SIZE).Get(temp);
2063 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
2068 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size(value)));
2073 /// Retrieves the size of the view.<br />
2074 /// The coordinates are relative to the view's parent.<br />
2076 /// <since_tizen> 3 </since_tizen>
2077 public Size2D CurrentSize
2081 return GetCurrentSize();
2086 /// [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
2088 /// <since_tizen> 3 </since_tizen>
2089 [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
2099 /// Retrieves and sets the view's opacity.<br />
2101 /// <since_tizen> 3 </since_tizen>
2102 public float Opacity
2107 GetProperty(View.Property.OPACITY).Get(out temp);
2112 SetProperty(View.Property.OPACITY, new Tizen.NUI.PropertyValue(value));
2117 /// Sets the position of the view for X and Y.<br />
2118 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2119 /// If the position inheritance is disabled, sets the world position.<br />
2121 /// <since_tizen> 3 </since_tizen>
2122 public Position2D Position2D
2126 Position temp = new Position(0.0f, 0.0f, 0.0f);
2127 GetProperty(View.Property.POSITION).Get(temp);
2128 return new Position2D(temp);
2132 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position(value)));
2137 /// Retrieves the screen postion of the view.<br />
2139 /// <since_tizen> 3 </since_tizen>
2140 public Vector2 ScreenPosition
2144 Vector2 temp = new Vector2(0.0f, 0.0f);
2145 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2151 /// Determines whether the pivot point should be used to determine the position of the view.
2152 /// This is true by default.
2154 /// <remarks>If false, then the top-left of the view is used for the position.
2155 /// Setting this to false will allow scaling or rotation around the anchor-point without affecting the view's position.
2157 /// <since_tizen> 4 </since_tizen>
2158 public bool PositionUsesPivotPoint
2163 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2168 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2173 /// [Obsolete("Please do not use! this will be deprecated")]
2175 /// <since_tizen> 3 </since_tizen>
2176 [Obsolete("Please do not use! this will be deprecated")]
2177 public bool PositionUsesAnchorPoint
2182 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2187 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2191 internal bool FocusState
2195 return IsKeyboardFocusable();
2199 SetKeyboardFocusable(value);
2204 /// Queries whether the view is connected to the stage.<br />
2205 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2207 /// <since_tizen> 3 </since_tizen>
2208 public bool IsOnWindow
2217 /// Gets the depth in the hierarchy for the view.
2219 /// <since_tizen> 3 </since_tizen>
2220 public int HierarchyDepth
2224 return GetHierarchyDepth();
2229 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2232 /// Note the initial value is 0.
2233 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2234 /// The values set by this property will likely change.
2236 /// <since_tizen> 3 </since_tizen>
2237 public int SiblingOrder
2242 GetProperty(View.Property.SIBLING_ORDER).Get(out temp);
2247 SetProperty(View.Property.SIBLING_ORDER, new Tizen.NUI.PropertyValue(value));
2252 /// Returns the natural size of the view.
2255 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2257 [Obsolete("Please do not use! this will be deprecated, please use NaturalSize2D instead")]
2258 public Vector3 NaturalSize
2262 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2263 if (NDalicPINVOKE.SWIGPendingException.Pending)
2264 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2270 /// Returns the natural size (Size2D) of the view.
2273 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2275 /// <since_tizen> 4 </since_tizen>
2276 public Size2D NaturalSize2D
2280 Vector3 temp = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2281 if (NDalicPINVOKE.SWIGPendingException.Pending)
2282 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2284 return new Size2D((int)temp.Width, (int)temp.Height);
2292 /// This is an asynchronous method.
2294 /// <since_tizen> 3 </since_tizen>
2304 /// This is an asynchronous method.
2305 /// If the view is hidden, then the view and its children will not be rendered.
2306 /// 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.
2308 /// <since_tizen> 3 </since_tizen>
2314 internal void Raise()
2316 NDalicPINVOKE.Raise(swigCPtr);
2317 if (NDalicPINVOKE.SWIGPendingException.Pending)
2318 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2321 internal void Lower()
2323 NDalicPINVOKE.Lower(swigCPtr);
2324 if (NDalicPINVOKE.SWIGPendingException.Pending)
2325 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2329 /// Raises the view above all other views.
2332 /// Sibling order of views within the parent will be updated automatically.
2333 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
2335 /// <since_tizen> 3 </since_tizen>
2336 public void RaiseToTop()
2338 NDalicPINVOKE.RaiseToTop(swigCPtr);
2339 if (NDalicPINVOKE.SWIGPendingException.Pending)
2340 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2344 /// Lowers the view to the bottom of all views.
2347 /// The sibling order of views within the parent will be updated automatically.
2348 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2350 /// <since_tizen> 3 </since_tizen>
2351 public void LowerToBottom()
2353 NDalicPINVOKE.LowerToBottom(swigCPtr);
2354 if (NDalicPINVOKE.SWIGPendingException.Pending)
2355 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2359 /// Queries if all resources required by a view are loaded and ready.
2361 /// <remarks>Most resources are only loaded when the control is placed on the stage.
2363 /// <since_tizen> 4 </since_tizen>
2364 public bool IsResourceReady()
2366 bool ret = NDalicPINVOKE.IsResourceReady(swigCPtr);
2367 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2372 /// Raises the view to above the target view.
2374 /// <remarks>The sibling order of views within the parent will be updated automatically.
2375 /// Views on the level above the target view will still be shown above this view.
2376 /// Raising this view above views with the same sibling order as each other will raise this view above them.
2377 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2379 /// <param name="target">Will be raised above this view.</param>
2380 internal void RaiseAbove(View target)
2382 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
2383 if (NDalicPINVOKE.SWIGPendingException.Pending)
2384 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2388 /// Lowers the view to below the target view.
2390 /// <remarks>The sibling order of views within the parent will be updated automatically.
2391 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
2392 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2394 /// <param name="target">Will be lowered below this view.</param>
2395 internal void LowerBelow(View target)
2397 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
2398 if (NDalicPINVOKE.SWIGPendingException.Pending)
2399 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2402 internal string GetName()
2404 string ret = NDalicPINVOKE.Actor_GetName(swigCPtr);
2405 if (NDalicPINVOKE.SWIGPendingException.Pending)
2406 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2410 internal void SetName(string name)
2412 NDalicPINVOKE.Actor_SetName(swigCPtr, name);
2413 if (NDalicPINVOKE.SWIGPendingException.Pending)
2414 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2417 internal uint GetId()
2419 uint ret = NDalicPINVOKE.Actor_GetId(swigCPtr);
2420 if (NDalicPINVOKE.SWIGPendingException.Pending)
2421 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2425 internal bool IsRoot()
2427 bool ret = NDalicPINVOKE.Actor_IsRoot(swigCPtr);
2428 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2432 internal bool OnWindow()
2434 bool ret = NDalicPINVOKE.Actor_OnStage(swigCPtr);
2435 if (NDalicPINVOKE.SWIGPendingException.Pending)
2436 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2440 internal Layer GetLayer()
2442 IntPtr cPtr = NDalicPINVOKE.Actor_GetLayer(swigCPtr);
2443 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Layer;
2445 if (NDalicPINVOKE.SWIGPendingException.Pending)
2446 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2451 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
2453 /// <pre>The (child) view has been initialized. </pre>
2454 /// <since_tizen> 4 </since_tizen>
2455 public void Unparent()
2457 NDalicPINVOKE.Actor_Unparent(swigCPtr);
2458 if (NDalicPINVOKE.SWIGPendingException.Pending)
2459 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2463 /// Search through this view's hierarchy for a view with the given name.
2464 /// The view itself is also considered in the search.
2466 /// <pre>The view has been initialized.</pre>
2467 /// <param name="viewName">The name of the view to find.</param>
2468 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
2469 /// <since_tizen> 3 </since_tizen>
2470 public View FindChildByName(string viewName)
2472 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildByName(swigCPtr, viewName);
2474 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2476 if (NDalicPINVOKE.SWIGPendingException.Pending)
2477 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2481 internal View FindChildById(uint id)
2483 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildById(swigCPtr, id);
2485 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2487 if (NDalicPINVOKE.SWIGPendingException.Pending)
2488 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2492 internal void SetParentOrigin(Vector3 origin)
2494 NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
2495 if (NDalicPINVOKE.SWIGPendingException.Pending)
2496 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2499 internal Vector3 GetCurrentParentOrigin()
2501 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentParentOrigin(swigCPtr), true);
2502 if (NDalicPINVOKE.SWIGPendingException.Pending)
2503 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2507 internal void SetAnchorPoint(Vector3 anchorPoint)
2509 NDalicPINVOKE.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
2510 if (NDalicPINVOKE.SWIGPendingException.Pending)
2511 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2514 internal Vector3 GetCurrentAnchorPoint()
2516 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentAnchorPoint(swigCPtr), true);
2517 if (NDalicPINVOKE.SWIGPendingException.Pending)
2518 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2522 internal void SetSize(float width, float height)
2524 NDalicPINVOKE.Actor_SetSize__SWIG_0(swigCPtr, width, height);
2525 if (NDalicPINVOKE.SWIGPendingException.Pending)
2526 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2529 internal void SetSize(float width, float height, float depth)
2531 NDalicPINVOKE.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
2532 if (NDalicPINVOKE.SWIGPendingException.Pending)
2533 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2536 internal void SetSize(Vector2 size)
2538 NDalicPINVOKE.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
2539 if (NDalicPINVOKE.SWIGPendingException.Pending)
2540 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2543 internal void SetSize(Vector3 size)
2545 NDalicPINVOKE.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
2546 if (NDalicPINVOKE.SWIGPendingException.Pending)
2547 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2550 internal Vector3 GetTargetSize()
2552 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetTargetSize(swigCPtr), true);
2553 if (NDalicPINVOKE.SWIGPendingException.Pending)
2554 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2558 internal Size2D GetCurrentSize()
2560 Size ret = new Size(NDalicPINVOKE.Actor_GetCurrentSize(swigCPtr), true);
2561 if (NDalicPINVOKE.SWIGPendingException.Pending)
2562 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2563 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
2567 internal Vector3 GetNaturalSize()
2569 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2570 if (NDalicPINVOKE.SWIGPendingException.Pending)
2571 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2575 internal void SetPosition(float x, float y)
2577 NDalicPINVOKE.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
2578 if (NDalicPINVOKE.SWIGPendingException.Pending)
2579 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2582 internal void SetPosition(float x, float y, float z)
2584 NDalicPINVOKE.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
2585 if (NDalicPINVOKE.SWIGPendingException.Pending)
2586 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2589 internal void SetPosition(Vector3 position)
2591 NDalicPINVOKE.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
2592 if (NDalicPINVOKE.SWIGPendingException.Pending)
2593 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2596 internal void SetX(float x)
2598 NDalicPINVOKE.Actor_SetX(swigCPtr, x);
2599 if (NDalicPINVOKE.SWIGPendingException.Pending)
2600 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2603 internal void SetY(float y)
2605 NDalicPINVOKE.Actor_SetY(swigCPtr, y);
2606 if (NDalicPINVOKE.SWIGPendingException.Pending)
2607 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2610 internal void SetZ(float z)
2612 NDalicPINVOKE.Actor_SetZ(swigCPtr, z);
2613 if (NDalicPINVOKE.SWIGPendingException.Pending)
2614 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2617 internal void TranslateBy(Vector3 distance)
2619 NDalicPINVOKE.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
2620 if (NDalicPINVOKE.SWIGPendingException.Pending)
2621 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2624 internal Position GetCurrentPosition()
2626 Position ret = new Position(NDalicPINVOKE.Actor_GetCurrentPosition(swigCPtr), true);
2627 if (NDalicPINVOKE.SWIGPendingException.Pending)
2628 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2632 internal Vector3 GetCurrentWorldPosition()
2634 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldPosition(swigCPtr), true);
2635 if (NDalicPINVOKE.SWIGPendingException.Pending)
2636 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2640 internal void SetInheritPosition(bool inherit)
2642 NDalicPINVOKE.Actor_SetInheritPosition(swigCPtr, inherit);
2643 if (NDalicPINVOKE.SWIGPendingException.Pending)
2644 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2647 internal bool IsPositionInherited()
2649 bool ret = NDalicPINVOKE.Actor_IsPositionInherited(swigCPtr);
2650 if (NDalicPINVOKE.SWIGPendingException.Pending)
2651 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2655 internal void SetOrientation(Degree angle, Vector3 axis)
2657 NDalicPINVOKE.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2658 if (NDalicPINVOKE.SWIGPendingException.Pending)
2659 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2662 internal void SetOrientation(Radian angle, Vector3 axis)
2664 NDalicPINVOKE.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2665 if (NDalicPINVOKE.SWIGPendingException.Pending)
2666 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2669 internal void SetOrientation(Rotation orientation)
2671 NDalicPINVOKE.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
2672 if (NDalicPINVOKE.SWIGPendingException.Pending)
2673 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2676 internal void RotateBy(Degree angle, Vector3 axis)
2678 NDalicPINVOKE.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2679 if (NDalicPINVOKE.SWIGPendingException.Pending)
2680 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2683 internal void RotateBy(Radian angle, Vector3 axis)
2685 NDalicPINVOKE.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2686 if (NDalicPINVOKE.SWIGPendingException.Pending)
2687 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2690 internal void RotateBy(Rotation relativeRotation)
2692 NDalicPINVOKE.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
2693 if (NDalicPINVOKE.SWIGPendingException.Pending)
2694 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2697 internal Rotation GetCurrentOrientation()
2699 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentOrientation(swigCPtr), true);
2700 if (NDalicPINVOKE.SWIGPendingException.Pending)
2701 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2705 internal void SetInheritOrientation(bool inherit)
2707 NDalicPINVOKE.Actor_SetInheritOrientation(swigCPtr, inherit);
2708 if (NDalicPINVOKE.SWIGPendingException.Pending)
2709 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2712 internal bool IsOrientationInherited()
2714 bool ret = NDalicPINVOKE.Actor_IsOrientationInherited(swigCPtr);
2715 if (NDalicPINVOKE.SWIGPendingException.Pending)
2716 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2720 internal Rotation GetCurrentWorldOrientation()
2722 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentWorldOrientation(swigCPtr), true);
2723 if (NDalicPINVOKE.SWIGPendingException.Pending)
2724 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2728 internal void SetScale(float scale)
2730 NDalicPINVOKE.Actor_SetScale__SWIG_0(swigCPtr, scale);
2731 if (NDalicPINVOKE.SWIGPendingException.Pending)
2732 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2735 internal void SetScale(float scaleX, float scaleY, float scaleZ)
2737 NDalicPINVOKE.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
2738 if (NDalicPINVOKE.SWIGPendingException.Pending)
2739 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2742 internal void SetScale(Vector3 scale)
2744 NDalicPINVOKE.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
2745 if (NDalicPINVOKE.SWIGPendingException.Pending)
2746 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2749 internal void ScaleBy(Vector3 relativeScale)
2751 NDalicPINVOKE.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
2752 if (NDalicPINVOKE.SWIGPendingException.Pending)
2753 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2756 internal Vector3 GetCurrentScale()
2758 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentScale(swigCPtr), true);
2759 if (NDalicPINVOKE.SWIGPendingException.Pending)
2760 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2764 internal Vector3 GetCurrentWorldScale()
2766 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldScale(swigCPtr), true);
2767 if (NDalicPINVOKE.SWIGPendingException.Pending)
2768 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2772 internal void SetInheritScale(bool inherit)
2774 NDalicPINVOKE.Actor_SetInheritScale(swigCPtr, inherit);
2775 if (NDalicPINVOKE.SWIGPendingException.Pending)
2776 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2779 internal bool IsScaleInherited()
2781 bool ret = NDalicPINVOKE.Actor_IsScaleInherited(swigCPtr);
2782 if (NDalicPINVOKE.SWIGPendingException.Pending)
2783 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2787 internal Matrix GetCurrentWorldMatrix()
2789 Matrix ret = new Matrix(NDalicPINVOKE.Actor_GetCurrentWorldMatrix(swigCPtr), true);
2790 if (NDalicPINVOKE.SWIGPendingException.Pending)
2791 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2795 internal void SetVisible(bool visible)
2797 NDalicPINVOKE.Actor_SetVisible(swigCPtr, visible);
2798 if (NDalicPINVOKE.SWIGPendingException.Pending)
2799 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2802 internal bool IsVisible()
2804 bool ret = NDalicPINVOKE.Actor_IsVisible(swigCPtr);
2805 if (NDalicPINVOKE.SWIGPendingException.Pending)
2806 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2810 internal void SetOpacity(float opacity)
2812 NDalicPINVOKE.Actor_SetOpacity(swigCPtr, opacity);
2813 if (NDalicPINVOKE.SWIGPendingException.Pending)
2814 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2817 internal float GetCurrentOpacity()
2819 float ret = NDalicPINVOKE.Actor_GetCurrentOpacity(swigCPtr);
2820 if (NDalicPINVOKE.SWIGPendingException.Pending)
2821 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2825 internal void SetColor(Vector4 color)
2827 NDalicPINVOKE.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
2828 if (NDalicPINVOKE.SWIGPendingException.Pending)
2829 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2832 internal Vector4 GetCurrentColor()
2834 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentColor(swigCPtr), true);
2835 if (NDalicPINVOKE.SWIGPendingException.Pending)
2836 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2840 internal void SetColorMode(ColorMode colorMode)
2842 NDalicPINVOKE.Actor_SetColorMode(swigCPtr, (int)colorMode);
2843 if (NDalicPINVOKE.SWIGPendingException.Pending)
2844 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2847 internal ColorMode GetColorMode()
2849 ColorMode ret = (ColorMode)NDalicPINVOKE.Actor_GetColorMode(swigCPtr);
2850 if (NDalicPINVOKE.SWIGPendingException.Pending)
2851 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2855 internal Vector4 GetCurrentWorldColor()
2857 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentWorldColor(swigCPtr), true);
2858 if (NDalicPINVOKE.SWIGPendingException.Pending)
2859 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2863 internal void SetDrawMode(DrawModeType drawMode)
2865 NDalicPINVOKE.Actor_SetDrawMode(swigCPtr, (int)drawMode);
2866 if (NDalicPINVOKE.SWIGPendingException.Pending)
2867 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2870 internal DrawModeType GetDrawMode()
2872 DrawModeType ret = (DrawModeType)NDalicPINVOKE.Actor_GetDrawMode(swigCPtr);
2873 if (NDalicPINVOKE.SWIGPendingException.Pending)
2874 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2879 /// Converts screen coordinates into the view's coordinate system using the default camera.
2881 /// <pre>The view has been initialized.</pre>
2882 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
2883 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
2884 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
2885 /// <param name="screenX">The screen X-coordinate.</param>
2886 /// <param name="screenY">The screen Y-coordinate.</param>
2887 /// <returns>True if the conversion succeeded.</returns>
2888 /// <since_tizen> 3 </since_tizen>
2889 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
2891 bool ret = NDalicPINVOKE.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
2892 if (NDalicPINVOKE.SWIGPendingException.Pending)
2893 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2897 internal void SetKeyboardFocusable(bool focusable)
2899 NDalicPINVOKE.Actor_SetKeyboardFocusable(swigCPtr, focusable);
2900 if (NDalicPINVOKE.SWIGPendingException.Pending)
2901 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2904 internal bool IsKeyboardFocusable()
2906 bool ret = NDalicPINVOKE.Actor_IsKeyboardFocusable(swigCPtr);
2907 if (NDalicPINVOKE.SWIGPendingException.Pending)
2908 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2912 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
2914 NDalicPINVOKE.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
2915 if (NDalicPINVOKE.SWIGPendingException.Pending)
2916 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2919 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
2921 ResizePolicyType ret = (ResizePolicyType)NDalicPINVOKE.Actor_GetResizePolicy(swigCPtr, (int)dimension);
2922 if (NDalicPINVOKE.SWIGPendingException.Pending)
2923 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2928 /// Sets the relative to parent size factor of the view.<br />
2929 /// This factor is only used when ResizePolicy is set to either:
2930 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
2931 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
2933 /// <pre>The view has been initialized.</pre>
2934 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
2935 /// <since_tizen> 3 </since_tizen>
2936 public void SetSizeModeFactor(Vector3 factor)
2938 NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
2939 if (NDalicPINVOKE.SWIGPendingException.Pending)
2940 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2943 internal Vector3 GetSizeModeFactor()
2945 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetSizeModeFactor(swigCPtr), true);
2946 if (NDalicPINVOKE.SWIGPendingException.Pending)
2947 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2952 /// Calculates the height of the view given a width.<br />
2953 /// The natural size is used for default calculation.<br />
2954 /// Size 0 is treated as aspect ratio 1:1.<br />
2956 /// <param name="width">The width to use.</param>
2957 /// <returns>The height based on the width.</returns>
2958 /// <since_tizen> 3 </since_tizen>
2959 public float GetHeightForWidth(float width)
2961 float ret = NDalicPINVOKE.Actor_GetHeightForWidth(swigCPtr, width);
2962 if (NDalicPINVOKE.SWIGPendingException.Pending)
2963 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2968 /// Calculates the width of the view given a height.<br />
2969 /// The natural size is used for default calculation.<br />
2970 /// Size 0 is treated as aspect ratio 1:1.<br />
2972 /// <param name="height">The height to use.</param>
2973 /// <returns>The width based on the height.</returns>
2974 /// <since_tizen> 3 </since_tizen>
2975 public float GetWidthForHeight(float height)
2977 float ret = NDalicPINVOKE.Actor_GetWidthForHeight(swigCPtr, height);
2978 if (NDalicPINVOKE.SWIGPendingException.Pending)
2979 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2984 /// Return the amount of size allocated for relayout.
2986 /// <param name="dimension">The dimension to retrieve.</param>
2987 /// <returns>Return the size.</returns>
2988 /// <since_tizen> 3 </since_tizen>
2989 public float GetRelayoutSize(DimensionType dimension)
2991 float ret = NDalicPINVOKE.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
2992 if (NDalicPINVOKE.SWIGPendingException.Pending)
2993 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2998 /// Set the padding for the view.
3000 /// <param name="padding">Padding for the view.</param>
3001 /// <since_tizen> 3 </since_tizen>
3002 public void SetPadding(PaddingType padding)
3004 NDalicPINVOKE.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
3005 if (NDalicPINVOKE.SWIGPendingException.Pending)
3006 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3010 /// Return the value of padding for the view.
3012 /// <param name="paddingOut">the value of padding for the view</param>
3013 /// <since_tizen> 3 </since_tizen>
3014 public void GetPadding(PaddingType paddingOut)
3016 NDalicPINVOKE.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
3017 if (NDalicPINVOKE.SWIGPendingException.Pending)
3018 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3021 internal void SetMinimumSize(Vector2 size)
3023 NDalicPINVOKE.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
3024 if (NDalicPINVOKE.SWIGPendingException.Pending)
3025 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3028 internal Vector2 GetMinimumSize()
3030 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMinimumSize(swigCPtr), true);
3031 if (NDalicPINVOKE.SWIGPendingException.Pending)
3032 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3036 internal void SetMaximumSize(Vector2 size)
3038 NDalicPINVOKE.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
3039 if (NDalicPINVOKE.SWIGPendingException.Pending)
3040 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3043 internal Vector2 GetMaximumSize()
3045 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMaximumSize(swigCPtr), true);
3046 if (NDalicPINVOKE.SWIGPendingException.Pending)
3047 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3051 internal int GetHierarchyDepth()
3053 int ret = NDalicPINVOKE.Actor_GetHierarchyDepth(swigCPtr);
3054 if (NDalicPINVOKE.SWIGPendingException.Pending)
3055 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3059 /// <since_tizen> 4 </since_tizen>
3060 public uint AddRenderer(Renderer renderer)
3062 uint ret = NDalicPINVOKE.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
3063 if (NDalicPINVOKE.SWIGPendingException.Pending)
3064 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3068 internal uint GetRendererCount()
3070 uint ret = NDalicPINVOKE.Actor_GetRendererCount(swigCPtr);
3071 if (NDalicPINVOKE.SWIGPendingException.Pending)
3072 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3076 /// <since_tizen> 4 </since_tizen>
3077 public Renderer GetRendererAt(uint index)
3079 IntPtr cPtr = NDalicPINVOKE.Actor_GetRendererAt(swigCPtr, index);
3080 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Renderer;
3082 if (NDalicPINVOKE.SWIGPendingException.Pending)
3083 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3087 /// <since_tizen> 4 </since_tizen>
3088 public void RemoveRenderer(Renderer renderer)
3090 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
3091 if (NDalicPINVOKE.SWIGPendingException.Pending)
3092 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3095 /// <since_tizen> 4 </since_tizen>
3096 public void RemoveRenderer(uint index)
3098 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
3099 if (NDalicPINVOKE.SWIGPendingException.Pending)
3100 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3103 internal TouchDataSignal TouchSignal()
3105 TouchDataSignal ret = new TouchDataSignal(NDalicPINVOKE.Actor_TouchSignal(swigCPtr), false);
3106 if (NDalicPINVOKE.SWIGPendingException.Pending)
3107 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3111 internal HoverSignal HoveredSignal()
3113 HoverSignal ret = new HoverSignal(NDalicPINVOKE.Actor_HoveredSignal(swigCPtr), false);
3114 if (NDalicPINVOKE.SWIGPendingException.Pending)
3115 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3119 internal WheelSignal WheelEventSignal()
3121 WheelSignal ret = new WheelSignal(NDalicPINVOKE.Actor_WheelEventSignal(swigCPtr), false);
3122 if (NDalicPINVOKE.SWIGPendingException.Pending)
3123 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3127 internal ViewSignal OnWindowSignal()
3129 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
3130 if (NDalicPINVOKE.SWIGPendingException.Pending)
3131 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3135 internal ViewSignal OffWindowSignal()
3137 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OffStageSignal(swigCPtr), false);
3138 if (NDalicPINVOKE.SWIGPendingException.Pending)
3139 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3143 internal ViewSignal OnRelayoutSignal()
3145 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnRelayoutSignal(swigCPtr), false);
3146 if (NDalicPINVOKE.SWIGPendingException.Pending)
3147 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3151 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view) {
3152 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(NDalicPINVOKE.VisibilityChangedSignal(View.getCPtr(view)), false);
3153 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3158 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view) {
3159 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(NDalicManualPINVOKE.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
3160 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3165 internal ViewSignal ResourcesLoadedSignal()
3167 ViewSignal ret = new ViewSignal(NDalicPINVOKE.ResourceReadySignal(swigCPtr), false);
3168 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3173 /// Gets or sets the origin of a view within its parent's area.<br />
3174 /// 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 />
3175 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
3176 /// A view's position is the distance between this origin and the view's anchor-point.<br />
3178 /// <pre>The view has been initialized.</pre>
3179 /// <since_tizen> 3 </since_tizen>
3180 public Position ParentOrigin
3184 Position temp = new Position(0.0f, 0.0f, 0.0f);
3185 GetProperty(View.Property.PARENT_ORIGIN).Get(temp);
3190 SetProperty(View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue(value));
3194 internal float ParentOriginX
3199 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3204 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3208 internal float ParentOriginY
3213 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3218 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3222 internal float ParentOriginZ
3227 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3232 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3237 /// Gets or sets the anchor-point of a view.<br />
3238 /// 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 />
3239 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
3240 /// A view position is the distance between its parent-origin and this anchor-point.<br />
3241 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
3242 /// <pre>The view has been initialized.</pre>
3244 /// <since_tizen> 3 </since_tizen>
3245 public Position PivotPoint
3249 Position temp = new Position(0.0f, 0.0f, 0.0f);
3250 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3255 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3259 internal float PivotPointX
3264 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3269 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3273 internal float PivotPointY
3278 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3283 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3287 internal float PivotPointZ
3292 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3297 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3302 /// Gets or sets the size width of the view.
3304 /// <since_tizen> 3 </since_tizen>
3305 public float SizeWidth
3310 GetProperty(View.Property.SIZE_WIDTH).Get(out temp);
3315 SetProperty(View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
3320 /// Gets or sets the size height of the view.
3322 /// <since_tizen> 3 </since_tizen>
3323 public float SizeHeight
3328 GetProperty(View.Property.SIZE_HEIGHT).Get(out temp);
3333 SetProperty(View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3338 /// Gets or sets the position of the view.<br />
3339 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
3340 /// If the position inheritance is disabled, sets the world position.<br />
3342 /// <since_tizen> 3 </since_tizen>
3343 public Position Position
3347 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3348 GetProperty(View.Property.POSITION).Get(temp);
3353 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(value));
3358 /// Gets or sets the position X of the view.
3360 /// <since_tizen> 3 </since_tizen>
3361 public float PositionX
3366 GetProperty(View.Property.POSITION_X).Get(out temp);
3371 SetProperty(View.Property.POSITION_X, new Tizen.NUI.PropertyValue(value));
3376 /// Gets or sets the position Y of the view.
3378 /// <since_tizen> 3 </since_tizen>
3379 public float PositionY
3384 GetProperty(View.Property.POSITION_Y).Get(out temp);
3389 SetProperty(View.Property.POSITION_Y, new Tizen.NUI.PropertyValue(value));
3394 /// Gets or sets the position Z of the view.
3396 /// <since_tizen> 3 </since_tizen>
3397 public float PositionZ
3402 GetProperty(View.Property.POSITION_Z).Get(out temp);
3407 SetProperty(View.Property.POSITION_Z, new Tizen.NUI.PropertyValue(value));
3412 /// Gets or sets the world position of the view.
3414 /// <since_tizen> 3 </since_tizen>
3415 public Vector3 WorldPosition
3419 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3420 GetProperty(View.Property.WORLD_POSITION).Get(temp);
3425 internal float WorldPositionX
3430 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3435 internal float WorldPositionY
3440 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3445 internal float WorldPositionZ
3450 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3456 /// Gets or sets the orientation of the view.<br />
3457 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
3459 /// <remarks>This is an asynchronous method.</remarks>
3460 /// <since_tizen> 3 </since_tizen>
3461 public Rotation Orientation
3465 Rotation temp = new Rotation();
3466 GetProperty(View.Property.ORIENTATION).Get(temp);
3471 SetProperty(View.Property.ORIENTATION, new Tizen.NUI.PropertyValue(value));
3476 /// Gets or sets the world orientation of the view.<br />
3478 /// <since_tizen> 3 </since_tizen>
3479 public Rotation WorldOrientation
3483 Rotation temp = new Rotation();
3484 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
3490 /// Gets or sets the scale factor applied to the view.<br />
3492 /// <since_tizen> 3 </since_tizen>
3493 public Vector3 Scale
3497 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3498 GetProperty(View.Property.SCALE).Get(temp);
3503 SetProperty(View.Property.SCALE, new Tizen.NUI.PropertyValue(value));
3508 /// Gets or sets the scale X factor applied to the view.
3510 /// <since_tizen> 3 </since_tizen>
3516 GetProperty(View.Property.SCALE_X).Get(out temp);
3521 SetProperty(View.Property.SCALE_X, new Tizen.NUI.PropertyValue(value));
3526 /// Gets or sets the scale Y factor applied to the view.
3528 /// <since_tizen> 3 </since_tizen>
3534 GetProperty(View.Property.SCALE_Y).Get(out temp);
3539 SetProperty(View.Property.SCALE_Y, new Tizen.NUI.PropertyValue(value));
3544 /// Gets or sets the scale Z factor applied to the view.
3546 /// <since_tizen> 3 </since_tizen>
3552 GetProperty(View.Property.SCALE_Z).Get(out temp);
3557 SetProperty(View.Property.SCALE_Z, new Tizen.NUI.PropertyValue(value));
3562 /// Gets the world scale of the view.
3564 /// <since_tizen> 3 </since_tizen>
3565 public Vector3 WorldScale
3569 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3570 GetProperty(View.Property.WORLD_SCALE).Get(temp);
3576 /// Retrieves the visibility flag of the view.
3579 /// If the view is not visible, then the view and its children will not be rendered.
3580 /// 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.
3582 /// <since_tizen> 3 </since_tizen>
3583 public bool Visibility
3588 GetProperty(View.Property.VISIBLE).Get(out temp);
3594 /// Gets the view's world color.
3596 /// <since_tizen> 3 </since_tizen>
3597 public Vector4 WorldColor
3601 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3602 GetProperty(View.Property.WORLD_COLOR).Get(temp);
3607 internal Matrix WorldMatrix
3611 Matrix temp = new Matrix();
3612 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3618 /// Gets or sets the view's name.
3620 /// <since_tizen> 3 </since_tizen>
3626 GetProperty(View.Property.NAME).Get(out temp);
3631 SetProperty(View.Property.NAME, new Tizen.NUI.PropertyValue(value));
3636 /// Get the number of children held by the view.
3638 /// <since_tizen> 3 </since_tizen>
3639 public new uint ChildCount
3643 return GetChildCount();
3648 /// Gets the view's ID.
3651 /// <since_tizen> 3 </since_tizen>
3661 /// Gets or sets the status of whether the view should emit touch or hover signals.
3663 /// <since_tizen> 3 </since_tizen>
3664 public bool Sensitive
3669 GetProperty(View.Property.SENSITIVE).Get(out temp);
3674 SetProperty(View.Property.SENSITIVE, new Tizen.NUI.PropertyValue(value));
3679 /// 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.
3681 /// <since_tizen> 3 </since_tizen>
3682 public bool LeaveRequired
3687 GetProperty(View.Property.LEAVE_REQUIRED).Get(out temp);
3692 SetProperty(View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue(value));
3697 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
3699 /// <since_tizen> 3 </since_tizen>
3700 public bool InheritOrientation
3705 GetProperty(View.Property.INHERIT_ORIENTATION).Get(out temp);
3710 SetProperty(View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue(value));
3715 /// Gets or sets the status of whether a child view inherits it's parent's scale.
3717 /// <since_tizen> 3 </since_tizen>
3718 public bool InheritScale
3723 GetProperty(View.Property.INHERIT_SCALE).Get(out temp);
3728 SetProperty(View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue(value));
3733 /// Gets or sets the status of how the view and its children should be drawn.<br />
3734 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
3735 /// 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 />
3736 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
3737 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
3738 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
3740 /// <since_tizen> 3 </since_tizen>
3741 public DrawModeType DrawMode
3746 if (GetProperty(View.Property.DRAW_MODE).Get(out temp) == false)
3748 NUILog.Error("DrawMode get error!");
3753 return DrawModeType.Normal;
3755 return DrawModeType.Overlay2D;
3757 return DrawModeType.Stencil;
3759 return DrawModeType.Normal;
3764 SetProperty(View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)value));
3769 /// Gets or sets the relative to parent size factor of the view.<br />
3770 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
3771 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
3773 /// <since_tizen> 3 </since_tizen>
3774 public Vector3 SizeModeFactor
3778 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3779 GetProperty(View.Property.SIZE_MODE_FACTOR).Get(temp);
3784 SetProperty(View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue(value));
3789 /// Gets or sets the width resize policy to be used.
3791 /// <since_tizen> 3 </since_tizen>
3792 public ResizePolicyType WidthResizePolicy
3797 if (GetProperty(View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
3799 NUILog.Error("WidthResizePolicy get error!");
3804 return ResizePolicyType.Fixed;
3805 case "USE_NATURAL_SIZE":
3806 return ResizePolicyType.UseNaturalSize;
3807 case "FILL_TO_PARENT":
3808 return ResizePolicyType.FillToParent;
3809 case "SIZE_RELATIVE_TO_PARENT":
3810 return ResizePolicyType.SizeRelativeToParent;
3811 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3812 return ResizePolicyType.SizeFixedOffsetFromParent;
3813 case "FIT_TO_CHILDREN":
3814 return ResizePolicyType.FitToChildren;
3815 case "DIMENSION_DEPENDENCY":
3816 return ResizePolicyType.DimensionDependency;
3817 case "USE_ASSIGNED_SIZE":
3818 return ResizePolicyType.UseAssignedSize;
3820 return ResizePolicyType.Fixed;
3825 SetProperty(View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3830 /// Gets or sets the height resize policy to be used.
3832 /// <since_tizen> 3 </since_tizen>
3833 public ResizePolicyType HeightResizePolicy
3838 if (GetProperty(View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
3840 NUILog.Error("HeightResizePolicy get error!");
3845 return ResizePolicyType.Fixed;
3846 case "USE_NATURAL_SIZE":
3847 return ResizePolicyType.UseNaturalSize;
3848 case "FILL_TO_PARENT":
3849 return ResizePolicyType.FillToParent;
3850 case "SIZE_RELATIVE_TO_PARENT":
3851 return ResizePolicyType.SizeRelativeToParent;
3852 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3853 return ResizePolicyType.SizeFixedOffsetFromParent;
3854 case "FIT_TO_CHILDREN":
3855 return ResizePolicyType.FitToChildren;
3856 case "DIMENSION_DEPENDENCY":
3857 return ResizePolicyType.DimensionDependency;
3858 case "USE_ASSIGNED_SIZE":
3859 return ResizePolicyType.UseAssignedSize;
3861 return ResizePolicyType.Fixed;
3866 SetProperty(View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3871 /// Gets or sets the policy to use when setting size with size negotiation.<br />
3872 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3874 /// <since_tizen> 3 </since_tizen>
3875 public SizeScalePolicyType SizeScalePolicy
3880 if (GetProperty(View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
3882 NUILog.Error("SizeScalePolicy get error!");
3886 case "USE_SIZE_SET":
3887 return SizeScalePolicyType.UseSizeSet;
3888 case "FIT_WITH_ASPECT_RATIO":
3889 return SizeScalePolicyType.FitWithAspectRatio;
3890 case "FILL_WITH_ASPECT_RATIO":
3891 return SizeScalePolicyType.FillWithAspectRatio;
3893 return SizeScalePolicyType.UseSizeSet;
3898 string valueToString = "";
3901 case SizeScalePolicyType.UseSizeSet:
3903 valueToString = "USE_SIZE_SET";
3906 case SizeScalePolicyType.FitWithAspectRatio:
3908 valueToString = "FIT_WITH_ASPECT_RATIO";
3911 case SizeScalePolicyType.FillWithAspectRatio:
3913 valueToString = "FILL_WITH_ASPECT_RATIO";
3918 valueToString = "USE_SIZE_SET";
3922 SetProperty(View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
3927 /// Gets or sets the status of whether the width size is dependent on the height size.
3929 /// <since_tizen> 3 </since_tizen>
3930 public bool WidthForHeight
3935 GetProperty(View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
3940 SetProperty(View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue(value));
3945 /// Gets or sets the status of whether the height size is dependent on the width size.
3947 /// <since_tizen> 3 </since_tizen>
3948 public bool HeightForWidth
3953 GetProperty(View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
3958 SetProperty(View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue(value));
3963 /// Gets or sets the padding for use in layout.
3965 /// <since_tizen> 3 </since_tizen>
3966 public Vector4 Padding
3970 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3971 GetProperty(View.Property.PADDING).Get(temp);
3976 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
3981 /// Gets or sets the minimum size the view can be assigned in size negotiation.
3983 /// <since_tizen> 3 </since_tizen>
3984 public Size2D MinimumSize
3988 Size2D temp = new Size2D(0, 0);
3989 GetProperty(View.Property.MINIMUM_SIZE).Get(temp);
3994 SetProperty(View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
3999 /// Gets or sets the maximum size the view can be assigned in size negotiation.
4001 /// <since_tizen> 3 </since_tizen>
4002 public Size2D MaximumSize
4006 Size2D temp = new Size2D(0, 0);
4007 GetProperty(View.Property.MAXIMUM_SIZE).Get(temp);
4012 SetProperty(View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4017 /// Gets or sets whether a child view inherits it's parent's position.<br />
4018 /// Default is to inherit.<br />
4019 /// 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 />
4021 /// <since_tizen> 3 </since_tizen>
4022 public bool InheritPosition
4027 GetProperty(View.Property.INHERIT_POSITION).Get(out temp);
4032 SetProperty(View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue(value));
4037 /// Gets or sets the clipping behavior (mode) of it's children.
4039 /// <since_tizen> 3 </since_tizen>
4040 public ClippingModeType ClippingMode
4045 if (GetProperty(View.Property.CLIPPING_MODE).Get(out temp) == false)
4047 NUILog.Error("ClippingMode get error!");
4052 return ClippingModeType.Disabled;
4053 case "CLIP_CHILDREN":
4054 return ClippingModeType.ClipChildren;
4056 return ClippingModeType.Disabled;
4061 SetProperty(View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)value));
4066 /// Gets the number of renderers held by the view.
4068 /// <since_tizen> 4 </since_tizen>
4069 public uint RendererCount
4073 return GetRendererCount();
4080 /// [Obsolete("Please do not use! this will be deprecated")]
4082 /// <since_tizen> 3 </since_tizen>
4083 [Obsolete("Please do not use! this will be deprecated")]
4084 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> Touched
4088 if (_touchDataEventHandler == null)
4090 _touchDataCallback = OnTouch;
4091 this.TouchSignal().Connect(_touchDataCallback);
4094 _touchDataEventHandler += value;
4099 _touchDataEventHandler -= value;
4101 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
4103 this.TouchSignal().Disconnect(_touchDataCallback);
4110 /// [Obsolete("Please do not use! this will be deprecated")]
4112 /// <since_tizen> 3 </since_tizen>
4113 [Obsolete("Please do not use! this will be deprecated")]
4114 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> Hovered
4118 if (_hoverEventHandler == null)
4120 _hoverEventCallback = OnHoverEvent;
4121 this.HoveredSignal().Connect(_hoverEventCallback);
4124 _hoverEventHandler += value;
4129 _hoverEventHandler -= value;
4131 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
4133 this.HoveredSignal().Disconnect(_hoverEventCallback);
4140 /// [Obsolete("Please do not use! this will be deprecated")]
4142 /// <since_tizen> 3 </since_tizen>
4143 [Obsolete("Please do not use! this will be deprecated")]
4144 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelMoved
4148 if (_wheelEventHandler == null)
4150 _wheelEventCallback = OnWheelEvent;
4151 this.WheelEventSignal().Connect(_wheelEventCallback);
4154 _wheelEventHandler += value;
4159 _wheelEventHandler -= value;
4161 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
4163 this.WheelEventSignal().Disconnect(_wheelEventCallback);
4170 /// [Obsolete("Please do not use! this will be deprecated")]
4172 /// <since_tizen> 3 </since_tizen>
4173 [Obsolete("Please do not use! this will be deprecated")]
4174 public Position AnchorPoint
4178 Position temp = new Position(0.0f, 0.0f, 0.0f);
4179 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
4184 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
4189 /// [Obsolete("Please do not use! this will be deprecated")]
4191 /// <since_tizen> 3 </since_tizen>
4192 [Obsolete("Please do not use! this will be deprecated, please use Size2D instead")]
4197 Size temp = new Size(0.0f, 0.0f, 0.0f);
4198 GetProperty(View.Property.SIZE).Get(temp);
4203 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(value));
4208 /// [Obsolete("Please do not use! this will be deprecated")]
4210 /// <since_tizen> 3 </since_tizen>
4211 [Obsolete("Please do not use! this will be deprecated")]
4212 public event EventHandler OnWindowEvent
4216 if (_onWindowEventHandler == null)
4218 _onWindowEventCallback = OnWindow;
4219 this.OnWindowSignal().Connect(_onWindowEventCallback);
4222 _onWindowEventHandler += value;
4227 _onWindowEventHandler -= value;
4229 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
4231 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
4237 /// [Obsolete("Please do not use! this will be deprecated")]
4239 /// <since_tizen> 3 </since_tizen>
4240 [Obsolete("Please do not use! this will be deprecated")]
4241 public event EventHandler OffWindowEvent
4245 if (_offWindowEventHandler == null)
4247 _offWindowEventCallback = OffWindow;
4248 this.OffWindowSignal().Connect(_offWindowEventCallback);
4251 _offWindowEventHandler += value;
4256 _offWindowEventHandler -= value;
4258 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
4260 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
4266 /// [Obsolete("Please do not use! this will be deprecated")]
4268 /// <since_tizen> 3 </since_tizen>
4269 [Obsolete("Please do not use! this will be deprecated")]
4270 public event EventHandler OnRelayoutEvent
4274 if (_onRelayoutEventHandler == null)
4276 _onRelayoutEventCallback = OnRelayout;
4277 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
4280 _onRelayoutEventHandler += value;
4285 _onRelayoutEventHandler -= value;
4287 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
4289 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
4296 /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4298 /// <since_tizen> 3 </since_tizen>
4299 //"Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4300 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
4301 public new View Parent
4306 IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
4308 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
4310 if (basehandle is Layer)
4312 ret = new View(cPtr, false);
4316 ret = basehandle as View;
4319 if (NDalicPINVOKE.SWIGPendingException.Pending)
4320 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4326 /// Gets/Sets whether inherit parent's the layout Direction.
4328 /// <since_tizen> 4 </since_tizen>
4329 public bool InheritLayoutDirection
4334 GetProperty(View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
4339 SetProperty(View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue(value));
4344 /// Gets/Sets the layout Direction.
4346 /// <since_tizen> 4 </since_tizen>
4347 public ViewLayoutDirectionType LayoutDirection
4352 if (GetProperty(View.Property.LAYOUT_DIRECTION).Get(out temp) == false)
4354 NUILog.Error("LAYOUT_DIRECTION get error!");
4356 return (ViewLayoutDirectionType)temp;
4360 SetProperty(View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)value));
4366 /// The View layout Direction type.
4368 /// <since_tizen> 4 </since_tizen>
4369 public enum ViewLayoutDirectionType