2 * Copyright(c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using System.ComponentModel;
19 using System.Runtime.InteropServices;
21 namespace Tizen.NUI.BaseComponents
24 /// View is the base class for all views.
26 /// <since_tizen> 3 </since_tizen>
27 public class View : Container
29 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
32 internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.View_SWIGUpcast(cPtr), cMemoryOwn)
34 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
35 PositionUsesPivotPoint = false;
38 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
40 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
43 // From Container Base class
46 /// Adds a child view to this view.
48 /// <seealso cref="Container.Add" />
49 /// <since_tizen> 4 </since_tizen>
50 public override void Add(View child)
52 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 /// <since_tizen> 4 </since_tizen>
95 public override uint GetChildCount()
97 return Convert.ToUInt32(Children.Count);
101 /// Gets the views parent.
103 /// <seealso cref="Container.GetParent()" />
104 /// <since_tizen> 4 </since_tizen>
105 public override Container GetParent()
107 IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
109 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
111 if (NDalicPINVOKE.SWIGPendingException.Pending)
112 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
114 return basehandle as Container;
117 internal bool IsTopLevelView()
119 if(GetParent() is Layer)
127 /// you can override it to clean-up your own resources.
129 /// <param name="type">DisposeTypes</param>
130 /// <since_tizen> 3 </since_tizen>
131 protected override void Dispose(DisposeTypes type)
138 if(type == DisposeTypes.Explicit)
141 //Release your own managed resources here.
142 //You should release all of your own disposable objects here.
145 //Release your own unmanaged resources here.
146 //You should not access any managed member here except static instance.
147 //because the execution order of Finalizes is non-deterministic.
149 DisConnectFromSignals();
151 if (swigCPtr.Handle != global::System.IntPtr.Zero)
156 NDalicPINVOKE.delete_View(swigCPtr);
158 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
165 private void DisConnectFromSignals()
167 // Save current CPtr.
168 global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
170 // Use BaseHandle CPtr as current might have been deleted already in derived classes.
171 swigCPtr = GetBaseHandleCPtrHandleRef;
173 if (_onRelayoutEventCallback != null)
175 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
178 if (_offWindowEventCallback != null)
180 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
183 if (_onWindowEventCallback != null)
185 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
188 if (_wheelEventCallback != null)
190 this.WheelEventSignal().Disconnect(_wheelEventCallback);
193 if (_hoverEventCallback != null)
195 this.HoveredSignal().Disconnect(_hoverEventCallback);
198 if (_touchDataCallback != null)
200 this.TouchSignal().Disconnect(_touchDataCallback);
203 if (_ResourcesLoadedCallback != null)
205 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
208 if (_offWindowEventCallback != null)
210 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
213 if (_onWindowEventCallback != null)
215 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
218 if (_wheelEventCallback != null)
220 this.WheelEventSignal().Disconnect(_wheelEventCallback);
223 if (_hoverEventCallback != null)
225 this.HoveredSignal().Disconnect(_hoverEventCallback);
228 if (_touchDataCallback != null)
230 this.TouchSignal().Disconnect(_touchDataCallback);
233 if (_onRelayoutEventCallback != null)
235 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
238 if (_keyCallback != null)
240 this.KeyEventSignal().Disconnect(_keyCallback);
243 if (_keyInputFocusLostCallback != null)
245 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
248 if (_keyInputFocusGainedCallback != null)
250 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
253 // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
254 // Restore current CPtr.
255 swigCPtr = currentCPtr;
258 private EventHandler _keyInputFocusGainedEventHandler;
259 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
260 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
261 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
264 /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
265 /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.<br />
267 /// <since_tizen> 3 </since_tizen>
268 public event EventHandler FocusGained
272 if (_keyInputFocusGainedEventHandler == null)
274 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
275 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
278 _keyInputFocusGainedEventHandler += value;
283 _keyInputFocusGainedEventHandler -= value;
285 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
287 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
292 private void OnKeyInputFocusGained(IntPtr view)
294 if (_keyInputFocusGainedEventHandler != null)
296 _keyInputFocusGainedEventHandler(this, null);
301 private EventHandler _keyInputFocusLostEventHandler;
302 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
303 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
304 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
307 /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
308 /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.<br />
310 /// <since_tizen> 3 </since_tizen>
311 public event EventHandler FocusLost
315 if (_keyInputFocusLostEventHandler == null)
317 _keyInputFocusLostCallback = OnKeyInputFocusLost;
318 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
321 _keyInputFocusLostEventHandler += value;
326 _keyInputFocusLostEventHandler -= value;
328 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
330 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
335 private void OnKeyInputFocusLost(IntPtr view)
337 if (_keyInputFocusLostEventHandler != null)
339 _keyInputFocusLostEventHandler(this, null);
344 /// Event arguments that passed via the KeyEvent signal.
346 /// <since_tizen> 3 </since_tizen>
347 public class KeyEventArgs : EventArgs
352 /// Key - is the key sent to the view.
354 /// <since_tizen> 3 </since_tizen>
368 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
369 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
370 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
371 private KeyCallbackType _keyCallback;
374 /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
375 /// The KeyPressed signal is emitted when the key event is received.<br />
377 /// <since_tizen> 3 </since_tizen>
378 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
382 if (_keyEventHandler == null)
384 _keyCallback = OnKeyEvent;
385 this.KeyEventSignal().Connect(_keyCallback);
388 _keyEventHandler += value;
393 _keyEventHandler -= value;
395 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
397 this.KeyEventSignal().Disconnect(_keyCallback);
402 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
404 KeyEventArgs e = new KeyEventArgs();
408 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
410 if (_keyEventHandler != null)
412 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
414 // Oring the result of each callback.
415 foreach ( EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList )
417 result |= del( this, e );
424 private EventHandler _onRelayoutEventHandler;
425 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
426 private delegate void OnRelayoutEventCallbackType(IntPtr control);
427 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
430 /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.<br />
431 /// The OnRelayout signal is emitted after the size has been set on the view during relayout.<br />
433 /// <since_tizen> 3 </since_tizen>
434 public event EventHandler Relayout
438 if (_onRelayoutEventHandler == null)
440 _onRelayoutEventCallback = OnRelayout;
441 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
444 _onRelayoutEventHandler += value;
449 _onRelayoutEventHandler -= value;
451 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
453 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
459 // Callback for View OnRelayout signal
460 private void OnRelayout(IntPtr data)
462 if (_onRelayoutEventHandler != null)
464 _onRelayoutEventHandler(this, null);
469 /// Event arguments that passed via the touch signal.
471 /// <since_tizen> 3 </since_tizen>
472 public class TouchEventArgs : EventArgs
474 private Touch _touch;
477 /// Touch - contains the information of touch points.
479 /// <since_tizen> 3 </since_tizen>
493 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
494 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
495 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
496 private TouchDataCallbackType _touchDataCallback;
499 /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
500 /// The touched signal is emitted when the touch input is received.<br />
502 /// <since_tizen> 3 </since_tizen>
503 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> TouchEvent
507 if (_touchDataEventHandler == null)
509 _touchDataCallback = OnTouch;
510 this.TouchSignal().Connect(_touchDataCallback);
513 _touchDataEventHandler += value;
518 _touchDataEventHandler -= value;
520 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
522 this.TouchSignal().Disconnect(_touchDataCallback);
528 // Callback for View TouchSignal
529 private bool OnTouch(IntPtr view, IntPtr touchData)
531 TouchEventArgs e = new TouchEventArgs();
533 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
535 if (_touchDataEventHandler != null)
537 return _touchDataEventHandler(this, e);
544 /// Event arguments that passed via the hover signal.
546 /// <since_tizen> 3 </since_tizen>
547 public class HoverEventArgs : EventArgs
549 private Hover _hover;
552 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
554 /// <since_tizen> 3 </since_tizen>
568 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
569 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
570 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
571 private HoverEventCallbackType _hoverEventCallback;
574 /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
575 /// The hovered signal is emitted when the hover input is received.<br />
577 /// <since_tizen> 3 </since_tizen>
578 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> HoverEvent
582 if (_hoverEventHandler == null)
584 _hoverEventCallback = OnHoverEvent;
585 this.HoveredSignal().Connect(_hoverEventCallback);
588 _hoverEventHandler += value;
593 _hoverEventHandler -= value;
595 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
597 this.HoveredSignal().Disconnect(_hoverEventCallback);
603 // Callback for View Hover signal
604 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
606 HoverEventArgs e = new HoverEventArgs();
608 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
610 if (_hoverEventHandler != null)
612 return _hoverEventHandler(this, e);
619 /// Event arguments that passed via the wheel signal.
621 /// <since_tizen> 3 </since_tizen>
622 public class WheelEventArgs : EventArgs
624 private Wheel _wheel;
627 /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
629 /// <since_tizen> 3 </since_tizen>
643 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
644 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
645 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
646 private WheelEventCallbackType _wheelEventCallback;
649 /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
650 /// The WheelMoved signal is emitted when the wheel event is received.<br />
652 /// <since_tizen> 3 </since_tizen>
653 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelEvent
657 if (_wheelEventHandler == null)
659 _wheelEventCallback = OnWheelEvent;
660 this.WheelEventSignal().Connect(_wheelEventCallback);
663 _wheelEventHandler += value;
668 _wheelEventHandler -= value;
670 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
672 this.WheelEventSignal().Disconnect(_wheelEventCallback);
678 // Callback for View Wheel signal
679 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
681 WheelEventArgs e = new WheelEventArgs();
683 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
685 if (_wheelEventHandler != null)
687 return _wheelEventHandler(this, e);
693 private EventHandler _onWindowEventHandler;
694 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
695 private delegate void OnWindowEventCallbackType(IntPtr control);
696 private OnWindowEventCallbackType _onWindowEventCallback;
699 /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.<br />
700 /// The OnWindow signal is emitted after the view has been connected to the window.<br />
702 /// <since_tizen> 3 </since_tizen>
703 public event EventHandler AddedToWindow
707 if (_onWindowEventHandler == null)
709 _onWindowEventCallback = OnWindow;
710 this.OnWindowSignal().Connect(_onWindowEventCallback);
713 _onWindowEventHandler += value;
718 _onWindowEventHandler -= value;
720 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
722 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
727 // Callback for View OnWindow signal
728 private void OnWindow(IntPtr data)
730 if (_onWindowEventHandler != null)
732 _onWindowEventHandler(this, null);
737 private EventHandler _offWindowEventHandler;
738 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
739 private delegate void OffWindowEventCallbackType(IntPtr control);
740 private OffWindowEventCallbackType _offWindowEventCallback;
743 /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.<br />
744 /// OffWindow signal is emitted after the view has been disconnected from the window.<br />
746 /// <since_tizen> 3 </since_tizen>
747 public event EventHandler RemovedFromWindow
751 if (_offWindowEventHandler == null)
753 _offWindowEventCallback = OffWindow;
754 this.OffWindowSignal().Connect(_offWindowEventCallback);
757 _offWindowEventHandler += value;
762 _offWindowEventHandler -= value;
764 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
766 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
771 // Callback for View OffWindow signal
772 private void OffWindow(IntPtr data)
774 if (_offWindowEventHandler != null)
776 _offWindowEventHandler(this, null);
781 /// Event arguments of visibility changed.
783 /// <since_tizen> 3 </since_tizen>
784 public class VisibilityChangedEventArgs : EventArgs
787 private bool _visibility;
788 private VisibilityChangeType _type;
791 /// The view, or child of view, whose visibility has changed.
793 /// <since_tizen> 3 </since_tizen>
807 /// Whether the view is now visible or not.
809 /// <since_tizen> 3 </since_tizen>
810 public bool Visibility
823 /// Whether the view's visible property has changed or a parent's.
825 /// <since_tizen> 3 </since_tizen>
826 public VisibilityChangeType Type
839 private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
840 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
841 private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
842 private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
845 /// An event for visibility change which can be used to subscribe or unsubscribe the event handler.<br />
846 /// This signal is emitted when the visible property of this or a parent view is changed.<br />
848 /// <since_tizen> 3 </since_tizen>
849 public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
853 if (_visibilityChangedEventHandler == null)
855 _visibilityChangedEventCallback = OnVisibilityChanged;
856 VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
859 _visibilityChangedEventHandler += value;
864 _visibilityChangedEventHandler -= value;
866 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
868 VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
873 // Callback for View visibility change signal
874 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
876 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
879 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
881 e.Visibility = visibility;
884 if (_visibilityChangedEventHandler != null)
886 _visibilityChangedEventHandler(this, e);
892 /// Event arguments of layout direction changed.
894 /// <since_tizen> 4 </since_tizen>
895 public class LayoutDirectionChangedEventArgs : EventArgs
898 private ViewLayoutDirectionType _type;
901 /// The view, or child of view, whose layout direction has changed.
903 /// <since_tizen> 4 </since_tizen>
917 /// Whether the view's layout direction property has changed or a parent's.
919 /// <since_tizen> 4 </since_tizen>
920 public ViewLayoutDirectionType Type
933 private EventHandler<LayoutDirectionChangedEventArgs> _layoutDirectionChangedEventHandler;
934 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
935 private delegate void LayoutDirectionChangedEventCallbackType(IntPtr data, ViewLayoutDirectionType type);
936 private LayoutDirectionChangedEventCallbackType _layoutDirectionChangedEventCallback;
939 /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.<br />
940 /// This signal is emitted when the layout direction property of this or a parent view is changed.<br />
942 /// <since_tizen> 4 </since_tizen>
943 public event EventHandler<LayoutDirectionChangedEventArgs> LayoutDirectionChanged
947 if (_layoutDirectionChangedEventHandler == null)
949 _layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
950 LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
953 _layoutDirectionChangedEventHandler += value;
958 _layoutDirectionChangedEventHandler -= value;
960 if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
962 LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
967 // Callback for View layout direction change signal
968 private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
970 LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
973 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
977 if (_layoutDirectionChangedEventHandler != null)
979 _layoutDirectionChangedEventHandler(this, e);
989 // Resource Ready Signal
991 private EventHandler _resourcesLoadedEventHandler;
992 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
993 private delegate void ResourcesLoadedCallbackType(IntPtr control);
994 private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
997 /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
998 /// This signal is emitted after all resources required by a view are loaded and ready.<br />
1000 /// <since_tizen> 3 </since_tizen>
1001 public event EventHandler ResourcesLoaded
1005 if (_resourcesLoadedEventHandler == null)
1007 _ResourcesLoadedCallback = OnResourcesLoaded;
1008 this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
1011 _resourcesLoadedEventHandler += value;
1016 _resourcesLoadedEventHandler -= value;
1018 if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1020 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
1025 private void OnResourcesLoaded(IntPtr view)
1027 if (_resourcesLoadedEventHandler != null)
1029 _resourcesLoadedEventHandler(this, null);
1033 internal IntPtr GetPtrfromView()
1035 return (IntPtr)swigCPtr;
1038 internal class Property
1040 internal static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
1041 internal static readonly int STATE = NDalicManualPINVOKE.View_Property_STATE_get();
1042 internal static readonly int SUB_STATE = NDalicManualPINVOKE.View_Property_SUB_STATE_get();
1043 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
1044 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
1045 internal static readonly int UP_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
1046 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
1047 internal static readonly int STYLE_NAME = NDalicPINVOKE.View_Property_STYLE_NAME_get();
1048 internal static readonly int BACKGROUND = NDalicPINVOKE.View_Property_BACKGROUND_get();
1049 internal static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
1050 internal static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
1051 internal static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
1052 internal static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
1053 internal static readonly int PARENT_ORIGIN = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_get();
1054 internal static readonly int PARENT_ORIGIN_X = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_X_get();
1055 internal static readonly int PARENT_ORIGIN_Y = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Y_get();
1056 internal static readonly int PARENT_ORIGIN_Z = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Z_get();
1057 internal static readonly int ANCHOR_POINT = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_get();
1058 internal static readonly int ANCHOR_POINT_X = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_X_get();
1059 internal static readonly int ANCHOR_POINT_Y = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Y_get();
1060 internal static readonly int ANCHOR_POINT_Z = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Z_get();
1061 internal static readonly int SIZE = NDalicPINVOKE.Actor_Property_SIZE_get();
1062 internal static readonly int SIZE_WIDTH = NDalicPINVOKE.Actor_Property_SIZE_WIDTH_get();
1063 internal static readonly int SIZE_HEIGHT = NDalicPINVOKE.Actor_Property_SIZE_HEIGHT_get();
1064 internal static readonly int SIZE_DEPTH = NDalicPINVOKE.Actor_Property_SIZE_DEPTH_get();
1065 internal static readonly int POSITION = NDalicPINVOKE.Actor_Property_POSITION_get();
1066 internal static readonly int POSITION_X = NDalicPINVOKE.Actor_Property_POSITION_X_get();
1067 internal static readonly int POSITION_Y = NDalicPINVOKE.Actor_Property_POSITION_Y_get();
1068 internal static readonly int POSITION_Z = NDalicPINVOKE.Actor_Property_POSITION_Z_get();
1069 internal static readonly int WORLD_POSITION = NDalicPINVOKE.Actor_Property_WORLD_POSITION_get();
1070 internal static readonly int WORLD_POSITION_X = NDalicPINVOKE.Actor_Property_WORLD_POSITION_X_get();
1071 internal static readonly int WORLD_POSITION_Y = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Y_get();
1072 internal static readonly int WORLD_POSITION_Z = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Z_get();
1073 internal static readonly int ORIENTATION = NDalicPINVOKE.Actor_Property_ORIENTATION_get();
1074 internal static readonly int WORLD_ORIENTATION = NDalicPINVOKE.Actor_Property_WORLD_ORIENTATION_get();
1075 internal static readonly int SCALE = NDalicPINVOKE.Actor_Property_SCALE_get();
1076 internal static readonly int SCALE_X = NDalicPINVOKE.Actor_Property_SCALE_X_get();
1077 internal static readonly int SCALE_Y = NDalicPINVOKE.Actor_Property_SCALE_Y_get();
1078 internal static readonly int SCALE_Z = NDalicPINVOKE.Actor_Property_SCALE_Z_get();
1079 internal static readonly int WORLD_SCALE = NDalicPINVOKE.Actor_Property_WORLD_SCALE_get();
1080 internal static readonly int VISIBLE = NDalicPINVOKE.Actor_Property_VISIBLE_get();
1081 internal static readonly int WORLD_COLOR = NDalicPINVOKE.Actor_Property_WORLD_COLOR_get();
1082 internal static readonly int WORLD_MATRIX = NDalicPINVOKE.Actor_Property_WORLD_MATRIX_get();
1083 internal static readonly int NAME = NDalicPINVOKE.Actor_Property_NAME_get();
1084 internal static readonly int SENSITIVE = NDalicPINVOKE.Actor_Property_SENSITIVE_get();
1085 internal static readonly int LEAVE_REQUIRED = NDalicPINVOKE.Actor_Property_LEAVE_REQUIRED_get();
1086 internal static readonly int INHERIT_ORIENTATION = NDalicPINVOKE.Actor_Property_INHERIT_ORIENTATION_get();
1087 internal static readonly int INHERIT_SCALE = NDalicPINVOKE.Actor_Property_INHERIT_SCALE_get();
1088 internal static readonly int DRAW_MODE = NDalicPINVOKE.Actor_Property_DRAW_MODE_get();
1089 internal static readonly int SIZE_MODE_FACTOR = NDalicPINVOKE.Actor_Property_SIZE_MODE_FACTOR_get();
1090 internal static readonly int WIDTH_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_WIDTH_RESIZE_POLICY_get();
1091 internal static readonly int HEIGHT_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_HEIGHT_RESIZE_POLICY_get();
1092 internal static readonly int SIZE_SCALE_POLICY = NDalicPINVOKE.Actor_Property_SIZE_SCALE_POLICY_get();
1093 internal static readonly int WIDTH_FOR_HEIGHT = NDalicPINVOKE.Actor_Property_WIDTH_FOR_HEIGHT_get();
1094 internal static readonly int HEIGHT_FOR_WIDTH = NDalicPINVOKE.Actor_Property_HEIGHT_FOR_WIDTH_get();
1095 internal static readonly int MINIMUM_SIZE = NDalicPINVOKE.Actor_Property_MINIMUM_SIZE_get();
1096 internal static readonly int MAXIMUM_SIZE = NDalicPINVOKE.Actor_Property_MAXIMUM_SIZE_get();
1097 internal static readonly int INHERIT_POSITION = NDalicPINVOKE.Actor_Property_INHERIT_POSITION_get();
1098 internal static readonly int CLIPPING_MODE = NDalicPINVOKE.Actor_Property_CLIPPING_MODE_get();
1099 internal static readonly int INHERIT_LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
1100 internal static readonly int LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_LAYOUT_DIRECTION_get();
1101 internal static readonly int MARGIN = NDalicPINVOKE.View_Property_MARGIN_get();
1102 internal static readonly int PADDING = NDalicPINVOKE.View_Property_PADDING_get();
1106 /// Describes the direction to move the focus towards.
1108 /// <since_tizen> 3 </since_tizen>
1109 public enum FocusDirection
1112 /// Move keyboard focus towards the left direction.
1114 /// <since_tizen> 3 </since_tizen>
1117 /// Move keyboard focus towards the right direction.
1119 /// <since_tizen> 3 </since_tizen>
1122 /// Move keyboard focus towards the up direction.
1124 /// <since_tizen> 3 </since_tizen>
1127 /// Move keyboard focus towards the down direction.
1129 /// <since_tizen> 3 </since_tizen>
1132 /// Move keyboard focus towards the previous page direction.
1134 /// <since_tizen> 3 </since_tizen>
1137 /// Move keyboard focus towards the next page direction.
1139 /// <since_tizen> 3 </since_tizen>
1144 /// Creates a new instance of a view.
1146 /// <since_tizen> 3 </since_tizen>
1147 public View() : this(NDalicPINVOKE.View_New(), true)
1149 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1152 internal View(View uiControl) : this(NDalicPINVOKE.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1154 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1157 private View ConvertIdToView(uint id)
1163 View parentView = Parent as View;
1164 view = parentView.FindChildById(id);
1169 view = Window.Instance.GetRootLayer().FindChildById(id);
1175 internal void SetKeyInputFocus()
1177 NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
1178 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1182 /// Queries whether the view has a focus.
1184 /// <returns>True if this view has a focus.</returns>
1185 /// <since_tizen> 3 </since_tizen>
1186 public bool HasFocus()
1188 bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
1189 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1193 internal void ClearKeyInputFocus()
1195 NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
1196 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1199 internal PinchGestureDetector GetPinchGestureDetector()
1201 PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
1202 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1206 internal PanGestureDetector GetPanGestureDetector()
1208 PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
1209 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1213 internal TapGestureDetector GetTapGestureDetector()
1215 TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
1216 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1220 internal LongPressGestureDetector GetLongPressGestureDetector()
1222 LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
1223 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1228 /// Sets the name of the style to be applied to the view.
1230 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
1231 /// <since_tizen> 3 </since_tizen>
1232 public void SetStyleName(string styleName)
1234 NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
1235 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1239 /// Retrieves the name of the style to be applied to the view (if any).
1241 /// <returns>A string matching a style, or an empty string.</returns>
1242 /// <since_tizen> 3 </since_tizen>
1243 public string GetStyleName()
1245 string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
1246 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1250 internal void SetBackgroundColor(Vector4 color)
1252 NDalicPINVOKE.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
1253 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1256 internal Vector4 GetBackgroundColor()
1258 Vector4 ret = new Vector4(NDalicPINVOKE.View_GetBackgroundColor(swigCPtr), true);
1259 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1263 internal void SetBackgroundImage(Image image)
1265 NDalicPINVOKE.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
1266 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1270 /// Clears the background.
1272 /// <since_tizen> 3 </since_tizen>
1273 public void ClearBackground()
1275 NDalicPINVOKE.View_ClearBackground(swigCPtr);
1276 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1279 internal ControlKeySignal KeyEventSignal()
1281 ControlKeySignal ret = new ControlKeySignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
1282 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1286 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
1288 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
1289 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1293 internal KeyInputFocusSignal KeyInputFocusLostSignal()
1295 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
1296 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1300 internal View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1302 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1305 internal enum PropertyRange
1307 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1308 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1309 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1313 /// The StyleName, type string.
1315 /// <since_tizen> 3 </since_tizen>
1316 public string StyleName
1321 GetProperty(View.Property.STYLE_NAME).Get(out temp);
1326 SetProperty(View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue(value));
1331 /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
1333 /// <since_tizen> 3 </since_tizen>
1334 public Color BackgroundColor
1338 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1340 Tizen.NUI.PropertyMap background = Background;
1342 background.Find(Visual.Property.Type)?.Get(out visualType);
1343 if (visualType == (int)Visual.Type.Color)
1345 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
1348 return backgroundColor;
1352 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1357 /// Creates an animation to animate the background color visual. If there is no
1358 /// background visual, creates one with transparent black as it's mixColor.
1360 /// <since_tizen> 3 </since_tizen>
1361 public Animation AnimateBackgroundColor( object destinationValue,
1364 AlphaFunction.BuiltinFunctions? alphaFunction = null,
1365 object initialValue = null)
1367 Tizen.NUI.PropertyMap background = Background;
1369 if( background.Empty() )
1371 // If there is no background yet, ensure there is a transparent
1373 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1374 background = Background;
1376 return AnimateColor( "background", destinationValue, startTime, endTime, alphaFunction, initialValue );
1380 /// Creates an animation to animate the mixColor of the named visual.
1382 /// <since_tizen> 3 </since_tizen>
1383 public Animation AnimateColor( string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null )
1385 Animation animation = null;
1387 PropertyMap _animator = new PropertyMap();
1388 if( alphaFunction != null )
1390 _animator.Add("alphaFunction", new PropertyValue( AlphaFunction.BuiltinToPropertyKey(alphaFunction) ) );
1393 PropertyMap _timePeriod = new PropertyMap();
1394 _timePeriod.Add( "duration", new PropertyValue((endTime-startTime)/1000.0f) );
1395 _timePeriod.Add( "delay", new PropertyValue( startTime/1000.0f ) );
1396 _animator.Add( "timePeriod", new PropertyValue( _timePeriod ) );
1398 PropertyMap _transition = new PropertyMap();
1399 _transition.Add( "animator", new PropertyValue( _animator ) );
1400 _transition.Add( "target", new PropertyValue( targetVisual ) );
1401 _transition.Add( "property", new PropertyValue( "mixColor" ) );
1403 if( initialColor != null )
1405 PropertyValue initValue = PropertyValue.CreateFromObject( initialColor );
1406 _transition.Add( "initialValue", initValue );
1409 PropertyValue destValue = PropertyValue.CreateFromObject( destinationColor );
1410 _transition.Add( "targetValue", destValue );
1411 TransitionData _transitionData = new TransitionData( _transition );
1413 animation = new Animation( NDalicManualPINVOKE.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true );
1414 if (NDalicPINVOKE.SWIGPendingException.Pending)
1415 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1421 /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
1423 /// <since_tizen> 3 </since_tizen>
1424 public string BackgroundImage
1428 string backgroundImage = "";
1430 Tizen.NUI.PropertyMap background = Background;
1432 background.Find(Visual.Property.Type)?.Get(out visualType);
1433 if (visualType == (int)Visual.Type.Image)
1435 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
1438 return backgroundImage;
1442 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1447 /// The background of view.
1449 /// <since_tizen> 3 </since_tizen>
1450 public Tizen.NUI.PropertyMap Background
1454 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1455 GetProperty( View.Property.BACKGROUND ).Get(temp);
1460 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1466 /// The current state of the view.
1468 /// <since_tizen> 3 </since_tizen>
1474 if (GetProperty(View.Property.STATE).Get(out temp) == false)
1476 NUILog.Error("State get error!");
1482 return States.Normal;
1486 return States.Focused;
1490 return States.Disabled;
1494 return States.Normal;
1500 SetProperty(View.Property.STATE, new Tizen.NUI.PropertyValue((int)value));
1505 /// The current sub state of the view.
1507 /// <since_tizen> 3 </since_tizen>
1508 public States SubState
1513 if (GetProperty(View.Property.SUB_STATE).Get(out temp) == false)
1515 NUILog.Error("subState get error!");
1520 return States.Normal;
1522 return States.Focused;
1524 return States.Disabled;
1526 return States.Normal;
1531 string valueToString = "";
1536 valueToString = "NORMAL";
1539 case States.Focused:
1541 valueToString = "FOCUSED";
1544 case States.Disabled:
1546 valueToString = "DISABLED";
1551 valueToString = "NORMAL";
1555 SetProperty(View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
1560 /// Displays a tooltip
1562 /// <since_tizen> 3 </since_tizen>
1563 public Tizen.NUI.PropertyMap Tooltip
1567 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1568 GetProperty(View.Property.TOOLTIP).Get(temp);
1573 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1578 /// Displays a tooltip as a text.
1580 /// <since_tizen> 3 </since_tizen>
1581 public string TooltipText
1585 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1589 private int LeftFocusableViewId
1594 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
1599 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1603 private int RightFocusableViewId
1608 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
1613 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1617 private int UpFocusableViewId
1622 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
1627 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1631 private int DownFocusableViewId
1636 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
1641 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1646 /// The Child property of FlexContainer.<br />
1647 /// The proportion of the free space in the container, the flex item will receive.<br />
1648 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
1650 /// <since_tizen> 3 </since_tizen>
1656 GetProperty(FlexContainer.ChildProperty.FLEX).Get(out temp);
1661 SetProperty(FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue(value));
1666 /// The Child property of FlexContainer.<br />
1667 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
1669 /// <since_tizen> 3 </since_tizen>
1670 public int AlignSelf
1675 GetProperty(FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
1680 SetProperty(FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue(value));
1685 /// The Child property of FlexContainer.<br />
1686 /// The space around the flex item.<br />
1688 /// <since_tizen> 3 </since_tizen>
1689 public Vector4 FlexMargin
1693 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1694 GetProperty(FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
1699 SetProperty(FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue(value));
1704 /// The top-left cell this child occupies, if not set, the first available cell is used.
1706 /// <since_tizen> 3 </since_tizen>
1707 public Vector2 CellIndex
1711 Vector2 temp = new Vector2(0.0f, 0.0f);
1712 GetProperty(TableView.ChildProperty.CELL_INDEX).Get(temp);
1717 SetProperty(TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue(value));
1722 /// The number of rows this child occupies, if not set, the default value is 1.
1724 /// <since_tizen> 3 </since_tizen>
1725 public float RowSpan
1730 GetProperty(TableView.ChildProperty.ROW_SPAN).Get(out temp);
1735 SetProperty(TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue(value));
1740 /// The number of columns this child occupies, if not set, the default value is 1.
1742 /// <since_tizen> 3 </since_tizen>
1743 public float ColumnSpan
1748 GetProperty(TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
1753 SetProperty(TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue(value));
1758 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
1760 /// <since_tizen> 3 </since_tizen>
1761 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
1766 if (GetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
1768 NUILog.Error("CellHorizontalAlignment get error!");
1774 return Tizen.NUI.HorizontalAlignmentType.Left;
1776 return Tizen.NUI.HorizontalAlignmentType.Center;
1778 return Tizen.NUI.HorizontalAlignmentType.Right;
1780 return Tizen.NUI.HorizontalAlignmentType.Left;
1785 string valueToString = "";
1788 case Tizen.NUI.HorizontalAlignmentType.Left:
1790 valueToString = "left";
1793 case Tizen.NUI.HorizontalAlignmentType.Center:
1795 valueToString = "center";
1798 case Tizen.NUI.HorizontalAlignmentType.Right:
1800 valueToString = "right";
1805 valueToString = "left";
1809 SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1814 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
1816 /// <since_tizen> 3 </since_tizen>
1817 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
1822 GetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
1824 NUILog.Error("CellVerticalAlignment get error!");
1830 return Tizen.NUI.VerticalAlignmentType.Top;
1832 return Tizen.NUI.VerticalAlignmentType.Center;
1834 return Tizen.NUI.VerticalAlignmentType.Bottom;
1836 return Tizen.NUI.VerticalAlignmentType.Top;
1841 string valueToString = "";
1844 case Tizen.NUI.VerticalAlignmentType.Top:
1846 valueToString = "top";
1849 case Tizen.NUI.VerticalAlignmentType.Center:
1851 valueToString = "center";
1854 case Tizen.NUI.VerticalAlignmentType.Bottom:
1856 valueToString = "bottom";
1861 valueToString = "top";
1865 SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1870 /// The left focusable view.<br />
1871 /// This will return null if not set.<br />
1872 /// This will also return null if the specified left focusable view is not on a window.<br />
1874 /// <since_tizen> 3 </since_tizen>
1875 public View LeftFocusableView
1877 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1880 if (LeftFocusableViewId >= 0)
1882 return ConvertIdToView((uint)LeftFocusableViewId);
1890 LeftFocusableViewId = (int)value.GetId();
1894 LeftFocusableViewId = -1;
1900 /// The right focusable view.<br />
1901 /// This will return null if not set.<br />
1902 /// This will also return null if the specified right focusable view is not on a window.<br />
1904 /// <since_tizen> 3 </since_tizen>
1905 public View RightFocusableView
1907 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1910 if (RightFocusableViewId >= 0)
1912 return ConvertIdToView((uint)RightFocusableViewId);
1920 RightFocusableViewId = (int)value.GetId();
1924 RightFocusableViewId = -1;
1930 /// The up focusable view.<br />
1931 /// This will return null if not set.<br />
1932 /// This will also return null if the specified up focusable view is not on a window.<br />
1934 /// <since_tizen> 3 </since_tizen>
1935 public View UpFocusableView
1937 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1940 if (UpFocusableViewId >= 0)
1942 return ConvertIdToView((uint)UpFocusableViewId);
1950 UpFocusableViewId = (int)value.GetId();
1954 UpFocusableViewId = -1;
1960 /// The down focusable view.<br />
1961 /// This will return null if not set.<br />
1962 /// This will also return null if the specified down focusable view is not on a window.<br />
1964 /// <since_tizen> 3 </since_tizen>
1965 public View DownFocusableView
1967 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1970 if (DownFocusableViewId >= 0)
1972 return ConvertIdToView((uint)DownFocusableViewId);
1980 DownFocusableViewId = (int)value.GetId();
1984 DownFocusableViewId = -1;
1990 /// Whether the view should be focusable by keyboard navigation.
1992 /// <since_tizen> 3 </since_tizen>
1993 public bool Focusable
1997 SetKeyboardFocusable(value);
2001 return IsKeyboardFocusable();
2006 /// Enumeration for describing the states of the view.
2008 /// <since_tizen> 3 </since_tizen>
2012 /// The normal state.
2016 /// The focused state.
2020 /// The disabled state.
2026 /// Retrieves the position of the view.<br />
2027 /// The coordinates are relative to the view's parent.<br />
2029 /// <since_tizen> 3 </since_tizen>
2030 public Position CurrentPosition
2034 return GetCurrentPosition();
2039 /// Sets the size of a view for the width and the height.<br />
2040 /// Geometry can be scaled to fit within this area.<br />
2041 /// This does not interfere with the view's scale factor.<br />
2042 /// The views default depth is the minimum of width and height.<br />
2044 /// <since_tizen> 3 </since_tizen>
2045 public Size2D Size2D
2049 Size temp = new Size(0.0f, 0.0f, 0.0f);
2050 GetProperty(View.Property.SIZE).Get(temp);
2051 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
2056 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size(value)));
2061 /// Retrieves the size of the view.<br />
2062 /// The coordinates are relative to the view's parent.<br />
2064 /// <since_tizen> 3 </since_tizen>
2065 public Size2D CurrentSize
2069 return GetCurrentSize();
2074 /// Retrieves and sets the view's opacity.<br />
2076 /// <since_tizen> 3 </since_tizen>
2077 public float Opacity
2082 GetProperty(View.Property.OPACITY).Get(out temp);
2087 SetProperty(View.Property.OPACITY, new Tizen.NUI.PropertyValue(value));
2092 /// Sets the position of the view for X and Y.<br />
2093 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2094 /// If the position inheritance is disabled, sets the world position.<br />
2096 /// <since_tizen> 3 </since_tizen>
2097 public Position2D Position2D
2101 Position temp = new Position(0.0f, 0.0f, 0.0f);
2102 GetProperty(View.Property.POSITION).Get(temp);
2103 return new Position2D(temp);
2107 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position(value)));
2112 /// Retrieves the screen postion of the view.<br />
2114 /// <since_tizen> 3 </since_tizen>
2115 public Vector2 ScreenPosition
2119 Vector2 temp = new Vector2(0.0f, 0.0f);
2120 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2126 /// Determines whether the pivot point should be used to determine the position of the view.
2127 /// This is true by default.
2129 /// <remarks>If false, then the top-left of the view is used for the position.
2130 /// Setting this to false will allow scaling or rotation around the anchor-point without affecting the view's position.
2132 /// <since_tizen> 3 </since_tizen>
2133 public bool PositionUsesPivotPoint
2138 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2143 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2148 /// Please do not use! this will be deprecated.
2150 /// Please do not use! this will be deprecated!
2151 /// Instead please use PositionUsesPivotPoint.
2152 /// <since_tizen> 3 </since_tizen>
2153 [Obsolete("Please do not use! This will be deprecated! Please use PositionUsesPivotPoint instead! " +
2155 "View view = new View(); " +
2156 "view.PivotPoint = PivotPoint.Center; " +
2157 "view.PositionUsesPivotPoint = true;")]
2158 [EditorBrowsable(EditorBrowsableState.Never)]
2159 public bool PositionUsesAnchorPoint
2164 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2169 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2173 internal bool FocusState
2177 return IsKeyboardFocusable();
2181 SetKeyboardFocusable(value);
2186 /// Queries whether the view is connected to the stage.<br />
2187 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2189 /// <since_tizen> 3 </since_tizen>
2190 public bool IsOnWindow
2199 /// Gets the depth in the hierarchy for the view.
2201 /// <since_tizen> 3 </since_tizen>
2202 public int HierarchyDepth
2206 return GetHierarchyDepth();
2211 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2214 /// Note the initial value is 0.
2215 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2216 /// The values set by this property will likely change.
2218 /// <since_tizen> 3 </since_tizen>
2219 public int SiblingOrder
2224 GetProperty(View.Property.SIBLING_ORDER).Get(out temp);
2229 SetProperty(View.Property.SIBLING_ORDER, new Tizen.NUI.PropertyValue(value));
2234 /// Returns the natural size of the view.
2237 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2239 /// /// Please do not use! this will be deprecated!
2240 /// Instead please use NaturalSize2D.
2241 /// <since_tizen> 3 </since_tizen>
2242 [Obsolete("Please do not use! This will be deprecated! Please use NaturalSize2D instead! " +
2244 "TextLabel label = new TextLabel(\"Hello World!\"); " +
2245 "Size2D size = label.NaturalSize2D;")]
2246 [EditorBrowsable(EditorBrowsableState.Never)]
2247 public Vector3 NaturalSize
2251 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2252 if (NDalicPINVOKE.SWIGPendingException.Pending)
2253 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2259 /// Returns the natural size (Size2D) of the view.
2262 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2264 /// <since_tizen> 4 </since_tizen>
2265 public Size2D NaturalSize2D
2269 Vector3 temp = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2270 if (NDalicPINVOKE.SWIGPendingException.Pending)
2271 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2273 return new Size2D((int)temp.Width, (int)temp.Height);
2281 /// This is an asynchronous method.
2283 /// <since_tizen> 3 </since_tizen>
2293 /// This is an asynchronous method.
2294 /// If the view is hidden, then the view and its children will not be rendered.
2295 /// 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.
2297 /// <since_tizen> 3 </since_tizen>
2303 internal void Raise()
2305 var parentChildren = Parent?.Children;
2307 if (parentChildren != null)
2309 int currentIndex = parentChildren.IndexOf(this);
2311 // If the view is not already the last item in the list.
2312 if (currentIndex != parentChildren.Count -1)
2314 View temp = parentChildren[currentIndex + 1];
2315 parentChildren[currentIndex + 1] = this;
2316 parentChildren[currentIndex] = temp;
2320 NDalicPINVOKE.Raise(swigCPtr);
2321 if (NDalicPINVOKE.SWIGPendingException.Pending)
2322 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2325 internal void Lower()
2327 var parentChildren = Parent?.Children;
2329 if (parentChildren != null)
2331 int currentIndex = parentChildren.IndexOf(this);
2333 // If the view is not already the first item in the list.
2334 if (currentIndex > 0)
2336 View temp = parentChildren[currentIndex - 1];
2337 parentChildren[currentIndex - 1] = this;
2338 parentChildren[currentIndex] = temp;
2342 NDalicPINVOKE.Lower(swigCPtr);
2343 if (NDalicPINVOKE.SWIGPendingException.Pending)
2344 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2348 /// Raises the view above all other views.
2351 /// Sibling order of views within the parent will be updated automatically.
2352 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
2354 /// <since_tizen> 3 </since_tizen>
2355 public void RaiseToTop()
2357 var parentChildren = Parent?.Children;
2359 if (parentChildren != null)
2361 parentChildren.Remove(this);
2362 parentChildren.Add(this);
2365 NDalicPINVOKE.RaiseToTop(swigCPtr);
2366 if (NDalicPINVOKE.SWIGPendingException.Pending)
2367 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2371 /// Lowers the view to the bottom of all views.
2374 /// The sibling order of views within the parent will be updated automatically.
2375 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2377 /// <since_tizen> 3 </since_tizen>
2378 public void LowerToBottom()
2380 var parentChildren = Parent?.Children;
2382 if (parentChildren != null)
2384 parentChildren.Remove(this);
2385 parentChildren.Insert(0, this);
2388 NDalicPINVOKE.LowerToBottom(swigCPtr);
2389 if (NDalicPINVOKE.SWIGPendingException.Pending)
2390 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2394 /// Queries if all resources required by a view are loaded and ready.
2396 /// <remarks>Most resources are only loaded when the control is placed on the stage.
2398 /// <since_tizen> 3 </since_tizen>
2399 public bool IsResourceReady()
2401 bool ret = NDalicPINVOKE.IsResourceReady(swigCPtr);
2402 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2407 /// Raises the view to above the target view.
2409 /// <remarks>The sibling order of views within the parent will be updated automatically.
2410 /// Views on the level above the target view will still be shown above this view.
2411 /// Raising this view above views with the same sibling order as each other will raise this view above them.
2412 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2414 /// <param name="target">Will be raised above this view.</param>
2415 internal void RaiseAbove(View target)
2417 var parentChildren = Parent?.Children;
2419 if (parentChildren != null)
2421 int currentIndex = parentChildren.IndexOf(this);
2422 int targetIndex = parentChildren.IndexOf(target);
2424 // If the currentIndex is less than the target index and the target has the same parent.
2425 if (currentIndex < targetIndex)
2427 parentChildren.Remove(this);
2428 parentChildren.Insert(targetIndex, this);
2432 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
2433 if (NDalicPINVOKE.SWIGPendingException.Pending)
2434 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2438 /// Lowers the view to below the target view.
2440 /// <remarks>The sibling order of views within the parent will be updated automatically.
2441 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
2442 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2444 /// <param name="target">Will be lowered below this view.</param>
2445 internal void LowerBelow(View target)
2447 var parentChildren = Parent?.Children;
2449 if (parentChildren != null)
2451 int currentIndex = parentChildren.IndexOf(this);
2452 int targetIndex = parentChildren.IndexOf(target);
2454 // If the currentIndex is not already the 0th index and the target has the same parent.
2455 if ((currentIndex != 0) && (targetIndex != -1) &&
2456 (currentIndex > targetIndex))
2458 parentChildren.Remove(this);
2459 parentChildren.Insert(targetIndex, this);
2463 NDalicPINVOKE.LowerBelow(swigCPtr, View.getCPtr(target));
2464 if (NDalicPINVOKE.SWIGPendingException.Pending)
2465 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2468 internal string GetName()
2470 string ret = NDalicPINVOKE.Actor_GetName(swigCPtr);
2471 if (NDalicPINVOKE.SWIGPendingException.Pending)
2472 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2476 internal void SetName(string name)
2478 NDalicPINVOKE.Actor_SetName(swigCPtr, name);
2479 if (NDalicPINVOKE.SWIGPendingException.Pending)
2480 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2483 internal uint GetId()
2485 uint ret = NDalicPINVOKE.Actor_GetId(swigCPtr);
2486 if (NDalicPINVOKE.SWIGPendingException.Pending)
2487 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2491 internal bool IsRoot()
2493 bool ret = NDalicPINVOKE.Actor_IsRoot(swigCPtr);
2494 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2498 internal bool OnWindow()
2500 bool ret = NDalicPINVOKE.Actor_OnStage(swigCPtr);
2501 if (NDalicPINVOKE.SWIGPendingException.Pending)
2502 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2507 /// Gets the parent layer of this view.If a view has no parent, this method does nothing.
2509 /// <pre>The view has been initialized. </pre>
2510 /// <returns>the parent layer of view </returns>
2511 /// <since_tizen> 5 </since_tizen>
2512 /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
2513 [EditorBrowsable(EditorBrowsableState.Never)]
2514 public Layer GetLayer()
2516 IntPtr cPtr = NDalicPINVOKE.Actor_GetLayer(swigCPtr);
2517 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Layer;
2519 if (NDalicPINVOKE.SWIGPendingException.Pending)
2520 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2525 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
2527 /// <pre>The (child) view has been initialized. </pre>
2528 /// <since_tizen> 4 </since_tizen>
2529 public void Unparent()
2531 GetParent()?.Remove(this);
2535 /// Search through this view's hierarchy for a view with the given name.
2536 /// The view itself is also considered in the search.
2538 /// <pre>The view has been initialized.</pre>
2539 /// <param name="viewName">The name of the view to find.</param>
2540 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
2541 /// <since_tizen> 3 </since_tizen>
2542 public View FindChildByName(string viewName)
2544 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildByName(swigCPtr, viewName);
2546 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2548 if (NDalicPINVOKE.SWIGPendingException.Pending)
2549 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2553 internal View FindChildById(uint id)
2555 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildById(swigCPtr, id);
2557 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2559 if (NDalicPINVOKE.SWIGPendingException.Pending)
2560 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2564 internal void SetParentOrigin(Vector3 origin)
2566 NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
2567 if (NDalicPINVOKE.SWIGPendingException.Pending)
2568 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2571 internal Vector3 GetCurrentParentOrigin()
2573 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentParentOrigin(swigCPtr), true);
2574 if (NDalicPINVOKE.SWIGPendingException.Pending)
2575 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2579 internal void SetAnchorPoint(Vector3 anchorPoint)
2581 NDalicPINVOKE.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
2582 if (NDalicPINVOKE.SWIGPendingException.Pending)
2583 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2586 internal Vector3 GetCurrentAnchorPoint()
2588 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentAnchorPoint(swigCPtr), true);
2589 if (NDalicPINVOKE.SWIGPendingException.Pending)
2590 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2594 internal void SetSize(float width, float height)
2596 NDalicPINVOKE.Actor_SetSize__SWIG_0(swigCPtr, width, height);
2597 if (NDalicPINVOKE.SWIGPendingException.Pending)
2598 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2601 internal void SetSize(float width, float height, float depth)
2603 NDalicPINVOKE.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
2604 if (NDalicPINVOKE.SWIGPendingException.Pending)
2605 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2608 internal void SetSize(Vector2 size)
2610 NDalicPINVOKE.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
2611 if (NDalicPINVOKE.SWIGPendingException.Pending)
2612 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2615 internal void SetSize(Vector3 size)
2617 NDalicPINVOKE.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
2618 if (NDalicPINVOKE.SWIGPendingException.Pending)
2619 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2622 internal Vector3 GetTargetSize()
2624 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetTargetSize(swigCPtr), true);
2625 if (NDalicPINVOKE.SWIGPendingException.Pending)
2626 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2630 internal Size2D GetCurrentSize()
2632 Size ret = new Size(NDalicPINVOKE.Actor_GetCurrentSize(swigCPtr), true);
2633 if (NDalicPINVOKE.SWIGPendingException.Pending)
2634 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2635 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
2639 internal Vector3 GetNaturalSize()
2641 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2642 if (NDalicPINVOKE.SWIGPendingException.Pending)
2643 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2647 internal void SetPosition(float x, float y)
2649 NDalicPINVOKE.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
2650 if (NDalicPINVOKE.SWIGPendingException.Pending)
2651 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2654 internal void SetPosition(float x, float y, float z)
2656 NDalicPINVOKE.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
2657 if (NDalicPINVOKE.SWIGPendingException.Pending)
2658 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2661 internal void SetPosition(Vector3 position)
2663 NDalicPINVOKE.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
2664 if (NDalicPINVOKE.SWIGPendingException.Pending)
2665 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2668 internal void SetX(float x)
2670 NDalicPINVOKE.Actor_SetX(swigCPtr, x);
2671 if (NDalicPINVOKE.SWIGPendingException.Pending)
2672 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2675 internal void SetY(float y)
2677 NDalicPINVOKE.Actor_SetY(swigCPtr, y);
2678 if (NDalicPINVOKE.SWIGPendingException.Pending)
2679 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2682 internal void SetZ(float z)
2684 NDalicPINVOKE.Actor_SetZ(swigCPtr, z);
2685 if (NDalicPINVOKE.SWIGPendingException.Pending)
2686 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2689 internal void TranslateBy(Vector3 distance)
2691 NDalicPINVOKE.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
2692 if (NDalicPINVOKE.SWIGPendingException.Pending)
2693 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2696 internal Position GetCurrentPosition()
2698 Position ret = new Position(NDalicPINVOKE.Actor_GetCurrentPosition(swigCPtr), true);
2699 if (NDalicPINVOKE.SWIGPendingException.Pending)
2700 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2704 internal Vector3 GetCurrentWorldPosition()
2706 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldPosition(swigCPtr), true);
2707 if (NDalicPINVOKE.SWIGPendingException.Pending)
2708 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2712 internal void SetInheritPosition(bool inherit)
2714 NDalicPINVOKE.Actor_SetInheritPosition(swigCPtr, inherit);
2715 if (NDalicPINVOKE.SWIGPendingException.Pending)
2716 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2719 internal bool IsPositionInherited()
2721 bool ret = NDalicPINVOKE.Actor_IsPositionInherited(swigCPtr);
2722 if (NDalicPINVOKE.SWIGPendingException.Pending)
2723 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2727 internal void SetOrientation(Degree angle, Vector3 axis)
2729 NDalicPINVOKE.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2730 if (NDalicPINVOKE.SWIGPendingException.Pending)
2731 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2734 internal void SetOrientation(Radian angle, Vector3 axis)
2736 NDalicPINVOKE.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2737 if (NDalicPINVOKE.SWIGPendingException.Pending)
2738 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2741 internal void SetOrientation(Rotation orientation)
2743 NDalicPINVOKE.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
2744 if (NDalicPINVOKE.SWIGPendingException.Pending)
2745 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2748 internal void RotateBy(Degree angle, Vector3 axis)
2750 NDalicPINVOKE.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2751 if (NDalicPINVOKE.SWIGPendingException.Pending)
2752 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2755 internal void RotateBy(Radian angle, Vector3 axis)
2757 NDalicPINVOKE.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2758 if (NDalicPINVOKE.SWIGPendingException.Pending)
2759 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2762 internal void RotateBy(Rotation relativeRotation)
2764 NDalicPINVOKE.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
2765 if (NDalicPINVOKE.SWIGPendingException.Pending)
2766 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2769 internal Rotation GetCurrentOrientation()
2771 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentOrientation(swigCPtr), true);
2772 if (NDalicPINVOKE.SWIGPendingException.Pending)
2773 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2777 internal void SetInheritOrientation(bool inherit)
2779 NDalicPINVOKE.Actor_SetInheritOrientation(swigCPtr, inherit);
2780 if (NDalicPINVOKE.SWIGPendingException.Pending)
2781 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2784 internal bool IsOrientationInherited()
2786 bool ret = NDalicPINVOKE.Actor_IsOrientationInherited(swigCPtr);
2787 if (NDalicPINVOKE.SWIGPendingException.Pending)
2788 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2792 internal Rotation GetCurrentWorldOrientation()
2794 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentWorldOrientation(swigCPtr), true);
2795 if (NDalicPINVOKE.SWIGPendingException.Pending)
2796 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2800 internal void SetScale(float scale)
2802 NDalicPINVOKE.Actor_SetScale__SWIG_0(swigCPtr, scale);
2803 if (NDalicPINVOKE.SWIGPendingException.Pending)
2804 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2807 internal void SetScale(float scaleX, float scaleY, float scaleZ)
2809 NDalicPINVOKE.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
2810 if (NDalicPINVOKE.SWIGPendingException.Pending)
2811 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2814 internal void SetScale(Vector3 scale)
2816 NDalicPINVOKE.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
2817 if (NDalicPINVOKE.SWIGPendingException.Pending)
2818 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2821 internal void ScaleBy(Vector3 relativeScale)
2823 NDalicPINVOKE.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
2824 if (NDalicPINVOKE.SWIGPendingException.Pending)
2825 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2828 internal Vector3 GetCurrentScale()
2830 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentScale(swigCPtr), true);
2831 if (NDalicPINVOKE.SWIGPendingException.Pending)
2832 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2836 internal Vector3 GetCurrentWorldScale()
2838 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldScale(swigCPtr), true);
2839 if (NDalicPINVOKE.SWIGPendingException.Pending)
2840 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2844 internal void SetInheritScale(bool inherit)
2846 NDalicPINVOKE.Actor_SetInheritScale(swigCPtr, inherit);
2847 if (NDalicPINVOKE.SWIGPendingException.Pending)
2848 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2851 internal bool IsScaleInherited()
2853 bool ret = NDalicPINVOKE.Actor_IsScaleInherited(swigCPtr);
2854 if (NDalicPINVOKE.SWIGPendingException.Pending)
2855 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2859 internal Matrix GetCurrentWorldMatrix()
2861 Matrix ret = new Matrix(NDalicPINVOKE.Actor_GetCurrentWorldMatrix(swigCPtr), true);
2862 if (NDalicPINVOKE.SWIGPendingException.Pending)
2863 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2867 internal void SetVisible(bool visible)
2869 NDalicPINVOKE.Actor_SetVisible(swigCPtr, visible);
2870 if (NDalicPINVOKE.SWIGPendingException.Pending)
2871 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2874 internal bool IsVisible()
2876 bool ret = NDalicPINVOKE.Actor_IsVisible(swigCPtr);
2877 if (NDalicPINVOKE.SWIGPendingException.Pending)
2878 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2882 internal void SetOpacity(float opacity)
2884 NDalicPINVOKE.Actor_SetOpacity(swigCPtr, opacity);
2885 if (NDalicPINVOKE.SWIGPendingException.Pending)
2886 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2889 internal float GetCurrentOpacity()
2891 float ret = NDalicPINVOKE.Actor_GetCurrentOpacity(swigCPtr);
2892 if (NDalicPINVOKE.SWIGPendingException.Pending)
2893 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2897 internal void SetColor(Vector4 color)
2899 NDalicPINVOKE.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
2900 if (NDalicPINVOKE.SWIGPendingException.Pending)
2901 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2904 internal Vector4 GetCurrentColor()
2906 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentColor(swigCPtr), true);
2907 if (NDalicPINVOKE.SWIGPendingException.Pending)
2908 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2912 internal void SetColorMode(ColorMode colorMode)
2914 NDalicPINVOKE.Actor_SetColorMode(swigCPtr, (int)colorMode);
2915 if (NDalicPINVOKE.SWIGPendingException.Pending)
2916 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2919 internal ColorMode GetColorMode()
2921 ColorMode ret = (ColorMode)NDalicPINVOKE.Actor_GetColorMode(swigCPtr);
2922 if (NDalicPINVOKE.SWIGPendingException.Pending)
2923 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2927 internal Vector4 GetCurrentWorldColor()
2929 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentWorldColor(swigCPtr), true);
2930 if (NDalicPINVOKE.SWIGPendingException.Pending)
2931 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2935 internal void SetDrawMode(DrawModeType drawMode)
2937 NDalicPINVOKE.Actor_SetDrawMode(swigCPtr, (int)drawMode);
2938 if (NDalicPINVOKE.SWIGPendingException.Pending)
2939 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2942 internal DrawModeType GetDrawMode()
2944 DrawModeType ret = (DrawModeType)NDalicPINVOKE.Actor_GetDrawMode(swigCPtr);
2945 if (NDalicPINVOKE.SWIGPendingException.Pending)
2946 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2951 /// Converts screen coordinates into the view's coordinate system using the default camera.
2953 /// <pre>The view has been initialized.</pre>
2954 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
2955 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
2956 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
2957 /// <param name="screenX">The screen X-coordinate.</param>
2958 /// <param name="screenY">The screen Y-coordinate.</param>
2959 /// <returns>True if the conversion succeeded.</returns>
2960 /// <since_tizen> 3 </since_tizen>
2961 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
2963 bool ret = NDalicPINVOKE.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
2964 if (NDalicPINVOKE.SWIGPendingException.Pending)
2965 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2969 internal void SetKeyboardFocusable(bool focusable)
2971 NDalicPINVOKE.Actor_SetKeyboardFocusable(swigCPtr, focusable);
2972 if (NDalicPINVOKE.SWIGPendingException.Pending)
2973 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2976 internal bool IsKeyboardFocusable()
2978 bool ret = NDalicPINVOKE.Actor_IsKeyboardFocusable(swigCPtr);
2979 if (NDalicPINVOKE.SWIGPendingException.Pending)
2980 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2984 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
2986 NDalicPINVOKE.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
2987 if (NDalicPINVOKE.SWIGPendingException.Pending)
2988 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2991 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
2993 ResizePolicyType ret = (ResizePolicyType)NDalicPINVOKE.Actor_GetResizePolicy(swigCPtr, (int)dimension);
2994 if (NDalicPINVOKE.SWIGPendingException.Pending)
2995 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3000 /// Sets the relative to parent size factor of the view.<br />
3001 /// This factor is only used when ResizePolicy is set to either:
3002 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
3003 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
3005 /// <pre>The view has been initialized.</pre>
3006 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
3007 /// <since_tizen> 3 </since_tizen>
3008 public void SetSizeModeFactor(Vector3 factor)
3010 NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
3011 if (NDalicPINVOKE.SWIGPendingException.Pending)
3012 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3015 internal Vector3 GetSizeModeFactor()
3017 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetSizeModeFactor(swigCPtr), true);
3018 if (NDalicPINVOKE.SWIGPendingException.Pending)
3019 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3024 /// Calculates the height of the view given a width.<br />
3025 /// The natural size is used for default calculation.<br />
3026 /// Size 0 is treated as aspect ratio 1:1.<br />
3028 /// <param name="width">The width to use.</param>
3029 /// <returns>The height based on the width.</returns>
3030 /// <since_tizen> 3 </since_tizen>
3031 public float GetHeightForWidth(float width)
3033 float ret = NDalicPINVOKE.Actor_GetHeightForWidth(swigCPtr, width);
3034 if (NDalicPINVOKE.SWIGPendingException.Pending)
3035 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3040 /// Calculates the width of the view given a height.<br />
3041 /// The natural size is used for default calculation.<br />
3042 /// Size 0 is treated as aspect ratio 1:1.<br />
3044 /// <param name="height">The height to use.</param>
3045 /// <returns>The width based on the height.</returns>
3046 /// <since_tizen> 3 </since_tizen>
3047 public float GetWidthForHeight(float height)
3049 float ret = NDalicPINVOKE.Actor_GetWidthForHeight(swigCPtr, height);
3050 if (NDalicPINVOKE.SWIGPendingException.Pending)
3051 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3056 /// Return the amount of size allocated for relayout.
3058 /// <param name="dimension">The dimension to retrieve.</param>
3059 /// <returns>Return the size.</returns>
3060 /// <since_tizen> 3 </since_tizen>
3061 public float GetRelayoutSize(DimensionType dimension)
3063 float ret = NDalicPINVOKE.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
3064 if (NDalicPINVOKE.SWIGPendingException.Pending)
3065 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3070 /// Set the padding for the view.
3072 /// <param name="padding">Padding for the view.</param>
3073 /// <since_tizen> 3 </since_tizen>
3074 public void SetPadding(PaddingType padding)
3076 NDalicPINVOKE.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
3077 if (NDalicPINVOKE.SWIGPendingException.Pending)
3078 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3082 /// Return the value of padding for the view.
3084 /// <param name="paddingOut">the value of padding for the view</param>
3085 /// <since_tizen> 3 </since_tizen>
3086 public void GetPadding(PaddingType paddingOut)
3088 NDalicPINVOKE.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
3089 if (NDalicPINVOKE.SWIGPendingException.Pending)
3090 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3093 internal void SetMinimumSize(Vector2 size)
3095 NDalicPINVOKE.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
3096 if (NDalicPINVOKE.SWIGPendingException.Pending)
3097 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3100 internal Vector2 GetMinimumSize()
3102 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMinimumSize(swigCPtr), true);
3103 if (NDalicPINVOKE.SWIGPendingException.Pending)
3104 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3108 internal void SetMaximumSize(Vector2 size)
3110 NDalicPINVOKE.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
3111 if (NDalicPINVOKE.SWIGPendingException.Pending)
3112 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3115 internal Vector2 GetMaximumSize()
3117 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMaximumSize(swigCPtr), true);
3118 if (NDalicPINVOKE.SWIGPendingException.Pending)
3119 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3123 internal int GetHierarchyDepth()
3125 int ret = NDalicPINVOKE.Actor_GetHierarchyDepth(swigCPtr);
3126 if (NDalicPINVOKE.SWIGPendingException.Pending)
3127 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3131 /// <since_tizen> 3 </since_tizen>
3132 public uint AddRenderer(Renderer renderer)
3134 uint ret = NDalicPINVOKE.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
3135 if (NDalicPINVOKE.SWIGPendingException.Pending)
3136 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3140 internal uint GetRendererCount()
3142 uint ret = NDalicPINVOKE.Actor_GetRendererCount(swigCPtr);
3143 if (NDalicPINVOKE.SWIGPendingException.Pending)
3144 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3148 /// <since_tizen> 3 </since_tizen>
3149 public Renderer GetRendererAt(uint index)
3151 IntPtr cPtr = NDalicPINVOKE.Actor_GetRendererAt(swigCPtr, index);
3152 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Renderer;
3154 if (NDalicPINVOKE.SWIGPendingException.Pending)
3155 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3159 /// <since_tizen> 3 </since_tizen>
3160 public void RemoveRenderer(Renderer renderer)
3162 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
3163 if (NDalicPINVOKE.SWIGPendingException.Pending)
3164 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3167 /// <since_tizen> 3 </since_tizen>
3168 public void RemoveRenderer(uint index)
3170 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
3171 if (NDalicPINVOKE.SWIGPendingException.Pending)
3172 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3175 internal TouchDataSignal TouchSignal()
3177 TouchDataSignal ret = new TouchDataSignal(NDalicPINVOKE.Actor_TouchSignal(swigCPtr), false);
3178 if (NDalicPINVOKE.SWIGPendingException.Pending)
3179 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3183 internal HoverSignal HoveredSignal()
3185 HoverSignal ret = new HoverSignal(NDalicPINVOKE.Actor_HoveredSignal(swigCPtr), false);
3186 if (NDalicPINVOKE.SWIGPendingException.Pending)
3187 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3191 internal WheelSignal WheelEventSignal()
3193 WheelSignal ret = new WheelSignal(NDalicPINVOKE.Actor_WheelEventSignal(swigCPtr), false);
3194 if (NDalicPINVOKE.SWIGPendingException.Pending)
3195 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3199 internal ViewSignal OnWindowSignal()
3201 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
3202 if (NDalicPINVOKE.SWIGPendingException.Pending)
3203 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3207 internal ViewSignal OffWindowSignal()
3209 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OffStageSignal(swigCPtr), false);
3210 if (NDalicPINVOKE.SWIGPendingException.Pending)
3211 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3215 internal ViewSignal OnRelayoutSignal()
3217 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnRelayoutSignal(swigCPtr), false);
3218 if (NDalicPINVOKE.SWIGPendingException.Pending)
3219 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3223 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view) {
3224 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(NDalicPINVOKE.VisibilityChangedSignal(View.getCPtr(view)), false);
3225 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3230 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view) {
3231 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(NDalicManualPINVOKE.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
3232 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3237 internal ViewSignal ResourcesLoadedSignal()
3239 ViewSignal ret = new ViewSignal(NDalicPINVOKE.ResourceReadySignal(swigCPtr), false);
3240 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3245 /// Gets or sets the origin of a view within its parent's area.<br />
3246 /// 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 />
3247 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
3248 /// A view's position is the distance between this origin and the view's anchor-point.<br />
3250 /// <pre>The view has been initialized.</pre>
3251 /// <since_tizen> 3 </since_tizen>
3252 public Position ParentOrigin
3256 Position temp = new Position(0.0f, 0.0f, 0.0f);
3257 GetProperty(View.Property.PARENT_ORIGIN).Get(temp);
3262 SetProperty(View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue(value));
3266 internal float ParentOriginX
3271 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3276 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3280 internal float ParentOriginY
3285 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3290 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3294 internal float ParentOriginZ
3299 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3304 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3309 /// Gets or sets the anchor-point of a view.<br />
3310 /// 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 />
3311 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
3312 /// A view position is the distance between its parent-origin and this anchor-point.<br />
3313 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
3314 /// <pre>The view has been initialized.</pre>
3316 /// <since_tizen> 3 </since_tizen>
3317 public Position PivotPoint
3321 Position temp = new Position(0.0f, 0.0f, 0.0f);
3322 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3327 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3331 internal float PivotPointX
3336 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3341 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3345 internal float PivotPointY
3350 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3355 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3359 internal float PivotPointZ
3364 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3369 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3374 /// Gets or sets the size width of the view.
3376 /// <since_tizen> 3 </since_tizen>
3377 public float SizeWidth
3382 GetProperty(View.Property.SIZE_WIDTH).Get(out temp);
3387 SetProperty(View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
3392 /// Gets or sets the size height of the view.
3394 /// <since_tizen> 3 </since_tizen>
3395 public float SizeHeight
3400 GetProperty(View.Property.SIZE_HEIGHT).Get(out temp);
3405 SetProperty(View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3410 /// Gets or sets the position of the view.<br />
3411 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
3412 /// If the position inheritance is disabled, sets the world position.<br />
3414 /// <since_tizen> 3 </since_tizen>
3415 public Position Position
3419 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3420 GetProperty(View.Property.POSITION).Get(temp);
3425 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(value));
3430 /// Gets or sets the position X of the view.
3432 /// <since_tizen> 3 </since_tizen>
3433 public float PositionX
3438 GetProperty(View.Property.POSITION_X).Get(out temp);
3443 SetProperty(View.Property.POSITION_X, new Tizen.NUI.PropertyValue(value));
3448 /// Gets or sets the position Y of the view.
3450 /// <since_tizen> 3 </since_tizen>
3451 public float PositionY
3456 GetProperty(View.Property.POSITION_Y).Get(out temp);
3461 SetProperty(View.Property.POSITION_Y, new Tizen.NUI.PropertyValue(value));
3466 /// Gets or sets the position Z of the view.
3468 /// <since_tizen> 3 </since_tizen>
3469 public float PositionZ
3474 GetProperty(View.Property.POSITION_Z).Get(out temp);
3479 SetProperty(View.Property.POSITION_Z, new Tizen.NUI.PropertyValue(value));
3484 /// Gets or sets the world position of the view.
3486 /// <since_tizen> 3 </since_tizen>
3487 public Vector3 WorldPosition
3491 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3492 GetProperty(View.Property.WORLD_POSITION).Get(temp);
3497 internal float WorldPositionX
3502 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3507 internal float WorldPositionY
3512 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3517 internal float WorldPositionZ
3522 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3528 /// Gets or sets the orientation of the view.<br />
3529 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
3531 /// <remarks>This is an asynchronous method.</remarks>
3532 /// <since_tizen> 3 </since_tizen>
3533 public Rotation Orientation
3537 Rotation temp = new Rotation();
3538 GetProperty(View.Property.ORIENTATION).Get(temp);
3543 SetProperty(View.Property.ORIENTATION, new Tizen.NUI.PropertyValue(value));
3548 /// Gets or sets the world orientation of the view.<br />
3550 /// <since_tizen> 3 </since_tizen>
3551 public Rotation WorldOrientation
3555 Rotation temp = new Rotation();
3556 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
3562 /// Gets or sets the scale factor applied to the view.<br />
3564 /// <since_tizen> 3 </since_tizen>
3565 public Vector3 Scale
3569 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3570 GetProperty(View.Property.SCALE).Get(temp);
3575 SetProperty(View.Property.SCALE, new Tizen.NUI.PropertyValue(value));
3580 /// Gets or sets the scale X factor applied to the view.
3582 /// <since_tizen> 3 </since_tizen>
3588 GetProperty(View.Property.SCALE_X).Get(out temp);
3593 SetProperty(View.Property.SCALE_X, new Tizen.NUI.PropertyValue(value));
3598 /// Gets or sets the scale Y factor applied to the view.
3600 /// <since_tizen> 3 </since_tizen>
3606 GetProperty(View.Property.SCALE_Y).Get(out temp);
3611 SetProperty(View.Property.SCALE_Y, new Tizen.NUI.PropertyValue(value));
3616 /// Gets or sets the scale Z factor applied to the view.
3618 /// <since_tizen> 3 </since_tizen>
3624 GetProperty(View.Property.SCALE_Z).Get(out temp);
3629 SetProperty(View.Property.SCALE_Z, new Tizen.NUI.PropertyValue(value));
3634 /// Gets the world scale of the view.
3636 /// <since_tizen> 3 </since_tizen>
3637 public Vector3 WorldScale
3641 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3642 GetProperty(View.Property.WORLD_SCALE).Get(temp);
3648 /// Retrieves the visibility flag of the view.
3651 /// If the view is not visible, then the view and its children will not be rendered.
3652 /// 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.
3654 /// <since_tizen> 3 </since_tizen>
3655 public bool Visibility
3660 GetProperty(View.Property.VISIBLE).Get(out temp);
3666 /// Gets the view's world color.
3668 /// <since_tizen> 3 </since_tizen>
3669 public Vector4 WorldColor
3673 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3674 GetProperty(View.Property.WORLD_COLOR).Get(temp);
3679 internal Matrix WorldMatrix
3683 Matrix temp = new Matrix();
3684 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3690 /// Gets or sets the view's name.
3692 /// <since_tizen> 3 </since_tizen>
3698 GetProperty(View.Property.NAME).Get(out temp);
3703 SetProperty(View.Property.NAME, new Tizen.NUI.PropertyValue(value));
3708 /// Get the number of children held by the view.
3710 /// <since_tizen> 3 </since_tizen>
3711 public new uint ChildCount
3715 return GetChildCount();
3720 /// Gets the view's ID.
3723 /// <since_tizen> 3 </since_tizen>
3733 /// Gets or sets the status of whether the view should emit touch or hover signals.
3735 /// <since_tizen> 3 </since_tizen>
3736 public bool Sensitive
3741 GetProperty(View.Property.SENSITIVE).Get(out temp);
3746 SetProperty(View.Property.SENSITIVE, new Tizen.NUI.PropertyValue(value));
3751 /// 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.
3753 /// <since_tizen> 3 </since_tizen>
3754 public bool LeaveRequired
3759 GetProperty(View.Property.LEAVE_REQUIRED).Get(out temp);
3764 SetProperty(View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue(value));
3769 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
3771 /// <since_tizen> 3 </since_tizen>
3772 public bool InheritOrientation
3777 GetProperty(View.Property.INHERIT_ORIENTATION).Get(out temp);
3782 SetProperty(View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue(value));
3787 /// Gets or sets the status of whether a child view inherits it's parent's scale.
3789 /// <since_tizen> 3 </since_tizen>
3790 public bool InheritScale
3795 GetProperty(View.Property.INHERIT_SCALE).Get(out temp);
3800 SetProperty(View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue(value));
3805 /// Gets or sets the status of how the view and its children should be drawn.<br />
3806 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
3807 /// 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 />
3808 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
3809 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
3810 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
3812 /// <since_tizen> 3 </since_tizen>
3813 public DrawModeType DrawMode
3818 if (GetProperty(View.Property.DRAW_MODE).Get(out temp) == false)
3820 NUILog.Error("DrawMode get error!");
3825 return DrawModeType.Normal;
3827 return DrawModeType.Overlay2D;
3829 return DrawModeType.Stencil;
3831 return DrawModeType.Normal;
3836 SetProperty(View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)value));
3841 /// Gets or sets the relative to parent size factor of the view.<br />
3842 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
3843 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
3845 /// <since_tizen> 3 </since_tizen>
3846 public Vector3 SizeModeFactor
3850 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3851 GetProperty(View.Property.SIZE_MODE_FACTOR).Get(temp);
3856 SetProperty(View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue(value));
3861 /// Gets or sets the width resize policy to be used.
3863 /// <since_tizen> 3 </since_tizen>
3864 public ResizePolicyType WidthResizePolicy
3869 if (GetProperty(View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
3871 NUILog.Error("WidthResizePolicy get error!");
3876 return ResizePolicyType.Fixed;
3877 case "USE_NATURAL_SIZE":
3878 return ResizePolicyType.UseNaturalSize;
3879 case "FILL_TO_PARENT":
3880 return ResizePolicyType.FillToParent;
3881 case "SIZE_RELATIVE_TO_PARENT":
3882 return ResizePolicyType.SizeRelativeToParent;
3883 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3884 return ResizePolicyType.SizeFixedOffsetFromParent;
3885 case "FIT_TO_CHILDREN":
3886 return ResizePolicyType.FitToChildren;
3887 case "DIMENSION_DEPENDENCY":
3888 return ResizePolicyType.DimensionDependency;
3889 case "USE_ASSIGNED_SIZE":
3890 return ResizePolicyType.UseAssignedSize;
3892 return ResizePolicyType.Fixed;
3897 SetProperty(View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3902 /// Gets or sets the height resize policy to be used.
3904 /// <since_tizen> 3 </since_tizen>
3905 public ResizePolicyType HeightResizePolicy
3910 if (GetProperty(View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
3912 NUILog.Error("HeightResizePolicy get error!");
3917 return ResizePolicyType.Fixed;
3918 case "USE_NATURAL_SIZE":
3919 return ResizePolicyType.UseNaturalSize;
3920 case "FILL_TO_PARENT":
3921 return ResizePolicyType.FillToParent;
3922 case "SIZE_RELATIVE_TO_PARENT":
3923 return ResizePolicyType.SizeRelativeToParent;
3924 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3925 return ResizePolicyType.SizeFixedOffsetFromParent;
3926 case "FIT_TO_CHILDREN":
3927 return ResizePolicyType.FitToChildren;
3928 case "DIMENSION_DEPENDENCY":
3929 return ResizePolicyType.DimensionDependency;
3930 case "USE_ASSIGNED_SIZE":
3931 return ResizePolicyType.UseAssignedSize;
3933 return ResizePolicyType.Fixed;
3938 SetProperty(View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3943 /// Gets or sets the policy to use when setting size with size negotiation.<br />
3944 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3946 /// <since_tizen> 3 </since_tizen>
3947 public SizeScalePolicyType SizeScalePolicy
3952 if (GetProperty(View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
3954 NUILog.Error("SizeScalePolicy get error!");
3958 case "USE_SIZE_SET":
3959 return SizeScalePolicyType.UseSizeSet;
3960 case "FIT_WITH_ASPECT_RATIO":
3961 return SizeScalePolicyType.FitWithAspectRatio;
3962 case "FILL_WITH_ASPECT_RATIO":
3963 return SizeScalePolicyType.FillWithAspectRatio;
3965 return SizeScalePolicyType.UseSizeSet;
3970 string valueToString = "";
3973 case SizeScalePolicyType.UseSizeSet:
3975 valueToString = "USE_SIZE_SET";
3978 case SizeScalePolicyType.FitWithAspectRatio:
3980 valueToString = "FIT_WITH_ASPECT_RATIO";
3983 case SizeScalePolicyType.FillWithAspectRatio:
3985 valueToString = "FILL_WITH_ASPECT_RATIO";
3990 valueToString = "USE_SIZE_SET";
3994 SetProperty(View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
3999 /// Gets or sets the status of whether the width size is dependent on the height size.
4001 /// <since_tizen> 3 </since_tizen>
4002 public bool WidthForHeight
4007 GetProperty(View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
4012 SetProperty(View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue(value));
4017 /// Gets or sets the status of whether the height size is dependent on the width size.
4019 /// <since_tizen> 3 </since_tizen>
4020 public bool HeightForWidth
4025 GetProperty(View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
4030 SetProperty(View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue(value));
4035 /// Gets or sets the padding for use in layout.
4037 /// <since_tizen> 4 </since_tizen>
4038 public Extents Padding
4042 Extents temp = new Extents(0, 0, 0, 0);
4043 GetProperty(View.Property.PADDING).Get(temp);
4048 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
4053 /// Gets or sets the minimum size the view can be assigned in size negotiation.
4055 /// <since_tizen> 3 </since_tizen>
4056 public Size2D MinimumSize
4060 Size2D temp = new Size2D(0, 0);
4061 GetProperty(View.Property.MINIMUM_SIZE).Get(temp);
4066 SetProperty(View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4071 /// Gets or sets the maximum size the view can be assigned in size negotiation.
4073 /// <since_tizen> 3 </since_tizen>
4074 public Size2D MaximumSize
4078 Size2D temp = new Size2D(0, 0);
4079 GetProperty(View.Property.MAXIMUM_SIZE).Get(temp);
4084 SetProperty(View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4089 /// Gets or sets whether a child view inherits it's parent's position.<br />
4090 /// Default is to inherit.<br />
4091 /// 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 />
4093 /// <since_tizen> 3 </since_tizen>
4094 public bool InheritPosition
4099 GetProperty(View.Property.INHERIT_POSITION).Get(out temp);
4104 SetProperty(View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue(value));
4109 /// Gets or sets the clipping behavior (mode) of it's children.
4111 /// <since_tizen> 3 </since_tizen>
4112 public ClippingModeType ClippingMode
4117 if (GetProperty(View.Property.CLIPPING_MODE).Get(out temp) == false)
4119 NUILog.Error("ClippingMode get error!");
4124 return ClippingModeType.Disabled;
4125 case "CLIP_CHILDREN":
4126 return ClippingModeType.ClipChildren;
4127 case "CLIP_TO_BOUNDING_BOX":
4128 return ClippingModeType.ClipToBoundingBox;
4130 return ClippingModeType.Disabled;
4135 SetProperty(View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)value));
4140 /// Gets the number of renderers held by the view.
4142 /// <since_tizen> 3 </since_tizen>
4143 public uint RendererCount
4147 return GetRendererCount();
4152 /// [Obsolete("Please do not use! this will be deprecated")]
4154 /// <since_tizen> 3 </since_tizen>
4155 /// Please do not use! this will be deprecated!
4156 /// Instead please use PivotPoint.
4157 [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint instead! " +
4159 "View view = new View(); " +
4160 "view.PivotPoint = PivotPoint.Center; " +
4161 "view.PositionUsesPivotPoint = true;")]
4162 [EditorBrowsable(EditorBrowsableState.Never)]
4163 public Position AnchorPoint
4167 Position temp = new Position(0.0f, 0.0f, 0.0f);
4168 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
4173 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
4178 /// [Obsolete("Please do not use! this will be deprecated")]
4180 /// <since_tizen> 3 </since_tizen>
4181 [Obsolete("Please do not use! This will be deprecated! Please use Size2D instead! " +
4183 "View view = new View(); " +
4184 "view.Size2D = new Size2D(100, 100);")]
4185 [EditorBrowsable(EditorBrowsableState.Never)]
4190 Size temp = new Size(0.0f, 0.0f, 0.0f);
4191 GetProperty(View.Property.SIZE).Get(temp);
4196 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(value));
4201 /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4203 /// <since_tizen> 3 </since_tizen>
4204 [Obsolete("Please do not use! This will be deprecated! Please use 'Container GetParent() for derived class' instead! " +
4206 "Container parent = view.GetParent(); " +
4207 "View view = parent as View;")]
4208 [EditorBrowsable(EditorBrowsableState.Never)]
4209 public new View Parent
4214 IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
4216 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
4218 if (basehandle is Layer)
4220 ret = new View(cPtr, false);
4224 ret = basehandle as View;
4227 if (NDalicPINVOKE.SWIGPendingException.Pending)
4228 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4234 /// Gets/Sets whether inherit parent's the layout Direction.
4236 /// <since_tizen> 4 </since_tizen>
4237 public bool InheritLayoutDirection
4242 GetProperty(View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
4247 SetProperty(View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue(value));
4252 /// Gets/Sets the layout Direction.
4254 /// <since_tizen> 4 </since_tizen>
4255 public ViewLayoutDirectionType LayoutDirection
4260 if (GetProperty(View.Property.LAYOUT_DIRECTION).Get(out temp) == false)
4262 NUILog.Error("LAYOUT_DIRECTION get error!");
4264 return (ViewLayoutDirectionType)temp;
4268 SetProperty(View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)value));
4273 /// Gets or sets the Margin for use in layout.
4275 /// <since_tizen> 4 </since_tizen>
4276 public Extents Margin
4280 Extents temp = new Extents(0, 0, 0, 0);
4281 GetProperty(View.Property.MARGIN).Get(temp);
4286 SetProperty(View.Property.MARGIN, new Tizen.NUI.PropertyValue(value));
4291 /// [Obsolete("Please do not use! this will be deprecated")]
4293 /// Please do not use! this will be deprecated!
4294 /// Instead please use Padding.
4295 /// <since_tizen> 4 </since_tizen>
4296 [Obsolete("Please do not use! this will be deprecated, instead please use Padding.")]
4297 [EditorBrowsable(EditorBrowsableState.Never)]
4298 public Extents PaddingEX
4302 Extents temp = new Extents(0, 0, 0, 0);
4303 GetProperty(View.Property.PADDING).Get(temp);
4308 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
4313 /// Perform an action on a visual registered to this view. <br />
4314 /// Visuals will have actions, this API is used to perform one of these actions with the given attributes.
4316 /// <param name="propertyIndexOfVisual">The Property index of the visual.</param>
4317 /// <param name="propertyIndexOfActionId">The action to perform. See Visual to find supported actions.</param>
4318 /// <param name="attributes">Optional attributes for the action.</param>
4319 /// <since_tizen> 5 </since_tizen>
4320 /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
4321 [EditorBrowsable(EditorBrowsableState.Never)]
4322 public void DoAction(int propertyIndexOfVisual, int propertyIndexOfActionId, PropertyValue attributes)
4324 NDalicManualPINVOKE.View_DoAction(swigCPtr, propertyIndexOfVisual, propertyIndexOfActionId, PropertyValue.getCPtr(attributes));
4325 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4331 /// The View layout Direction type.
4333 /// <since_tizen> 4 </since_tizen>
4334 public enum ViewLayoutDirectionType
4339 /// <since_tizen> 4 </since_tizen>
4344 /// <since_tizen> 4 </since_tizen>