2 * Copyright(c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 namespace Tizen.NUI.BaseComponents
22 using System.Runtime.InteropServices;
25 /// View is the base class for all views.
27 public class View : Container
29 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
32 internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.View_SWIGUpcast(cPtr), cMemoryOwn)
34 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
35 PositionUsesPivotPoint = false;
38 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
40 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
43 // From Container Base class
46 /// Adds a child view to this view.
48 /// <seealso cref="Container.Add" />
49 /// <since_tizen> 4 </since_tizen>
50 public override void Add(View child)
52 NDalicPINVOKE.Actor_Add(swigCPtr, View.getCPtr(child));
53 if (NDalicPINVOKE.SWIGPendingException.Pending)
54 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
60 /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
62 /// <seealso cref="Container.Remove" />
63 /// <since_tizen> 4 </since_tizen>
64 public override void Remove(View child)
66 NDalicPINVOKE.Actor_Remove(swigCPtr, View.getCPtr(child));
67 if (NDalicPINVOKE.SWIGPendingException.Pending)
68 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
70 Children.Remove(child);
74 /// Retrieves a child view by index.
76 /// <seealso cref="Container.GetChildAt" />
77 /// <since_tizen> 4 </since_tizen>
78 public override View GetChildAt(uint index)
80 if (index < Children.Count)
82 return Children[Convert.ToInt32(index)];
91 /// Retrieves the number of children held by the view.
93 /// <seealso cref="Container.GetChildCount" />
94 protected override uint GetChildCount()
96 return Convert.ToUInt32(Children.Count);
100 /// Gets the views parent.
102 /// <seealso cref="Container.GetParent()" />
103 protected override Container GetParent()
105 IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
107 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
109 if (NDalicPINVOKE.SWIGPendingException.Pending)
110 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
112 return basehandle as Container;
116 /// This is temporal API. Currently Parent returns View but Container class has been introduced so 'View Parent' will be changed 'Container Parent' later soon, then this will be removed
118 /// <since_tizen> 3 </since_tizen>
119 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
120 public Container GetContainerParent()
122 return this.GetParent();
125 internal bool IsTopLevelView()
127 if(GetContainerParent() is Layer)
135 /// you can override it to clean-up your own resources.
137 /// <param name="type">DisposeTypes</param>
138 /// <since_tizen> 3 </since_tizen>
139 protected override void Dispose(DisposeTypes type)
146 if(type == DisposeTypes.Explicit)
149 //Release your own managed resources here.
150 //You should release all of your own disposable objects here.
153 //Release your own unmanaged resources here.
154 //You should not access any managed member here except static instance.
155 //because the execution order of Finalizes is non-deterministic.
157 DisConnectFromSignals();
159 if (swigCPtr.Handle != global::System.IntPtr.Zero)
164 NDalicPINVOKE.delete_View(swigCPtr);
166 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
171 // Dispose all Children of this View.
172 foreach (View childView in Children)
174 childView?.Dispose();
179 private void DisConnectFromSignals()
181 // Save current CPtr.
182 global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
184 // Use BaseHandle CPtr as current might have been deleted already in derived classes.
185 swigCPtr = GetBaseHandleCPtrHandleRef;
187 if (_onRelayoutEventCallback != null)
189 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
192 if (_offWindowEventCallback != null)
194 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
197 if (_onWindowEventCallback != null)
199 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
202 if (_wheelEventCallback != null)
204 this.WheelEventSignal().Disconnect(_wheelEventCallback);
207 if (_hoverEventCallback != null)
209 this.HoveredSignal().Disconnect(_hoverEventCallback);
212 if (_touchDataCallback != null)
214 this.TouchSignal().Disconnect(_touchDataCallback);
217 if (_ResourcesLoadedCallback != null)
219 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
222 if (_offWindowEventCallback != null)
224 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
227 if (_onWindowEventCallback != null)
229 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
232 if (_wheelEventCallback != null)
234 this.WheelEventSignal().Disconnect(_wheelEventCallback);
237 if (_hoverEventCallback != null)
239 this.HoveredSignal().Disconnect(_hoverEventCallback);
242 if (_touchDataCallback != null)
244 this.TouchSignal().Disconnect(_touchDataCallback);
247 if (_onRelayoutEventCallback != null)
249 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
252 if (_keyCallback != null)
254 this.KeyEventSignal().Disconnect(_keyCallback);
257 if (_keyInputFocusLostCallback != null)
259 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
262 if (_keyInputFocusGainedCallback != null)
264 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
267 // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
268 // Restore current CPtr.
269 swigCPtr = currentCPtr;
272 private EventHandler _keyInputFocusGainedEventHandler;
273 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
274 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
275 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
278 /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
279 /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.<br />
281 /// <since_tizen> 3 </since_tizen>
282 public event EventHandler FocusGained
286 if (_keyInputFocusGainedEventHandler == null)
288 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
289 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
292 _keyInputFocusGainedEventHandler += value;
297 _keyInputFocusGainedEventHandler -= value;
299 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
301 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
306 private void OnKeyInputFocusGained(IntPtr view)
308 if (_keyInputFocusGainedEventHandler != null)
310 _keyInputFocusGainedEventHandler(this, null);
315 private EventHandler _keyInputFocusLostEventHandler;
316 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
317 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
318 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
321 /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
322 /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.<br />
324 /// <since_tizen> 3 </since_tizen>
325 public event EventHandler FocusLost
329 if (_keyInputFocusLostEventHandler == null)
331 _keyInputFocusLostCallback = OnKeyInputFocusLost;
332 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
335 _keyInputFocusLostEventHandler += value;
340 _keyInputFocusLostEventHandler -= value;
342 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
344 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
349 private void OnKeyInputFocusLost(IntPtr view)
351 if (_keyInputFocusLostEventHandler != null)
353 _keyInputFocusLostEventHandler(this, null);
358 /// Event arguments that passed via the KeyEvent signal.
360 public class KeyEventArgs : EventArgs
365 /// Key - is the key sent to the view.
367 /// <since_tizen> 3 </since_tizen>
381 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
382 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
383 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
384 private KeyCallbackType _keyCallback;
387 /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
388 /// The KeyPressed signal is emitted when the key event is received.<br />
390 /// <since_tizen> 4 </since_tizen>
391 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
395 if (_keyEventHandler == null)
397 _keyCallback = OnKeyEvent;
398 this.KeyEventSignal().Connect(_keyCallback);
401 _keyEventHandler += value;
406 _keyEventHandler -= value;
408 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
410 this.KeyEventSignal().Disconnect(_keyCallback);
415 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
417 KeyEventArgs e = new KeyEventArgs();
421 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
423 if (_keyEventHandler != null)
425 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
427 // Oring the result of each callback.
428 foreach ( EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList )
430 result |= del( this, e );
437 private EventHandler _onRelayoutEventHandler;
438 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
439 private delegate void OnRelayoutEventCallbackType(IntPtr control);
440 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
443 /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.<br />
444 /// The OnRelayout signal is emitted after the size has been set on the view during relayout.<br />
446 /// <since_tizen> 3 </since_tizen>
447 public event EventHandler Relayout
451 if (_onRelayoutEventHandler == null)
453 _onRelayoutEventCallback = OnRelayout;
454 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
457 _onRelayoutEventHandler += value;
462 _onRelayoutEventHandler -= value;
464 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
466 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
472 // Callback for View OnRelayout signal
473 private void OnRelayout(IntPtr data)
475 if (_onRelayoutEventHandler != null)
477 _onRelayoutEventHandler(this, null);
482 /// Event arguments that passed via the touch signal.
484 public class TouchEventArgs : EventArgs
486 private Touch _touch;
489 /// Touch - contains the information of touch points.
491 /// <since_tizen> 3 </since_tizen>
505 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
506 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
507 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
508 private TouchDataCallbackType _touchDataCallback;
511 /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
512 /// The touched signal is emitted when the touch input is received.<br />
514 /// <since_tizen> 4 </since_tizen>
515 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> TouchEvent
519 if (_touchDataEventHandler == null)
521 _touchDataCallback = OnTouch;
522 this.TouchSignal().Connect(_touchDataCallback);
525 _touchDataEventHandler += value;
530 _touchDataEventHandler -= value;
532 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
534 this.TouchSignal().Disconnect(_touchDataCallback);
540 // Callback for View TouchSignal
541 private bool OnTouch(IntPtr view, IntPtr touchData)
543 TouchEventArgs e = new TouchEventArgs();
545 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
547 if (_touchDataEventHandler != null)
549 return _touchDataEventHandler(this, e);
556 /// Event arguments that passed via the hover signal.
558 public class HoverEventArgs : EventArgs
560 private Hover _hover;
563 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
565 /// <since_tizen> 3 </since_tizen>
579 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
580 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
581 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
582 private HoverEventCallbackType _hoverEventCallback;
585 /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
586 /// The hovered signal is emitted when the hover input is received.<br />
588 /// <since_tizen> 4 </since_tizen>
589 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> HoverEvent
593 if (_hoverEventHandler == null)
595 _hoverEventCallback = OnHoverEvent;
596 this.HoveredSignal().Connect(_hoverEventCallback);
599 _hoverEventHandler += value;
604 _hoverEventHandler -= value;
606 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
608 this.HoveredSignal().Disconnect(_hoverEventCallback);
614 // Callback for View Hover signal
615 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
617 HoverEventArgs e = new HoverEventArgs();
619 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
621 if (_hoverEventHandler != null)
623 return _hoverEventHandler(this, e);
630 /// Event arguments that passed via the wheel signal.
632 public class WheelEventArgs : EventArgs
634 private Wheel _wheel;
637 /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
639 /// <since_tizen> 3 </since_tizen>
653 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
654 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
655 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
656 private WheelEventCallbackType _wheelEventCallback;
659 /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
660 /// The WheelMoved signal is emitted when the wheel event is received.<br />
662 /// <since_tizen> 4 </since_tizen>
663 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelEvent
667 if (_wheelEventHandler == null)
669 _wheelEventCallback = OnWheelEvent;
670 this.WheelEventSignal().Connect(_wheelEventCallback);
673 _wheelEventHandler += value;
678 _wheelEventHandler -= value;
680 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
682 this.WheelEventSignal().Disconnect(_wheelEventCallback);
688 // Callback for View Wheel signal
689 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
691 WheelEventArgs e = new WheelEventArgs();
693 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
695 if (_wheelEventHandler != null)
697 return _wheelEventHandler(this, e);
703 private EventHandler _onWindowEventHandler;
704 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
705 private delegate void OnWindowEventCallbackType(IntPtr control);
706 private OnWindowEventCallbackType _onWindowEventCallback;
709 /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.<br />
710 /// The OnWindow signal is emitted after the view has been connected to the window.<br />
712 /// <since_tizen> 3 </since_tizen>
713 public event EventHandler AddedToWindow
717 if (_onWindowEventHandler == null)
719 _onWindowEventCallback = OnWindow;
720 this.OnWindowSignal().Connect(_onWindowEventCallback);
723 _onWindowEventHandler += value;
728 _onWindowEventHandler -= value;
730 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
732 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
737 // Callback for View OnWindow signal
738 private void OnWindow(IntPtr data)
740 if (_onWindowEventHandler != null)
742 _onWindowEventHandler(this, null);
747 private EventHandler _offWindowEventHandler;
748 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
749 private delegate void OffWindowEventCallbackType(IntPtr control);
750 private OffWindowEventCallbackType _offWindowEventCallback;
753 /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.<br />
754 /// OffWindow signal is emitted after the view has been disconnected from the window.<br />
756 /// <since_tizen> 3 </since_tizen>
757 public event EventHandler RemovedFromWindow
761 if (_offWindowEventHandler == null)
763 _offWindowEventCallback = OffWindow;
764 this.OffWindowSignal().Connect(_offWindowEventCallback);
767 _offWindowEventHandler += value;
772 _offWindowEventHandler -= value;
774 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
776 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
781 // Callback for View OffWindow signal
782 private void OffWindow(IntPtr data)
784 if (_offWindowEventHandler != null)
786 _offWindowEventHandler(this, null);
791 /// Event arguments of visibility changed.
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 public class LayoutDirectionChangedEventArgs : EventArgs
906 private ViewLayoutDirectionType _type;
909 /// The view, or child of view, whose layout direction has changed.
911 /// <since_tizen> 4 </since_tizen>
925 /// Whether the view's layout direction property has changed or a parent's.
927 /// <since_tizen> 4 </since_tizen>
928 public ViewLayoutDirectionType Type
941 private EventHandler<LayoutDirectionChangedEventArgs> _layoutDirectionChangedEventHandler;
942 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
943 private delegate void LayoutDirectionChangedEventCallbackType(IntPtr data, ViewLayoutDirectionType type);
944 private LayoutDirectionChangedEventCallbackType _layoutDirectionChangedEventCallback;
947 /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.<br />
948 /// This signal is emitted when the layout direction property of this or a parent view is changed.<br />
950 /// <since_tizen> 4 </since_tizen>
951 public event EventHandler<LayoutDirectionChangedEventArgs> LayoutDirectionChanged
955 if (_layoutDirectionChangedEventHandler == null)
957 _layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
958 LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
961 _layoutDirectionChangedEventHandler += value;
966 _layoutDirectionChangedEventHandler -= value;
968 if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
970 LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
975 // Callback for View layout direction change signal
976 private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
978 LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
981 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
985 if (_layoutDirectionChangedEventHandler != null)
987 _layoutDirectionChangedEventHandler(this, e);
997 // Resource Ready Signal
999 private EventHandler _resourcesLoadedEventHandler;
1000 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1001 private delegate void ResourcesLoadedCallbackType(IntPtr control);
1002 private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
1005 /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1006 /// This signal is emitted after all resources required by a view are loaded and ready.<br />
1008 /// <since_tizen> 4 </since_tizen>
1009 public event EventHandler ResourcesLoaded
1013 if (_resourcesLoadedEventHandler == null)
1015 _ResourcesLoadedCallback = OnResourcesLoaded;
1016 this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
1019 _resourcesLoadedEventHandler += value;
1024 _resourcesLoadedEventHandler -= value;
1026 if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1028 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
1033 private void OnResourcesLoaded(IntPtr view)
1035 if (_resourcesLoadedEventHandler != null)
1037 _resourcesLoadedEventHandler(this, null);
1041 internal IntPtr GetPtrfromView()
1043 return (IntPtr)swigCPtr;
1046 internal class Property
1048 internal static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
1049 internal static readonly int STATE = NDalicManualPINVOKE.View_Property_STATE_get();
1050 internal static readonly int SUB_STATE = NDalicManualPINVOKE.View_Property_SUB_STATE_get();
1051 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
1052 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
1053 internal static readonly int UP_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
1054 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
1055 internal static readonly int STYLE_NAME = NDalicPINVOKE.View_Property_STYLE_NAME_get();
1056 internal static readonly int BACKGROUND = NDalicPINVOKE.View_Property_BACKGROUND_get();
1057 internal static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
1058 internal static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
1059 internal static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
1060 internal static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
1061 internal static readonly int PARENT_ORIGIN = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_get();
1062 internal static readonly int PARENT_ORIGIN_X = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_X_get();
1063 internal static readonly int PARENT_ORIGIN_Y = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Y_get();
1064 internal static readonly int PARENT_ORIGIN_Z = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Z_get();
1065 internal static readonly int ANCHOR_POINT = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_get();
1066 internal static readonly int ANCHOR_POINT_X = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_X_get();
1067 internal static readonly int ANCHOR_POINT_Y = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Y_get();
1068 internal static readonly int ANCHOR_POINT_Z = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Z_get();
1069 internal static readonly int SIZE = NDalicPINVOKE.Actor_Property_SIZE_get();
1070 internal static readonly int SIZE_WIDTH = NDalicPINVOKE.Actor_Property_SIZE_WIDTH_get();
1071 internal static readonly int SIZE_HEIGHT = NDalicPINVOKE.Actor_Property_SIZE_HEIGHT_get();
1072 internal static readonly int SIZE_DEPTH = NDalicPINVOKE.Actor_Property_SIZE_DEPTH_get();
1073 internal static readonly int POSITION = NDalicPINVOKE.Actor_Property_POSITION_get();
1074 internal static readonly int POSITION_X = NDalicPINVOKE.Actor_Property_POSITION_X_get();
1075 internal static readonly int POSITION_Y = NDalicPINVOKE.Actor_Property_POSITION_Y_get();
1076 internal static readonly int POSITION_Z = NDalicPINVOKE.Actor_Property_POSITION_Z_get();
1077 internal static readonly int WORLD_POSITION = NDalicPINVOKE.Actor_Property_WORLD_POSITION_get();
1078 internal static readonly int WORLD_POSITION_X = NDalicPINVOKE.Actor_Property_WORLD_POSITION_X_get();
1079 internal static readonly int WORLD_POSITION_Y = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Y_get();
1080 internal static readonly int WORLD_POSITION_Z = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Z_get();
1081 internal static readonly int ORIENTATION = NDalicPINVOKE.Actor_Property_ORIENTATION_get();
1082 internal static readonly int WORLD_ORIENTATION = NDalicPINVOKE.Actor_Property_WORLD_ORIENTATION_get();
1083 internal static readonly int SCALE = NDalicPINVOKE.Actor_Property_SCALE_get();
1084 internal static readonly int SCALE_X = NDalicPINVOKE.Actor_Property_SCALE_X_get();
1085 internal static readonly int SCALE_Y = NDalicPINVOKE.Actor_Property_SCALE_Y_get();
1086 internal static readonly int SCALE_Z = NDalicPINVOKE.Actor_Property_SCALE_Z_get();
1087 internal static readonly int WORLD_SCALE = NDalicPINVOKE.Actor_Property_WORLD_SCALE_get();
1088 internal static readonly int VISIBLE = NDalicPINVOKE.Actor_Property_VISIBLE_get();
1089 internal static readonly int WORLD_COLOR = NDalicPINVOKE.Actor_Property_WORLD_COLOR_get();
1090 internal static readonly int WORLD_MATRIX = NDalicPINVOKE.Actor_Property_WORLD_MATRIX_get();
1091 internal static readonly int NAME = NDalicPINVOKE.Actor_Property_NAME_get();
1092 internal static readonly int SENSITIVE = NDalicPINVOKE.Actor_Property_SENSITIVE_get();
1093 internal static readonly int LEAVE_REQUIRED = NDalicPINVOKE.Actor_Property_LEAVE_REQUIRED_get();
1094 internal static readonly int INHERIT_ORIENTATION = NDalicPINVOKE.Actor_Property_INHERIT_ORIENTATION_get();
1095 internal static readonly int INHERIT_SCALE = NDalicPINVOKE.Actor_Property_INHERIT_SCALE_get();
1096 internal static readonly int DRAW_MODE = NDalicPINVOKE.Actor_Property_DRAW_MODE_get();
1097 internal static readonly int SIZE_MODE_FACTOR = NDalicPINVOKE.Actor_Property_SIZE_MODE_FACTOR_get();
1098 internal static readonly int WIDTH_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_WIDTH_RESIZE_POLICY_get();
1099 internal static readonly int HEIGHT_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_HEIGHT_RESIZE_POLICY_get();
1100 internal static readonly int SIZE_SCALE_POLICY = NDalicPINVOKE.Actor_Property_SIZE_SCALE_POLICY_get();
1101 internal static readonly int WIDTH_FOR_HEIGHT = NDalicPINVOKE.Actor_Property_WIDTH_FOR_HEIGHT_get();
1102 internal static readonly int HEIGHT_FOR_WIDTH = NDalicPINVOKE.Actor_Property_HEIGHT_FOR_WIDTH_get();
1103 internal static readonly int PADDING = NDalicPINVOKE.Actor_Property_PADDING_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 PADDINGEX = 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();
1167 /// Downcasts a handle to view handle.<br />
1168 /// If handle points to a view, the downcast produces a valid handle.<br />
1169 /// If not, the returned handle is left uninitialized.<br />
1171 /// <param name="handle">A handle to an object.</param>
1172 /// <returns>A handle to a view or an uninitialized handle.</returns>
1173 [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1174 public static View DownCast(BaseHandle handle)
1176 View ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as View;
1177 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1182 /// [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1184 /// <since_tizen> 3 </since_tizen>
1185 [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1186 public static T DownCast<T>(View view) where T : View
1188 T ret = Registry.GetManagedBaseHandleFromNativePtr(view) as T;
1196 private View ConvertIdToView(uint id)
1202 View parentView = Parent as View;
1203 view = parentView.FindChildById(id);
1208 view = Window.Instance.GetRootLayer().FindChildById(id);
1214 internal void SetKeyInputFocus()
1216 NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
1217 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1221 /// Queries whether the view has a focus.
1223 /// <returns>True if this view has a focus.</returns>
1224 /// <since_tizen> 3 </since_tizen>
1225 public bool HasFocus()
1227 bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
1228 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1232 internal void ClearKeyInputFocus()
1234 NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
1235 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1238 internal PinchGestureDetector GetPinchGestureDetector()
1240 PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
1241 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1245 internal PanGestureDetector GetPanGestureDetector()
1247 PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
1248 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1252 internal TapGestureDetector GetTapGestureDetector()
1254 TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
1255 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1259 internal LongPressGestureDetector GetLongPressGestureDetector()
1261 LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
1262 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1267 /// Sets the name of the style to be applied to the view.
1269 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
1270 /// <since_tizen> 3 </since_tizen>
1271 public void SetStyleName(string styleName)
1273 NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
1274 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1278 /// Retrieves the name of the style to be applied to the view (if any).
1280 /// <returns>A string matching a style, or an empty string.</returns>
1281 /// <since_tizen> 3 </since_tizen>
1282 public string GetStyleName()
1284 string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
1285 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1289 internal void SetBackgroundColor(Vector4 color)
1291 NDalicPINVOKE.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
1292 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1295 internal Vector4 GetBackgroundColor()
1297 Vector4 ret = new Vector4(NDalicPINVOKE.View_GetBackgroundColor(swigCPtr), true);
1298 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1302 internal void SetBackgroundImage(Image image)
1304 NDalicPINVOKE.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
1305 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1309 /// Clears the background.
1311 /// <since_tizen> 3 </since_tizen>
1312 public void ClearBackground()
1314 NDalicPINVOKE.View_ClearBackground(swigCPtr);
1315 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1318 internal ControlKeySignal KeyEventSignal()
1320 ControlKeySignal ret = new ControlKeySignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
1321 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1325 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
1327 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
1328 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1332 internal KeyInputFocusSignal KeyInputFocusLostSignal()
1334 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
1335 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1339 internal View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1341 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1344 internal enum PropertyRange
1346 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1347 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1348 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1352 /// The StyleName, type string.
1354 /// <since_tizen> 3 </since_tizen>
1355 public string StyleName
1360 GetProperty(View.Property.STYLE_NAME).Get(out temp);
1365 SetProperty(View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue(value));
1370 /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
1372 /// <since_tizen> 3 </since_tizen>
1373 public Color BackgroundColor
1377 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1379 Tizen.NUI.PropertyMap background = Background;
1381 background.Find(Visual.Property.Type)?.Get(out visualType);
1382 if (visualType == (int)Visual.Type.Color)
1384 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
1387 return backgroundColor;
1391 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1396 /// Creates an animation to animate the background color visual. If there is no
1397 /// background visual, creates one with transparent black as it's mixColor.
1399 /// <since_tizen> 4 </since_tizen>
1400 public Animation AnimateBackgroundColor( object destinationValue,
1403 AlphaFunction.BuiltinFunctions? alphaFunction = null,
1404 object initialValue = null)
1406 Tizen.NUI.PropertyMap background = Background;
1408 if( background.Empty() )
1410 // If there is no background yet, ensure there is a transparent
1412 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1413 background = Background;
1415 return AnimateColor( "background", destinationValue, startTime, endTime, alphaFunction, initialValue );
1419 /// Creates an animation to animate the mixColor of the named visual.
1421 /// <since_tizen> 4 </since_tizen>
1422 public Animation AnimateColor( string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null )
1424 Animation animation = null;
1426 PropertyMap _animator = new PropertyMap();
1427 if( alphaFunction != null )
1429 _animator.Add("alphaFunction", new PropertyValue( AlphaFunction.BuiltinToPropertyKey(alphaFunction) ) );
1432 PropertyMap _timePeriod = new PropertyMap();
1433 _timePeriod.Add( "duration", new PropertyValue((endTime-startTime)/1000.0f) );
1434 _timePeriod.Add( "delay", new PropertyValue( startTime/1000.0f ) );
1435 _animator.Add( "timePeriod", new PropertyValue( _timePeriod ) );
1437 PropertyMap _transition = new PropertyMap();
1438 _transition.Add( "animator", new PropertyValue( _animator ) );
1439 _transition.Add( "target", new PropertyValue( targetVisual ) );
1440 _transition.Add( "property", new PropertyValue( "mixColor" ) );
1442 if( initialColor != null )
1444 PropertyValue initValue = PropertyValue.CreateFromObject( initialColor );
1445 _transition.Add( "initialValue", initValue );
1448 PropertyValue destValue = PropertyValue.CreateFromObject( destinationColor );
1449 _transition.Add( "targetValue", destValue );
1450 TransitionData _transitionData = new TransitionData( _transition );
1452 animation = new Animation( NDalicManualPINVOKE.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true );
1453 if (NDalicPINVOKE.SWIGPendingException.Pending)
1454 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1460 /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
1462 /// <since_tizen> 3 </since_tizen>
1463 public string BackgroundImage
1467 string backgroundImage = "";
1469 Tizen.NUI.PropertyMap background = Background;
1471 background.Find(Visual.Property.Type)?.Get(out visualType);
1472 if (visualType == (int)Visual.Type.Image)
1474 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
1477 return backgroundImage;
1481 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1486 /// The background of view.
1488 /// <since_tizen> 3 </since_tizen>
1489 public Tizen.NUI.PropertyMap Background
1493 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1494 GetProperty( View.Property.BACKGROUND ).Get(temp);
1499 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1505 /// The current state of the view.
1507 /// <since_tizen> 3 </since_tizen>
1513 if (GetProperty(View.Property.STATE).Get(out temp) == false)
1515 NUILog.Error("State get error!");
1521 return States.Normal;
1525 return States.Focused;
1529 return States.Disabled;
1533 return States.Normal;
1539 SetProperty(View.Property.STATE, new Tizen.NUI.PropertyValue((int)value));
1544 /// The current sub state of the view.
1546 /// <since_tizen> 3 </since_tizen>
1547 public States SubState
1552 if (GetProperty(View.Property.SUB_STATE).Get(out temp) == false)
1554 NUILog.Error("subState get error!");
1559 return States.Normal;
1561 return States.Focused;
1563 return States.Disabled;
1565 return States.Normal;
1570 string valueToString = "";
1575 valueToString = "NORMAL";
1578 case States.Focused:
1580 valueToString = "FOCUSED";
1583 case States.Disabled:
1585 valueToString = "DISABLED";
1590 valueToString = "NORMAL";
1594 SetProperty(View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
1599 /// Displays a tooltip
1601 /// <since_tizen> 3 </since_tizen>
1602 public Tizen.NUI.PropertyMap Tooltip
1606 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1607 GetProperty(View.Property.TOOLTIP).Get(temp);
1612 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1617 /// Displays a tooltip as a text.
1619 /// <since_tizen> 3 </since_tizen>
1620 public string TooltipText
1624 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1628 private int LeftFocusableViewId
1633 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
1638 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1642 private int RightFocusableViewId
1647 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
1652 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1656 private int UpFocusableViewId
1661 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
1666 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1670 private int DownFocusableViewId
1675 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
1680 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1685 /// The Child property of FlexContainer.<br />
1686 /// The proportion of the free space in the container, the flex item will receive.<br />
1687 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
1689 /// <since_tizen> 3 </since_tizen>
1695 GetProperty(FlexContainer.ChildProperty.FLEX).Get(out temp);
1700 SetProperty(FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue(value));
1705 /// The Child property of FlexContainer.<br />
1706 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
1708 /// <since_tizen> 3 </since_tizen>
1709 public int AlignSelf
1714 GetProperty(FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
1719 SetProperty(FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue(value));
1724 /// The Child property of FlexContainer.<br />
1725 /// The space around the flex item.<br />
1727 /// <since_tizen> 3 </since_tizen>
1728 public Vector4 FlexMargin
1732 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1733 GetProperty(FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
1738 SetProperty(FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue(value));
1743 /// The top-left cell this child occupies, if not set, the first available cell is used.
1745 /// <since_tizen> 3 </since_tizen>
1746 public Vector2 CellIndex
1750 Vector2 temp = new Vector2(0.0f, 0.0f);
1751 GetProperty(TableView.ChildProperty.CELL_INDEX).Get(temp);
1756 SetProperty(TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue(value));
1761 /// The number of rows this child occupies, if not set, the default value is 1.
1763 /// <since_tizen> 3 </since_tizen>
1764 public float RowSpan
1769 GetProperty(TableView.ChildProperty.ROW_SPAN).Get(out temp);
1774 SetProperty(TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue(value));
1779 /// The number of columns this child occupies, if not set, the default value is 1.
1781 /// <since_tizen> 3 </since_tizen>
1782 public float ColumnSpan
1787 GetProperty(TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
1792 SetProperty(TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue(value));
1797 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
1799 /// <since_tizen> 3 </since_tizen>
1800 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
1805 if (GetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
1807 NUILog.Error("CellHorizontalAlignment get error!");
1813 return Tizen.NUI.HorizontalAlignmentType.Left;
1815 return Tizen.NUI.HorizontalAlignmentType.Center;
1817 return Tizen.NUI.HorizontalAlignmentType.Right;
1819 return Tizen.NUI.HorizontalAlignmentType.Left;
1824 string valueToString = "";
1827 case Tizen.NUI.HorizontalAlignmentType.Left:
1829 valueToString = "left";
1832 case Tizen.NUI.HorizontalAlignmentType.Center:
1834 valueToString = "center";
1837 case Tizen.NUI.HorizontalAlignmentType.Right:
1839 valueToString = "right";
1844 valueToString = "left";
1848 SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1853 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
1855 /// <since_tizen> 3 </since_tizen>
1856 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
1861 GetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
1863 NUILog.Error("CellVerticalAlignment get error!");
1869 return Tizen.NUI.VerticalAlignmentType.Top;
1871 return Tizen.NUI.VerticalAlignmentType.Center;
1873 return Tizen.NUI.VerticalAlignmentType.Bottom;
1875 return Tizen.NUI.VerticalAlignmentType.Top;
1880 string valueToString = "";
1883 case Tizen.NUI.VerticalAlignmentType.Top:
1885 valueToString = "top";
1888 case Tizen.NUI.VerticalAlignmentType.Center:
1890 valueToString = "center";
1893 case Tizen.NUI.VerticalAlignmentType.Bottom:
1895 valueToString = "bottom";
1900 valueToString = "top";
1904 SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1909 /// The left focusable view.<br />
1910 /// This will return null if not set.<br />
1911 /// This will also return null if the specified left focusable view is not on a window.<br />
1913 /// <since_tizen> 3 </since_tizen>
1914 public View LeftFocusableView
1916 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1919 if (LeftFocusableViewId >= 0)
1921 return ConvertIdToView((uint)LeftFocusableViewId);
1927 LeftFocusableViewId = (int)value.GetId();
1932 /// The right focusable view.<br />
1933 /// This will return null if not set.<br />
1934 /// This will also return null if the specified right focusable view is not on a window.<br />
1936 /// <since_tizen> 3 </since_tizen>
1937 public View RightFocusableView
1939 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1942 if (RightFocusableViewId >= 0)
1944 return ConvertIdToView((uint)RightFocusableViewId);
1950 RightFocusableViewId = (int)value.GetId();
1955 /// The up focusable view.<br />
1956 /// This will return null if not set.<br />
1957 /// This will also return null if the specified up focusable view is not on a window.<br />
1959 /// <since_tizen> 3 </since_tizen>
1960 public View UpFocusableView
1962 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1965 if (UpFocusableViewId >= 0)
1967 return ConvertIdToView((uint)UpFocusableViewId);
1973 UpFocusableViewId = (int)value.GetId();
1978 /// The down focusable view.<br />
1979 /// This will return null if not set.<br />
1980 /// This will also return null if the specified down focusable view is not on a window.<br />
1982 /// <since_tizen> 3 </since_tizen>
1983 public View DownFocusableView
1985 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1988 if (DownFocusableViewId >= 0)
1990 return ConvertIdToView((uint)DownFocusableViewId);
1996 DownFocusableViewId = (int)value.GetId();
2001 /// Whether the view should be focusable by keyboard navigation.
2003 /// <since_tizen> 3 </since_tizen>
2004 public bool Focusable
2008 SetKeyboardFocusable(value);
2012 return IsKeyboardFocusable();
2017 /// Enumeration for describing the states of the view.
2019 /// <since_tizen> 3 </since_tizen>
2023 /// The normal state.
2027 /// The focused state.
2031 /// The disabled state.
2037 /// Retrieves the position of the view.<br />
2038 /// The coordinates are relative to the view's parent.<br />
2040 /// <since_tizen> 3 </since_tizen>
2041 public Position CurrentPosition
2045 return GetCurrentPosition();
2050 /// Sets the size of a view for the width and the height.<br />
2051 /// Geometry can be scaled to fit within this area.<br />
2052 /// This does not interfere with the view's scale factor.<br />
2053 /// The views default depth is the minimum of width and height.<br />
2055 /// <since_tizen> 3 </since_tizen>
2056 public Size2D Size2D
2060 Size temp = new Size(0.0f, 0.0f, 0.0f);
2061 GetProperty(View.Property.SIZE).Get(temp);
2062 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
2067 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size(value)));
2072 /// Retrieves the size of the view.<br />
2073 /// The coordinates are relative to the view's parent.<br />
2075 /// <since_tizen> 3 </since_tizen>
2076 public Size2D CurrentSize
2080 return GetCurrentSize();
2085 /// [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
2087 /// <since_tizen> 3 </since_tizen>
2088 [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
2098 /// Retrieves and sets the view's opacity.<br />
2100 /// <since_tizen> 3 </since_tizen>
2101 public float Opacity
2106 GetProperty(View.Property.OPACITY).Get(out temp);
2111 SetProperty(View.Property.OPACITY, new Tizen.NUI.PropertyValue(value));
2116 /// Sets the position of the view for X and Y.<br />
2117 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2118 /// If the position inheritance is disabled, sets the world position.<br />
2120 /// <since_tizen> 3 </since_tizen>
2121 public Position2D Position2D
2125 Position temp = new Position(0.0f, 0.0f, 0.0f);
2126 GetProperty(View.Property.POSITION).Get(temp);
2127 return new Position2D(temp);
2131 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position(value)));
2136 /// Retrieves the screen postion of the view.<br />
2138 /// <since_tizen> 3 </since_tizen>
2139 public Vector2 ScreenPosition
2143 Vector2 temp = new Vector2(0.0f, 0.0f);
2144 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2150 /// Determines whether the pivot point should be used to determine the position of the view.
2151 /// This is true by default.
2153 /// <remarks>If false, then the top-left of the view is used for the position.
2154 /// Setting this to false will allow scaling or rotation around the anchor-point without affecting the view's position.
2156 /// <since_tizen> 4 </since_tizen>
2157 public bool PositionUsesPivotPoint
2162 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2167 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2172 /// [Obsolete("Please do not use! this will be deprecated")]
2174 /// <since_tizen> 3 </since_tizen>
2175 [Obsolete("Please do not use! this will be deprecated")]
2176 public bool PositionUsesAnchorPoint
2181 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2186 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2190 internal bool FocusState
2194 return IsKeyboardFocusable();
2198 SetKeyboardFocusable(value);
2203 /// Queries whether the view is connected to the stage.<br />
2204 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2206 /// <since_tizen> 3 </since_tizen>
2207 public bool IsOnWindow
2216 /// Gets the depth in the hierarchy for the view.
2218 /// <since_tizen> 3 </since_tizen>
2219 public int HierarchyDepth
2223 return GetHierarchyDepth();
2228 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2231 /// Note the initial value is 0.
2232 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2233 /// The values set by this property will likely change.
2235 /// <since_tizen> 3 </since_tizen>
2236 public int SiblingOrder
2241 GetProperty(View.Property.SIBLING_ORDER).Get(out temp);
2246 SetProperty(View.Property.SIBLING_ORDER, new Tizen.NUI.PropertyValue(value));
2251 /// Returns the natural size of the view.
2254 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2256 [Obsolete("Please do not use! this will be deprecated, please use NaturalSize2D instead")]
2257 public Vector3 NaturalSize
2261 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2262 if (NDalicPINVOKE.SWIGPendingException.Pending)
2263 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2269 /// Returns the natural size (Size2D) of the view.
2272 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2274 /// <since_tizen> 4 </since_tizen>
2275 public Size2D NaturalSize2D
2279 Vector3 temp = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2280 if (NDalicPINVOKE.SWIGPendingException.Pending)
2281 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2283 return new Size2D((int)temp.Width, (int)temp.Height);
2291 /// This is an asynchronous method.
2293 /// <since_tizen> 3 </since_tizen>
2303 /// This is an asynchronous method.
2304 /// If the view is hidden, then the view and its children will not be rendered.
2305 /// 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.
2307 /// <since_tizen> 3 </since_tizen>
2313 internal void Raise()
2315 var parentChildren = Parent?.Children;
2317 if (parentChildren != null)
2319 int currentIndex = parentChildren.IndexOf(this);
2321 // If the view is not already the last item in the list.
2322 if (currentIndex != parentChildren.Count -1)
2324 View temp = parentChildren[currentIndex + 1];
2325 parentChildren[currentIndex + 1] = this;
2326 parentChildren[currentIndex] = temp;
2330 NDalicPINVOKE.Raise(swigCPtr);
2331 if (NDalicPINVOKE.SWIGPendingException.Pending)
2332 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2335 internal void Lower()
2337 var parentChildren = Parent?.Children;
2339 if (parentChildren != null)
2341 int currentIndex = parentChildren.IndexOf(this);
2343 // If the view is not already the first item in the list.
2344 if (currentIndex > 0)
2346 View temp = parentChildren[currentIndex - 1];
2347 parentChildren[currentIndex - 1] = this;
2348 parentChildren[currentIndex] = temp;
2352 NDalicPINVOKE.Lower(swigCPtr);
2353 if (NDalicPINVOKE.SWIGPendingException.Pending)
2354 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2358 /// Raises the view above all other views.
2361 /// Sibling order of views within the parent will be updated automatically.
2362 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
2364 /// <since_tizen> 3 </since_tizen>
2365 public void RaiseToTop()
2367 var parentChildren = Parent?.Children;
2369 if (parentChildren != null)
2371 parentChildren.Remove(this);
2372 parentChildren.Add(this);
2375 NDalicPINVOKE.RaiseToTop(swigCPtr);
2376 if (NDalicPINVOKE.SWIGPendingException.Pending)
2377 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2381 /// Lowers the view to the bottom of all views.
2384 /// The sibling order of views within the parent will be updated automatically.
2385 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2387 /// <since_tizen> 3 </since_tizen>
2388 public void LowerToBottom()
2390 var parentChildren = Parent?.Children;
2392 if (parentChildren != null)
2394 parentChildren.Remove(this);
2395 parentChildren.Insert(0, this);
2398 NDalicPINVOKE.LowerToBottom(swigCPtr);
2399 if (NDalicPINVOKE.SWIGPendingException.Pending)
2400 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2404 /// Queries if all resources required by a view are loaded and ready.
2406 /// <remarks>Most resources are only loaded when the control is placed on the stage.
2408 /// <since_tizen> 4 </since_tizen>
2409 public bool IsResourceReady()
2411 bool ret = NDalicPINVOKE.IsResourceReady(swigCPtr);
2412 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2417 /// Raises the view to above the target view.
2419 /// <remarks>The sibling order of views within the parent will be updated automatically.
2420 /// Views on the level above the target view will still be shown above this view.
2421 /// Raising this view above views with the same sibling order as each other will raise this view above them.
2422 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2424 /// <param name="target">Will be raised above this view.</param>
2425 internal void RaiseAbove(View target)
2427 var parentChildren = Parent?.Children;
2429 if (parentChildren != null)
2431 int currentIndex = parentChildren.IndexOf(this);
2432 int targetIndex = parentChildren.IndexOf(target);
2434 // If the currentIndex is less than the target index and the target has the same parent.
2435 if (currentIndex < targetIndex)
2437 parentChildren.Remove(this);
2438 parentChildren.Insert(targetIndex, this);
2442 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
2443 if (NDalicPINVOKE.SWIGPendingException.Pending)
2444 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2448 /// Lowers the view to below the target view.
2450 /// <remarks>The sibling order of views within the parent will be updated automatically.
2451 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
2452 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2454 /// <param name="target">Will be lowered below this view.</param>
2455 internal void LowerBelow(View target)
2457 var parentChildren = Parent?.Children;
2459 if (parentChildren != null)
2461 int currentIndex = parentChildren.IndexOf(this);
2462 int targetIndex = parentChildren.IndexOf(target);
2464 // If the currentIndex is not already the 0th index and the target has the same parent.
2465 if ((currentIndex != 0) && (targetIndex != -1) &&
2466 (currentIndex > targetIndex))
2468 parentChildren.Remove(this);
2469 parentChildren.Insert(targetIndex, this);
2473 NDalicPINVOKE.LowerBelow(swigCPtr, View.getCPtr(target));
2474 if (NDalicPINVOKE.SWIGPendingException.Pending)
2475 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2478 internal string GetName()
2480 string ret = NDalicPINVOKE.Actor_GetName(swigCPtr);
2481 if (NDalicPINVOKE.SWIGPendingException.Pending)
2482 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2486 internal void SetName(string name)
2488 NDalicPINVOKE.Actor_SetName(swigCPtr, name);
2489 if (NDalicPINVOKE.SWIGPendingException.Pending)
2490 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2493 internal uint GetId()
2495 uint ret = NDalicPINVOKE.Actor_GetId(swigCPtr);
2496 if (NDalicPINVOKE.SWIGPendingException.Pending)
2497 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2501 internal bool IsRoot()
2503 bool ret = NDalicPINVOKE.Actor_IsRoot(swigCPtr);
2504 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2508 internal bool OnWindow()
2510 bool ret = NDalicPINVOKE.Actor_OnStage(swigCPtr);
2511 if (NDalicPINVOKE.SWIGPendingException.Pending)
2512 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2516 internal Layer GetLayer()
2518 IntPtr cPtr = NDalicPINVOKE.Actor_GetLayer(swigCPtr);
2519 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Layer;
2521 if (NDalicPINVOKE.SWIGPendingException.Pending)
2522 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2527 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
2529 /// <pre>The (child) view has been initialized. </pre>
2530 /// <since_tizen> 4 </since_tizen>
2531 public void Unparent()
2533 GetParent()?.Remove(this);
2537 /// Search through this view's hierarchy for a view with the given name.
2538 /// The view itself is also considered in the search.
2540 /// <pre>The view has been initialized.</pre>
2541 /// <param name="viewName">The name of the view to find.</param>
2542 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
2543 /// <since_tizen> 3 </since_tizen>
2544 public View FindChildByName(string viewName)
2546 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildByName(swigCPtr, viewName);
2548 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2550 if (NDalicPINVOKE.SWIGPendingException.Pending)
2551 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2555 internal View FindChildById(uint id)
2557 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildById(swigCPtr, id);
2559 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2561 if (NDalicPINVOKE.SWIGPendingException.Pending)
2562 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2566 internal void SetParentOrigin(Vector3 origin)
2568 NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
2569 if (NDalicPINVOKE.SWIGPendingException.Pending)
2570 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2573 internal Vector3 GetCurrentParentOrigin()
2575 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentParentOrigin(swigCPtr), true);
2576 if (NDalicPINVOKE.SWIGPendingException.Pending)
2577 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2581 internal void SetAnchorPoint(Vector3 anchorPoint)
2583 NDalicPINVOKE.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
2584 if (NDalicPINVOKE.SWIGPendingException.Pending)
2585 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2588 internal Vector3 GetCurrentAnchorPoint()
2590 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentAnchorPoint(swigCPtr), true);
2591 if (NDalicPINVOKE.SWIGPendingException.Pending)
2592 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2596 internal void SetSize(float width, float height)
2598 NDalicPINVOKE.Actor_SetSize__SWIG_0(swigCPtr, width, height);
2599 if (NDalicPINVOKE.SWIGPendingException.Pending)
2600 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2603 internal void SetSize(float width, float height, float depth)
2605 NDalicPINVOKE.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
2606 if (NDalicPINVOKE.SWIGPendingException.Pending)
2607 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2610 internal void SetSize(Vector2 size)
2612 NDalicPINVOKE.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
2613 if (NDalicPINVOKE.SWIGPendingException.Pending)
2614 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2617 internal void SetSize(Vector3 size)
2619 NDalicPINVOKE.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
2620 if (NDalicPINVOKE.SWIGPendingException.Pending)
2621 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2624 internal Vector3 GetTargetSize()
2626 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetTargetSize(swigCPtr), true);
2627 if (NDalicPINVOKE.SWIGPendingException.Pending)
2628 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2632 internal Size2D GetCurrentSize()
2634 Size ret = new Size(NDalicPINVOKE.Actor_GetCurrentSize(swigCPtr), true);
2635 if (NDalicPINVOKE.SWIGPendingException.Pending)
2636 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2637 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
2641 internal Vector3 GetNaturalSize()
2643 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2644 if (NDalicPINVOKE.SWIGPendingException.Pending)
2645 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2649 internal void SetPosition(float x, float y)
2651 NDalicPINVOKE.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
2652 if (NDalicPINVOKE.SWIGPendingException.Pending)
2653 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2656 internal void SetPosition(float x, float y, float z)
2658 NDalicPINVOKE.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
2659 if (NDalicPINVOKE.SWIGPendingException.Pending)
2660 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2663 internal void SetPosition(Vector3 position)
2665 NDalicPINVOKE.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
2666 if (NDalicPINVOKE.SWIGPendingException.Pending)
2667 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2670 internal void SetX(float x)
2672 NDalicPINVOKE.Actor_SetX(swigCPtr, x);
2673 if (NDalicPINVOKE.SWIGPendingException.Pending)
2674 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2677 internal void SetY(float y)
2679 NDalicPINVOKE.Actor_SetY(swigCPtr, y);
2680 if (NDalicPINVOKE.SWIGPendingException.Pending)
2681 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2684 internal void SetZ(float z)
2686 NDalicPINVOKE.Actor_SetZ(swigCPtr, z);
2687 if (NDalicPINVOKE.SWIGPendingException.Pending)
2688 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2691 internal void TranslateBy(Vector3 distance)
2693 NDalicPINVOKE.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
2694 if (NDalicPINVOKE.SWIGPendingException.Pending)
2695 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2698 internal Position GetCurrentPosition()
2700 Position ret = new Position(NDalicPINVOKE.Actor_GetCurrentPosition(swigCPtr), true);
2701 if (NDalicPINVOKE.SWIGPendingException.Pending)
2702 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2706 internal Vector3 GetCurrentWorldPosition()
2708 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldPosition(swigCPtr), true);
2709 if (NDalicPINVOKE.SWIGPendingException.Pending)
2710 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2714 internal void SetInheritPosition(bool inherit)
2716 NDalicPINVOKE.Actor_SetInheritPosition(swigCPtr, inherit);
2717 if (NDalicPINVOKE.SWIGPendingException.Pending)
2718 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2721 internal bool IsPositionInherited()
2723 bool ret = NDalicPINVOKE.Actor_IsPositionInherited(swigCPtr);
2724 if (NDalicPINVOKE.SWIGPendingException.Pending)
2725 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2729 internal void SetOrientation(Degree angle, Vector3 axis)
2731 NDalicPINVOKE.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2732 if (NDalicPINVOKE.SWIGPendingException.Pending)
2733 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2736 internal void SetOrientation(Radian angle, Vector3 axis)
2738 NDalicPINVOKE.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2739 if (NDalicPINVOKE.SWIGPendingException.Pending)
2740 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2743 internal void SetOrientation(Rotation orientation)
2745 NDalicPINVOKE.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
2746 if (NDalicPINVOKE.SWIGPendingException.Pending)
2747 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2750 internal void RotateBy(Degree angle, Vector3 axis)
2752 NDalicPINVOKE.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2753 if (NDalicPINVOKE.SWIGPendingException.Pending)
2754 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2757 internal void RotateBy(Radian angle, Vector3 axis)
2759 NDalicPINVOKE.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2760 if (NDalicPINVOKE.SWIGPendingException.Pending)
2761 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2764 internal void RotateBy(Rotation relativeRotation)
2766 NDalicPINVOKE.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
2767 if (NDalicPINVOKE.SWIGPendingException.Pending)
2768 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2771 internal Rotation GetCurrentOrientation()
2773 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentOrientation(swigCPtr), true);
2774 if (NDalicPINVOKE.SWIGPendingException.Pending)
2775 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2779 internal void SetInheritOrientation(bool inherit)
2781 NDalicPINVOKE.Actor_SetInheritOrientation(swigCPtr, inherit);
2782 if (NDalicPINVOKE.SWIGPendingException.Pending)
2783 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2786 internal bool IsOrientationInherited()
2788 bool ret = NDalicPINVOKE.Actor_IsOrientationInherited(swigCPtr);
2789 if (NDalicPINVOKE.SWIGPendingException.Pending)
2790 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2794 internal Rotation GetCurrentWorldOrientation()
2796 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentWorldOrientation(swigCPtr), true);
2797 if (NDalicPINVOKE.SWIGPendingException.Pending)
2798 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2802 internal void SetScale(float scale)
2804 NDalicPINVOKE.Actor_SetScale__SWIG_0(swigCPtr, scale);
2805 if (NDalicPINVOKE.SWIGPendingException.Pending)
2806 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2809 internal void SetScale(float scaleX, float scaleY, float scaleZ)
2811 NDalicPINVOKE.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
2812 if (NDalicPINVOKE.SWIGPendingException.Pending)
2813 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2816 internal void SetScale(Vector3 scale)
2818 NDalicPINVOKE.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
2819 if (NDalicPINVOKE.SWIGPendingException.Pending)
2820 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2823 internal void ScaleBy(Vector3 relativeScale)
2825 NDalicPINVOKE.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
2826 if (NDalicPINVOKE.SWIGPendingException.Pending)
2827 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2830 internal Vector3 GetCurrentScale()
2832 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentScale(swigCPtr), true);
2833 if (NDalicPINVOKE.SWIGPendingException.Pending)
2834 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2838 internal Vector3 GetCurrentWorldScale()
2840 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldScale(swigCPtr), true);
2841 if (NDalicPINVOKE.SWIGPendingException.Pending)
2842 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2846 internal void SetInheritScale(bool inherit)
2848 NDalicPINVOKE.Actor_SetInheritScale(swigCPtr, inherit);
2849 if (NDalicPINVOKE.SWIGPendingException.Pending)
2850 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2853 internal bool IsScaleInherited()
2855 bool ret = NDalicPINVOKE.Actor_IsScaleInherited(swigCPtr);
2856 if (NDalicPINVOKE.SWIGPendingException.Pending)
2857 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2861 internal Matrix GetCurrentWorldMatrix()
2863 Matrix ret = new Matrix(NDalicPINVOKE.Actor_GetCurrentWorldMatrix(swigCPtr), true);
2864 if (NDalicPINVOKE.SWIGPendingException.Pending)
2865 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2869 internal void SetVisible(bool visible)
2871 NDalicPINVOKE.Actor_SetVisible(swigCPtr, visible);
2872 if (NDalicPINVOKE.SWIGPendingException.Pending)
2873 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2876 internal bool IsVisible()
2878 bool ret = NDalicPINVOKE.Actor_IsVisible(swigCPtr);
2879 if (NDalicPINVOKE.SWIGPendingException.Pending)
2880 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2884 internal void SetOpacity(float opacity)
2886 NDalicPINVOKE.Actor_SetOpacity(swigCPtr, opacity);
2887 if (NDalicPINVOKE.SWIGPendingException.Pending)
2888 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2891 internal float GetCurrentOpacity()
2893 float ret = NDalicPINVOKE.Actor_GetCurrentOpacity(swigCPtr);
2894 if (NDalicPINVOKE.SWIGPendingException.Pending)
2895 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2899 internal void SetColor(Vector4 color)
2901 NDalicPINVOKE.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
2902 if (NDalicPINVOKE.SWIGPendingException.Pending)
2903 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2906 internal Vector4 GetCurrentColor()
2908 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentColor(swigCPtr), true);
2909 if (NDalicPINVOKE.SWIGPendingException.Pending)
2910 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2914 internal void SetColorMode(ColorMode colorMode)
2916 NDalicPINVOKE.Actor_SetColorMode(swigCPtr, (int)colorMode);
2917 if (NDalicPINVOKE.SWIGPendingException.Pending)
2918 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2921 internal ColorMode GetColorMode()
2923 ColorMode ret = (ColorMode)NDalicPINVOKE.Actor_GetColorMode(swigCPtr);
2924 if (NDalicPINVOKE.SWIGPendingException.Pending)
2925 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2929 internal Vector4 GetCurrentWorldColor()
2931 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentWorldColor(swigCPtr), true);
2932 if (NDalicPINVOKE.SWIGPendingException.Pending)
2933 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2937 internal void SetDrawMode(DrawModeType drawMode)
2939 NDalicPINVOKE.Actor_SetDrawMode(swigCPtr, (int)drawMode);
2940 if (NDalicPINVOKE.SWIGPendingException.Pending)
2941 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2944 internal DrawModeType GetDrawMode()
2946 DrawModeType ret = (DrawModeType)NDalicPINVOKE.Actor_GetDrawMode(swigCPtr);
2947 if (NDalicPINVOKE.SWIGPendingException.Pending)
2948 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2953 /// Converts screen coordinates into the view's coordinate system using the default camera.
2955 /// <pre>The view has been initialized.</pre>
2956 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
2957 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
2958 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
2959 /// <param name="screenX">The screen X-coordinate.</param>
2960 /// <param name="screenY">The screen Y-coordinate.</param>
2961 /// <returns>True if the conversion succeeded.</returns>
2962 /// <since_tizen> 3 </since_tizen>
2963 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
2965 bool ret = NDalicPINVOKE.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
2966 if (NDalicPINVOKE.SWIGPendingException.Pending)
2967 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2971 internal void SetKeyboardFocusable(bool focusable)
2973 NDalicPINVOKE.Actor_SetKeyboardFocusable(swigCPtr, focusable);
2974 if (NDalicPINVOKE.SWIGPendingException.Pending)
2975 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2978 internal bool IsKeyboardFocusable()
2980 bool ret = NDalicPINVOKE.Actor_IsKeyboardFocusable(swigCPtr);
2981 if (NDalicPINVOKE.SWIGPendingException.Pending)
2982 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2986 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
2988 NDalicPINVOKE.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
2989 if (NDalicPINVOKE.SWIGPendingException.Pending)
2990 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2993 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
2995 ResizePolicyType ret = (ResizePolicyType)NDalicPINVOKE.Actor_GetResizePolicy(swigCPtr, (int)dimension);
2996 if (NDalicPINVOKE.SWIGPendingException.Pending)
2997 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3002 /// Sets the relative to parent size factor of the view.<br />
3003 /// This factor is only used when ResizePolicy is set to either:
3004 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
3005 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
3007 /// <pre>The view has been initialized.</pre>
3008 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
3009 /// <since_tizen> 3 </since_tizen>
3010 public void SetSizeModeFactor(Vector3 factor)
3012 NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
3013 if (NDalicPINVOKE.SWIGPendingException.Pending)
3014 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3017 internal Vector3 GetSizeModeFactor()
3019 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetSizeModeFactor(swigCPtr), true);
3020 if (NDalicPINVOKE.SWIGPendingException.Pending)
3021 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3026 /// Calculates the height of the view given a width.<br />
3027 /// The natural size is used for default calculation.<br />
3028 /// Size 0 is treated as aspect ratio 1:1.<br />
3030 /// <param name="width">The width to use.</param>
3031 /// <returns>The height based on the width.</returns>
3032 /// <since_tizen> 3 </since_tizen>
3033 public float GetHeightForWidth(float width)
3035 float ret = NDalicPINVOKE.Actor_GetHeightForWidth(swigCPtr, width);
3036 if (NDalicPINVOKE.SWIGPendingException.Pending)
3037 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3042 /// Calculates the width of the view given a height.<br />
3043 /// The natural size is used for default calculation.<br />
3044 /// Size 0 is treated as aspect ratio 1:1.<br />
3046 /// <param name="height">The height to use.</param>
3047 /// <returns>The width based on the height.</returns>
3048 /// <since_tizen> 3 </since_tizen>
3049 public float GetWidthForHeight(float height)
3051 float ret = NDalicPINVOKE.Actor_GetWidthForHeight(swigCPtr, height);
3052 if (NDalicPINVOKE.SWIGPendingException.Pending)
3053 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3058 /// Return the amount of size allocated for relayout.
3060 /// <param name="dimension">The dimension to retrieve.</param>
3061 /// <returns>Return the size.</returns>
3062 /// <since_tizen> 3 </since_tizen>
3063 public float GetRelayoutSize(DimensionType dimension)
3065 float ret = NDalicPINVOKE.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
3066 if (NDalicPINVOKE.SWIGPendingException.Pending)
3067 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3072 /// Set the padding for the view.
3074 /// <param name="padding">Padding for the view.</param>
3075 /// <since_tizen> 3 </since_tizen>
3076 public void SetPadding(PaddingType padding)
3078 NDalicPINVOKE.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
3079 if (NDalicPINVOKE.SWIGPendingException.Pending)
3080 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3084 /// Return the value of padding for the view.
3086 /// <param name="paddingOut">the value of padding for the view</param>
3087 /// <since_tizen> 3 </since_tizen>
3088 public void GetPadding(PaddingType paddingOut)
3090 NDalicPINVOKE.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
3091 if (NDalicPINVOKE.SWIGPendingException.Pending)
3092 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3095 internal void SetMinimumSize(Vector2 size)
3097 NDalicPINVOKE.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
3098 if (NDalicPINVOKE.SWIGPendingException.Pending)
3099 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3102 internal Vector2 GetMinimumSize()
3104 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMinimumSize(swigCPtr), true);
3105 if (NDalicPINVOKE.SWIGPendingException.Pending)
3106 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3110 internal void SetMaximumSize(Vector2 size)
3112 NDalicPINVOKE.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
3113 if (NDalicPINVOKE.SWIGPendingException.Pending)
3114 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3117 internal Vector2 GetMaximumSize()
3119 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMaximumSize(swigCPtr), true);
3120 if (NDalicPINVOKE.SWIGPendingException.Pending)
3121 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3125 internal int GetHierarchyDepth()
3127 int ret = NDalicPINVOKE.Actor_GetHierarchyDepth(swigCPtr);
3128 if (NDalicPINVOKE.SWIGPendingException.Pending)
3129 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3133 /// <since_tizen> 4 </since_tizen>
3134 public uint AddRenderer(Renderer renderer)
3136 uint ret = NDalicPINVOKE.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
3137 if (NDalicPINVOKE.SWIGPendingException.Pending)
3138 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3142 internal uint GetRendererCount()
3144 uint ret = NDalicPINVOKE.Actor_GetRendererCount(swigCPtr);
3145 if (NDalicPINVOKE.SWIGPendingException.Pending)
3146 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3150 /// <since_tizen> 4 </since_tizen>
3151 public Renderer GetRendererAt(uint index)
3153 IntPtr cPtr = NDalicPINVOKE.Actor_GetRendererAt(swigCPtr, index);
3154 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Renderer;
3156 if (NDalicPINVOKE.SWIGPendingException.Pending)
3157 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3161 /// <since_tizen> 4 </since_tizen>
3162 public void RemoveRenderer(Renderer renderer)
3164 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
3165 if (NDalicPINVOKE.SWIGPendingException.Pending)
3166 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3169 /// <since_tizen> 4 </since_tizen>
3170 public void RemoveRenderer(uint index)
3172 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
3173 if (NDalicPINVOKE.SWIGPendingException.Pending)
3174 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3177 internal TouchDataSignal TouchSignal()
3179 TouchDataSignal ret = new TouchDataSignal(NDalicPINVOKE.Actor_TouchSignal(swigCPtr), false);
3180 if (NDalicPINVOKE.SWIGPendingException.Pending)
3181 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3185 internal HoverSignal HoveredSignal()
3187 HoverSignal ret = new HoverSignal(NDalicPINVOKE.Actor_HoveredSignal(swigCPtr), false);
3188 if (NDalicPINVOKE.SWIGPendingException.Pending)
3189 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3193 internal WheelSignal WheelEventSignal()
3195 WheelSignal ret = new WheelSignal(NDalicPINVOKE.Actor_WheelEventSignal(swigCPtr), false);
3196 if (NDalicPINVOKE.SWIGPendingException.Pending)
3197 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3201 internal ViewSignal OnWindowSignal()
3203 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
3204 if (NDalicPINVOKE.SWIGPendingException.Pending)
3205 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3209 internal ViewSignal OffWindowSignal()
3211 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OffStageSignal(swigCPtr), false);
3212 if (NDalicPINVOKE.SWIGPendingException.Pending)
3213 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3217 internal ViewSignal OnRelayoutSignal()
3219 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnRelayoutSignal(swigCPtr), false);
3220 if (NDalicPINVOKE.SWIGPendingException.Pending)
3221 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3225 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view) {
3226 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(NDalicPINVOKE.VisibilityChangedSignal(View.getCPtr(view)), false);
3227 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3232 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view) {
3233 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(NDalicManualPINVOKE.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
3234 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3239 internal ViewSignal ResourcesLoadedSignal()
3241 ViewSignal ret = new ViewSignal(NDalicPINVOKE.ResourceReadySignal(swigCPtr), false);
3242 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3247 /// Gets or sets the origin of a view within its parent's area.<br />
3248 /// 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 />
3249 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
3250 /// A view's position is the distance between this origin and the view's anchor-point.<br />
3252 /// <pre>The view has been initialized.</pre>
3253 /// <since_tizen> 3 </since_tizen>
3254 public Position ParentOrigin
3258 Position temp = new Position(0.0f, 0.0f, 0.0f);
3259 GetProperty(View.Property.PARENT_ORIGIN).Get(temp);
3264 SetProperty(View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue(value));
3268 internal float ParentOriginX
3273 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3278 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3282 internal float ParentOriginY
3287 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3292 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3296 internal float ParentOriginZ
3301 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3306 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3311 /// Gets or sets the anchor-point of a view.<br />
3312 /// 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 />
3313 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
3314 /// A view position is the distance between its parent-origin and this anchor-point.<br />
3315 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
3316 /// <pre>The view has been initialized.</pre>
3318 /// <since_tizen> 3 </since_tizen>
3319 public Position PivotPoint
3323 Position temp = new Position(0.0f, 0.0f, 0.0f);
3324 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3329 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3333 internal float PivotPointX
3338 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3343 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3347 internal float PivotPointY
3352 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3357 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3361 internal float PivotPointZ
3366 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3371 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3376 /// Gets or sets the size width of the view.
3378 /// <since_tizen> 3 </since_tizen>
3379 public float SizeWidth
3384 GetProperty(View.Property.SIZE_WIDTH).Get(out temp);
3389 SetProperty(View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
3394 /// Gets or sets the size height of the view.
3396 /// <since_tizen> 3 </since_tizen>
3397 public float SizeHeight
3402 GetProperty(View.Property.SIZE_HEIGHT).Get(out temp);
3407 SetProperty(View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3412 /// Gets or sets the position of the view.<br />
3413 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
3414 /// If the position inheritance is disabled, sets the world position.<br />
3416 /// <since_tizen> 3 </since_tizen>
3417 public Position Position
3421 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3422 GetProperty(View.Property.POSITION).Get(temp);
3427 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(value));
3432 /// Gets or sets the position X of the view.
3434 /// <since_tizen> 3 </since_tizen>
3435 public float PositionX
3440 GetProperty(View.Property.POSITION_X).Get(out temp);
3445 SetProperty(View.Property.POSITION_X, new Tizen.NUI.PropertyValue(value));
3450 /// Gets or sets the position Y of the view.
3452 /// <since_tizen> 3 </since_tizen>
3453 public float PositionY
3458 GetProperty(View.Property.POSITION_Y).Get(out temp);
3463 SetProperty(View.Property.POSITION_Y, new Tizen.NUI.PropertyValue(value));
3468 /// Gets or sets the position Z of the view.
3470 /// <since_tizen> 3 </since_tizen>
3471 public float PositionZ
3476 GetProperty(View.Property.POSITION_Z).Get(out temp);
3481 SetProperty(View.Property.POSITION_Z, new Tizen.NUI.PropertyValue(value));
3486 /// Gets or sets the world position of the view.
3488 /// <since_tizen> 3 </since_tizen>
3489 public Vector3 WorldPosition
3493 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3494 GetProperty(View.Property.WORLD_POSITION).Get(temp);
3499 internal float WorldPositionX
3504 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3509 internal float WorldPositionY
3514 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3519 internal float WorldPositionZ
3524 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3530 /// Gets or sets the orientation of the view.<br />
3531 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
3533 /// <remarks>This is an asynchronous method.</remarks>
3534 /// <since_tizen> 3 </since_tizen>
3535 public Rotation Orientation
3539 Rotation temp = new Rotation();
3540 GetProperty(View.Property.ORIENTATION).Get(temp);
3545 SetProperty(View.Property.ORIENTATION, new Tizen.NUI.PropertyValue(value));
3550 /// Gets or sets the world orientation of the view.<br />
3552 /// <since_tizen> 3 </since_tizen>
3553 public Rotation WorldOrientation
3557 Rotation temp = new Rotation();
3558 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
3564 /// Gets or sets the scale factor applied to the view.<br />
3566 /// <since_tizen> 3 </since_tizen>
3567 public Vector3 Scale
3571 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3572 GetProperty(View.Property.SCALE).Get(temp);
3577 SetProperty(View.Property.SCALE, new Tizen.NUI.PropertyValue(value));
3582 /// Gets or sets the scale X factor applied to the view.
3584 /// <since_tizen> 3 </since_tizen>
3590 GetProperty(View.Property.SCALE_X).Get(out temp);
3595 SetProperty(View.Property.SCALE_X, new Tizen.NUI.PropertyValue(value));
3600 /// Gets or sets the scale Y factor applied to the view.
3602 /// <since_tizen> 3 </since_tizen>
3608 GetProperty(View.Property.SCALE_Y).Get(out temp);
3613 SetProperty(View.Property.SCALE_Y, new Tizen.NUI.PropertyValue(value));
3618 /// Gets or sets the scale Z factor applied to the view.
3620 /// <since_tizen> 3 </since_tizen>
3626 GetProperty(View.Property.SCALE_Z).Get(out temp);
3631 SetProperty(View.Property.SCALE_Z, new Tizen.NUI.PropertyValue(value));
3636 /// Gets the world scale of the view.
3638 /// <since_tizen> 3 </since_tizen>
3639 public Vector3 WorldScale
3643 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3644 GetProperty(View.Property.WORLD_SCALE).Get(temp);
3650 /// Retrieves the visibility flag of the view.
3653 /// If the view is not visible, then the view and its children will not be rendered.
3654 /// 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.
3656 /// <since_tizen> 3 </since_tizen>
3657 public bool Visibility
3662 GetProperty(View.Property.VISIBLE).Get(out temp);
3668 /// Gets the view's world color.
3670 /// <since_tizen> 3 </since_tizen>
3671 public Vector4 WorldColor
3675 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3676 GetProperty(View.Property.WORLD_COLOR).Get(temp);
3681 internal Matrix WorldMatrix
3685 Matrix temp = new Matrix();
3686 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3692 /// Gets or sets the view's name.
3694 /// <since_tizen> 3 </since_tizen>
3700 GetProperty(View.Property.NAME).Get(out temp);
3705 SetProperty(View.Property.NAME, new Tizen.NUI.PropertyValue(value));
3710 /// Get the number of children held by the view.
3712 /// <since_tizen> 3 </since_tizen>
3713 public new uint ChildCount
3717 return GetChildCount();
3722 /// Gets the view's ID.
3725 /// <since_tizen> 3 </since_tizen>
3735 /// Gets or sets the status of whether the view should emit touch or hover signals.
3737 /// <since_tizen> 3 </since_tizen>
3738 public bool Sensitive
3743 GetProperty(View.Property.SENSITIVE).Get(out temp);
3748 SetProperty(View.Property.SENSITIVE, new Tizen.NUI.PropertyValue(value));
3753 /// 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.
3755 /// <since_tizen> 3 </since_tizen>
3756 public bool LeaveRequired
3761 GetProperty(View.Property.LEAVE_REQUIRED).Get(out temp);
3766 SetProperty(View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue(value));
3771 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
3773 /// <since_tizen> 3 </since_tizen>
3774 public bool InheritOrientation
3779 GetProperty(View.Property.INHERIT_ORIENTATION).Get(out temp);
3784 SetProperty(View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue(value));
3789 /// Gets or sets the status of whether a child view inherits it's parent's scale.
3791 /// <since_tizen> 3 </since_tizen>
3792 public bool InheritScale
3797 GetProperty(View.Property.INHERIT_SCALE).Get(out temp);
3802 SetProperty(View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue(value));
3807 /// Gets or sets the status of how the view and its children should be drawn.<br />
3808 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
3809 /// 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 />
3810 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
3811 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
3812 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
3814 /// <since_tizen> 3 </since_tizen>
3815 public DrawModeType DrawMode
3820 if (GetProperty(View.Property.DRAW_MODE).Get(out temp) == false)
3822 NUILog.Error("DrawMode get error!");
3827 return DrawModeType.Normal;
3829 return DrawModeType.Overlay2D;
3831 return DrawModeType.Stencil;
3833 return DrawModeType.Normal;
3838 SetProperty(View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)value));
3843 /// Gets or sets the relative to parent size factor of the view.<br />
3844 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
3845 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
3847 /// <since_tizen> 3 </since_tizen>
3848 public Vector3 SizeModeFactor
3852 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3853 GetProperty(View.Property.SIZE_MODE_FACTOR).Get(temp);
3858 SetProperty(View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue(value));
3863 /// Gets or sets the width resize policy to be used.
3865 /// <since_tizen> 3 </since_tizen>
3866 public ResizePolicyType WidthResizePolicy
3871 if (GetProperty(View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
3873 NUILog.Error("WidthResizePolicy get error!");
3878 return ResizePolicyType.Fixed;
3879 case "USE_NATURAL_SIZE":
3880 return ResizePolicyType.UseNaturalSize;
3881 case "FILL_TO_PARENT":
3882 return ResizePolicyType.FillToParent;
3883 case "SIZE_RELATIVE_TO_PARENT":
3884 return ResizePolicyType.SizeRelativeToParent;
3885 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3886 return ResizePolicyType.SizeFixedOffsetFromParent;
3887 case "FIT_TO_CHILDREN":
3888 return ResizePolicyType.FitToChildren;
3889 case "DIMENSION_DEPENDENCY":
3890 return ResizePolicyType.DimensionDependency;
3891 case "USE_ASSIGNED_SIZE":
3892 return ResizePolicyType.UseAssignedSize;
3894 return ResizePolicyType.Fixed;
3899 SetProperty(View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3904 /// Gets or sets the height resize policy to be used.
3906 /// <since_tizen> 3 </since_tizen>
3907 public ResizePolicyType HeightResizePolicy
3912 if (GetProperty(View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
3914 NUILog.Error("HeightResizePolicy get error!");
3919 return ResizePolicyType.Fixed;
3920 case "USE_NATURAL_SIZE":
3921 return ResizePolicyType.UseNaturalSize;
3922 case "FILL_TO_PARENT":
3923 return ResizePolicyType.FillToParent;
3924 case "SIZE_RELATIVE_TO_PARENT":
3925 return ResizePolicyType.SizeRelativeToParent;
3926 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3927 return ResizePolicyType.SizeFixedOffsetFromParent;
3928 case "FIT_TO_CHILDREN":
3929 return ResizePolicyType.FitToChildren;
3930 case "DIMENSION_DEPENDENCY":
3931 return ResizePolicyType.DimensionDependency;
3932 case "USE_ASSIGNED_SIZE":
3933 return ResizePolicyType.UseAssignedSize;
3935 return ResizePolicyType.Fixed;
3940 SetProperty(View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3945 /// Gets or sets the policy to use when setting size with size negotiation.<br />
3946 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3948 /// <since_tizen> 3 </since_tizen>
3949 public SizeScalePolicyType SizeScalePolicy
3954 if (GetProperty(View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
3956 NUILog.Error("SizeScalePolicy get error!");
3960 case "USE_SIZE_SET":
3961 return SizeScalePolicyType.UseSizeSet;
3962 case "FIT_WITH_ASPECT_RATIO":
3963 return SizeScalePolicyType.FitWithAspectRatio;
3964 case "FILL_WITH_ASPECT_RATIO":
3965 return SizeScalePolicyType.FillWithAspectRatio;
3967 return SizeScalePolicyType.UseSizeSet;
3972 string valueToString = "";
3975 case SizeScalePolicyType.UseSizeSet:
3977 valueToString = "USE_SIZE_SET";
3980 case SizeScalePolicyType.FitWithAspectRatio:
3982 valueToString = "FIT_WITH_ASPECT_RATIO";
3985 case SizeScalePolicyType.FillWithAspectRatio:
3987 valueToString = "FILL_WITH_ASPECT_RATIO";
3992 valueToString = "USE_SIZE_SET";
3996 SetProperty(View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
4001 /// Gets or sets the status of whether the width size is dependent on the height size.
4003 /// <since_tizen> 3 </since_tizen>
4004 public bool WidthForHeight
4009 GetProperty(View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
4014 SetProperty(View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue(value));
4019 /// Gets or sets the status of whether the height size is dependent on the width size.
4021 /// <since_tizen> 3 </since_tizen>
4022 public bool HeightForWidth
4027 GetProperty(View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
4032 SetProperty(View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue(value));
4037 /// Gets or sets the padding for use in layout.
4039 /// <since_tizen> 3 </since_tizen>
4040 public Vector4 Padding
4044 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
4045 GetProperty(View.Property.PADDING).Get(temp);
4050 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
4055 /// Gets or sets the minimum size the view can be assigned in size negotiation.
4057 /// <since_tizen> 3 </since_tizen>
4058 public Size2D MinimumSize
4062 Size2D temp = new Size2D(0, 0);
4063 GetProperty(View.Property.MINIMUM_SIZE).Get(temp);
4068 SetProperty(View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4073 /// Gets or sets the maximum size the view can be assigned in size negotiation.
4075 /// <since_tizen> 3 </since_tizen>
4076 public Size2D MaximumSize
4080 Size2D temp = new Size2D(0, 0);
4081 GetProperty(View.Property.MAXIMUM_SIZE).Get(temp);
4086 SetProperty(View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4091 /// Gets or sets whether a child view inherits it's parent's position.<br />
4092 /// Default is to inherit.<br />
4093 /// 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 />
4095 /// <since_tizen> 3 </since_tizen>
4096 public bool InheritPosition
4101 GetProperty(View.Property.INHERIT_POSITION).Get(out temp);
4106 SetProperty(View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue(value));
4111 /// Gets or sets the clipping behavior (mode) of it's children.
4113 /// <since_tizen> 3 </since_tizen>
4114 public ClippingModeType ClippingMode
4119 if (GetProperty(View.Property.CLIPPING_MODE).Get(out temp) == false)
4121 NUILog.Error("ClippingMode get error!");
4126 return ClippingModeType.Disabled;
4127 case "CLIP_CHILDREN":
4128 return ClippingModeType.ClipChildren;
4129 case "CLIP_TO_BOUNDING_BOX":
4130 return ClippingModeType.ClipToBoundingBox;
4132 return ClippingModeType.Disabled;
4137 SetProperty(View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)value));
4142 /// Gets the number of renderers held by the view.
4144 /// <since_tizen> 4 </since_tizen>
4145 public uint RendererCount
4149 return GetRendererCount();
4156 /// [Obsolete("Please do not use! this will be deprecated")]
4158 /// <since_tizen> 3 </since_tizen>
4159 [Obsolete("Please do not use! this will be deprecated")]
4160 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> Touched
4164 if (_touchDataEventHandler == null)
4166 _touchDataCallback = OnTouch;
4167 this.TouchSignal().Connect(_touchDataCallback);
4170 _touchDataEventHandler += value;
4175 _touchDataEventHandler -= value;
4177 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
4179 this.TouchSignal().Disconnect(_touchDataCallback);
4186 /// [Obsolete("Please do not use! this will be deprecated")]
4188 /// <since_tizen> 3 </since_tizen>
4189 [Obsolete("Please do not use! this will be deprecated")]
4190 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> Hovered
4194 if (_hoverEventHandler == null)
4196 _hoverEventCallback = OnHoverEvent;
4197 this.HoveredSignal().Connect(_hoverEventCallback);
4200 _hoverEventHandler += value;
4205 _hoverEventHandler -= value;
4207 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
4209 this.HoveredSignal().Disconnect(_hoverEventCallback);
4216 /// [Obsolete("Please do not use! this will be deprecated")]
4218 /// <since_tizen> 3 </since_tizen>
4219 [Obsolete("Please do not use! this will be deprecated")]
4220 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelMoved
4224 if (_wheelEventHandler == null)
4226 _wheelEventCallback = OnWheelEvent;
4227 this.WheelEventSignal().Connect(_wheelEventCallback);
4230 _wheelEventHandler += value;
4235 _wheelEventHandler -= value;
4237 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
4239 this.WheelEventSignal().Disconnect(_wheelEventCallback);
4246 /// [Obsolete("Please do not use! this will be deprecated")]
4248 /// <since_tizen> 3 </since_tizen>
4249 [Obsolete("Please do not use! this will be deprecated")]
4250 public Position AnchorPoint
4254 Position temp = new Position(0.0f, 0.0f, 0.0f);
4255 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
4260 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
4265 /// [Obsolete("Please do not use! this will be deprecated")]
4267 /// <since_tizen> 3 </since_tizen>
4268 [Obsolete("Please do not use! this will be deprecated, please use Size2D instead")]
4273 Size temp = new Size(0.0f, 0.0f, 0.0f);
4274 GetProperty(View.Property.SIZE).Get(temp);
4279 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(value));
4284 /// [Obsolete("Please do not use! this will be deprecated")]
4286 /// <since_tizen> 3 </since_tizen>
4287 [Obsolete("Please do not use! this will be deprecated")]
4288 public event EventHandler OnWindowEvent
4292 if (_onWindowEventHandler == null)
4294 _onWindowEventCallback = OnWindow;
4295 this.OnWindowSignal().Connect(_onWindowEventCallback);
4298 _onWindowEventHandler += value;
4303 _onWindowEventHandler -= value;
4305 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
4307 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
4313 /// [Obsolete("Please do not use! this will be deprecated")]
4315 /// <since_tizen> 3 </since_tizen>
4316 [Obsolete("Please do not use! this will be deprecated")]
4317 public event EventHandler OffWindowEvent
4321 if (_offWindowEventHandler == null)
4323 _offWindowEventCallback = OffWindow;
4324 this.OffWindowSignal().Connect(_offWindowEventCallback);
4327 _offWindowEventHandler += value;
4332 _offWindowEventHandler -= value;
4334 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
4336 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
4342 /// [Obsolete("Please do not use! this will be deprecated")]
4344 /// <since_tizen> 3 </since_tizen>
4345 [Obsolete("Please do not use! this will be deprecated")]
4346 public event EventHandler OnRelayoutEvent
4350 if (_onRelayoutEventHandler == null)
4352 _onRelayoutEventCallback = OnRelayout;
4353 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
4356 _onRelayoutEventHandler += value;
4361 _onRelayoutEventHandler -= value;
4363 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
4365 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
4372 /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4374 /// <since_tizen> 3 </since_tizen>
4375 //"Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4376 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
4377 public new View Parent
4382 IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
4384 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
4386 if (basehandle is Layer)
4388 ret = new View(cPtr, false);
4392 ret = basehandle as View;
4395 if (NDalicPINVOKE.SWIGPendingException.Pending)
4396 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4402 /// Gets/Sets whether inherit parent's the layout Direction.
4404 /// <since_tizen> 4 </since_tizen>
4405 public bool InheritLayoutDirection
4410 GetProperty(View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
4415 SetProperty(View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue(value));
4420 /// Gets/Sets the layout Direction.
4422 /// <since_tizen> 4 </since_tizen>
4423 public ViewLayoutDirectionType LayoutDirection
4428 if (GetProperty(View.Property.LAYOUT_DIRECTION).Get(out temp) == false)
4430 NUILog.Error("LAYOUT_DIRECTION get error!");
4432 return (ViewLayoutDirectionType)temp;
4436 SetProperty(View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)value));
4441 /// Gets or sets the Margin for use in layout.
4443 public Extents Margin
4447 Extents temp = new Extents(0, 0, 0, 0);
4448 GetProperty(View.Property.MARGIN).Get(temp);
4453 SetProperty(View.Property.MARGIN, new Tizen.NUI.PropertyValue(value));
4458 /// Gets or sets the Padding for use in layout.
4460 public Extents PaddingEX
4464 Extents temp = new Extents(0, 0, 0, 0);
4465 GetProperty(View.Property.PADDINGEX).Get(temp);
4470 SetProperty(View.Property.PADDINGEX, new Tizen.NUI.PropertyValue(value));
4476 /// The View layout Direction type.
4478 /// <since_tizen> 4 </since_tizen>
4479 public enum ViewLayoutDirectionType