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 public class View : Container
28 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
31 internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.View_SWIGUpcast(cPtr), cMemoryOwn)
33 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
34 PositionUsesPivotPoint = false;
37 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
39 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
42 // From Container Base class
45 /// Adds a child view to this view.
47 /// <seealso cref="Container.Add" />
48 /// <since_tizen> 4 </since_tizen>
49 public override void Add(View child)
51 NDalicPINVOKE.Actor_Add(swigCPtr, View.getCPtr(child));
52 if (NDalicPINVOKE.SWIGPendingException.Pending)
53 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
59 /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
61 /// <seealso cref="Container.Remove" />
62 /// <since_tizen> 4 </since_tizen>
63 public override void Remove(View child)
65 NDalicPINVOKE.Actor_Remove(swigCPtr, View.getCPtr(child));
66 if (NDalicPINVOKE.SWIGPendingException.Pending)
67 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
69 Children.Remove(child);
73 /// Retrieves a child view by index.
75 /// <seealso cref="Container.GetChildAt" />
76 /// <since_tizen> 4 </since_tizen>
77 public override View GetChildAt(uint index)
79 if (index < Children.Count)
81 return Children[Convert.ToInt32(index)];
90 /// Retrieves the number of children held by the view.
92 /// <seealso cref="Container.GetChildCount" />
93 public override uint GetChildCount()
95 return Convert.ToUInt32(Children.Count);
99 /// Gets the views parent.
101 /// <seealso cref="Container.GetParent()" />
102 public override Container GetParent()
104 IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
106 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
108 if (NDalicPINVOKE.SWIGPendingException.Pending)
109 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
111 return basehandle as Container;
114 internal bool IsTopLevelView()
116 if(GetParent() is Layer)
124 /// you can override it to clean-up your own resources.
126 /// <param name="type">DisposeTypes</param>
127 /// <since_tizen> 3 </since_tizen>
128 protected override void Dispose(DisposeTypes type)
135 if(type == DisposeTypes.Explicit)
138 //Release your own managed resources here.
139 //You should release all of your own disposable objects here.
142 //Release your own unmanaged resources here.
143 //You should not access any managed member here except static instance.
144 //because the execution order of Finalizes is non-deterministic.
146 DisConnectFromSignals();
148 if (swigCPtr.Handle != global::System.IntPtr.Zero)
153 NDalicPINVOKE.delete_View(swigCPtr);
155 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
162 private void DisConnectFromSignals()
164 // Save current CPtr.
165 global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
167 // Use BaseHandle CPtr as current might have been deleted already in derived classes.
168 swigCPtr = GetBaseHandleCPtrHandleRef;
170 if (_onRelayoutEventCallback != null)
172 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
175 if (_offWindowEventCallback != null)
177 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
180 if (_onWindowEventCallback != null)
182 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
185 if (_wheelEventCallback != null)
187 this.WheelEventSignal().Disconnect(_wheelEventCallback);
190 if (_hoverEventCallback != null)
192 this.HoveredSignal().Disconnect(_hoverEventCallback);
195 if (_touchDataCallback != null)
197 this.TouchSignal().Disconnect(_touchDataCallback);
200 if (_ResourcesLoadedCallback != null)
202 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
205 if (_offWindowEventCallback != null)
207 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
210 if (_onWindowEventCallback != null)
212 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
215 if (_wheelEventCallback != null)
217 this.WheelEventSignal().Disconnect(_wheelEventCallback);
220 if (_hoverEventCallback != null)
222 this.HoveredSignal().Disconnect(_hoverEventCallback);
225 if (_touchDataCallback != null)
227 this.TouchSignal().Disconnect(_touchDataCallback);
230 if (_onRelayoutEventCallback != null)
232 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
235 if (_keyCallback != null)
237 this.KeyEventSignal().Disconnect(_keyCallback);
240 if (_keyInputFocusLostCallback != null)
242 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
245 if (_keyInputFocusGainedCallback != null)
247 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
250 // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
251 // Restore current CPtr.
252 swigCPtr = currentCPtr;
255 private EventHandler _keyInputFocusGainedEventHandler;
256 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
257 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
258 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
261 /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
262 /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.<br />
264 /// <since_tizen> 3 </since_tizen>
265 public event EventHandler FocusGained
269 if (_keyInputFocusGainedEventHandler == null)
271 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
272 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
275 _keyInputFocusGainedEventHandler += value;
280 _keyInputFocusGainedEventHandler -= value;
282 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
284 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
289 private void OnKeyInputFocusGained(IntPtr view)
291 if (_keyInputFocusGainedEventHandler != null)
293 _keyInputFocusGainedEventHandler(this, null);
298 private EventHandler _keyInputFocusLostEventHandler;
299 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
300 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
301 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
304 /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
305 /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.<br />
307 /// <since_tizen> 3 </since_tizen>
308 public event EventHandler FocusLost
312 if (_keyInputFocusLostEventHandler == null)
314 _keyInputFocusLostCallback = OnKeyInputFocusLost;
315 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
318 _keyInputFocusLostEventHandler += value;
323 _keyInputFocusLostEventHandler -= value;
325 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
327 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
332 private void OnKeyInputFocusLost(IntPtr view)
334 if (_keyInputFocusLostEventHandler != null)
336 _keyInputFocusLostEventHandler(this, null);
341 /// Event arguments that passed via the KeyEvent signal.
343 public class KeyEventArgs : EventArgs
348 /// Key - is the key sent to the view.
350 /// <since_tizen> 3 </since_tizen>
364 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
365 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
366 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
367 private KeyCallbackType _keyCallback;
370 /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
371 /// The KeyPressed signal is emitted when the key event is received.<br />
373 /// <since_tizen> 4 </since_tizen>
374 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
378 if (_keyEventHandler == null)
380 _keyCallback = OnKeyEvent;
381 this.KeyEventSignal().Connect(_keyCallback);
384 _keyEventHandler += value;
389 _keyEventHandler -= value;
391 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
393 this.KeyEventSignal().Disconnect(_keyCallback);
398 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
400 KeyEventArgs e = new KeyEventArgs();
404 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
406 if (_keyEventHandler != null)
408 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
410 // Oring the result of each callback.
411 foreach ( EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList )
413 result |= del( this, e );
420 private EventHandler _onRelayoutEventHandler;
421 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
422 private delegate void OnRelayoutEventCallbackType(IntPtr control);
423 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
426 /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.<br />
427 /// The OnRelayout signal is emitted after the size has been set on the view during relayout.<br />
429 /// <since_tizen> 3 </since_tizen>
430 public event EventHandler Relayout
434 if (_onRelayoutEventHandler == null)
436 _onRelayoutEventCallback = OnRelayout;
437 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
440 _onRelayoutEventHandler += value;
445 _onRelayoutEventHandler -= value;
447 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
449 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
455 // Callback for View OnRelayout signal
456 private void OnRelayout(IntPtr data)
458 if (_onRelayoutEventHandler != null)
460 _onRelayoutEventHandler(this, null);
465 /// Event arguments that passed via the touch signal.
467 public class TouchEventArgs : EventArgs
469 private Touch _touch;
472 /// Touch - contains the information of touch points.
474 /// <since_tizen> 3 </since_tizen>
488 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
489 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
490 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
491 private TouchDataCallbackType _touchDataCallback;
494 /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
495 /// The touched signal is emitted when the touch input is received.<br />
497 /// <since_tizen> 4 </since_tizen>
498 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> TouchEvent
502 if (_touchDataEventHandler == null)
504 _touchDataCallback = OnTouch;
505 this.TouchSignal().Connect(_touchDataCallback);
508 _touchDataEventHandler += value;
513 _touchDataEventHandler -= value;
515 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
517 this.TouchSignal().Disconnect(_touchDataCallback);
523 // Callback for View TouchSignal
524 private bool OnTouch(IntPtr view, IntPtr touchData)
526 TouchEventArgs e = new TouchEventArgs();
528 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
530 if (_touchDataEventHandler != null)
532 return _touchDataEventHandler(this, e);
539 /// Event arguments that passed via the hover signal.
541 public class HoverEventArgs : EventArgs
543 private Hover _hover;
546 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
548 /// <since_tizen> 3 </since_tizen>
562 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
563 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
564 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
565 private HoverEventCallbackType _hoverEventCallback;
568 /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
569 /// The hovered signal is emitted when the hover input is received.<br />
571 /// <since_tizen> 4 </since_tizen>
572 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> HoverEvent
576 if (_hoverEventHandler == null)
578 _hoverEventCallback = OnHoverEvent;
579 this.HoveredSignal().Connect(_hoverEventCallback);
582 _hoverEventHandler += value;
587 _hoverEventHandler -= value;
589 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
591 this.HoveredSignal().Disconnect(_hoverEventCallback);
597 // Callback for View Hover signal
598 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
600 HoverEventArgs e = new HoverEventArgs();
602 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
604 if (_hoverEventHandler != null)
606 return _hoverEventHandler(this, e);
613 /// Event arguments that passed via the wheel signal.
615 public class WheelEventArgs : EventArgs
617 private Wheel _wheel;
620 /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
622 /// <since_tizen> 3 </since_tizen>
636 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
637 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
638 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
639 private WheelEventCallbackType _wheelEventCallback;
642 /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
643 /// The WheelMoved signal is emitted when the wheel event is received.<br />
645 /// <since_tizen> 4 </since_tizen>
646 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelEvent
650 if (_wheelEventHandler == null)
652 _wheelEventCallback = OnWheelEvent;
653 this.WheelEventSignal().Connect(_wheelEventCallback);
656 _wheelEventHandler += value;
661 _wheelEventHandler -= value;
663 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
665 this.WheelEventSignal().Disconnect(_wheelEventCallback);
671 // Callback for View Wheel signal
672 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
674 WheelEventArgs e = new WheelEventArgs();
676 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
678 if (_wheelEventHandler != null)
680 return _wheelEventHandler(this, e);
686 private EventHandler _onWindowEventHandler;
687 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
688 private delegate void OnWindowEventCallbackType(IntPtr control);
689 private OnWindowEventCallbackType _onWindowEventCallback;
692 /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.<br />
693 /// The OnWindow signal is emitted after the view has been connected to the window.<br />
695 /// <since_tizen> 3 </since_tizen>
696 public event EventHandler AddedToWindow
700 if (_onWindowEventHandler == null)
702 _onWindowEventCallback = OnWindow;
703 this.OnWindowSignal().Connect(_onWindowEventCallback);
706 _onWindowEventHandler += value;
711 _onWindowEventHandler -= value;
713 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
715 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
720 // Callback for View OnWindow signal
721 private void OnWindow(IntPtr data)
723 if (_onWindowEventHandler != null)
725 _onWindowEventHandler(this, null);
730 private EventHandler _offWindowEventHandler;
731 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
732 private delegate void OffWindowEventCallbackType(IntPtr control);
733 private OffWindowEventCallbackType _offWindowEventCallback;
736 /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.<br />
737 /// OffWindow signal is emitted after the view has been disconnected from the window.<br />
739 /// <since_tizen> 3 </since_tizen>
740 public event EventHandler RemovedFromWindow
744 if (_offWindowEventHandler == null)
746 _offWindowEventCallback = OffWindow;
747 this.OffWindowSignal().Connect(_offWindowEventCallback);
750 _offWindowEventHandler += value;
755 _offWindowEventHandler -= value;
757 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
759 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
764 // Callback for View OffWindow signal
765 private void OffWindow(IntPtr data)
767 if (_offWindowEventHandler != null)
769 _offWindowEventHandler(this, null);
774 /// Event arguments of visibility changed.
776 public class VisibilityChangedEventArgs : EventArgs
779 private bool _visibility;
780 private VisibilityChangeType _type;
783 /// The view, or child of view, whose visibility has changed.
785 /// <since_tizen> 3 </since_tizen>
799 /// Whether the view is now visible or not.
801 /// <since_tizen> 3 </since_tizen>
802 public bool Visibility
815 /// Whether the view's visible property has changed or a parent's.
817 /// <since_tizen> 3 </since_tizen>
818 public VisibilityChangeType Type
831 private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
832 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
833 private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
834 private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
837 /// An event for visibility change which can be used to subscribe or unsubscribe the event handler.<br />
838 /// This signal is emitted when the visible property of this or a parent view is changed.<br />
840 /// <since_tizen> 3 </since_tizen>
841 public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
845 if (_visibilityChangedEventHandler == null)
847 _visibilityChangedEventCallback = OnVisibilityChanged;
848 VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
851 _visibilityChangedEventHandler += value;
856 _visibilityChangedEventHandler -= value;
858 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
860 VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
865 // Callback for View visibility change signal
866 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
868 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
871 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
873 e.Visibility = visibility;
876 if (_visibilityChangedEventHandler != null)
878 _visibilityChangedEventHandler(this, e);
884 /// Event arguments of layout direction changed.
886 public class LayoutDirectionChangedEventArgs : EventArgs
889 private ViewLayoutDirectionType _type;
892 /// The view, or child of view, whose layout direction has changed.
894 /// <since_tizen> 4 </since_tizen>
908 /// Whether the view's layout direction property has changed or a parent's.
910 /// <since_tizen> 4 </since_tizen>
911 public ViewLayoutDirectionType Type
924 private EventHandler<LayoutDirectionChangedEventArgs> _layoutDirectionChangedEventHandler;
925 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
926 private delegate void LayoutDirectionChangedEventCallbackType(IntPtr data, ViewLayoutDirectionType type);
927 private LayoutDirectionChangedEventCallbackType _layoutDirectionChangedEventCallback;
930 /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.<br />
931 /// This signal is emitted when the layout direction property of this or a parent view is changed.<br />
933 /// <since_tizen> 4 </since_tizen>
934 public event EventHandler<LayoutDirectionChangedEventArgs> LayoutDirectionChanged
938 if (_layoutDirectionChangedEventHandler == null)
940 _layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
941 LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
944 _layoutDirectionChangedEventHandler += value;
949 _layoutDirectionChangedEventHandler -= value;
951 if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
953 LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
958 // Callback for View layout direction change signal
959 private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
961 LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
964 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
968 if (_layoutDirectionChangedEventHandler != null)
970 _layoutDirectionChangedEventHandler(this, e);
980 // Resource Ready Signal
982 private EventHandler _resourcesLoadedEventHandler;
983 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
984 private delegate void ResourcesLoadedCallbackType(IntPtr control);
985 private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
988 /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
989 /// This signal is emitted after all resources required by a view are loaded and ready.<br />
991 /// <since_tizen> 4 </since_tizen>
992 public event EventHandler ResourcesLoaded
996 if (_resourcesLoadedEventHandler == null)
998 _ResourcesLoadedCallback = OnResourcesLoaded;
999 this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
1002 _resourcesLoadedEventHandler += value;
1007 _resourcesLoadedEventHandler -= value;
1009 if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1011 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
1016 private void OnResourcesLoaded(IntPtr view)
1018 if (_resourcesLoadedEventHandler != null)
1020 _resourcesLoadedEventHandler(this, null);
1024 internal IntPtr GetPtrfromView()
1026 return (IntPtr)swigCPtr;
1029 internal class Property
1031 internal static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
1032 internal static readonly int STATE = NDalicManualPINVOKE.View_Property_STATE_get();
1033 internal static readonly int SUB_STATE = NDalicManualPINVOKE.View_Property_SUB_STATE_get();
1034 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
1035 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
1036 internal static readonly int UP_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
1037 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
1038 internal static readonly int STYLE_NAME = NDalicPINVOKE.View_Property_STYLE_NAME_get();
1039 internal static readonly int BACKGROUND = NDalicPINVOKE.View_Property_BACKGROUND_get();
1040 internal static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
1041 internal static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
1042 internal static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
1043 internal static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
1044 internal static readonly int PARENT_ORIGIN = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_get();
1045 internal static readonly int PARENT_ORIGIN_X = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_X_get();
1046 internal static readonly int PARENT_ORIGIN_Y = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Y_get();
1047 internal static readonly int PARENT_ORIGIN_Z = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Z_get();
1048 internal static readonly int ANCHOR_POINT = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_get();
1049 internal static readonly int ANCHOR_POINT_X = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_X_get();
1050 internal static readonly int ANCHOR_POINT_Y = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Y_get();
1051 internal static readonly int ANCHOR_POINT_Z = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Z_get();
1052 internal static readonly int SIZE = NDalicPINVOKE.Actor_Property_SIZE_get();
1053 internal static readonly int SIZE_WIDTH = NDalicPINVOKE.Actor_Property_SIZE_WIDTH_get();
1054 internal static readonly int SIZE_HEIGHT = NDalicPINVOKE.Actor_Property_SIZE_HEIGHT_get();
1055 internal static readonly int SIZE_DEPTH = NDalicPINVOKE.Actor_Property_SIZE_DEPTH_get();
1056 internal static readonly int POSITION = NDalicPINVOKE.Actor_Property_POSITION_get();
1057 internal static readonly int POSITION_X = NDalicPINVOKE.Actor_Property_POSITION_X_get();
1058 internal static readonly int POSITION_Y = NDalicPINVOKE.Actor_Property_POSITION_Y_get();
1059 internal static readonly int POSITION_Z = NDalicPINVOKE.Actor_Property_POSITION_Z_get();
1060 internal static readonly int WORLD_POSITION = NDalicPINVOKE.Actor_Property_WORLD_POSITION_get();
1061 internal static readonly int WORLD_POSITION_X = NDalicPINVOKE.Actor_Property_WORLD_POSITION_X_get();
1062 internal static readonly int WORLD_POSITION_Y = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Y_get();
1063 internal static readonly int WORLD_POSITION_Z = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Z_get();
1064 internal static readonly int ORIENTATION = NDalicPINVOKE.Actor_Property_ORIENTATION_get();
1065 internal static readonly int WORLD_ORIENTATION = NDalicPINVOKE.Actor_Property_WORLD_ORIENTATION_get();
1066 internal static readonly int SCALE = NDalicPINVOKE.Actor_Property_SCALE_get();
1067 internal static readonly int SCALE_X = NDalicPINVOKE.Actor_Property_SCALE_X_get();
1068 internal static readonly int SCALE_Y = NDalicPINVOKE.Actor_Property_SCALE_Y_get();
1069 internal static readonly int SCALE_Z = NDalicPINVOKE.Actor_Property_SCALE_Z_get();
1070 internal static readonly int WORLD_SCALE = NDalicPINVOKE.Actor_Property_WORLD_SCALE_get();
1071 internal static readonly int VISIBLE = NDalicPINVOKE.Actor_Property_VISIBLE_get();
1072 internal static readonly int WORLD_COLOR = NDalicPINVOKE.Actor_Property_WORLD_COLOR_get();
1073 internal static readonly int WORLD_MATRIX = NDalicPINVOKE.Actor_Property_WORLD_MATRIX_get();
1074 internal static readonly int NAME = NDalicPINVOKE.Actor_Property_NAME_get();
1075 internal static readonly int SENSITIVE = NDalicPINVOKE.Actor_Property_SENSITIVE_get();
1076 internal static readonly int LEAVE_REQUIRED = NDalicPINVOKE.Actor_Property_LEAVE_REQUIRED_get();
1077 internal static readonly int INHERIT_ORIENTATION = NDalicPINVOKE.Actor_Property_INHERIT_ORIENTATION_get();
1078 internal static readonly int INHERIT_SCALE = NDalicPINVOKE.Actor_Property_INHERIT_SCALE_get();
1079 internal static readonly int DRAW_MODE = NDalicPINVOKE.Actor_Property_DRAW_MODE_get();
1080 internal static readonly int SIZE_MODE_FACTOR = NDalicPINVOKE.Actor_Property_SIZE_MODE_FACTOR_get();
1081 internal static readonly int WIDTH_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_WIDTH_RESIZE_POLICY_get();
1082 internal static readonly int HEIGHT_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_HEIGHT_RESIZE_POLICY_get();
1083 internal static readonly int SIZE_SCALE_POLICY = NDalicPINVOKE.Actor_Property_SIZE_SCALE_POLICY_get();
1084 internal static readonly int WIDTH_FOR_HEIGHT = NDalicPINVOKE.Actor_Property_WIDTH_FOR_HEIGHT_get();
1085 internal static readonly int HEIGHT_FOR_WIDTH = NDalicPINVOKE.Actor_Property_HEIGHT_FOR_WIDTH_get();
1086 internal static readonly int PADDING = NDalicPINVOKE.Actor_Property_PADDING_get();
1087 internal static readonly int MINIMUM_SIZE = NDalicPINVOKE.Actor_Property_MINIMUM_SIZE_get();
1088 internal static readonly int MAXIMUM_SIZE = NDalicPINVOKE.Actor_Property_MAXIMUM_SIZE_get();
1089 internal static readonly int INHERIT_POSITION = NDalicPINVOKE.Actor_Property_INHERIT_POSITION_get();
1090 internal static readonly int CLIPPING_MODE = NDalicPINVOKE.Actor_Property_CLIPPING_MODE_get();
1091 internal static readonly int INHERIT_LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
1092 internal static readonly int LAYOUT_DIRECTION = NDalicManualPINVOKE.Actor_Property_LAYOUT_DIRECTION_get();
1093 internal static readonly int MARGIN = NDalicPINVOKE.View_Property_MARGIN_get();
1094 internal static readonly int PADDINGEX = NDalicPINVOKE.View_Property_PADDING_get();
1098 /// Describes the direction to move the focus towards.
1100 /// <since_tizen> 3 </since_tizen>
1101 public enum FocusDirection
1104 /// Move keyboard focus towards the left direction.
1106 /// <since_tizen> 3 </since_tizen>
1109 /// Move keyboard focus towards the right direction.
1111 /// <since_tizen> 3 </since_tizen>
1114 /// Move keyboard focus towards the up direction.
1116 /// <since_tizen> 3 </since_tizen>
1119 /// Move keyboard focus towards the down direction.
1121 /// <since_tizen> 3 </since_tizen>
1124 /// Move keyboard focus towards the previous page direction.
1126 /// <since_tizen> 3 </since_tizen>
1129 /// Move keyboard focus towards the next page direction.
1131 /// <since_tizen> 3 </since_tizen>
1136 /// Creates a new instance of a view.
1138 /// <since_tizen> 3 </since_tizen>
1139 public View() : this(NDalicPINVOKE.View_New(), true)
1141 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1144 internal View(View uiControl) : this(NDalicPINVOKE.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1146 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1150 /// Downcasts a handle to view handle.<br />
1151 /// If handle points to a view, the downcast produces a valid handle.<br />
1152 /// If not, the returned handle is left uninitialized.<br />
1154 /// <param name="handle">A handle to an object.</param>
1155 /// <returns>A handle to a view or an uninitialized handle.</returns>
1156 [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1157 public static View DownCast(BaseHandle handle)
1159 View ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as View;
1160 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1165 /// [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1167 /// <since_tizen> 3 </since_tizen>
1168 [Obsolete("Please do not use! this will be deprecated, instead please use as keyword.")]
1169 public static T DownCast<T>(View view) where T : View
1171 T ret = Registry.GetManagedBaseHandleFromNativePtr(view) as T;
1179 private View ConvertIdToView(uint id)
1185 View parentView = Parent as View;
1186 view = parentView.FindChildById(id);
1191 view = Window.Instance.GetRootLayer().FindChildById(id);
1197 internal void SetKeyInputFocus()
1199 NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
1200 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1204 /// Queries whether the view has a focus.
1206 /// <returns>True if this view has a focus.</returns>
1207 /// <since_tizen> 3 </since_tizen>
1208 public bool HasFocus()
1210 bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
1211 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1215 internal void ClearKeyInputFocus()
1217 NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
1218 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1221 internal PinchGestureDetector GetPinchGestureDetector()
1223 PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
1224 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1228 internal PanGestureDetector GetPanGestureDetector()
1230 PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
1231 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1235 internal TapGestureDetector GetTapGestureDetector()
1237 TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
1238 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1242 internal LongPressGestureDetector GetLongPressGestureDetector()
1244 LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
1245 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1250 /// Sets the name of the style to be applied to the view.
1252 /// <param name="styleName">A string matching a style described in a stylesheet.</param>
1253 /// <since_tizen> 3 </since_tizen>
1254 public void SetStyleName(string styleName)
1256 NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
1257 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1261 /// Retrieves the name of the style to be applied to the view (if any).
1263 /// <returns>A string matching a style, or an empty string.</returns>
1264 /// <since_tizen> 3 </since_tizen>
1265 public string GetStyleName()
1267 string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
1268 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1272 internal void SetBackgroundColor(Vector4 color)
1274 NDalicPINVOKE.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
1275 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1278 internal Vector4 GetBackgroundColor()
1280 Vector4 ret = new Vector4(NDalicPINVOKE.View_GetBackgroundColor(swigCPtr), true);
1281 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1285 internal void SetBackgroundImage(Image image)
1287 NDalicPINVOKE.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
1288 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1292 /// Clears the background.
1294 /// <since_tizen> 3 </since_tizen>
1295 public void ClearBackground()
1297 NDalicPINVOKE.View_ClearBackground(swigCPtr);
1298 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1301 internal ControlKeySignal KeyEventSignal()
1303 ControlKeySignal ret = new ControlKeySignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
1304 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1308 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
1310 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
1311 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1315 internal KeyInputFocusSignal KeyInputFocusLostSignal()
1317 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
1318 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1322 internal View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1324 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1327 internal enum PropertyRange
1329 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1330 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1331 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1335 /// The StyleName, type string.
1337 /// <since_tizen> 3 </since_tizen>
1338 public string StyleName
1343 GetProperty(View.Property.STYLE_NAME).Get(out temp);
1348 SetProperty(View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue(value));
1353 /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
1355 /// <since_tizen> 3 </since_tizen>
1356 public Color BackgroundColor
1360 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1362 Tizen.NUI.PropertyMap background = Background;
1364 background.Find(Visual.Property.Type)?.Get(out visualType);
1365 if (visualType == (int)Visual.Type.Color)
1367 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
1370 return backgroundColor;
1374 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1379 /// Creates an animation to animate the background color visual. If there is no
1380 /// background visual, creates one with transparent black as it's mixColor.
1382 /// <since_tizen> 4 </since_tizen>
1383 public Animation AnimateBackgroundColor( object destinationValue,
1386 AlphaFunction.BuiltinFunctions? alphaFunction = null,
1387 object initialValue = null)
1389 Tizen.NUI.PropertyMap background = Background;
1391 if( background.Empty() )
1393 // If there is no background yet, ensure there is a transparent
1395 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1396 background = Background;
1398 return AnimateColor( "background", destinationValue, startTime, endTime, alphaFunction, initialValue );
1402 /// Creates an animation to animate the mixColor of the named visual.
1404 /// <since_tizen> 4 </since_tizen>
1405 public Animation AnimateColor( string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null )
1407 Animation animation = null;
1409 PropertyMap _animator = new PropertyMap();
1410 if( alphaFunction != null )
1412 _animator.Add("alphaFunction", new PropertyValue( AlphaFunction.BuiltinToPropertyKey(alphaFunction) ) );
1415 PropertyMap _timePeriod = new PropertyMap();
1416 _timePeriod.Add( "duration", new PropertyValue((endTime-startTime)/1000.0f) );
1417 _timePeriod.Add( "delay", new PropertyValue( startTime/1000.0f ) );
1418 _animator.Add( "timePeriod", new PropertyValue( _timePeriod ) );
1420 PropertyMap _transition = new PropertyMap();
1421 _transition.Add( "animator", new PropertyValue( _animator ) );
1422 _transition.Add( "target", new PropertyValue( targetVisual ) );
1423 _transition.Add( "property", new PropertyValue( "mixColor" ) );
1425 if( initialColor != null )
1427 PropertyValue initValue = PropertyValue.CreateFromObject( initialColor );
1428 _transition.Add( "initialValue", initValue );
1431 PropertyValue destValue = PropertyValue.CreateFromObject( destinationColor );
1432 _transition.Add( "targetValue", destValue );
1433 TransitionData _transitionData = new TransitionData( _transition );
1435 animation = new Animation( NDalicManualPINVOKE.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true );
1436 if (NDalicPINVOKE.SWIGPendingException.Pending)
1437 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1443 /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
1445 /// <since_tizen> 3 </since_tizen>
1446 public string BackgroundImage
1450 string backgroundImage = "";
1452 Tizen.NUI.PropertyMap background = Background;
1454 background.Find(Visual.Property.Type)?.Get(out visualType);
1455 if (visualType == (int)Visual.Type.Image)
1457 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
1460 return backgroundImage;
1464 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1469 /// The background of view.
1471 /// <since_tizen> 3 </since_tizen>
1472 public Tizen.NUI.PropertyMap Background
1476 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1477 GetProperty( View.Property.BACKGROUND ).Get(temp);
1482 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1488 /// The current state of the view.
1490 /// <since_tizen> 3 </since_tizen>
1496 if (GetProperty(View.Property.STATE).Get(out temp) == false)
1498 NUILog.Error("State get error!");
1504 return States.Normal;
1508 return States.Focused;
1512 return States.Disabled;
1516 return States.Normal;
1522 SetProperty(View.Property.STATE, new Tizen.NUI.PropertyValue((int)value));
1527 /// The current sub state of the view.
1529 /// <since_tizen> 3 </since_tizen>
1530 public States SubState
1535 if (GetProperty(View.Property.SUB_STATE).Get(out temp) == false)
1537 NUILog.Error("subState get error!");
1542 return States.Normal;
1544 return States.Focused;
1546 return States.Disabled;
1548 return States.Normal;
1553 string valueToString = "";
1558 valueToString = "NORMAL";
1561 case States.Focused:
1563 valueToString = "FOCUSED";
1566 case States.Disabled:
1568 valueToString = "DISABLED";
1573 valueToString = "NORMAL";
1577 SetProperty(View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
1582 /// Displays a tooltip
1584 /// <since_tizen> 3 </since_tizen>
1585 public Tizen.NUI.PropertyMap Tooltip
1589 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1590 GetProperty(View.Property.TOOLTIP).Get(temp);
1595 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1600 /// Displays a tooltip as a text.
1602 /// <since_tizen> 3 </since_tizen>
1603 public string TooltipText
1607 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1611 private int LeftFocusableViewId
1616 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
1621 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1625 private int RightFocusableViewId
1630 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
1635 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1639 private int UpFocusableViewId
1644 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
1649 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1653 private int DownFocusableViewId
1658 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
1663 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1668 /// The Child property of FlexContainer.<br />
1669 /// The proportion of the free space in the container, the flex item will receive.<br />
1670 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
1672 /// <since_tizen> 3 </since_tizen>
1678 GetProperty(FlexContainer.ChildProperty.FLEX).Get(out temp);
1683 SetProperty(FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue(value));
1688 /// The Child property of FlexContainer.<br />
1689 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
1691 /// <since_tizen> 3 </since_tizen>
1692 public int AlignSelf
1697 GetProperty(FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
1702 SetProperty(FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue(value));
1707 /// The Child property of FlexContainer.<br />
1708 /// The space around the flex item.<br />
1710 /// <since_tizen> 3 </since_tizen>
1711 public Vector4 FlexMargin
1715 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1716 GetProperty(FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
1721 SetProperty(FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue(value));
1726 /// The top-left cell this child occupies, if not set, the first available cell is used.
1728 /// <since_tizen> 3 </since_tizen>
1729 public Vector2 CellIndex
1733 Vector2 temp = new Vector2(0.0f, 0.0f);
1734 GetProperty(TableView.ChildProperty.CELL_INDEX).Get(temp);
1739 SetProperty(TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue(value));
1744 /// The number of rows this child occupies, if not set, the default value is 1.
1746 /// <since_tizen> 3 </since_tizen>
1747 public float RowSpan
1752 GetProperty(TableView.ChildProperty.ROW_SPAN).Get(out temp);
1757 SetProperty(TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue(value));
1762 /// The number of columns this child occupies, if not set, the default value is 1.
1764 /// <since_tizen> 3 </since_tizen>
1765 public float ColumnSpan
1770 GetProperty(TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
1775 SetProperty(TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue(value));
1780 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
1782 /// <since_tizen> 3 </since_tizen>
1783 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
1788 if (GetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
1790 NUILog.Error("CellHorizontalAlignment get error!");
1796 return Tizen.NUI.HorizontalAlignmentType.Left;
1798 return Tizen.NUI.HorizontalAlignmentType.Center;
1800 return Tizen.NUI.HorizontalAlignmentType.Right;
1802 return Tizen.NUI.HorizontalAlignmentType.Left;
1807 string valueToString = "";
1810 case Tizen.NUI.HorizontalAlignmentType.Left:
1812 valueToString = "left";
1815 case Tizen.NUI.HorizontalAlignmentType.Center:
1817 valueToString = "center";
1820 case Tizen.NUI.HorizontalAlignmentType.Right:
1822 valueToString = "right";
1827 valueToString = "left";
1831 SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1836 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
1838 /// <since_tizen> 3 </since_tizen>
1839 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
1844 GetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
1846 NUILog.Error("CellVerticalAlignment get error!");
1852 return Tizen.NUI.VerticalAlignmentType.Top;
1854 return Tizen.NUI.VerticalAlignmentType.Center;
1856 return Tizen.NUI.VerticalAlignmentType.Bottom;
1858 return Tizen.NUI.VerticalAlignmentType.Top;
1863 string valueToString = "";
1866 case Tizen.NUI.VerticalAlignmentType.Top:
1868 valueToString = "top";
1871 case Tizen.NUI.VerticalAlignmentType.Center:
1873 valueToString = "center";
1876 case Tizen.NUI.VerticalAlignmentType.Bottom:
1878 valueToString = "bottom";
1883 valueToString = "top";
1887 SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1892 /// The left focusable view.<br />
1893 /// This will return null if not set.<br />
1894 /// This will also return null if the specified left focusable view is not on a window.<br />
1896 /// <since_tizen> 3 </since_tizen>
1897 public View LeftFocusableView
1899 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1902 if (LeftFocusableViewId >= 0)
1904 return ConvertIdToView((uint)LeftFocusableViewId);
1912 LeftFocusableViewId = (int)value.GetId();
1916 LeftFocusableViewId = -1;
1922 /// The right focusable view.<br />
1923 /// This will return null if not set.<br />
1924 /// This will also return null if the specified right focusable view is not on a window.<br />
1926 /// <since_tizen> 3 </since_tizen>
1927 public View RightFocusableView
1929 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1932 if (RightFocusableViewId >= 0)
1934 return ConvertIdToView((uint)RightFocusableViewId);
1942 RightFocusableViewId = (int)value.GetId();
1946 RightFocusableViewId = -1;
1952 /// The up focusable view.<br />
1953 /// This will return null if not set.<br />
1954 /// This will also return null if the specified up focusable view is not on a window.<br />
1956 /// <since_tizen> 3 </since_tizen>
1957 public View UpFocusableView
1959 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1962 if (UpFocusableViewId >= 0)
1964 return ConvertIdToView((uint)UpFocusableViewId);
1972 UpFocusableViewId = (int)value.GetId();
1976 UpFocusableViewId = -1;
1982 /// The down focusable view.<br />
1983 /// This will return null if not set.<br />
1984 /// This will also return null if the specified down focusable view is not on a window.<br />
1986 /// <since_tizen> 3 </since_tizen>
1987 public View DownFocusableView
1989 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1992 if (DownFocusableViewId >= 0)
1994 return ConvertIdToView((uint)DownFocusableViewId);
2002 DownFocusableViewId = (int)value.GetId();
2006 DownFocusableViewId = -1;
2012 /// Whether the view should be focusable by keyboard navigation.
2014 /// <since_tizen> 3 </since_tizen>
2015 public bool Focusable
2019 SetKeyboardFocusable(value);
2023 return IsKeyboardFocusable();
2028 /// Enumeration for describing the states of the view.
2030 /// <since_tizen> 3 </since_tizen>
2034 /// The normal state.
2038 /// The focused state.
2042 /// The disabled state.
2048 /// Retrieves the position of the view.<br />
2049 /// The coordinates are relative to the view's parent.<br />
2051 /// <since_tizen> 3 </since_tizen>
2052 public Position CurrentPosition
2056 return GetCurrentPosition();
2061 /// Sets the size of a view for the width and the height.<br />
2062 /// Geometry can be scaled to fit within this area.<br />
2063 /// This does not interfere with the view's scale factor.<br />
2064 /// The views default depth is the minimum of width and height.<br />
2066 /// <since_tizen> 3 </since_tizen>
2067 public Size2D Size2D
2071 Size temp = new Size(0.0f, 0.0f, 0.0f);
2072 GetProperty(View.Property.SIZE).Get(temp);
2073 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
2078 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size(value)));
2083 /// Retrieves the size of the view.<br />
2084 /// The coordinates are relative to the view's parent.<br />
2086 /// <since_tizen> 3 </since_tizen>
2087 public Size2D CurrentSize
2091 return GetCurrentSize();
2096 /// [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
2098 /// <since_tizen> 3 </since_tizen>
2099 [Obsolete("Please do not use! this will be deprecated. Please use Visibility instead.")]
2109 /// Retrieves and sets the view's opacity.<br />
2111 /// <since_tizen> 3 </since_tizen>
2112 public float Opacity
2117 GetProperty(View.Property.OPACITY).Get(out temp);
2122 SetProperty(View.Property.OPACITY, new Tizen.NUI.PropertyValue(value));
2127 /// Sets the position of the view for X and Y.<br />
2128 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2129 /// If the position inheritance is disabled, sets the world position.<br />
2131 /// <since_tizen> 3 </since_tizen>
2132 public Position2D Position2D
2136 Position temp = new Position(0.0f, 0.0f, 0.0f);
2137 GetProperty(View.Property.POSITION).Get(temp);
2138 return new Position2D(temp);
2142 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position(value)));
2147 /// Retrieves the screen postion of the view.<br />
2149 /// <since_tizen> 3 </since_tizen>
2150 public Vector2 ScreenPosition
2154 Vector2 temp = new Vector2(0.0f, 0.0f);
2155 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2161 /// Determines whether the pivot point should be used to determine the position of the view.
2162 /// This is true by default.
2164 /// <remarks>If false, then the top-left of the view is used for the position.
2165 /// Setting this to false will allow scaling or rotation around the anchor-point without affecting the view's position.
2167 /// <since_tizen> 4 </since_tizen>
2168 public bool PositionUsesPivotPoint
2173 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2178 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2183 /// Please do not use! this will be deprecated.
2185 /// Please do not use! this will be deprecated!
2186 /// Instead please use PositionUsesPivotPoint.
2187 [Obsolete("Please do not use! this will be deprecated, instead please use PositionUsesPivotPoint")]
2188 [EditorBrowsable(EditorBrowsableState.Never)]
2189 public bool PositionUsesAnchorPoint
2194 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2199 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2203 internal bool FocusState
2207 return IsKeyboardFocusable();
2211 SetKeyboardFocusable(value);
2216 /// Queries whether the view is connected to the stage.<br />
2217 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2219 /// <since_tizen> 3 </since_tizen>
2220 public bool IsOnWindow
2229 /// Gets the depth in the hierarchy for the view.
2231 /// <since_tizen> 3 </since_tizen>
2232 public int HierarchyDepth
2236 return GetHierarchyDepth();
2241 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2244 /// Note the initial value is 0.
2245 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2246 /// The values set by this property will likely change.
2248 /// <since_tizen> 3 </since_tizen>
2249 public int SiblingOrder
2254 GetProperty(View.Property.SIBLING_ORDER).Get(out temp);
2259 SetProperty(View.Property.SIBLING_ORDER, new Tizen.NUI.PropertyValue(value));
2264 /// Returns the natural size of the view.
2267 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2269 /// /// Please do not use! this will be deprecated!
2270 /// Instead please use NaturalSize2D.
2271 [Obsolete("Please do not use! this will be deprecated, please use NaturalSize2D instead")]
2272 [EditorBrowsable(EditorBrowsableState.Never)]
2273 public Vector3 NaturalSize
2277 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2278 if (NDalicPINVOKE.SWIGPendingException.Pending)
2279 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2285 /// Returns the natural size (Size2D) of the view.
2288 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2290 /// <since_tizen> 4 </since_tizen>
2291 public Size2D NaturalSize2D
2295 Vector3 temp = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2296 if (NDalicPINVOKE.SWIGPendingException.Pending)
2297 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2299 return new Size2D((int)temp.Width, (int)temp.Height);
2307 /// This is an asynchronous method.
2309 /// <since_tizen> 3 </since_tizen>
2319 /// This is an asynchronous method.
2320 /// If the view is hidden, then the view and its children will not be rendered.
2321 /// 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.
2323 /// <since_tizen> 3 </since_tizen>
2329 internal void Raise()
2331 var parentChildren = Parent?.Children;
2333 if (parentChildren != null)
2335 int currentIndex = parentChildren.IndexOf(this);
2337 // If the view is not already the last item in the list.
2338 if (currentIndex != parentChildren.Count -1)
2340 View temp = parentChildren[currentIndex + 1];
2341 parentChildren[currentIndex + 1] = this;
2342 parentChildren[currentIndex] = temp;
2346 NDalicPINVOKE.Raise(swigCPtr);
2347 if (NDalicPINVOKE.SWIGPendingException.Pending)
2348 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2351 internal void Lower()
2353 var parentChildren = Parent?.Children;
2355 if (parentChildren != null)
2357 int currentIndex = parentChildren.IndexOf(this);
2359 // If the view is not already the first item in the list.
2360 if (currentIndex > 0)
2362 View temp = parentChildren[currentIndex - 1];
2363 parentChildren[currentIndex - 1] = this;
2364 parentChildren[currentIndex] = temp;
2368 NDalicPINVOKE.Lower(swigCPtr);
2369 if (NDalicPINVOKE.SWIGPendingException.Pending)
2370 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2374 /// Raises the view above all other views.
2377 /// Sibling order of views within the parent will be updated automatically.
2378 /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
2380 /// <since_tizen> 3 </since_tizen>
2381 public void RaiseToTop()
2383 var parentChildren = Parent?.Children;
2385 if (parentChildren != null)
2387 parentChildren.Remove(this);
2388 parentChildren.Add(this);
2391 NDalicPINVOKE.RaiseToTop(swigCPtr);
2392 if (NDalicPINVOKE.SWIGPendingException.Pending)
2393 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2397 /// Lowers the view to the bottom of all views.
2400 /// The sibling order of views within the parent will be updated automatically.
2401 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2403 /// <since_tizen> 3 </since_tizen>
2404 public void LowerToBottom()
2406 var parentChildren = Parent?.Children;
2408 if (parentChildren != null)
2410 parentChildren.Remove(this);
2411 parentChildren.Insert(0, this);
2414 NDalicPINVOKE.LowerToBottom(swigCPtr);
2415 if (NDalicPINVOKE.SWIGPendingException.Pending)
2416 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2420 /// Queries if all resources required by a view are loaded and ready.
2422 /// <remarks>Most resources are only loaded when the control is placed on the stage.
2424 /// <since_tizen> 4 </since_tizen>
2425 public bool IsResourceReady()
2427 bool ret = NDalicPINVOKE.IsResourceReady(swigCPtr);
2428 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2433 /// Raises the view to above the target view.
2435 /// <remarks>The sibling order of views within the parent will be updated automatically.
2436 /// Views on the level above the target view will still be shown above this view.
2437 /// Raising this view above views with the same sibling order as each other will raise this view above them.
2438 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2440 /// <param name="target">Will be raised above this view.</param>
2441 internal void RaiseAbove(View target)
2443 var parentChildren = Parent?.Children;
2445 if (parentChildren != null)
2447 int currentIndex = parentChildren.IndexOf(this);
2448 int targetIndex = parentChildren.IndexOf(target);
2450 // If the currentIndex is less than the target index and the target has the same parent.
2451 if (currentIndex < targetIndex)
2453 parentChildren.Remove(this);
2454 parentChildren.Insert(targetIndex, this);
2458 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
2459 if (NDalicPINVOKE.SWIGPendingException.Pending)
2460 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2464 /// Lowers the view to below the target view.
2466 /// <remarks>The sibling order of views within the parent will be updated automatically.
2467 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
2468 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
2470 /// <param name="target">Will be lowered below this view.</param>
2471 internal void LowerBelow(View target)
2473 var parentChildren = Parent?.Children;
2475 if (parentChildren != null)
2477 int currentIndex = parentChildren.IndexOf(this);
2478 int targetIndex = parentChildren.IndexOf(target);
2480 // If the currentIndex is not already the 0th index and the target has the same parent.
2481 if ((currentIndex != 0) && (targetIndex != -1) &&
2482 (currentIndex > targetIndex))
2484 parentChildren.Remove(this);
2485 parentChildren.Insert(targetIndex, this);
2489 NDalicPINVOKE.LowerBelow(swigCPtr, View.getCPtr(target));
2490 if (NDalicPINVOKE.SWIGPendingException.Pending)
2491 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2494 internal string GetName()
2496 string ret = NDalicPINVOKE.Actor_GetName(swigCPtr);
2497 if (NDalicPINVOKE.SWIGPendingException.Pending)
2498 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2502 internal void SetName(string name)
2504 NDalicPINVOKE.Actor_SetName(swigCPtr, name);
2505 if (NDalicPINVOKE.SWIGPendingException.Pending)
2506 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2509 internal uint GetId()
2511 uint ret = NDalicPINVOKE.Actor_GetId(swigCPtr);
2512 if (NDalicPINVOKE.SWIGPendingException.Pending)
2513 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2517 internal bool IsRoot()
2519 bool ret = NDalicPINVOKE.Actor_IsRoot(swigCPtr);
2520 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2524 internal bool OnWindow()
2526 bool ret = NDalicPINVOKE.Actor_OnStage(swigCPtr);
2527 if (NDalicPINVOKE.SWIGPendingException.Pending)
2528 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2533 /// Gets the parent layer of this view.If a view has no parent, this method does nothing.
2535 /// <pre>The view has been initialized. </pre>
2536 /// <returns>the parent layer of view </returns>
2537 /// <since_tizen> 5 </since_tizen>
2538 public Layer GetLayer()
2540 IntPtr cPtr = NDalicPINVOKE.Actor_GetLayer(swigCPtr);
2541 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Layer;
2543 if (NDalicPINVOKE.SWIGPendingException.Pending)
2544 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2549 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
2551 /// <pre>The (child) view has been initialized. </pre>
2552 /// <since_tizen> 4 </since_tizen>
2553 public void Unparent()
2555 GetParent()?.Remove(this);
2559 /// Search through this view's hierarchy for a view with the given name.
2560 /// The view itself is also considered in the search.
2562 /// <pre>The view has been initialized.</pre>
2563 /// <param name="viewName">The name of the view to find.</param>
2564 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
2565 /// <since_tizen> 3 </since_tizen>
2566 public View FindChildByName(string viewName)
2568 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildByName(swigCPtr, viewName);
2570 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2572 if (NDalicPINVOKE.SWIGPendingException.Pending)
2573 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2577 internal View FindChildById(uint id)
2579 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildById(swigCPtr, id);
2581 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2583 if (NDalicPINVOKE.SWIGPendingException.Pending)
2584 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2588 internal void SetParentOrigin(Vector3 origin)
2590 NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
2591 if (NDalicPINVOKE.SWIGPendingException.Pending)
2592 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2595 internal Vector3 GetCurrentParentOrigin()
2597 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentParentOrigin(swigCPtr), true);
2598 if (NDalicPINVOKE.SWIGPendingException.Pending)
2599 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2603 internal void SetAnchorPoint(Vector3 anchorPoint)
2605 NDalicPINVOKE.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
2606 if (NDalicPINVOKE.SWIGPendingException.Pending)
2607 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2610 internal Vector3 GetCurrentAnchorPoint()
2612 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentAnchorPoint(swigCPtr), true);
2613 if (NDalicPINVOKE.SWIGPendingException.Pending)
2614 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2618 internal void SetSize(float width, float height)
2620 NDalicPINVOKE.Actor_SetSize__SWIG_0(swigCPtr, width, height);
2621 if (NDalicPINVOKE.SWIGPendingException.Pending)
2622 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2625 internal void SetSize(float width, float height, float depth)
2627 NDalicPINVOKE.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
2628 if (NDalicPINVOKE.SWIGPendingException.Pending)
2629 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2632 internal void SetSize(Vector2 size)
2634 NDalicPINVOKE.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
2635 if (NDalicPINVOKE.SWIGPendingException.Pending)
2636 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2639 internal void SetSize(Vector3 size)
2641 NDalicPINVOKE.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
2642 if (NDalicPINVOKE.SWIGPendingException.Pending)
2643 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2646 internal Vector3 GetTargetSize()
2648 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetTargetSize(swigCPtr), true);
2649 if (NDalicPINVOKE.SWIGPendingException.Pending)
2650 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2654 internal Size2D GetCurrentSize()
2656 Size ret = new Size(NDalicPINVOKE.Actor_GetCurrentSize(swigCPtr), true);
2657 if (NDalicPINVOKE.SWIGPendingException.Pending)
2658 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2659 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
2663 internal Vector3 GetNaturalSize()
2665 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2666 if (NDalicPINVOKE.SWIGPendingException.Pending)
2667 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2671 internal void SetPosition(float x, float y)
2673 NDalicPINVOKE.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
2674 if (NDalicPINVOKE.SWIGPendingException.Pending)
2675 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2678 internal void SetPosition(float x, float y, float z)
2680 NDalicPINVOKE.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
2681 if (NDalicPINVOKE.SWIGPendingException.Pending)
2682 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2685 internal void SetPosition(Vector3 position)
2687 NDalicPINVOKE.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
2688 if (NDalicPINVOKE.SWIGPendingException.Pending)
2689 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2692 internal void SetX(float x)
2694 NDalicPINVOKE.Actor_SetX(swigCPtr, x);
2695 if (NDalicPINVOKE.SWIGPendingException.Pending)
2696 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2699 internal void SetY(float y)
2701 NDalicPINVOKE.Actor_SetY(swigCPtr, y);
2702 if (NDalicPINVOKE.SWIGPendingException.Pending)
2703 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2706 internal void SetZ(float z)
2708 NDalicPINVOKE.Actor_SetZ(swigCPtr, z);
2709 if (NDalicPINVOKE.SWIGPendingException.Pending)
2710 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2713 internal void TranslateBy(Vector3 distance)
2715 NDalicPINVOKE.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
2716 if (NDalicPINVOKE.SWIGPendingException.Pending)
2717 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2720 internal Position GetCurrentPosition()
2722 Position ret = new Position(NDalicPINVOKE.Actor_GetCurrentPosition(swigCPtr), true);
2723 if (NDalicPINVOKE.SWIGPendingException.Pending)
2724 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2728 internal Vector3 GetCurrentWorldPosition()
2730 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldPosition(swigCPtr), true);
2731 if (NDalicPINVOKE.SWIGPendingException.Pending)
2732 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2736 internal void SetInheritPosition(bool inherit)
2738 NDalicPINVOKE.Actor_SetInheritPosition(swigCPtr, inherit);
2739 if (NDalicPINVOKE.SWIGPendingException.Pending)
2740 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2743 internal bool IsPositionInherited()
2745 bool ret = NDalicPINVOKE.Actor_IsPositionInherited(swigCPtr);
2746 if (NDalicPINVOKE.SWIGPendingException.Pending)
2747 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2751 internal void SetOrientation(Degree angle, Vector3 axis)
2753 NDalicPINVOKE.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2754 if (NDalicPINVOKE.SWIGPendingException.Pending)
2755 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2758 internal void SetOrientation(Radian angle, Vector3 axis)
2760 NDalicPINVOKE.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2761 if (NDalicPINVOKE.SWIGPendingException.Pending)
2762 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2765 internal void SetOrientation(Rotation orientation)
2767 NDalicPINVOKE.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
2768 if (NDalicPINVOKE.SWIGPendingException.Pending)
2769 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2772 internal void RotateBy(Degree angle, Vector3 axis)
2774 NDalicPINVOKE.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2775 if (NDalicPINVOKE.SWIGPendingException.Pending)
2776 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2779 internal void RotateBy(Radian angle, Vector3 axis)
2781 NDalicPINVOKE.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2782 if (NDalicPINVOKE.SWIGPendingException.Pending)
2783 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2786 internal void RotateBy(Rotation relativeRotation)
2788 NDalicPINVOKE.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
2789 if (NDalicPINVOKE.SWIGPendingException.Pending)
2790 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2793 internal Rotation GetCurrentOrientation()
2795 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentOrientation(swigCPtr), true);
2796 if (NDalicPINVOKE.SWIGPendingException.Pending)
2797 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2801 internal void SetInheritOrientation(bool inherit)
2803 NDalicPINVOKE.Actor_SetInheritOrientation(swigCPtr, inherit);
2804 if (NDalicPINVOKE.SWIGPendingException.Pending)
2805 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2808 internal bool IsOrientationInherited()
2810 bool ret = NDalicPINVOKE.Actor_IsOrientationInherited(swigCPtr);
2811 if (NDalicPINVOKE.SWIGPendingException.Pending)
2812 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2816 internal Rotation GetCurrentWorldOrientation()
2818 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentWorldOrientation(swigCPtr), true);
2819 if (NDalicPINVOKE.SWIGPendingException.Pending)
2820 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2824 internal void SetScale(float scale)
2826 NDalicPINVOKE.Actor_SetScale__SWIG_0(swigCPtr, scale);
2827 if (NDalicPINVOKE.SWIGPendingException.Pending)
2828 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2831 internal void SetScale(float scaleX, float scaleY, float scaleZ)
2833 NDalicPINVOKE.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
2834 if (NDalicPINVOKE.SWIGPendingException.Pending)
2835 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2838 internal void SetScale(Vector3 scale)
2840 NDalicPINVOKE.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
2841 if (NDalicPINVOKE.SWIGPendingException.Pending)
2842 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2845 internal void ScaleBy(Vector3 relativeScale)
2847 NDalicPINVOKE.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
2848 if (NDalicPINVOKE.SWIGPendingException.Pending)
2849 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2852 internal Vector3 GetCurrentScale()
2854 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentScale(swigCPtr), true);
2855 if (NDalicPINVOKE.SWIGPendingException.Pending)
2856 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2860 internal Vector3 GetCurrentWorldScale()
2862 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldScale(swigCPtr), true);
2863 if (NDalicPINVOKE.SWIGPendingException.Pending)
2864 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2868 internal void SetInheritScale(bool inherit)
2870 NDalicPINVOKE.Actor_SetInheritScale(swigCPtr, inherit);
2871 if (NDalicPINVOKE.SWIGPendingException.Pending)
2872 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2875 internal bool IsScaleInherited()
2877 bool ret = NDalicPINVOKE.Actor_IsScaleInherited(swigCPtr);
2878 if (NDalicPINVOKE.SWIGPendingException.Pending)
2879 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2883 internal Matrix GetCurrentWorldMatrix()
2885 Matrix ret = new Matrix(NDalicPINVOKE.Actor_GetCurrentWorldMatrix(swigCPtr), true);
2886 if (NDalicPINVOKE.SWIGPendingException.Pending)
2887 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2891 internal void SetVisible(bool visible)
2893 NDalicPINVOKE.Actor_SetVisible(swigCPtr, visible);
2894 if (NDalicPINVOKE.SWIGPendingException.Pending)
2895 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2898 internal bool IsVisible()
2900 bool ret = NDalicPINVOKE.Actor_IsVisible(swigCPtr);
2901 if (NDalicPINVOKE.SWIGPendingException.Pending)
2902 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2906 internal void SetOpacity(float opacity)
2908 NDalicPINVOKE.Actor_SetOpacity(swigCPtr, opacity);
2909 if (NDalicPINVOKE.SWIGPendingException.Pending)
2910 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2913 internal float GetCurrentOpacity()
2915 float ret = NDalicPINVOKE.Actor_GetCurrentOpacity(swigCPtr);
2916 if (NDalicPINVOKE.SWIGPendingException.Pending)
2917 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2921 internal void SetColor(Vector4 color)
2923 NDalicPINVOKE.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
2924 if (NDalicPINVOKE.SWIGPendingException.Pending)
2925 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2928 internal Vector4 GetCurrentColor()
2930 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentColor(swigCPtr), true);
2931 if (NDalicPINVOKE.SWIGPendingException.Pending)
2932 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2936 internal void SetColorMode(ColorMode colorMode)
2938 NDalicPINVOKE.Actor_SetColorMode(swigCPtr, (int)colorMode);
2939 if (NDalicPINVOKE.SWIGPendingException.Pending)
2940 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2943 internal ColorMode GetColorMode()
2945 ColorMode ret = (ColorMode)NDalicPINVOKE.Actor_GetColorMode(swigCPtr);
2946 if (NDalicPINVOKE.SWIGPendingException.Pending)
2947 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2951 internal Vector4 GetCurrentWorldColor()
2953 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentWorldColor(swigCPtr), true);
2954 if (NDalicPINVOKE.SWIGPendingException.Pending)
2955 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2959 internal void SetDrawMode(DrawModeType drawMode)
2961 NDalicPINVOKE.Actor_SetDrawMode(swigCPtr, (int)drawMode);
2962 if (NDalicPINVOKE.SWIGPendingException.Pending)
2963 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2966 internal DrawModeType GetDrawMode()
2968 DrawModeType ret = (DrawModeType)NDalicPINVOKE.Actor_GetDrawMode(swigCPtr);
2969 if (NDalicPINVOKE.SWIGPendingException.Pending)
2970 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2975 /// Converts screen coordinates into the view's coordinate system using the default camera.
2977 /// <pre>The view has been initialized.</pre>
2978 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
2979 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
2980 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
2981 /// <param name="screenX">The screen X-coordinate.</param>
2982 /// <param name="screenY">The screen Y-coordinate.</param>
2983 /// <returns>True if the conversion succeeded.</returns>
2984 /// <since_tizen> 3 </since_tizen>
2985 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
2987 bool ret = NDalicPINVOKE.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
2988 if (NDalicPINVOKE.SWIGPendingException.Pending)
2989 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2993 internal void SetKeyboardFocusable(bool focusable)
2995 NDalicPINVOKE.Actor_SetKeyboardFocusable(swigCPtr, focusable);
2996 if (NDalicPINVOKE.SWIGPendingException.Pending)
2997 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3000 internal bool IsKeyboardFocusable()
3002 bool ret = NDalicPINVOKE.Actor_IsKeyboardFocusable(swigCPtr);
3003 if (NDalicPINVOKE.SWIGPendingException.Pending)
3004 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3008 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
3010 NDalicPINVOKE.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
3011 if (NDalicPINVOKE.SWIGPendingException.Pending)
3012 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3015 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
3017 ResizePolicyType ret = (ResizePolicyType)NDalicPINVOKE.Actor_GetResizePolicy(swigCPtr, (int)dimension);
3018 if (NDalicPINVOKE.SWIGPendingException.Pending)
3019 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3024 /// Sets the relative to parent size factor of the view.<br />
3025 /// This factor is only used when ResizePolicy is set to either:
3026 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
3027 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
3029 /// <pre>The view has been initialized.</pre>
3030 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
3031 /// <since_tizen> 3 </since_tizen>
3032 public void SetSizeModeFactor(Vector3 factor)
3034 NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
3035 if (NDalicPINVOKE.SWIGPendingException.Pending)
3036 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3039 internal Vector3 GetSizeModeFactor()
3041 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetSizeModeFactor(swigCPtr), true);
3042 if (NDalicPINVOKE.SWIGPendingException.Pending)
3043 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3048 /// Calculates the height of the view given a width.<br />
3049 /// The natural size is used for default calculation.<br />
3050 /// Size 0 is treated as aspect ratio 1:1.<br />
3052 /// <param name="width">The width to use.</param>
3053 /// <returns>The height based on the width.</returns>
3054 /// <since_tizen> 3 </since_tizen>
3055 public float GetHeightForWidth(float width)
3057 float ret = NDalicPINVOKE.Actor_GetHeightForWidth(swigCPtr, width);
3058 if (NDalicPINVOKE.SWIGPendingException.Pending)
3059 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3064 /// Calculates the width of the view given a height.<br />
3065 /// The natural size is used for default calculation.<br />
3066 /// Size 0 is treated as aspect ratio 1:1.<br />
3068 /// <param name="height">The height to use.</param>
3069 /// <returns>The width based on the height.</returns>
3070 /// <since_tizen> 3 </since_tizen>
3071 public float GetWidthForHeight(float height)
3073 float ret = NDalicPINVOKE.Actor_GetWidthForHeight(swigCPtr, height);
3074 if (NDalicPINVOKE.SWIGPendingException.Pending)
3075 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3080 /// Return the amount of size allocated for relayout.
3082 /// <param name="dimension">The dimension to retrieve.</param>
3083 /// <returns>Return the size.</returns>
3084 /// <since_tizen> 3 </since_tizen>
3085 public float GetRelayoutSize(DimensionType dimension)
3087 float ret = NDalicPINVOKE.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
3088 if (NDalicPINVOKE.SWIGPendingException.Pending)
3089 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3094 /// Set the padding for the view.
3096 /// <param name="padding">Padding for the view.</param>
3097 /// <since_tizen> 3 </since_tizen>
3098 public void SetPadding(PaddingType padding)
3100 NDalicPINVOKE.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
3101 if (NDalicPINVOKE.SWIGPendingException.Pending)
3102 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3106 /// Return the value of padding for the view.
3108 /// <param name="paddingOut">the value of padding for the view</param>
3109 /// <since_tizen> 3 </since_tizen>
3110 public void GetPadding(PaddingType paddingOut)
3112 NDalicPINVOKE.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
3113 if (NDalicPINVOKE.SWIGPendingException.Pending)
3114 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3117 internal void SetMinimumSize(Vector2 size)
3119 NDalicPINVOKE.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
3120 if (NDalicPINVOKE.SWIGPendingException.Pending)
3121 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3124 internal Vector2 GetMinimumSize()
3126 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMinimumSize(swigCPtr), true);
3127 if (NDalicPINVOKE.SWIGPendingException.Pending)
3128 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3132 internal void SetMaximumSize(Vector2 size)
3134 NDalicPINVOKE.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
3135 if (NDalicPINVOKE.SWIGPendingException.Pending)
3136 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3139 internal Vector2 GetMaximumSize()
3141 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMaximumSize(swigCPtr), true);
3142 if (NDalicPINVOKE.SWIGPendingException.Pending)
3143 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3147 internal int GetHierarchyDepth()
3149 int ret = NDalicPINVOKE.Actor_GetHierarchyDepth(swigCPtr);
3150 if (NDalicPINVOKE.SWIGPendingException.Pending)
3151 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3155 /// <since_tizen> 4 </since_tizen>
3156 public uint AddRenderer(Renderer renderer)
3158 uint ret = NDalicPINVOKE.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
3159 if (NDalicPINVOKE.SWIGPendingException.Pending)
3160 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3164 internal uint GetRendererCount()
3166 uint ret = NDalicPINVOKE.Actor_GetRendererCount(swigCPtr);
3167 if (NDalicPINVOKE.SWIGPendingException.Pending)
3168 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3172 /// <since_tizen> 4 </since_tizen>
3173 public Renderer GetRendererAt(uint index)
3175 IntPtr cPtr = NDalicPINVOKE.Actor_GetRendererAt(swigCPtr, index);
3176 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Renderer;
3178 if (NDalicPINVOKE.SWIGPendingException.Pending)
3179 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3183 /// <since_tizen> 4 </since_tizen>
3184 public void RemoveRenderer(Renderer renderer)
3186 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
3187 if (NDalicPINVOKE.SWIGPendingException.Pending)
3188 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3191 /// <since_tizen> 4 </since_tizen>
3192 public void RemoveRenderer(uint index)
3194 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
3195 if (NDalicPINVOKE.SWIGPendingException.Pending)
3196 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3199 internal TouchDataSignal TouchSignal()
3201 TouchDataSignal ret = new TouchDataSignal(NDalicPINVOKE.Actor_TouchSignal(swigCPtr), false);
3202 if (NDalicPINVOKE.SWIGPendingException.Pending)
3203 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3207 internal HoverSignal HoveredSignal()
3209 HoverSignal ret = new HoverSignal(NDalicPINVOKE.Actor_HoveredSignal(swigCPtr), false);
3210 if (NDalicPINVOKE.SWIGPendingException.Pending)
3211 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3215 internal WheelSignal WheelEventSignal()
3217 WheelSignal ret = new WheelSignal(NDalicPINVOKE.Actor_WheelEventSignal(swigCPtr), false);
3218 if (NDalicPINVOKE.SWIGPendingException.Pending)
3219 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3223 internal ViewSignal OnWindowSignal()
3225 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
3226 if (NDalicPINVOKE.SWIGPendingException.Pending)
3227 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3231 internal ViewSignal OffWindowSignal()
3233 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OffStageSignal(swigCPtr), false);
3234 if (NDalicPINVOKE.SWIGPendingException.Pending)
3235 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3239 internal ViewSignal OnRelayoutSignal()
3241 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnRelayoutSignal(swigCPtr), false);
3242 if (NDalicPINVOKE.SWIGPendingException.Pending)
3243 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3247 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view) {
3248 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(NDalicPINVOKE.VisibilityChangedSignal(View.getCPtr(view)), false);
3249 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3254 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view) {
3255 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(NDalicManualPINVOKE.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
3256 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3261 internal ViewSignal ResourcesLoadedSignal()
3263 ViewSignal ret = new ViewSignal(NDalicPINVOKE.ResourceReadySignal(swigCPtr), false);
3264 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3269 /// Gets or sets the origin of a view within its parent's area.<br />
3270 /// 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 />
3271 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
3272 /// A view's position is the distance between this origin and the view's anchor-point.<br />
3274 /// <pre>The view has been initialized.</pre>
3275 /// <since_tizen> 3 </since_tizen>
3276 public Position ParentOrigin
3280 Position temp = new Position(0.0f, 0.0f, 0.0f);
3281 GetProperty(View.Property.PARENT_ORIGIN).Get(temp);
3286 SetProperty(View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue(value));
3290 internal float ParentOriginX
3295 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3300 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3304 internal float ParentOriginY
3309 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3314 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3318 internal float ParentOriginZ
3323 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3328 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3333 /// Gets or sets the anchor-point of a view.<br />
3334 /// 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 />
3335 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
3336 /// A view position is the distance between its parent-origin and this anchor-point.<br />
3337 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
3338 /// <pre>The view has been initialized.</pre>
3340 /// <since_tizen> 3 </since_tizen>
3341 public Position PivotPoint
3345 Position temp = new Position(0.0f, 0.0f, 0.0f);
3346 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3351 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3355 internal float PivotPointX
3360 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3365 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3369 internal float PivotPointY
3374 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3379 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3383 internal float PivotPointZ
3388 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3393 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3398 /// Gets or sets the size width of the view.
3400 /// <since_tizen> 3 </since_tizen>
3401 public float SizeWidth
3406 GetProperty(View.Property.SIZE_WIDTH).Get(out temp);
3411 SetProperty(View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
3416 /// Gets or sets the size height of the view.
3418 /// <since_tizen> 3 </since_tizen>
3419 public float SizeHeight
3424 GetProperty(View.Property.SIZE_HEIGHT).Get(out temp);
3429 SetProperty(View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3434 /// Gets or sets the position of the view.<br />
3435 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
3436 /// If the position inheritance is disabled, sets the world position.<br />
3438 /// <since_tizen> 3 </since_tizen>
3439 public Position Position
3443 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3444 GetProperty(View.Property.POSITION).Get(temp);
3449 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(value));
3454 /// Gets or sets the position X of the view.
3456 /// <since_tizen> 3 </since_tizen>
3457 public float PositionX
3462 GetProperty(View.Property.POSITION_X).Get(out temp);
3467 SetProperty(View.Property.POSITION_X, new Tizen.NUI.PropertyValue(value));
3472 /// Gets or sets the position Y of the view.
3474 /// <since_tizen> 3 </since_tizen>
3475 public float PositionY
3480 GetProperty(View.Property.POSITION_Y).Get(out temp);
3485 SetProperty(View.Property.POSITION_Y, new Tizen.NUI.PropertyValue(value));
3490 /// Gets or sets the position Z of the view.
3492 /// <since_tizen> 3 </since_tizen>
3493 public float PositionZ
3498 GetProperty(View.Property.POSITION_Z).Get(out temp);
3503 SetProperty(View.Property.POSITION_Z, new Tizen.NUI.PropertyValue(value));
3508 /// Gets or sets the world position of the view.
3510 /// <since_tizen> 3 </since_tizen>
3511 public Vector3 WorldPosition
3515 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3516 GetProperty(View.Property.WORLD_POSITION).Get(temp);
3521 internal float WorldPositionX
3526 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3531 internal float WorldPositionY
3536 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3541 internal float WorldPositionZ
3546 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3552 /// Gets or sets the orientation of the view.<br />
3553 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
3555 /// <remarks>This is an asynchronous method.</remarks>
3556 /// <since_tizen> 3 </since_tizen>
3557 public Rotation Orientation
3561 Rotation temp = new Rotation();
3562 GetProperty(View.Property.ORIENTATION).Get(temp);
3567 SetProperty(View.Property.ORIENTATION, new Tizen.NUI.PropertyValue(value));
3572 /// Gets or sets the world orientation of the view.<br />
3574 /// <since_tizen> 3 </since_tizen>
3575 public Rotation WorldOrientation
3579 Rotation temp = new Rotation();
3580 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
3586 /// Gets or sets the scale factor applied to the view.<br />
3588 /// <since_tizen> 3 </since_tizen>
3589 public Vector3 Scale
3593 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3594 GetProperty(View.Property.SCALE).Get(temp);
3599 SetProperty(View.Property.SCALE, new Tizen.NUI.PropertyValue(value));
3604 /// Gets or sets the scale X factor applied to the view.
3606 /// <since_tizen> 3 </since_tizen>
3612 GetProperty(View.Property.SCALE_X).Get(out temp);
3617 SetProperty(View.Property.SCALE_X, new Tizen.NUI.PropertyValue(value));
3622 /// Gets or sets the scale Y factor applied to the view.
3624 /// <since_tizen> 3 </since_tizen>
3630 GetProperty(View.Property.SCALE_Y).Get(out temp);
3635 SetProperty(View.Property.SCALE_Y, new Tizen.NUI.PropertyValue(value));
3640 /// Gets or sets the scale Z factor applied to the view.
3642 /// <since_tizen> 3 </since_tizen>
3648 GetProperty(View.Property.SCALE_Z).Get(out temp);
3653 SetProperty(View.Property.SCALE_Z, new Tizen.NUI.PropertyValue(value));
3658 /// Gets the world scale of the view.
3660 /// <since_tizen> 3 </since_tizen>
3661 public Vector3 WorldScale
3665 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3666 GetProperty(View.Property.WORLD_SCALE).Get(temp);
3672 /// Retrieves the visibility flag of the view.
3675 /// If the view is not visible, then the view and its children will not be rendered.
3676 /// 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.
3678 /// <since_tizen> 3 </since_tizen>
3679 public bool Visibility
3684 GetProperty(View.Property.VISIBLE).Get(out temp);
3690 /// Gets the view's world color.
3692 /// <since_tizen> 3 </since_tizen>
3693 public Vector4 WorldColor
3697 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3698 GetProperty(View.Property.WORLD_COLOR).Get(temp);
3703 internal Matrix WorldMatrix
3707 Matrix temp = new Matrix();
3708 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3714 /// Gets or sets the view's name.
3716 /// <since_tizen> 3 </since_tizen>
3722 GetProperty(View.Property.NAME).Get(out temp);
3727 SetProperty(View.Property.NAME, new Tizen.NUI.PropertyValue(value));
3732 /// Get the number of children held by the view.
3734 /// <since_tizen> 3 </since_tizen>
3735 public new uint ChildCount
3739 return GetChildCount();
3744 /// Gets the view's ID.
3747 /// <since_tizen> 3 </since_tizen>
3757 /// Gets or sets the status of whether the view should emit touch or hover signals.
3759 /// <since_tizen> 3 </since_tizen>
3760 public bool Sensitive
3765 GetProperty(View.Property.SENSITIVE).Get(out temp);
3770 SetProperty(View.Property.SENSITIVE, new Tizen.NUI.PropertyValue(value));
3775 /// 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.
3777 /// <since_tizen> 3 </since_tizen>
3778 public bool LeaveRequired
3783 GetProperty(View.Property.LEAVE_REQUIRED).Get(out temp);
3788 SetProperty(View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue(value));
3793 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
3795 /// <since_tizen> 3 </since_tizen>
3796 public bool InheritOrientation
3801 GetProperty(View.Property.INHERIT_ORIENTATION).Get(out temp);
3806 SetProperty(View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue(value));
3811 /// Gets or sets the status of whether a child view inherits it's parent's scale.
3813 /// <since_tizen> 3 </since_tizen>
3814 public bool InheritScale
3819 GetProperty(View.Property.INHERIT_SCALE).Get(out temp);
3824 SetProperty(View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue(value));
3829 /// Gets or sets the status of how the view and its children should be drawn.<br />
3830 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
3831 /// 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 />
3832 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
3833 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
3834 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
3836 /// <since_tizen> 3 </since_tizen>
3837 public DrawModeType DrawMode
3842 if (GetProperty(View.Property.DRAW_MODE).Get(out temp) == false)
3844 NUILog.Error("DrawMode get error!");
3849 return DrawModeType.Normal;
3851 return DrawModeType.Overlay2D;
3853 return DrawModeType.Stencil;
3855 return DrawModeType.Normal;
3860 SetProperty(View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)value));
3865 /// Gets or sets the relative to parent size factor of the view.<br />
3866 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
3867 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
3869 /// <since_tizen> 3 </since_tizen>
3870 public Vector3 SizeModeFactor
3874 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3875 GetProperty(View.Property.SIZE_MODE_FACTOR).Get(temp);
3880 SetProperty(View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue(value));
3885 /// Gets or sets the width resize policy to be used.
3887 /// <since_tizen> 3 </since_tizen>
3888 public ResizePolicyType WidthResizePolicy
3893 if (GetProperty(View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
3895 NUILog.Error("WidthResizePolicy get error!");
3900 return ResizePolicyType.Fixed;
3901 case "USE_NATURAL_SIZE":
3902 return ResizePolicyType.UseNaturalSize;
3903 case "FILL_TO_PARENT":
3904 return ResizePolicyType.FillToParent;
3905 case "SIZE_RELATIVE_TO_PARENT":
3906 return ResizePolicyType.SizeRelativeToParent;
3907 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3908 return ResizePolicyType.SizeFixedOffsetFromParent;
3909 case "FIT_TO_CHILDREN":
3910 return ResizePolicyType.FitToChildren;
3911 case "DIMENSION_DEPENDENCY":
3912 return ResizePolicyType.DimensionDependency;
3913 case "USE_ASSIGNED_SIZE":
3914 return ResizePolicyType.UseAssignedSize;
3916 return ResizePolicyType.Fixed;
3921 SetProperty(View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3926 /// Gets or sets the height resize policy to be used.
3928 /// <since_tizen> 3 </since_tizen>
3929 public ResizePolicyType HeightResizePolicy
3934 if (GetProperty(View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
3936 NUILog.Error("HeightResizePolicy get error!");
3941 return ResizePolicyType.Fixed;
3942 case "USE_NATURAL_SIZE":
3943 return ResizePolicyType.UseNaturalSize;
3944 case "FILL_TO_PARENT":
3945 return ResizePolicyType.FillToParent;
3946 case "SIZE_RELATIVE_TO_PARENT":
3947 return ResizePolicyType.SizeRelativeToParent;
3948 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3949 return ResizePolicyType.SizeFixedOffsetFromParent;
3950 case "FIT_TO_CHILDREN":
3951 return ResizePolicyType.FitToChildren;
3952 case "DIMENSION_DEPENDENCY":
3953 return ResizePolicyType.DimensionDependency;
3954 case "USE_ASSIGNED_SIZE":
3955 return ResizePolicyType.UseAssignedSize;
3957 return ResizePolicyType.Fixed;
3962 SetProperty(View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3967 /// Gets or sets the policy to use when setting size with size negotiation.<br />
3968 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3970 /// <since_tizen> 3 </since_tizen>
3971 public SizeScalePolicyType SizeScalePolicy
3976 if (GetProperty(View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
3978 NUILog.Error("SizeScalePolicy get error!");
3982 case "USE_SIZE_SET":
3983 return SizeScalePolicyType.UseSizeSet;
3984 case "FIT_WITH_ASPECT_RATIO":
3985 return SizeScalePolicyType.FitWithAspectRatio;
3986 case "FILL_WITH_ASPECT_RATIO":
3987 return SizeScalePolicyType.FillWithAspectRatio;
3989 return SizeScalePolicyType.UseSizeSet;
3994 string valueToString = "";
3997 case SizeScalePolicyType.UseSizeSet:
3999 valueToString = "USE_SIZE_SET";
4002 case SizeScalePolicyType.FitWithAspectRatio:
4004 valueToString = "FIT_WITH_ASPECT_RATIO";
4007 case SizeScalePolicyType.FillWithAspectRatio:
4009 valueToString = "FILL_WITH_ASPECT_RATIO";
4014 valueToString = "USE_SIZE_SET";
4018 SetProperty(View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
4023 /// Gets or sets the status of whether the width size is dependent on the height size.
4025 /// <since_tizen> 3 </since_tizen>
4026 public bool WidthForHeight
4031 GetProperty(View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
4036 SetProperty(View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue(value));
4041 /// Gets or sets the status of whether the height size is dependent on the width size.
4043 /// <since_tizen> 3 </since_tizen>
4044 public bool HeightForWidth
4049 GetProperty(View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
4054 SetProperty(View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue(value));
4059 /// Gets or sets the padding for use in layout.
4061 /// <since_tizen> 3 </since_tizen>
4062 public Vector4 Padding
4066 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
4067 GetProperty(View.Property.PADDING).Get(temp);
4072 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
4077 /// Gets or sets the minimum size the view can be assigned in size negotiation.
4079 /// <since_tizen> 3 </since_tizen>
4080 public Size2D MinimumSize
4084 Size2D temp = new Size2D(0, 0);
4085 GetProperty(View.Property.MINIMUM_SIZE).Get(temp);
4090 SetProperty(View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4095 /// Gets or sets the maximum size the view can be assigned in size negotiation.
4097 /// <since_tizen> 3 </since_tizen>
4098 public Size2D MaximumSize
4102 Size2D temp = new Size2D(0, 0);
4103 GetProperty(View.Property.MAXIMUM_SIZE).Get(temp);
4108 SetProperty(View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4113 /// Gets or sets whether a child view inherits it's parent's position.<br />
4114 /// Default is to inherit.<br />
4115 /// 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 />
4117 /// <since_tizen> 3 </since_tizen>
4118 public bool InheritPosition
4123 GetProperty(View.Property.INHERIT_POSITION).Get(out temp);
4128 SetProperty(View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue(value));
4133 /// Gets or sets the clipping behavior (mode) of it's children.
4135 /// <since_tizen> 3 </since_tizen>
4136 public ClippingModeType ClippingMode
4141 if (GetProperty(View.Property.CLIPPING_MODE).Get(out temp) == false)
4143 NUILog.Error("ClippingMode get error!");
4148 return ClippingModeType.Disabled;
4149 case "CLIP_CHILDREN":
4150 return ClippingModeType.ClipChildren;
4151 case "CLIP_TO_BOUNDING_BOX":
4152 return ClippingModeType.ClipToBoundingBox;
4154 return ClippingModeType.Disabled;
4159 SetProperty(View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)value));
4164 /// Gets the number of renderers held by the view.
4166 /// <since_tizen> 4 </since_tizen>
4167 public uint RendererCount
4171 return GetRendererCount();
4178 /// [Obsolete("Please do not use! this will be deprecated")]
4180 /// <since_tizen> 3 </since_tizen>
4181 /// Please do not use! this will be deprecated!
4182 /// Instead please use TouchEvent.
4183 [Obsolete("Please do not use! this will be deprecated, instead please use TouchEvent.")]
4184 [EditorBrowsable(EditorBrowsableState.Never)]
4185 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> Touched
4189 if (_touchDataEventHandler == null)
4191 _touchDataCallback = OnTouch;
4192 this.TouchSignal().Connect(_touchDataCallback);
4195 _touchDataEventHandler += value;
4200 _touchDataEventHandler -= value;
4202 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
4204 this.TouchSignal().Disconnect(_touchDataCallback);
4211 /// [Obsolete("Please do not use! this will be deprecated")]
4213 /// <since_tizen> 3 </since_tizen>
4214 /// Please do not use! this will be deprecated!
4215 /// Instead please use HoverEvent.
4216 [Obsolete("Please do not use! this will be deprecated, instead please use HoverEvent.")]
4217 [EditorBrowsable(EditorBrowsableState.Never)]
4218 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> Hovered
4222 if (_hoverEventHandler == null)
4224 _hoverEventCallback = OnHoverEvent;
4225 this.HoveredSignal().Connect(_hoverEventCallback);
4228 _hoverEventHandler += value;
4233 _hoverEventHandler -= value;
4235 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
4237 this.HoveredSignal().Disconnect(_hoverEventCallback);
4244 /// Please do not use! this will be deprecated.
4246 /// <since_tizen> 3 </since_tizen>
4247 /// Please do not use! this will be deprecated!
4248 /// Instead please use WheelEvent.
4249 [Obsolete("Please do not use! this will be deprecated, instead please use WheelEvent.")]
4250 [EditorBrowsable(EditorBrowsableState.Never)]
4251 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelMoved
4255 if (_wheelEventHandler == null)
4257 _wheelEventCallback = OnWheelEvent;
4258 this.WheelEventSignal().Connect(_wheelEventCallback);
4261 _wheelEventHandler += value;
4266 _wheelEventHandler -= value;
4268 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
4270 this.WheelEventSignal().Disconnect(_wheelEventCallback);
4277 /// [Obsolete("Please do not use! this will be deprecated")]
4279 /// <since_tizen> 3 </since_tizen>
4280 /// Please do not use! this will be deprecated!
4281 /// Instead please use PivotPoint.
4282 [Obsolete("Please do not use! this will be deprecated, instead please use PivotPoint")]
4283 [EditorBrowsable(EditorBrowsableState.Never)]
4284 public Position AnchorPoint
4288 Position temp = new Position(0.0f, 0.0f, 0.0f);
4289 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
4294 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
4299 /// [Obsolete("Please do not use! this will be deprecated")]
4301 /// <since_tizen> 3 </since_tizen>
4302 [Obsolete("Please do not use! this will be deprecated, please use Size2D instead")]
4307 Size temp = new Size(0.0f, 0.0f, 0.0f);
4308 GetProperty(View.Property.SIZE).Get(temp);
4313 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(value));
4318 /// [Obsolete("Please do not use! this will be deprecated")]
4320 /// <since_tizen> 3 </since_tizen>
4321 /// Please do not use! this will be deprecated!
4322 /// Instead please use AddedToWindow.
4323 [Obsolete("Please do not use! this will be deprecated, instead please use AddedToWindow")]
4324 [EditorBrowsable(EditorBrowsableState.Never)]
4325 public event EventHandler OnWindowEvent
4329 if (_onWindowEventHandler == null)
4331 _onWindowEventCallback = OnWindow;
4332 this.OnWindowSignal().Connect(_onWindowEventCallback);
4335 _onWindowEventHandler += value;
4340 _onWindowEventHandler -= value;
4342 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
4344 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
4350 /// [Obsolete("Please do not use! this will be deprecated")]
4352 /// <since_tizen> 3 </since_tizen>
4353 /// Please do not use! this will be deprecated!
4354 /// Instead please use RemovedFromWindow.
4355 [Obsolete("Please do not use! this will be deprecated, instead please use RemovedFromWindow")]
4356 [EditorBrowsable(EditorBrowsableState.Never)]
4357 public event EventHandler OffWindowEvent
4361 if (_offWindowEventHandler == null)
4363 _offWindowEventCallback = OffWindow;
4364 this.OffWindowSignal().Connect(_offWindowEventCallback);
4367 _offWindowEventHandler += value;
4372 _offWindowEventHandler -= value;
4374 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
4376 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
4382 /// [Obsolete("Please do not use! this will be deprecated")]
4384 /// <since_tizen> 3 </since_tizen>
4385 /// Please do not use! this will be deprecated!
4386 /// Instead please use Relayout.
4387 [Obsolete("Please do not use! this will be deprecated, instead please use Relayout")]
4388 [EditorBrowsable(EditorBrowsableState.Never)]
4389 public event EventHandler OnRelayoutEvent
4393 if (_onRelayoutEventHandler == null)
4395 _onRelayoutEventCallback = OnRelayout;
4396 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
4399 _onRelayoutEventHandler += value;
4404 _onRelayoutEventHandler -= value;
4406 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
4408 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
4415 /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4417 /// <since_tizen> 3 </since_tizen>
4418 //"Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4419 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
4420 public new View Parent
4425 IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
4427 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
4429 if (basehandle is Layer)
4431 ret = new View(cPtr, false);
4435 ret = basehandle as View;
4438 if (NDalicPINVOKE.SWIGPendingException.Pending)
4439 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4445 /// Gets/Sets whether inherit parent's the layout Direction.
4447 /// <since_tizen> 4 </since_tizen>
4448 public bool InheritLayoutDirection
4453 GetProperty(View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
4458 SetProperty(View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue(value));
4463 /// Gets/Sets the layout Direction.
4465 /// <since_tizen> 4 </since_tizen>
4466 public ViewLayoutDirectionType LayoutDirection
4471 if (GetProperty(View.Property.LAYOUT_DIRECTION).Get(out temp) == false)
4473 NUILog.Error("LAYOUT_DIRECTION get error!");
4475 return (ViewLayoutDirectionType)temp;
4479 SetProperty(View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)value));
4484 /// Gets or sets the Margin for use in layout.
4486 public Extents Margin
4490 Extents temp = new Extents(0, 0, 0, 0);
4491 GetProperty(View.Property.MARGIN).Get(temp);
4496 SetProperty(View.Property.MARGIN, new Tizen.NUI.PropertyValue(value));
4501 /// Gets or sets the Padding for use in layout.
4503 public Extents PaddingEX
4507 Extents temp = new Extents(0, 0, 0, 0);
4508 GetProperty(View.Property.PADDINGEX).Get(temp);
4513 SetProperty(View.Property.PADDINGEX, new Tizen.NUI.PropertyValue(value));
4519 /// The View layout Direction type.
4521 /// <since_tizen> 4 </since_tizen>
4522 public enum ViewLayoutDirectionType