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 using System.ComponentModel;
19 using System.Runtime.InteropServices;
21 namespace Tizen.NUI.BaseComponents
24 /// View is the base class for all views.
26 /// <since_tizen> 3 </since_tizen>
27 public class View : Container
29 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
32 internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.View_SWIGUpcast(cPtr), cMemoryOwn)
34 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
35 PositionUsesPivotPoint = false;
38 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
40 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
43 // From Container Base class
46 /// Adds a child view to this view.
48 /// <seealso cref="Container.Add" />
49 /// <since_tizen> 4 </since_tizen>
50 public override void Add(View child)
52 Container oldParent = child.Parent;
55 if (oldParent != null)
57 oldParent.Remove(child);
59 NDalicPINVOKE.Actor_Add(swigCPtr, View.getCPtr(child));
60 if (NDalicPINVOKE.SWIGPendingException.Pending)
61 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
67 /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
69 /// <seealso cref="Container.Remove" />
70 /// <since_tizen> 4 </since_tizen>
71 public override void Remove(View child)
73 NDalicPINVOKE.Actor_Remove(swigCPtr, View.getCPtr(child));
74 if (NDalicPINVOKE.SWIGPendingException.Pending)
75 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
77 Children.Remove(child);
81 /// Retrieves a child view by index.
83 /// <seealso cref="Container.GetChildAt" />
84 /// <since_tizen> 4 </since_tizen>
85 public override View GetChildAt(uint index)
87 if (index < Children.Count)
89 return Children[Convert.ToInt32(index)];
98 /// Retrieves the number of children held by the view.
100 /// <seealso cref="Container.GetChildCount" />
101 /// <since_tizen> 4 </since_tizen>
102 public override uint GetChildCount()
104 return Convert.ToUInt32(Children.Count);
108 /// Gets the views parent.
110 /// <seealso cref="Container.GetParent()" />
111 /// <since_tizen> 4 </since_tizen>
112 public override Container GetParent()
114 IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
116 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
118 if (NDalicPINVOKE.SWIGPendingException.Pending)
119 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
121 return basehandle as Container;
124 internal bool IsTopLevelView()
126 if(GetParent() is Layer)
134 /// you can override it to clean-up your own resources.
136 /// <param name="type">DisposeTypes</param>
137 /// <since_tizen> 3 </since_tizen>
138 protected override void Dispose(DisposeTypes type)
145 if(type == DisposeTypes.Explicit)
148 //Release your own managed resources here.
149 //You should release all of your own disposable objects here.
152 //Release your own unmanaged resources here.
153 //You should not access any managed member here except static instance.
154 //because the execution order of Finalizes is non-deterministic.
157 DisConnectFromSignals();
160 if (swigCPtr.Handle != global::System.IntPtr.Zero)
165 NDalicPINVOKE.delete_View(swigCPtr);
167 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
174 private void DisConnectFromSignals()
176 // Save current CPtr.
177 global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
179 // Use BaseHandle CPtr as current might have been deleted already in derived classes.
180 swigCPtr = GetBaseHandleCPtrHandleRef;
182 if (_onRelayoutEventCallback != null)
184 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
187 if (_offWindowEventCallback != null)
189 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
192 if (_onWindowEventCallback != null)
194 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
197 if (_wheelEventCallback != null)
199 this.WheelEventSignal().Disconnect(_wheelEventCallback);
202 if (_hoverEventCallback != null)
204 this.HoveredSignal().Disconnect(_hoverEventCallback);
207 if (_touchDataCallback != null)
209 this.TouchSignal().Disconnect(_touchDataCallback);
212 if (_ResourcesLoadedCallback != null)
214 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
217 if (_offWindowEventCallback != null)
219 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
222 if (_onWindowEventCallback != null)
224 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
227 if (_wheelEventCallback != null)
229 this.WheelEventSignal().Disconnect(_wheelEventCallback);
232 if (_hoverEventCallback != null)
234 this.HoveredSignal().Disconnect(_hoverEventCallback);
237 if (_touchDataCallback != null)
239 this.TouchSignal().Disconnect(_touchDataCallback);
242 if (_onRelayoutEventCallback != null)
244 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
247 if (_keyCallback != null)
249 this.KeyEventSignal().Disconnect(_keyCallback);
252 if (_keyInputFocusLostCallback != null)
254 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
257 if (_keyInputFocusGainedCallback != null)
259 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
262 // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
263 // Restore current CPtr.
264 swigCPtr = currentCPtr;
267 private EventHandler _keyInputFocusGainedEventHandler;
268 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
269 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
270 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
273 /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
274 /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.<br />
276 /// <since_tizen> 3 </since_tizen>
277 public event EventHandler FocusGained
281 if (_keyInputFocusGainedEventHandler == null)
283 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
284 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
287 _keyInputFocusGainedEventHandler += value;
292 _keyInputFocusGainedEventHandler -= value;
294 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
296 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
301 private void OnKeyInputFocusGained(IntPtr view)
303 if (_keyInputFocusGainedEventHandler != null)
305 _keyInputFocusGainedEventHandler(this, null);
310 private EventHandler _keyInputFocusLostEventHandler;
311 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
312 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
313 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
316 /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
317 /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.<br />
319 /// <since_tizen> 3 </since_tizen>
320 public event EventHandler FocusLost
324 if (_keyInputFocusLostEventHandler == null)
326 _keyInputFocusLostCallback = OnKeyInputFocusLost;
327 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
330 _keyInputFocusLostEventHandler += value;
335 _keyInputFocusLostEventHandler -= value;
337 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
339 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
344 private void OnKeyInputFocusLost(IntPtr view)
346 if (_keyInputFocusLostEventHandler != null)
348 _keyInputFocusLostEventHandler(this, null);
353 /// Event arguments that passed via the KeyEvent signal.
355 /// <since_tizen> 3 </since_tizen>
356 public class KeyEventArgs : EventArgs
361 /// Key - is the key sent to the view.
363 /// <since_tizen> 3 </since_tizen>
377 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
378 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
379 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
380 private KeyCallbackType _keyCallback;
383 /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
384 /// The KeyPressed signal is emitted when the key event is received.<br />
386 /// <since_tizen> 3 </since_tizen>
387 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
391 if (_keyEventHandler == null)
393 _keyCallback = OnKeyEvent;
394 this.KeyEventSignal().Connect(_keyCallback);
397 _keyEventHandler += value;
402 _keyEventHandler -= value;
404 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
406 this.KeyEventSignal().Disconnect(_keyCallback);
411 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
413 KeyEventArgs e = new KeyEventArgs();
417 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
419 if (_keyEventHandler != null)
421 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
423 // Oring the result of each callback.
424 foreach ( EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList )
426 result |= del( this, e );
433 private EventHandler _onRelayoutEventHandler;
434 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
435 private delegate void OnRelayoutEventCallbackType(IntPtr control);
436 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
439 /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.<br />
440 /// The OnRelayout signal is emitted after the size has been set on the view during relayout.<br />
442 /// <since_tizen> 3 </since_tizen>
443 public event EventHandler Relayout
447 if (_onRelayoutEventHandler == null)
449 _onRelayoutEventCallback = OnRelayout;
450 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
453 _onRelayoutEventHandler += value;
458 _onRelayoutEventHandler -= value;
460 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
462 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
468 // Callback for View OnRelayout signal
469 private void OnRelayout(IntPtr data)
471 if (_onRelayoutEventHandler != null)
473 _onRelayoutEventHandler(this, null);
478 /// Event arguments that passed via the touch signal.
480 /// <since_tizen> 3 </since_tizen>
481 public class TouchEventArgs : EventArgs
483 private Touch _touch;
486 /// Touch - contains the information of touch points.
488 /// <since_tizen> 3 </since_tizen>
502 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
503 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
504 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
505 private TouchDataCallbackType _touchDataCallback;
508 /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
509 /// The touched signal is emitted when the touch input is received.<br />
511 /// <since_tizen> 3 </since_tizen>
512 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> TouchEvent
516 if (_touchDataEventHandler == null)
518 _touchDataCallback = OnTouch;
519 this.TouchSignal().Connect(_touchDataCallback);
522 _touchDataEventHandler += value;
527 _touchDataEventHandler -= value;
529 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
531 this.TouchSignal().Disconnect(_touchDataCallback);
537 // Callback for View TouchSignal
538 private bool OnTouch(IntPtr view, IntPtr touchData)
540 TouchEventArgs e = new TouchEventArgs();
542 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
544 if (_touchDataEventHandler != null)
546 return _touchDataEventHandler(this, e);
553 /// Event arguments that passed via the hover signal.
555 /// <since_tizen> 3 </since_tizen>
556 public class HoverEventArgs : EventArgs
558 private Hover _hover;
561 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
563 /// <since_tizen> 3 </since_tizen>
577 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
578 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
579 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
580 private HoverEventCallbackType _hoverEventCallback;
583 /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
584 /// The hovered signal is emitted when the hover input is received.<br />
586 /// <since_tizen> 3 </since_tizen>
587 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> HoverEvent
591 if (_hoverEventHandler == null)
593 _hoverEventCallback = OnHoverEvent;
594 this.HoveredSignal().Connect(_hoverEventCallback);
597 _hoverEventHandler += value;
602 _hoverEventHandler -= value;
604 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
606 this.HoveredSignal().Disconnect(_hoverEventCallback);
612 // Callback for View Hover signal
613 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
615 HoverEventArgs e = new HoverEventArgs();
617 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
619 if (_hoverEventHandler != null)
621 return _hoverEventHandler(this, e);
628 /// Event arguments that passed via the wheel signal.
630 /// <since_tizen> 3 </since_tizen>
631 public class WheelEventArgs : EventArgs
633 private Wheel _wheel;
636 /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
638 /// <since_tizen> 3 </since_tizen>
652 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
653 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
654 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
655 private WheelEventCallbackType _wheelEventCallback;
658 /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
659 /// The WheelMoved signal is emitted when the wheel event is received.<br />
661 /// <since_tizen> 3 </since_tizen>
662 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelEvent
666 if (_wheelEventHandler == null)
668 _wheelEventCallback = OnWheelEvent;
669 this.WheelEventSignal().Connect(_wheelEventCallback);
672 _wheelEventHandler += value;
677 _wheelEventHandler -= value;
679 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
681 this.WheelEventSignal().Disconnect(_wheelEventCallback);
687 // Callback for View Wheel signal
688 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
690 WheelEventArgs e = new WheelEventArgs();
692 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
694 if (_wheelEventHandler != null)
696 return _wheelEventHandler(this, e);
702 private EventHandler _onWindowEventHandler;
703 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
704 private delegate void OnWindowEventCallbackType(IntPtr control);
705 private OnWindowEventCallbackType _onWindowEventCallback;
708 /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.<br />
709 /// The OnWindow signal is emitted after the view has been connected to the window.<br />
711 /// <since_tizen> 3 </since_tizen>
712 public event EventHandler AddedToWindow
716 if (_onWindowEventHandler == null)
718 _onWindowEventCallback = OnWindow;
719 this.OnWindowSignal().Connect(_onWindowEventCallback);
722 _onWindowEventHandler += value;
727 _onWindowEventHandler -= value;
729 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
731 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
736 // Callback for View OnWindow signal
737 private void OnWindow(IntPtr data)
739 if (_onWindowEventHandler != null)
741 _onWindowEventHandler(this, null);
746 private EventHandler _offWindowEventHandler;
747 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
748 private delegate void OffWindowEventCallbackType(IntPtr control);
749 private OffWindowEventCallbackType _offWindowEventCallback;
752 /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.<br />
753 /// OffWindow signal is emitted after the view has been disconnected from the window.<br />
755 /// <since_tizen> 3 </since_tizen>
756 public event EventHandler RemovedFromWindow
760 if (_offWindowEventHandler == null)
762 _offWindowEventCallback = OffWindow;
763 this.OffWindowSignal().Connect(_offWindowEventCallback);
766 _offWindowEventHandler += value;
771 _offWindowEventHandler -= value;
773 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
775 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
780 // Callback for View OffWindow signal
781 private void OffWindow(IntPtr data)
783 if (_offWindowEventHandler != null)
785 _offWindowEventHandler(this, null);
790 /// Event arguments of visibility changed.
792 /// <since_tizen> 3 </since_tizen>
793 public class VisibilityChangedEventArgs : EventArgs
796 private bool _visibility;
797 private VisibilityChangeType _type;
800 /// The view, or child of view, whose visibility has changed.
802 /// <since_tizen> 3 </since_tizen>
816 /// Whether the view is now visible or not.
818 /// <since_tizen> 3 </since_tizen>
819 public bool Visibility
832 /// Whether the view's visible property has changed or a parent's.
834 /// <since_tizen> 3 </since_tizen>
835 public VisibilityChangeType Type
848 private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
849 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
850 private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
851 private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
854 /// An event for visibility change which can be used to subscribe or unsubscribe the event handler.<br />
855 /// This signal is emitted when the visible property of this or a parent view is changed.<br />
857 /// <since_tizen> 3 </since_tizen>
858 public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
862 if (_visibilityChangedEventHandler == null)
864 _visibilityChangedEventCallback = OnVisibilityChanged;
865 VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
868 _visibilityChangedEventHandler += value;
873 _visibilityChangedEventHandler -= value;
875 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
877 VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
882 // Callback for View visibility change signal
883 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
885 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
888 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
890 e.Visibility = visibility;
893 if (_visibilityChangedEventHandler != null)
895 _visibilityChangedEventHandler(this, e);
901 /// Event arguments of layout direction changed.
903 /// <since_tizen> 4 </since_tizen>
904 public class LayoutDirectionChangedEventArgs : EventArgs
907 private ViewLayoutDirectionType _type;
910 /// The view, or child of view, whose layout direction has changed.
912 /// <since_tizen> 4 </since_tizen>
926 /// Whether the view's layout direction property has changed or a parent's.
928 /// <since_tizen> 4 </since_tizen>
929 public ViewLayoutDirectionType Type
942 private EventHandler<LayoutDirectionChangedEventArgs> _layoutDirectionChangedEventHandler;
943 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
944 private delegate void LayoutDirectionChangedEventCallbackType(IntPtr data, ViewLayoutDirectionType type);
945 private LayoutDirectionChangedEventCallbackType _layoutDirectionChangedEventCallback;
948 /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.<br />
949 /// This signal is emitted when the layout direction property of this or a parent view is changed.<br />
951 /// <since_tizen> 4 </since_tizen>
952 public event EventHandler<LayoutDirectionChangedEventArgs> LayoutDirectionChanged
956 if (_layoutDirectionChangedEventHandler == null)
958 _layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
959 LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
962 _layoutDirectionChangedEventHandler += value;
967 _layoutDirectionChangedEventHandler -= value;
969 if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
971 LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
976 // Callback for View layout direction change signal
977 private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
979 LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
982 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
986 if (_layoutDirectionChangedEventHandler != null)
988 _layoutDirectionChangedEventHandler(this, e);
998 // Resource Ready Signal
1000 private EventHandler _resourcesLoadedEventHandler;
1001 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1002 private delegate void ResourcesLoadedCallbackType(IntPtr control);
1003 private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
1006 /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1007 /// This signal is emitted after all resources required by a view are loaded and ready.<br />
1009 /// <since_tizen> 3 </since_tizen>
1010 public event EventHandler ResourcesLoaded
1014 if (_resourcesLoadedEventHandler == null)
1016 _ResourcesLoadedCallback = OnResourcesLoaded;
1017 this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
1020 _resourcesLoadedEventHandler += value;
1025 _resourcesLoadedEventHandler -= value;
1027 if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1029 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
1034 private void OnResourcesLoaded(IntPtr view)
1036 if (_resourcesLoadedEventHandler != null)
1038 _resourcesLoadedEventHandler(this, null);
1042 internal IntPtr GetPtrfromView()
1044 return (IntPtr)swigCPtr;
1047 internal class Property
1049 internal static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
1050 internal static readonly int STATE = NDalicManualPINVOKE.View_Property_STATE_get();
1051 internal static readonly int SUB_STATE = NDalicManualPINVOKE.View_Property_SUB_STATE_get();
1052 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
1053 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
1054 internal static readonly int UP_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
1055 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
1056 internal static readonly int STYLE_NAME = NDalicPINVOKE.View_Property_STYLE_NAME_get();
1057 internal static readonly int BACKGROUND = NDalicPINVOKE.View_Property_BACKGROUND_get();
1058 internal static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
1059 internal static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
1060 internal static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
1061 internal static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
1062 internal static readonly int PARENT_ORIGIN = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_get();
1063 internal static readonly int PARENT_ORIGIN_X = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_X_get();
1064 internal static readonly int PARENT_ORIGIN_Y = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Y_get();
1065 internal static readonly int PARENT_ORIGIN_Z = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Z_get();
1066 internal static readonly int ANCHOR_POINT = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_get();
1067 internal static readonly int ANCHOR_POINT_X = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_X_get();
1068 internal static readonly int ANCHOR_POINT_Y = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Y_get();
1069 internal static readonly int ANCHOR_POINT_Z = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Z_get();
1070 internal static readonly int SIZE = NDalicPINVOKE.Actor_Property_SIZE_get();
1071 internal static readonly int SIZE_WIDTH = NDalicPINVOKE.Actor_Property_SIZE_WIDTH_get();
1072 internal static readonly int SIZE_HEIGHT = NDalicPINVOKE.Actor_Property_SIZE_HEIGHT_get();
1073 internal static readonly int SIZE_DEPTH = NDalicPINVOKE.Actor_Property_SIZE_DEPTH_get();
1074 internal static readonly int POSITION = NDalicPINVOKE.Actor_Property_POSITION_get();
1075 internal static readonly int POSITION_X = NDalicPINVOKE.Actor_Property_POSITION_X_get();
1076 internal static readonly int POSITION_Y = NDalicPINVOKE.Actor_Property_POSITION_Y_get();
1077 internal static readonly int POSITION_Z = NDalicPINVOKE.Actor_Property_POSITION_Z_get();
1078 internal static readonly int WORLD_POSITION = NDalicPINVOKE.Actor_Property_WORLD_POSITION_get();
1079 internal static readonly int WORLD_POSITION_X = NDalicPINVOKE.Actor_Property_WORLD_POSITION_X_get();
1080 internal static readonly int WORLD_POSITION_Y = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Y_get();
1081 internal static readonly int WORLD_POSITION_Z = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Z_get();
1082 internal static readonly int ORIENTATION = NDalicPINVOKE.Actor_Property_ORIENTATION_get();
1083 internal static readonly int WORLD_ORIENTATION = NDalicPINVOKE.Actor_Property_WORLD_ORIENTATION_get();
1084 internal static readonly int SCALE = NDalicPINVOKE.Actor_Property_SCALE_get();
1085 internal static readonly int SCALE_X = NDalicPINVOKE.Actor_Property_SCALE_X_get();
1086 internal static readonly int SCALE_Y = NDalicPINVOKE.Actor_Property_SCALE_Y_get();
1087 internal static readonly int SCALE_Z = NDalicPINVOKE.Actor_Property_SCALE_Z_get();
1088 internal static readonly int WORLD_SCALE = NDalicPINVOKE.Actor_Property_WORLD_SCALE_get();
1089 internal static readonly int VISIBLE = NDalicPINVOKE.Actor_Property_VISIBLE_get();
1090 internal static readonly int WORLD_COLOR = NDalicPINVOKE.Actor_Property_WORLD_COLOR_get();
1091 internal static readonly int WORLD_MATRIX = NDalicPINVOKE.Actor_Property_WORLD_MATRIX_get();
1092 internal static readonly int NAME = NDalicPINVOKE.Actor_Property_NAME_get();
1093 internal static readonly int SENSITIVE = NDalicPINVOKE.Actor_Property_SENSITIVE_get();
1094 internal static readonly int LEAVE_REQUIRED = NDalicPINVOKE.Actor_Property_LEAVE_REQUIRED_get();
1095 internal static readonly int INHERIT_ORIENTATION = NDalicPINVOKE.Actor_Property_INHERIT_ORIENTATION_get();
1096 internal static readonly int INHERIT_SCALE = NDalicPINVOKE.Actor_Property_INHERIT_SCALE_get();
1097 internal static readonly int DRAW_MODE = NDalicPINVOKE.Actor_Property_DRAW_MODE_get();
1098 internal static readonly int SIZE_MODE_FACTOR = NDalicPINVOKE.Actor_Property_SIZE_MODE_FACTOR_get();
1099 internal static readonly int WIDTH_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_WIDTH_RESIZE_POLICY_get();
1100 internal static readonly int HEIGHT_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_HEIGHT_RESIZE_POLICY_get();
1101 internal static readonly int SIZE_SCALE_POLICY = NDalicPINVOKE.Actor_Property_SIZE_SCALE_POLICY_get();
1102 internal static readonly int WIDTH_FOR_HEIGHT = NDalicPINVOKE.Actor_Property_WIDTH_FOR_HEIGHT_get();
1103 internal static readonly int HEIGHT_FOR_WIDTH = NDalicPINVOKE.Actor_Property_HEIGHT_FOR_WIDTH_get();
1104 internal static readonly int MINIMUM_SIZE = NDalicPINVOKE.Actor_Property_MINIMUM_SIZE_get();
1105 internal static readonly int MAXIMUM_SIZE = NDalicPINVOKE.Actor_Property_MAXIMUM_SIZE_get();
1106 internal static readonly int INHERIT_POSITION = NDalicPINVOKE.Actor_Property_INHERIT_POSITION_get();
1107 internal static readonly int CLIPPING_MODE = NDalicPINVOKE.Actor_Property_CLIPPING_MODE_get();
1108 internal static readonly int INHERIT_LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
1109 internal static readonly int LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_LAYOUT_DIRECTION_get();
1110 internal static readonly int MARGIN = NDalicPINVOKE.View_Property_MARGIN_get();
1111 internal static readonly int PADDING = NDalicPINVOKE.View_Property_PADDING_get();
1115 /// Describes the direction to move the focus towards.
1117 /// <since_tizen> 3 </since_tizen>
1118 public enum FocusDirection
1121 /// Move keyboard focus towards the left direction.
1123 /// <since_tizen> 3 </since_tizen>
1126 /// Move keyboard focus towards the right direction.
1128 /// <since_tizen> 3 </since_tizen>
1131 /// Move keyboard focus towards the up direction.
1133 /// <since_tizen> 3 </since_tizen>
1136 /// Move keyboard focus towards the down direction.
1138 /// <since_tizen> 3 </since_tizen>
1141 /// Move keyboard focus towards the previous page direction.
1143 /// <since_tizen> 3 </since_tizen>
1146 /// Move keyboard focus towards the next page direction.
1148 /// <since_tizen> 3 </since_tizen>
1153 /// Creates a new instance of a view.
1155 /// <since_tizen> 3 </since_tizen>
1156 public View() : this(NDalicPINVOKE.View_New(), true)
1158 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1161 internal View(View uiControl) : this(NDalicPINVOKE.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1163 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1166 private View ConvertIdToView(uint id)
1172 View parentView = Parent as View;
1173 view = parentView.FindChildById(id);
1178 view = Window.Instance.GetRootLayer().FindChildById(id);
1184 internal void SetKeyInputFocus()
1186 NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
1187 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1191 /// Queries whether the view has a focus.
1193 /// <returns>True if this view has a focus.</returns>
1194 /// <since_tizen> 3 </since_tizen>
1195 public bool HasFocus()
1197 bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
1198 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1202 internal void ClearKeyInputFocus()
1204 NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
1205 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1208 internal PinchGestureDetector GetPinchGestureDetector()
1210 PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
1211 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1215 internal PanGestureDetector GetPanGestureDetector()
1217 PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
1218 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1222 internal TapGestureDetector GetTapGestureDetector()
1224 TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
1225 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1229 internal LongPressGestureDetector GetLongPressGestureDetector()
1231 LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
1232 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1237 /// Sets the name of the style to be applied to the view.
1239 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
1240 /// <since_tizen> 3 </since_tizen>
1241 public void SetStyleName(string styleName)
1243 NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
1244 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1248 /// Retrieves the name of the style to be applied to the view (if any).
1250 /// <returns>A string matching a style, or an empty string.</returns>
1251 /// <since_tizen> 3 </since_tizen>
1252 public string GetStyleName()
1254 string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
1255 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1259 internal void SetBackgroundColor(Vector4 color)
1261 NDalicPINVOKE.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
1262 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1265 internal Vector4 GetBackgroundColor()
1267 Vector4 ret = new Vector4(NDalicPINVOKE.View_GetBackgroundColor(swigCPtr), true);
1268 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1272 internal void SetBackgroundImage(Image image)
1274 NDalicPINVOKE.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
1275 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1279 /// Clears the background.
1281 /// <since_tizen> 3 </since_tizen>
1282 public void ClearBackground()
1284 NDalicPINVOKE.View_ClearBackground(swigCPtr);
1285 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1288 internal ControlKeySignal KeyEventSignal()
1290 ControlKeySignal ret = new ControlKeySignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
1291 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1295 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
1297 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
1298 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1302 internal KeyInputFocusSignal KeyInputFocusLostSignal()
1304 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
1305 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1309 internal View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1311 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1314 internal enum PropertyRange
1316 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1317 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1318 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1322 /// The StyleName, type string.
1324 /// <since_tizen> 3 </since_tizen>
1325 public string StyleName
1330 GetProperty(View.Property.STYLE_NAME).Get(out temp);
1335 SetProperty(View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue(value));
1340 /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
1342 /// <since_tizen> 3 </since_tizen>
1343 public Color BackgroundColor
1347 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1349 Tizen.NUI.PropertyMap background = Background;
1351 background.Find(Visual.Property.Type)?.Get(out visualType);
1352 if (visualType == (int)Visual.Type.Color)
1354 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
1357 return backgroundColor;
1361 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1366 /// Creates an animation to animate the background color visual. If there is no
1367 /// background visual, creates one with transparent black as it's mixColor.
1369 /// <since_tizen> 3 </since_tizen>
1370 public Animation AnimateBackgroundColor( object destinationValue,
1373 AlphaFunction.BuiltinFunctions? alphaFunction = null,
1374 object initialValue = null)
1376 Tizen.NUI.PropertyMap background = Background;
1378 if( background.Empty() )
1380 // If there is no background yet, ensure there is a transparent
1382 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1383 background = Background;
1385 return AnimateColor( "background", destinationValue, startTime, endTime, alphaFunction, initialValue );
1389 /// Creates an animation to animate the mixColor of the named visual.
1391 /// <since_tizen> 3 </since_tizen>
1392 public Animation AnimateColor( string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null )
1394 Animation animation = null;
1396 PropertyMap _animator = new PropertyMap();
1397 if( alphaFunction != null )
1399 _animator.Add("alphaFunction", new PropertyValue( AlphaFunction.BuiltinToPropertyKey(alphaFunction) ) );
1402 PropertyMap _timePeriod = new PropertyMap();
1403 _timePeriod.Add( "duration", new PropertyValue((endTime-startTime)/1000.0f) );
1404 _timePeriod.Add( "delay", new PropertyValue( startTime/1000.0f ) );
1405 _animator.Add( "timePeriod", new PropertyValue( _timePeriod ) );
1407 PropertyMap _transition = new PropertyMap();
1408 _transition.Add( "animator", new PropertyValue( _animator ) );
1409 _transition.Add( "target", new PropertyValue( targetVisual ) );
1410 _transition.Add( "property", new PropertyValue( "mixColor" ) );
1412 if( initialColor != null )
1414 PropertyValue initValue = PropertyValue.CreateFromObject( initialColor );
1415 _transition.Add( "initialValue", initValue );
1418 PropertyValue destValue = PropertyValue.CreateFromObject( destinationColor );
1419 _transition.Add( "targetValue", destValue );
1420 TransitionData _transitionData = new TransitionData( _transition );
1422 animation = new Animation( NDalicManualPINVOKE.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true );
1423 if (NDalicPINVOKE.SWIGPendingException.Pending)
1424 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1430 /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
1432 /// <since_tizen> 3 </since_tizen>
1433 public string BackgroundImage
1437 string backgroundImage = "";
1439 Tizen.NUI.PropertyMap background = Background;
1441 background.Find(Visual.Property.Type)?.Get(out visualType);
1442 if (visualType == (int)Visual.Type.Image)
1444 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
1447 return backgroundImage;
1451 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1456 /// The background of view.
1458 /// <since_tizen> 3 </since_tizen>
1459 public Tizen.NUI.PropertyMap Background
1463 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1464 GetProperty( View.Property.BACKGROUND ).Get(temp);
1469 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1475 /// The current state of the view.
1477 /// <since_tizen> 3 </since_tizen>
1483 if (GetProperty(View.Property.STATE).Get(out temp) == false)
1485 NUILog.Error("State get error!");
1491 return States.Normal;
1495 return States.Focused;
1499 return States.Disabled;
1503 return States.Normal;
1509 SetProperty(View.Property.STATE, new Tizen.NUI.PropertyValue((int)value));
1514 /// The current sub state of the view.
1516 /// <since_tizen> 3 </since_tizen>
1517 public States SubState
1522 if (GetProperty(View.Property.SUB_STATE).Get(out temp) == false)
1524 NUILog.Error("subState get error!");
1529 return States.Normal;
1531 return States.Focused;
1533 return States.Disabled;
1535 return States.Normal;
1540 string valueToString = "";
1545 valueToString = "NORMAL";
1548 case States.Focused:
1550 valueToString = "FOCUSED";
1553 case States.Disabled:
1555 valueToString = "DISABLED";
1560 valueToString = "NORMAL";
1564 SetProperty(View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
1569 /// Displays a tooltip
1571 /// <since_tizen> 3 </since_tizen>
1572 public Tizen.NUI.PropertyMap Tooltip
1576 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1577 GetProperty(View.Property.TOOLTIP).Get(temp);
1582 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1587 /// Displays a tooltip as a text.
1589 /// <since_tizen> 3 </since_tizen>
1590 public string TooltipText
1594 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1598 private int LeftFocusableViewId
1603 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
1608 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1612 private int RightFocusableViewId
1617 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
1622 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1626 private int UpFocusableViewId
1631 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
1636 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1640 private int DownFocusableViewId
1645 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
1650 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1655 /// The Child property of FlexContainer.<br />
1656 /// The proportion of the free space in the container, the flex item will receive.<br />
1657 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
1659 /// <since_tizen> 3 </since_tizen>
1665 GetProperty(FlexContainer.ChildProperty.FLEX).Get(out temp);
1670 SetProperty(FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue(value));
1675 /// The Child property of FlexContainer.<br />
1676 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
1678 /// <since_tizen> 3 </since_tizen>
1679 public int AlignSelf
1684 GetProperty(FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
1689 SetProperty(FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue(value));
1694 /// The Child property of FlexContainer.<br />
1695 /// The space around the flex item.<br />
1697 /// <since_tizen> 3 </since_tizen>
1698 public Vector4 FlexMargin
1702 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1703 GetProperty(FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
1708 SetProperty(FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue(value));
1713 /// The top-left cell this child occupies, if not set, the first available cell is used.
1715 /// <since_tizen> 3 </since_tizen>
1716 public Vector2 CellIndex
1720 Vector2 temp = new Vector2(0.0f, 0.0f);
1721 GetProperty(TableView.ChildProperty.CELL_INDEX).Get(temp);
1726 SetProperty(TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue(value));
1731 /// The number of rows this child occupies, if not set, the default value is 1.
1733 /// <since_tizen> 3 </since_tizen>
1734 public float RowSpan
1739 GetProperty(TableView.ChildProperty.ROW_SPAN).Get(out temp);
1744 SetProperty(TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue(value));
1749 /// The number of columns this child occupies, if not set, the default value is 1.
1751 /// <since_tizen> 3 </since_tizen>
1752 public float ColumnSpan
1757 GetProperty(TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
1762 SetProperty(TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue(value));
1767 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
1769 /// <since_tizen> 3 </since_tizen>
1770 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
1775 if (GetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
1777 NUILog.Error("CellHorizontalAlignment get error!");
1783 return Tizen.NUI.HorizontalAlignmentType.Left;
1785 return Tizen.NUI.HorizontalAlignmentType.Center;
1787 return Tizen.NUI.HorizontalAlignmentType.Right;
1789 return Tizen.NUI.HorizontalAlignmentType.Left;
1794 string valueToString = "";
1797 case Tizen.NUI.HorizontalAlignmentType.Left:
1799 valueToString = "left";
1802 case Tizen.NUI.HorizontalAlignmentType.Center:
1804 valueToString = "center";
1807 case Tizen.NUI.HorizontalAlignmentType.Right:
1809 valueToString = "right";
1814 valueToString = "left";
1818 SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1823 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
1825 /// <since_tizen> 3 </since_tizen>
1826 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
1831 GetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
1833 NUILog.Error("CellVerticalAlignment get error!");
1839 return Tizen.NUI.VerticalAlignmentType.Top;
1841 return Tizen.NUI.VerticalAlignmentType.Center;
1843 return Tizen.NUI.VerticalAlignmentType.Bottom;
1845 return Tizen.NUI.VerticalAlignmentType.Top;
1850 string valueToString = "";
1853 case Tizen.NUI.VerticalAlignmentType.Top:
1855 valueToString = "top";
1858 case Tizen.NUI.VerticalAlignmentType.Center:
1860 valueToString = "center";
1863 case Tizen.NUI.VerticalAlignmentType.Bottom:
1865 valueToString = "bottom";
1870 valueToString = "top";
1874 SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1879 /// The left focusable view.<br />
1880 /// This will return null if not set.<br />
1881 /// This will also return null if the specified left focusable view is not on a window.<br />
1883 /// <since_tizen> 3 </since_tizen>
1884 public View LeftFocusableView
1886 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1889 if (LeftFocusableViewId >= 0)
1891 return ConvertIdToView((uint)LeftFocusableViewId);
1899 LeftFocusableViewId = (int)value.GetId();
1903 LeftFocusableViewId = -1;
1909 /// The right focusable view.<br />
1910 /// This will return null if not set.<br />
1911 /// This will also return null if the specified right focusable view is not on a window.<br />
1913 /// <since_tizen> 3 </since_tizen>
1914 public View RightFocusableView
1916 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1919 if (RightFocusableViewId >= 0)
1921 return ConvertIdToView((uint)RightFocusableViewId);
1929 RightFocusableViewId = (int)value.GetId();
1933 RightFocusableViewId = -1;
1939 /// The up focusable view.<br />
1940 /// This will return null if not set.<br />
1941 /// This will also return null if the specified up focusable view is not on a window.<br />
1943 /// <since_tizen> 3 </since_tizen>
1944 public View UpFocusableView
1946 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1949 if (UpFocusableViewId >= 0)
1951 return ConvertIdToView((uint)UpFocusableViewId);
1959 UpFocusableViewId = (int)value.GetId();
1963 UpFocusableViewId = -1;
1969 /// The down focusable view.<br />
1970 /// This will return null if not set.<br />
1971 /// This will also return null if the specified down focusable view is not on a window.<br />
1973 /// <since_tizen> 3 </since_tizen>
1974 public View DownFocusableView
1976 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1979 if (DownFocusableViewId >= 0)
1981 return ConvertIdToView((uint)DownFocusableViewId);
1989 DownFocusableViewId = (int)value.GetId();
1993 DownFocusableViewId = -1;
1999 /// Whether the view should be focusable by keyboard navigation.
2001 /// <since_tizen> 3 </since_tizen>
2002 public bool Focusable
2006 SetKeyboardFocusable(value);
2010 return IsKeyboardFocusable();
2015 /// Enumeration for describing the states of the view.
2017 /// <since_tizen> 3 </since_tizen>
2021 /// The normal state.
2025 /// The focused state.
2029 /// The disabled state.
2035 /// Retrieves the position of the view.<br />
2036 /// The coordinates are relative to the view's parent.<br />
2038 /// <since_tizen> 3 </since_tizen>
2039 public Position CurrentPosition
2043 return GetCurrentPosition();
2048 /// Sets the size of a view for the width and the height.<br />
2049 /// Geometry can be scaled to fit within this area.<br />
2050 /// This does not interfere with the view's scale factor.<br />
2051 /// The views default depth is the minimum of width and height.<br />
2053 /// <since_tizen> 3 </since_tizen>
2054 public Size2D Size2D
2058 Size temp = new Size(0.0f, 0.0f, 0.0f);
2059 GetProperty(View.Property.SIZE).Get(temp);
2060 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
2065 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size(value)));
2070 /// Retrieves the size of the view.<br />
2071 /// The coordinates are relative to the view's parent.<br />
2073 /// <since_tizen> 3 </since_tizen>
2074 public Size2D CurrentSize
2078 return GetCurrentSize();
2083 /// Retrieves and sets the view's opacity.<br />
2085 /// <since_tizen> 3 </since_tizen>
2086 public float Opacity
2091 GetProperty(View.Property.OPACITY).Get(out temp);
2096 SetProperty(View.Property.OPACITY, new Tizen.NUI.PropertyValue(value));
2101 /// Sets the position of the view for X and Y.<br />
2102 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2103 /// If the position inheritance is disabled, sets the world position.<br />
2105 /// <since_tizen> 3 </since_tizen>
2106 public Position2D Position2D
2110 Position temp = new Position(0.0f, 0.0f, 0.0f);
2111 GetProperty(View.Property.POSITION).Get(temp);
2112 return new Position2D(temp);
2116 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position(value)));
2121 /// Retrieves the screen postion of the view.<br />
2123 /// <since_tizen> 3 </since_tizen>
2124 public Vector2 ScreenPosition
2128 Vector2 temp = new Vector2(0.0f, 0.0f);
2129 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2135 /// Determines whether the pivot point should be used to determine the position of the view.
2136 /// This is true by default.
2138 /// <remarks>If false, then the top-left of the view is used for the position.
2139 /// Setting this to false will allow scaling or rotation around the anchor-point without affecting the view's position.
2141 /// <since_tizen> 3 </since_tizen>
2142 public bool PositionUsesPivotPoint
2147 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2152 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2157 /// Please do not use! this will be deprecated.
2159 /// Please do not use! this will be deprecated!
2160 /// Instead please use PositionUsesPivotPoint.
2161 /// <since_tizen> 3 </since_tizen>
2162 [Obsolete("Please do not use! This will be deprecated! Please use PositionUsesPivotPoint instead! " +
2164 "View view = new View(); " +
2165 "view.PivotPoint = PivotPoint.Center; " +
2166 "view.PositionUsesPivotPoint = true;")]
2167 [EditorBrowsable(EditorBrowsableState.Never)]
2168 public bool PositionUsesAnchorPoint
2173 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2178 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2182 internal bool FocusState
2186 return IsKeyboardFocusable();
2190 SetKeyboardFocusable(value);
2195 /// Queries whether the view is connected to the stage.<br />
2196 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2198 /// <since_tizen> 3 </since_tizen>
2199 public bool IsOnWindow
2208 /// Gets the depth in the hierarchy for the view.
2210 /// <since_tizen> 3 </since_tizen>
2211 public int HierarchyDepth
2215 return GetHierarchyDepth();
2220 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2223 /// Note the initial value is 0.
2224 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2225 /// The values set by this property will likely change.
2227 /// <since_tizen> 3 </since_tizen>
2228 public int SiblingOrder
2232 var parentChildren = Parent?.Children;
2233 int currentOrder = 0;
2234 if (parentChildren != null)
2236 currentOrder = parentChildren.IndexOf(this);
2238 if (currentOrder < parentChildren.Count)
2240 return currentOrder;
2244 return currentOrder;
2248 var siblings = Parent?.Children;
2249 if (siblings != null)
2251 int currentOrder = siblings.IndexOf(this);
2253 if (value != currentOrder)
2259 else if (value < siblings.Count - 1)
2261 if (value > currentOrder)
2263 RaiseAbove(siblings[value]);
2267 LowerBelow(siblings[value]);
2280 /// Returns the natural size of the view.
2283 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2285 /// /// Please do not use! this will be deprecated!
2286 /// Instead please use NaturalSize2D.
2287 /// <since_tizen> 3 </since_tizen>
2288 [Obsolete("Please do not use! This will be deprecated! Please use NaturalSize2D instead! " +
2290 "TextLabel label = new TextLabel(\"Hello World!\"); " +
2291 "Size2D size = label.NaturalSize2D;")]
2292 [EditorBrowsable(EditorBrowsableState.Never)]
2293 public Vector3 NaturalSize
2297 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2298 if (NDalicPINVOKE.SWIGPendingException.Pending)
2299 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2305 /// Returns the natural size (Size2D) of the view.
2308 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2310 /// <since_tizen> 4 </since_tizen>
2311 public Size2D NaturalSize2D
2315 Vector3 temp = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2316 if (NDalicPINVOKE.SWIGPendingException.Pending)
2317 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2319 return new Size2D((int)temp.Width, (int)temp.Height);
2327 /// This is an asynchronous method.
2329 /// <since_tizen> 3 </since_tizen>
2339 /// This is an asynchronous method.
2340 /// If the view is hidden, then the view and its children will not be rendered.
2341 /// 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.
2343 /// <since_tizen> 3 </since_tizen>
2349 internal void Raise()
2351 var parentChildren = Parent?.Children;
2353 if (parentChildren != null)
2355 int currentIndex = parentChildren.IndexOf(this);
2357 // If the view is not already the last item in the list.
2358 if (currentIndex != parentChildren.Count -1)
2360 View temp = parentChildren[currentIndex + 1];
2361 parentChildren[currentIndex + 1] = this;
2362 parentChildren[currentIndex] = temp;
2366 NDalicPINVOKE.Raise(swigCPtr);
2367 if (NDalicPINVOKE.SWIGPendingException.Pending)
2368 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2371 internal void Lower()
2373 var parentChildren = Parent?.Children;
2375 if (parentChildren != null)
2377 int currentIndex = parentChildren.IndexOf(this);
2379 // If the view is not already the first item in the list.
2380 if (currentIndex > 0)
2382 View temp = parentChildren[currentIndex - 1];
2383 parentChildren[currentIndex - 1] = this;
2384 parentChildren[currentIndex] = temp;
2388 NDalicPINVOKE.Lower(swigCPtr);
2389 if (NDalicPINVOKE.SWIGPendingException.Pending)
2390 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2394 /// Raises the view above all other views.
2397 /// Sibling order of views within the parent will be updated automatically.
2398 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
2400 /// <since_tizen> 3 </since_tizen>
2401 public void RaiseToTop()
2403 var parentChildren = Parent?.Children;
2405 if (parentChildren != null)
2407 parentChildren.Remove(this);
2408 parentChildren.Add(this);
2411 NDalicPINVOKE.RaiseToTop(swigCPtr);
2412 if (NDalicPINVOKE.SWIGPendingException.Pending)
2413 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2417 /// Lowers the view to the bottom of all views.
2420 /// The sibling order of views within the parent will be updated automatically.
2421 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2423 /// <since_tizen> 3 </since_tizen>
2424 public void LowerToBottom()
2426 var parentChildren = Parent?.Children;
2428 if (parentChildren != null)
2430 parentChildren.Remove(this);
2431 parentChildren.Insert(0, this);
2434 NDalicPINVOKE.LowerToBottom(swigCPtr);
2435 if (NDalicPINVOKE.SWIGPendingException.Pending)
2436 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2440 /// Queries if all resources required by a view are loaded and ready.
2442 /// <remarks>Most resources are only loaded when the control is placed on the stage.
2444 /// <since_tizen> 3 </since_tizen>
2445 public bool IsResourceReady()
2447 bool ret = NDalicPINVOKE.IsResourceReady(swigCPtr);
2448 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2453 /// Raises the view to above the target view.
2455 /// <remarks>The sibling order of views within the parent will be updated automatically.
2456 /// Views on the level above the target view will still be shown above this view.
2457 /// Raising this view above views with the same sibling order as each other will raise this view above them.
2458 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2460 /// <param name="target">Will be raised above this view.</param>
2461 internal void RaiseAbove(View target)
2463 var parentChildren = Parent?.Children;
2465 if (parentChildren != null)
2467 int currentIndex = parentChildren.IndexOf(this);
2468 int targetIndex = parentChildren.IndexOf(target);
2470 // If the currentIndex is less than the target index and the target has the same parent.
2471 if (currentIndex < targetIndex)
2473 parentChildren.Remove(this);
2474 parentChildren.Insert(targetIndex, this);
2478 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
2479 if (NDalicPINVOKE.SWIGPendingException.Pending)
2480 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2484 /// Lowers the view to below the target view.
2486 /// <remarks>The sibling order of views within the parent will be updated automatically.
2487 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
2488 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2490 /// <param name="target">Will be lowered below this view.</param>
2491 internal void LowerBelow(View target)
2493 var parentChildren = Parent?.Children;
2495 if (parentChildren != null)
2497 int currentIndex = parentChildren.IndexOf(this);
2498 int targetIndex = parentChildren.IndexOf(target);
2500 // If the currentIndex is not already the 0th index and the target has the same parent.
2501 if ((currentIndex != 0) && (targetIndex != -1) &&
2502 (currentIndex > targetIndex))
2504 parentChildren.Remove(this);
2505 parentChildren.Insert(targetIndex, this);
2509 NDalicPINVOKE.LowerBelow(swigCPtr, View.getCPtr(target));
2510 if (NDalicPINVOKE.SWIGPendingException.Pending)
2511 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2514 internal string GetName()
2516 string ret = NDalicPINVOKE.Actor_GetName(swigCPtr);
2517 if (NDalicPINVOKE.SWIGPendingException.Pending)
2518 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2522 internal void SetName(string name)
2524 NDalicPINVOKE.Actor_SetName(swigCPtr, name);
2525 if (NDalicPINVOKE.SWIGPendingException.Pending)
2526 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2529 internal uint GetId()
2531 uint ret = NDalicPINVOKE.Actor_GetId(swigCPtr);
2532 if (NDalicPINVOKE.SWIGPendingException.Pending)
2533 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2537 internal bool IsRoot()
2539 bool ret = NDalicPINVOKE.Actor_IsRoot(swigCPtr);
2540 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2544 internal bool OnWindow()
2546 bool ret = NDalicPINVOKE.Actor_OnStage(swigCPtr);
2547 if (NDalicPINVOKE.SWIGPendingException.Pending)
2548 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2553 /// Gets the parent layer of this view.If a view has no parent, this method does nothing.
2555 /// <pre>The view has been initialized. </pre>
2556 /// <returns>the parent layer of view </returns>
2557 /// <since_tizen> 5 </since_tizen>
2558 /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
2559 [EditorBrowsable(EditorBrowsableState.Never)]
2560 public Layer GetLayer()
2562 IntPtr cPtr = NDalicPINVOKE.Actor_GetLayer(swigCPtr);
2563 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Layer;
2565 if (NDalicPINVOKE.SWIGPendingException.Pending)
2566 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2571 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
2573 /// <pre>The (child) view has been initialized. </pre>
2574 /// <since_tizen> 4 </since_tizen>
2575 public void Unparent()
2577 GetParent()?.Remove(this);
2581 /// Search through this view's hierarchy for a view with the given name.
2582 /// The view itself is also considered in the search.
2584 /// <pre>The view has been initialized.</pre>
2585 /// <param name="viewName">The name of the view to find.</param>
2586 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
2587 /// <since_tizen> 3 </since_tizen>
2588 public View FindChildByName(string viewName)
2590 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildByName(swigCPtr, viewName);
2592 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2594 if (NDalicPINVOKE.SWIGPendingException.Pending)
2595 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2599 internal View FindChildById(uint id)
2601 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildById(swigCPtr, id);
2603 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2605 if (NDalicPINVOKE.SWIGPendingException.Pending)
2606 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2610 internal void SetParentOrigin(Vector3 origin)
2612 NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
2613 if (NDalicPINVOKE.SWIGPendingException.Pending)
2614 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2617 internal Vector3 GetCurrentParentOrigin()
2619 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentParentOrigin(swigCPtr), true);
2620 if (NDalicPINVOKE.SWIGPendingException.Pending)
2621 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2625 internal void SetAnchorPoint(Vector3 anchorPoint)
2627 NDalicPINVOKE.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
2628 if (NDalicPINVOKE.SWIGPendingException.Pending)
2629 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2632 internal Vector3 GetCurrentAnchorPoint()
2634 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentAnchorPoint(swigCPtr), true);
2635 if (NDalicPINVOKE.SWIGPendingException.Pending)
2636 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2640 internal void SetSize(float width, float height)
2642 NDalicPINVOKE.Actor_SetSize__SWIG_0(swigCPtr, width, height);
2643 if (NDalicPINVOKE.SWIGPendingException.Pending)
2644 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2647 internal void SetSize(float width, float height, float depth)
2649 NDalicPINVOKE.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
2650 if (NDalicPINVOKE.SWIGPendingException.Pending)
2651 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2654 internal void SetSize(Vector2 size)
2656 NDalicPINVOKE.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
2657 if (NDalicPINVOKE.SWIGPendingException.Pending)
2658 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2661 internal void SetSize(Vector3 size)
2663 NDalicPINVOKE.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
2664 if (NDalicPINVOKE.SWIGPendingException.Pending)
2665 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2668 internal Vector3 GetTargetSize()
2670 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetTargetSize(swigCPtr), true);
2671 if (NDalicPINVOKE.SWIGPendingException.Pending)
2672 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2676 internal Size2D GetCurrentSize()
2678 Size ret = new Size(NDalicPINVOKE.Actor_GetCurrentSize(swigCPtr), true);
2679 if (NDalicPINVOKE.SWIGPendingException.Pending)
2680 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2681 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
2685 internal Vector3 GetNaturalSize()
2687 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2688 if (NDalicPINVOKE.SWIGPendingException.Pending)
2689 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2693 internal void SetPosition(float x, float y)
2695 NDalicPINVOKE.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
2696 if (NDalicPINVOKE.SWIGPendingException.Pending)
2697 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2700 internal void SetPosition(float x, float y, float z)
2702 NDalicPINVOKE.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
2703 if (NDalicPINVOKE.SWIGPendingException.Pending)
2704 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2707 internal void SetPosition(Vector3 position)
2709 NDalicPINVOKE.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
2710 if (NDalicPINVOKE.SWIGPendingException.Pending)
2711 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2714 internal void SetX(float x)
2716 NDalicPINVOKE.Actor_SetX(swigCPtr, x);
2717 if (NDalicPINVOKE.SWIGPendingException.Pending)
2718 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2721 internal void SetY(float y)
2723 NDalicPINVOKE.Actor_SetY(swigCPtr, y);
2724 if (NDalicPINVOKE.SWIGPendingException.Pending)
2725 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2728 internal void SetZ(float z)
2730 NDalicPINVOKE.Actor_SetZ(swigCPtr, z);
2731 if (NDalicPINVOKE.SWIGPendingException.Pending)
2732 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2735 internal void TranslateBy(Vector3 distance)
2737 NDalicPINVOKE.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
2738 if (NDalicPINVOKE.SWIGPendingException.Pending)
2739 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2742 internal Position GetCurrentPosition()
2744 Position ret = new Position(NDalicPINVOKE.Actor_GetCurrentPosition(swigCPtr), true);
2745 if (NDalicPINVOKE.SWIGPendingException.Pending)
2746 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2750 internal Vector3 GetCurrentWorldPosition()
2752 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldPosition(swigCPtr), true);
2753 if (NDalicPINVOKE.SWIGPendingException.Pending)
2754 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2758 internal void SetInheritPosition(bool inherit)
2760 NDalicPINVOKE.Actor_SetInheritPosition(swigCPtr, inherit);
2761 if (NDalicPINVOKE.SWIGPendingException.Pending)
2762 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2765 internal bool IsPositionInherited()
2767 bool ret = NDalicPINVOKE.Actor_IsPositionInherited(swigCPtr);
2768 if (NDalicPINVOKE.SWIGPendingException.Pending)
2769 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2773 internal void SetOrientation(Degree angle, Vector3 axis)
2775 NDalicPINVOKE.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2776 if (NDalicPINVOKE.SWIGPendingException.Pending)
2777 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2780 internal void SetOrientation(Radian angle, Vector3 axis)
2782 NDalicPINVOKE.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2783 if (NDalicPINVOKE.SWIGPendingException.Pending)
2784 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2787 internal void SetOrientation(Rotation orientation)
2789 NDalicPINVOKE.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
2790 if (NDalicPINVOKE.SWIGPendingException.Pending)
2791 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2794 internal void RotateBy(Degree angle, Vector3 axis)
2796 NDalicPINVOKE.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2797 if (NDalicPINVOKE.SWIGPendingException.Pending)
2798 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2801 internal void RotateBy(Radian angle, Vector3 axis)
2803 NDalicPINVOKE.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2804 if (NDalicPINVOKE.SWIGPendingException.Pending)
2805 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2808 internal void RotateBy(Rotation relativeRotation)
2810 NDalicPINVOKE.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
2811 if (NDalicPINVOKE.SWIGPendingException.Pending)
2812 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2815 internal Rotation GetCurrentOrientation()
2817 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentOrientation(swigCPtr), true);
2818 if (NDalicPINVOKE.SWIGPendingException.Pending)
2819 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2823 internal void SetInheritOrientation(bool inherit)
2825 NDalicPINVOKE.Actor_SetInheritOrientation(swigCPtr, inherit);
2826 if (NDalicPINVOKE.SWIGPendingException.Pending)
2827 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2830 internal bool IsOrientationInherited()
2832 bool ret = NDalicPINVOKE.Actor_IsOrientationInherited(swigCPtr);
2833 if (NDalicPINVOKE.SWIGPendingException.Pending)
2834 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2838 internal Rotation GetCurrentWorldOrientation()
2840 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentWorldOrientation(swigCPtr), true);
2841 if (NDalicPINVOKE.SWIGPendingException.Pending)
2842 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2846 internal void SetScale(float scale)
2848 NDalicPINVOKE.Actor_SetScale__SWIG_0(swigCPtr, scale);
2849 if (NDalicPINVOKE.SWIGPendingException.Pending)
2850 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2853 internal void SetScale(float scaleX, float scaleY, float scaleZ)
2855 NDalicPINVOKE.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
2856 if (NDalicPINVOKE.SWIGPendingException.Pending)
2857 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2860 internal void SetScale(Vector3 scale)
2862 NDalicPINVOKE.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
2863 if (NDalicPINVOKE.SWIGPendingException.Pending)
2864 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2867 internal void ScaleBy(Vector3 relativeScale)
2869 NDalicPINVOKE.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
2870 if (NDalicPINVOKE.SWIGPendingException.Pending)
2871 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2874 internal Vector3 GetCurrentScale()
2876 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentScale(swigCPtr), true);
2877 if (NDalicPINVOKE.SWIGPendingException.Pending)
2878 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2882 internal Vector3 GetCurrentWorldScale()
2884 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldScale(swigCPtr), true);
2885 if (NDalicPINVOKE.SWIGPendingException.Pending)
2886 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2890 internal void SetInheritScale(bool inherit)
2892 NDalicPINVOKE.Actor_SetInheritScale(swigCPtr, inherit);
2893 if (NDalicPINVOKE.SWIGPendingException.Pending)
2894 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2897 internal bool IsScaleInherited()
2899 bool ret = NDalicPINVOKE.Actor_IsScaleInherited(swigCPtr);
2900 if (NDalicPINVOKE.SWIGPendingException.Pending)
2901 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2905 internal Matrix GetCurrentWorldMatrix()
2907 Matrix ret = new Matrix(NDalicPINVOKE.Actor_GetCurrentWorldMatrix(swigCPtr), true);
2908 if (NDalicPINVOKE.SWIGPendingException.Pending)
2909 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2913 internal void SetVisible(bool visible)
2915 NDalicPINVOKE.Actor_SetVisible(swigCPtr, visible);
2916 if (NDalicPINVOKE.SWIGPendingException.Pending)
2917 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2920 internal bool IsVisible()
2922 bool ret = NDalicPINVOKE.Actor_IsVisible(swigCPtr);
2923 if (NDalicPINVOKE.SWIGPendingException.Pending)
2924 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2928 internal void SetOpacity(float opacity)
2930 NDalicPINVOKE.Actor_SetOpacity(swigCPtr, opacity);
2931 if (NDalicPINVOKE.SWIGPendingException.Pending)
2932 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2935 internal float GetCurrentOpacity()
2937 float ret = NDalicPINVOKE.Actor_GetCurrentOpacity(swigCPtr);
2938 if (NDalicPINVOKE.SWIGPendingException.Pending)
2939 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2943 internal void SetColor(Vector4 color)
2945 NDalicPINVOKE.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
2946 if (NDalicPINVOKE.SWIGPendingException.Pending)
2947 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2950 internal Vector4 GetCurrentColor()
2952 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentColor(swigCPtr), true);
2953 if (NDalicPINVOKE.SWIGPendingException.Pending)
2954 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2958 internal void SetColorMode(ColorMode colorMode)
2960 NDalicPINVOKE.Actor_SetColorMode(swigCPtr, (int)colorMode);
2961 if (NDalicPINVOKE.SWIGPendingException.Pending)
2962 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2965 internal ColorMode GetColorMode()
2967 ColorMode ret = (ColorMode)NDalicPINVOKE.Actor_GetColorMode(swigCPtr);
2968 if (NDalicPINVOKE.SWIGPendingException.Pending)
2969 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2973 internal Vector4 GetCurrentWorldColor()
2975 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentWorldColor(swigCPtr), true);
2976 if (NDalicPINVOKE.SWIGPendingException.Pending)
2977 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2981 internal void SetDrawMode(DrawModeType drawMode)
2983 NDalicPINVOKE.Actor_SetDrawMode(swigCPtr, (int)drawMode);
2984 if (NDalicPINVOKE.SWIGPendingException.Pending)
2985 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2988 internal DrawModeType GetDrawMode()
2990 DrawModeType ret = (DrawModeType)NDalicPINVOKE.Actor_GetDrawMode(swigCPtr);
2991 if (NDalicPINVOKE.SWIGPendingException.Pending)
2992 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2997 /// Converts screen coordinates into the view's coordinate system using the default camera.
2999 /// <pre>The view has been initialized.</pre>
3000 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
3001 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
3002 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
3003 /// <param name="screenX">The screen X-coordinate.</param>
3004 /// <param name="screenY">The screen Y-coordinate.</param>
3005 /// <returns>True if the conversion succeeded.</returns>
3006 /// <since_tizen> 3 </since_tizen>
3007 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
3009 bool ret = NDalicPINVOKE.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
3010 if (NDalicPINVOKE.SWIGPendingException.Pending)
3011 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3015 internal void SetKeyboardFocusable(bool focusable)
3017 NDalicPINVOKE.Actor_SetKeyboardFocusable(swigCPtr, focusable);
3018 if (NDalicPINVOKE.SWIGPendingException.Pending)
3019 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3022 internal bool IsKeyboardFocusable()
3024 bool ret = NDalicPINVOKE.Actor_IsKeyboardFocusable(swigCPtr);
3025 if (NDalicPINVOKE.SWIGPendingException.Pending)
3026 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3030 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
3032 NDalicPINVOKE.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
3033 if (NDalicPINVOKE.SWIGPendingException.Pending)
3034 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3037 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
3039 ResizePolicyType ret = (ResizePolicyType)NDalicPINVOKE.Actor_GetResizePolicy(swigCPtr, (int)dimension);
3040 if (NDalicPINVOKE.SWIGPendingException.Pending)
3041 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3046 /// Sets the relative to parent size factor of the view.<br />
3047 /// This factor is only used when ResizePolicy is set to either:
3048 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
3049 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
3051 /// <pre>The view has been initialized.</pre>
3052 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
3053 /// <since_tizen> 3 </since_tizen>
3054 public void SetSizeModeFactor(Vector3 factor)
3056 NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
3057 if (NDalicPINVOKE.SWIGPendingException.Pending)
3058 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3061 internal Vector3 GetSizeModeFactor()
3063 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetSizeModeFactor(swigCPtr), true);
3064 if (NDalicPINVOKE.SWIGPendingException.Pending)
3065 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3070 /// Calculates the height of the view given a width.<br />
3071 /// The natural size is used for default calculation.<br />
3072 /// Size 0 is treated as aspect ratio 1:1.<br />
3074 /// <param name="width">The width to use.</param>
3075 /// <returns>The height based on the width.</returns>
3076 /// <since_tizen> 3 </since_tizen>
3077 public float GetHeightForWidth(float width)
3079 float ret = NDalicPINVOKE.Actor_GetHeightForWidth(swigCPtr, width);
3080 if (NDalicPINVOKE.SWIGPendingException.Pending)
3081 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3086 /// Calculates the width of the view given a height.<br />
3087 /// The natural size is used for default calculation.<br />
3088 /// Size 0 is treated as aspect ratio 1:1.<br />
3090 /// <param name="height">The height to use.</param>
3091 /// <returns>The width based on the height.</returns>
3092 /// <since_tizen> 3 </since_tizen>
3093 public float GetWidthForHeight(float height)
3095 float ret = NDalicPINVOKE.Actor_GetWidthForHeight(swigCPtr, height);
3096 if (NDalicPINVOKE.SWIGPendingException.Pending)
3097 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3102 /// Return the amount of size allocated for relayout.
3104 /// <param name="dimension">The dimension to retrieve.</param>
3105 /// <returns>Return the size.</returns>
3106 /// <since_tizen> 3 </since_tizen>
3107 public float GetRelayoutSize(DimensionType dimension)
3109 float ret = NDalicPINVOKE.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
3110 if (NDalicPINVOKE.SWIGPendingException.Pending)
3111 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3116 /// Set the padding for the view.
3118 /// <param name="padding">Padding for the view.</param>
3119 /// <since_tizen> 3 </since_tizen>
3120 public void SetPadding(PaddingType padding)
3122 NDalicPINVOKE.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
3123 if (NDalicPINVOKE.SWIGPendingException.Pending)
3124 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3128 /// Return the value of padding for the view.
3130 /// <param name="paddingOut">the value of padding for the view</param>
3131 /// <since_tizen> 3 </since_tizen>
3132 public void GetPadding(PaddingType paddingOut)
3134 NDalicPINVOKE.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
3135 if (NDalicPINVOKE.SWIGPendingException.Pending)
3136 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3139 internal void SetMinimumSize(Vector2 size)
3141 NDalicPINVOKE.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
3142 if (NDalicPINVOKE.SWIGPendingException.Pending)
3143 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3146 internal Vector2 GetMinimumSize()
3148 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMinimumSize(swigCPtr), true);
3149 if (NDalicPINVOKE.SWIGPendingException.Pending)
3150 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3154 internal void SetMaximumSize(Vector2 size)
3156 NDalicPINVOKE.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
3157 if (NDalicPINVOKE.SWIGPendingException.Pending)
3158 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3161 internal Vector2 GetMaximumSize()
3163 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMaximumSize(swigCPtr), true);
3164 if (NDalicPINVOKE.SWIGPendingException.Pending)
3165 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3169 internal int GetHierarchyDepth()
3171 int ret = NDalicPINVOKE.Actor_GetHierarchyDepth(swigCPtr);
3172 if (NDalicPINVOKE.SWIGPendingException.Pending)
3173 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3177 /// <since_tizen> 3 </since_tizen>
3178 public uint AddRenderer(Renderer renderer)
3180 uint ret = NDalicPINVOKE.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
3181 if (NDalicPINVOKE.SWIGPendingException.Pending)
3182 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3186 internal uint GetRendererCount()
3188 uint ret = NDalicPINVOKE.Actor_GetRendererCount(swigCPtr);
3189 if (NDalicPINVOKE.SWIGPendingException.Pending)
3190 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3194 /// <since_tizen> 3 </since_tizen>
3195 public Renderer GetRendererAt(uint index)
3197 IntPtr cPtr = NDalicPINVOKE.Actor_GetRendererAt(swigCPtr, index);
3198 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Renderer;
3200 if (NDalicPINVOKE.SWIGPendingException.Pending)
3201 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3205 /// <since_tizen> 3 </since_tizen>
3206 public void RemoveRenderer(Renderer renderer)
3208 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
3209 if (NDalicPINVOKE.SWIGPendingException.Pending)
3210 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3213 /// <since_tizen> 3 </since_tizen>
3214 public void RemoveRenderer(uint index)
3216 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
3217 if (NDalicPINVOKE.SWIGPendingException.Pending)
3218 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3221 internal TouchDataSignal TouchSignal()
3223 TouchDataSignal ret = new TouchDataSignal(NDalicPINVOKE.Actor_TouchSignal(swigCPtr), false);
3224 if (NDalicPINVOKE.SWIGPendingException.Pending)
3225 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3229 internal HoverSignal HoveredSignal()
3231 HoverSignal ret = new HoverSignal(NDalicPINVOKE.Actor_HoveredSignal(swigCPtr), false);
3232 if (NDalicPINVOKE.SWIGPendingException.Pending)
3233 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3237 internal WheelSignal WheelEventSignal()
3239 WheelSignal ret = new WheelSignal(NDalicPINVOKE.Actor_WheelEventSignal(swigCPtr), false);
3240 if (NDalicPINVOKE.SWIGPendingException.Pending)
3241 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3245 internal ViewSignal OnWindowSignal()
3247 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
3248 if (NDalicPINVOKE.SWIGPendingException.Pending)
3249 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3253 internal ViewSignal OffWindowSignal()
3255 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OffStageSignal(swigCPtr), false);
3256 if (NDalicPINVOKE.SWIGPendingException.Pending)
3257 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3261 internal ViewSignal OnRelayoutSignal()
3263 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnRelayoutSignal(swigCPtr), false);
3264 if (NDalicPINVOKE.SWIGPendingException.Pending)
3265 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3269 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view) {
3270 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(NDalicPINVOKE.VisibilityChangedSignal(View.getCPtr(view)), false);
3271 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3276 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view) {
3277 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(NDalicManualPINVOKE.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
3278 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3283 internal ViewSignal ResourcesLoadedSignal()
3285 ViewSignal ret = new ViewSignal(NDalicPINVOKE.ResourceReadySignal(swigCPtr), false);
3286 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3291 /// Gets or sets the origin of a view within its parent's area.<br />
3292 /// 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 />
3293 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
3294 /// A view's position is the distance between this origin and the view's anchor-point.<br />
3296 /// <pre>The view has been initialized.</pre>
3297 /// <since_tizen> 3 </since_tizen>
3298 public Position ParentOrigin
3302 Position temp = new Position(0.0f, 0.0f, 0.0f);
3303 GetProperty(View.Property.PARENT_ORIGIN).Get(temp);
3308 SetProperty(View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue(value));
3312 internal float ParentOriginX
3317 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3322 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3326 internal float ParentOriginY
3331 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3336 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3340 internal float ParentOriginZ
3345 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3350 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3355 /// Gets or sets the anchor-point of a view.<br />
3356 /// 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 />
3357 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
3358 /// A view position is the distance between its parent-origin and this anchor-point.<br />
3359 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
3360 /// <pre>The view has been initialized.</pre>
3362 /// <since_tizen> 3 </since_tizen>
3363 public Position PivotPoint
3367 Position temp = new Position(0.0f, 0.0f, 0.0f);
3368 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3373 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3377 internal float PivotPointX
3382 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3387 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3391 internal float PivotPointY
3396 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3401 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3405 internal float PivotPointZ
3410 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3415 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3420 /// Gets or sets the size width of the view.
3422 /// <since_tizen> 3 </since_tizen>
3423 public float SizeWidth
3428 GetProperty(View.Property.SIZE_WIDTH).Get(out temp);
3433 SetProperty(View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
3438 /// Gets or sets the size height of the view.
3440 /// <since_tizen> 3 </since_tizen>
3441 public float SizeHeight
3446 GetProperty(View.Property.SIZE_HEIGHT).Get(out temp);
3451 SetProperty(View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3456 /// Gets or sets the position of the view.<br />
3457 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
3458 /// If the position inheritance is disabled, sets the world position.<br />
3460 /// <since_tizen> 3 </since_tizen>
3461 public Position Position
3465 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3466 GetProperty(View.Property.POSITION).Get(temp);
3471 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(value));
3476 /// Gets or sets the position X of the view.
3478 /// <since_tizen> 3 </since_tizen>
3479 public float PositionX
3484 GetProperty(View.Property.POSITION_X).Get(out temp);
3489 SetProperty(View.Property.POSITION_X, new Tizen.NUI.PropertyValue(value));
3494 /// Gets or sets the position Y of the view.
3496 /// <since_tizen> 3 </since_tizen>
3497 public float PositionY
3502 GetProperty(View.Property.POSITION_Y).Get(out temp);
3507 SetProperty(View.Property.POSITION_Y, new Tizen.NUI.PropertyValue(value));
3512 /// Gets or sets the position Z of the view.
3514 /// <since_tizen> 3 </since_tizen>
3515 public float PositionZ
3520 GetProperty(View.Property.POSITION_Z).Get(out temp);
3525 SetProperty(View.Property.POSITION_Z, new Tizen.NUI.PropertyValue(value));
3530 /// Gets or sets the world position of the view.
3532 /// <since_tizen> 3 </since_tizen>
3533 public Vector3 WorldPosition
3537 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3538 GetProperty(View.Property.WORLD_POSITION).Get(temp);
3543 internal float WorldPositionX
3548 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3553 internal float WorldPositionY
3558 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3563 internal float WorldPositionZ
3568 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3574 /// Gets or sets the orientation of the view.<br />
3575 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
3577 /// <remarks>This is an asynchronous method.</remarks>
3578 /// <since_tizen> 3 </since_tizen>
3579 public Rotation Orientation
3583 Rotation temp = new Rotation();
3584 GetProperty(View.Property.ORIENTATION).Get(temp);
3589 SetProperty(View.Property.ORIENTATION, new Tizen.NUI.PropertyValue(value));
3594 /// Gets or sets the world orientation of the view.<br />
3596 /// <since_tizen> 3 </since_tizen>
3597 public Rotation WorldOrientation
3601 Rotation temp = new Rotation();
3602 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
3608 /// Gets or sets the scale factor applied to the view.<br />
3610 /// <since_tizen> 3 </since_tizen>
3611 public Vector3 Scale
3615 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3616 GetProperty(View.Property.SCALE).Get(temp);
3621 SetProperty(View.Property.SCALE, new Tizen.NUI.PropertyValue(value));
3626 /// Gets or sets the scale X factor applied to the view.
3628 /// <since_tizen> 3 </since_tizen>
3634 GetProperty(View.Property.SCALE_X).Get(out temp);
3639 SetProperty(View.Property.SCALE_X, new Tizen.NUI.PropertyValue(value));
3644 /// Gets or sets the scale Y factor applied to the view.
3646 /// <since_tizen> 3 </since_tizen>
3652 GetProperty(View.Property.SCALE_Y).Get(out temp);
3657 SetProperty(View.Property.SCALE_Y, new Tizen.NUI.PropertyValue(value));
3662 /// Gets or sets the scale Z factor applied to the view.
3664 /// <since_tizen> 3 </since_tizen>
3670 GetProperty(View.Property.SCALE_Z).Get(out temp);
3675 SetProperty(View.Property.SCALE_Z, new Tizen.NUI.PropertyValue(value));
3680 /// Gets the world scale of the view.
3682 /// <since_tizen> 3 </since_tizen>
3683 public Vector3 WorldScale
3687 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3688 GetProperty(View.Property.WORLD_SCALE).Get(temp);
3694 /// Retrieves the visibility flag of the view.
3697 /// If the view is not visible, then the view and its children will not be rendered.
3698 /// 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.
3700 /// <since_tizen> 3 </since_tizen>
3701 public bool Visibility
3706 GetProperty(View.Property.VISIBLE).Get(out temp);
3713 /// [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
3715 /// <since_tizen> 3 </since_tizen>
3716 [Obsolete("Please do not use! This will be deprecated! Please use Visibility instead!")]
3717 [EditorBrowsable(EditorBrowsableState.Never)]
3728 /// Gets the view's world color.
3730 /// <since_tizen> 3 </since_tizen>
3731 public Vector4 WorldColor
3735 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3736 GetProperty(View.Property.WORLD_COLOR).Get(temp);
3741 internal Matrix WorldMatrix
3745 Matrix temp = new Matrix();
3746 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3752 /// Gets or sets the view's name.
3754 /// <since_tizen> 3 </since_tizen>
3760 GetProperty(View.Property.NAME).Get(out temp);
3765 SetProperty(View.Property.NAME, new Tizen.NUI.PropertyValue(value));
3770 /// Get the number of children held by the view.
3772 /// <since_tizen> 3 </since_tizen>
3773 public new uint ChildCount
3777 return GetChildCount();
3782 /// Gets the view's ID.
3785 /// <since_tizen> 3 </since_tizen>
3795 /// Gets or sets the status of whether the view should emit touch or hover signals.
3797 /// <since_tizen> 3 </since_tizen>
3798 public bool Sensitive
3803 GetProperty(View.Property.SENSITIVE).Get(out temp);
3808 SetProperty(View.Property.SENSITIVE, new Tizen.NUI.PropertyValue(value));
3813 /// 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.
3815 /// <since_tizen> 3 </since_tizen>
3816 public bool LeaveRequired
3821 GetProperty(View.Property.LEAVE_REQUIRED).Get(out temp);
3826 SetProperty(View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue(value));
3831 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
3833 /// <since_tizen> 3 </since_tizen>
3834 public bool InheritOrientation
3839 GetProperty(View.Property.INHERIT_ORIENTATION).Get(out temp);
3844 SetProperty(View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue(value));
3849 /// Gets or sets the status of whether a child view inherits it's parent's scale.
3851 /// <since_tizen> 3 </since_tizen>
3852 public bool InheritScale
3857 GetProperty(View.Property.INHERIT_SCALE).Get(out temp);
3862 SetProperty(View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue(value));
3867 /// Gets or sets the status of how the view and its children should be drawn.<br />
3868 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
3869 /// 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 />
3870 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
3871 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
3872 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
3874 /// <since_tizen> 3 </since_tizen>
3875 public DrawModeType DrawMode
3880 if (GetProperty(View.Property.DRAW_MODE).Get(out temp) == false)
3882 NUILog.Error("DrawMode get error!");
3887 return DrawModeType.Normal;
3889 return DrawModeType.Overlay2D;
3891 return DrawModeType.Stencil;
3893 return DrawModeType.Normal;
3898 SetProperty(View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)value));
3903 /// Gets or sets the relative to parent size factor of the view.<br />
3904 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
3905 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
3907 /// <since_tizen> 3 </since_tizen>
3908 public Vector3 SizeModeFactor
3912 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3913 GetProperty(View.Property.SIZE_MODE_FACTOR).Get(temp);
3918 SetProperty(View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue(value));
3923 /// Gets or sets the width resize policy to be used.
3925 /// <since_tizen> 3 </since_tizen>
3926 public ResizePolicyType WidthResizePolicy
3931 if (GetProperty(View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
3933 NUILog.Error("WidthResizePolicy get error!");
3938 return ResizePolicyType.Fixed;
3939 case "USE_NATURAL_SIZE":
3940 return ResizePolicyType.UseNaturalSize;
3941 case "FILL_TO_PARENT":
3942 return ResizePolicyType.FillToParent;
3943 case "SIZE_RELATIVE_TO_PARENT":
3944 return ResizePolicyType.SizeRelativeToParent;
3945 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3946 return ResizePolicyType.SizeFixedOffsetFromParent;
3947 case "FIT_TO_CHILDREN":
3948 return ResizePolicyType.FitToChildren;
3949 case "DIMENSION_DEPENDENCY":
3950 return ResizePolicyType.DimensionDependency;
3951 case "USE_ASSIGNED_SIZE":
3952 return ResizePolicyType.UseAssignedSize;
3954 return ResizePolicyType.Fixed;
3959 SetProperty(View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3964 /// Gets or sets the height resize policy to be used.
3966 /// <since_tizen> 3 </since_tizen>
3967 public ResizePolicyType HeightResizePolicy
3972 if (GetProperty(View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
3974 NUILog.Error("HeightResizePolicy get error!");
3979 return ResizePolicyType.Fixed;
3980 case "USE_NATURAL_SIZE":
3981 return ResizePolicyType.UseNaturalSize;
3982 case "FILL_TO_PARENT":
3983 return ResizePolicyType.FillToParent;
3984 case "SIZE_RELATIVE_TO_PARENT":
3985 return ResizePolicyType.SizeRelativeToParent;
3986 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3987 return ResizePolicyType.SizeFixedOffsetFromParent;
3988 case "FIT_TO_CHILDREN":
3989 return ResizePolicyType.FitToChildren;
3990 case "DIMENSION_DEPENDENCY":
3991 return ResizePolicyType.DimensionDependency;
3992 case "USE_ASSIGNED_SIZE":
3993 return ResizePolicyType.UseAssignedSize;
3995 return ResizePolicyType.Fixed;
4000 SetProperty(View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
4005 /// Gets or sets the policy to use when setting size with size negotiation.<br />
4006 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
4008 /// <since_tizen> 3 </since_tizen>
4009 public SizeScalePolicyType SizeScalePolicy
4014 if (GetProperty(View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
4016 NUILog.Error("SizeScalePolicy get error!");
4020 case "USE_SIZE_SET":
4021 return SizeScalePolicyType.UseSizeSet;
4022 case "FIT_WITH_ASPECT_RATIO":
4023 return SizeScalePolicyType.FitWithAspectRatio;
4024 case "FILL_WITH_ASPECT_RATIO":
4025 return SizeScalePolicyType.FillWithAspectRatio;
4027 return SizeScalePolicyType.UseSizeSet;
4032 string valueToString = "";
4035 case SizeScalePolicyType.UseSizeSet:
4037 valueToString = "USE_SIZE_SET";
4040 case SizeScalePolicyType.FitWithAspectRatio:
4042 valueToString = "FIT_WITH_ASPECT_RATIO";
4045 case SizeScalePolicyType.FillWithAspectRatio:
4047 valueToString = "FILL_WITH_ASPECT_RATIO";
4052 valueToString = "USE_SIZE_SET";
4056 SetProperty(View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
4061 /// Gets or sets the status of whether the width size is dependent on the height size.
4063 /// <since_tizen> 3 </since_tizen>
4064 public bool WidthForHeight
4069 GetProperty(View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
4074 SetProperty(View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue(value));
4079 /// Gets or sets the status of whether the height size is dependent on the width size.
4081 /// <since_tizen> 3 </since_tizen>
4082 public bool HeightForWidth
4087 GetProperty(View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
4092 SetProperty(View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue(value));
4097 /// Gets or sets the padding for use in layout.
4099 /// <since_tizen> 4 </since_tizen>
4100 public Extents Padding
4104 Extents temp = new Extents(0, 0, 0, 0);
4105 GetProperty(View.Property.PADDING).Get(temp);
4110 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
4115 /// Gets or sets the minimum size the view can be assigned in size negotiation.
4117 /// <since_tizen> 3 </since_tizen>
4118 public Size2D MinimumSize
4122 Size2D temp = new Size2D(0, 0);
4123 GetProperty(View.Property.MINIMUM_SIZE).Get(temp);
4128 SetProperty(View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4133 /// Gets or sets the maximum size the view can be assigned in size negotiation.
4135 /// <since_tizen> 3 </since_tizen>
4136 public Size2D MaximumSize
4140 Size2D temp = new Size2D(0, 0);
4141 GetProperty(View.Property.MAXIMUM_SIZE).Get(temp);
4146 SetProperty(View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4151 /// Gets or sets whether a child view inherits it's parent's position.<br />
4152 /// Default is to inherit.<br />
4153 /// 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 />
4155 /// <since_tizen> 3 </since_tizen>
4156 public bool InheritPosition
4161 GetProperty(View.Property.INHERIT_POSITION).Get(out temp);
4166 SetProperty(View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue(value));
4171 /// Gets or sets the clipping behavior (mode) of it's children.
4173 /// <since_tizen> 3 </since_tizen>
4174 public ClippingModeType ClippingMode
4179 if (GetProperty(View.Property.CLIPPING_MODE).Get(out temp) == false)
4181 NUILog.Error("ClippingMode get error!");
4186 return ClippingModeType.Disabled;
4187 case "CLIP_CHILDREN":
4188 return ClippingModeType.ClipChildren;
4189 case "CLIP_TO_BOUNDING_BOX":
4190 return ClippingModeType.ClipToBoundingBox;
4192 return ClippingModeType.Disabled;
4197 SetProperty(View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)value));
4202 /// Gets the number of renderers held by the view.
4204 /// <since_tizen> 3 </since_tizen>
4205 public uint RendererCount
4209 return GetRendererCount();
4214 /// [Obsolete("Please do not use! this will be deprecated")]
4216 /// <since_tizen> 3 </since_tizen>
4217 /// Please do not use! this will be deprecated!
4218 /// Instead please use PivotPoint.
4219 [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint instead! " +
4221 "View view = new View(); " +
4222 "view.PivotPoint = PivotPoint.Center; " +
4223 "view.PositionUsesPivotPoint = true;")]
4224 [EditorBrowsable(EditorBrowsableState.Never)]
4225 public Position AnchorPoint
4229 Position temp = new Position(0.0f, 0.0f, 0.0f);
4230 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
4235 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
4240 /// [Obsolete("Please do not use! this will be deprecated")]
4242 /// <since_tizen> 3 </since_tizen>
4243 [Obsolete("Please do not use! This will be deprecated! Please use Size2D instead! " +
4245 "View view = new View(); " +
4246 "view.Size2D = new Size2D(100, 100);")]
4247 [EditorBrowsable(EditorBrowsableState.Never)]
4252 Size temp = new Size(0.0f, 0.0f, 0.0f);
4253 GetProperty(View.Property.SIZE).Get(temp);
4258 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(value));
4263 /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4265 /// <since_tizen> 3 </since_tizen>
4266 [Obsolete("Please do not use! This will be deprecated! Please use 'Container GetParent() for derived class' instead! " +
4268 "Container parent = view.GetParent(); " +
4269 "View view = parent as View;")]
4270 [EditorBrowsable(EditorBrowsableState.Never)]
4271 public new View Parent
4276 IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
4278 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
4280 if (basehandle is Layer)
4282 ret = new View(cPtr, false);
4286 ret = basehandle as View;
4289 if (NDalicPINVOKE.SWIGPendingException.Pending)
4290 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4296 /// Gets/Sets whether inherit parent's the layout Direction.
4298 /// <since_tizen> 4 </since_tizen>
4299 public bool InheritLayoutDirection
4304 GetProperty(View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
4309 SetProperty(View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue(value));
4314 /// Gets/Sets the layout Direction.
4316 /// <since_tizen> 4 </since_tizen>
4317 public ViewLayoutDirectionType LayoutDirection
4322 if (GetProperty(View.Property.LAYOUT_DIRECTION).Get(out temp) == false)
4324 NUILog.Error("LAYOUT_DIRECTION get error!");
4326 return (ViewLayoutDirectionType)temp;
4330 SetProperty(View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)value));
4335 /// Gets or sets the Margin for use in layout.
4337 /// <since_tizen> 4 </since_tizen>
4338 public Extents Margin
4342 Extents temp = new Extents(0, 0, 0, 0);
4343 GetProperty(View.Property.MARGIN).Get(temp);
4348 SetProperty(View.Property.MARGIN, new Tizen.NUI.PropertyValue(value));
4353 /// [Obsolete("Please do not use! this will be deprecated")]
4355 /// Please do not use! this will be deprecated!
4356 /// Instead please use Padding.
4357 /// <since_tizen> 4 </since_tizen>
4358 [Obsolete("Please do not use! this will be deprecated, instead please use Padding.")]
4359 [EditorBrowsable(EditorBrowsableState.Never)]
4360 public Extents PaddingEX
4364 Extents temp = new Extents(0, 0, 0, 0);
4365 GetProperty(View.Property.PADDING).Get(temp);
4370 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
4375 /// Perform an action on a visual registered to this view. <br />
4376 /// Visuals will have actions, this API is used to perform one of these actions with the given attributes.
4378 /// <param name="propertyIndexOfVisual">The Property index of the visual.</param>
4379 /// <param name="propertyIndexOfActionId">The action to perform. See Visual to find supported actions.</param>
4380 /// <param name="attributes">Optional attributes for the action.</param>
4381 /// <since_tizen> 5 </since_tizen>
4382 /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
4383 [EditorBrowsable(EditorBrowsableState.Never)]
4384 public void DoAction(int propertyIndexOfVisual, int propertyIndexOfActionId, PropertyValue attributes)
4386 NDalicManualPINVOKE.View_DoAction(swigCPtr, propertyIndexOfVisual, propertyIndexOfActionId, PropertyValue.getCPtr(attributes));
4387 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4393 /// The View layout Direction type.
4395 /// <since_tizen> 4 </since_tizen>
4396 public enum ViewLayoutDirectionType
4401 /// <since_tizen> 4 </since_tizen>
4406 /// <since_tizen> 4 </since_tizen>