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();
2532 internal Layer GetLayer()
2534 IntPtr cPtr = NDalicPINVOKE.Actor_GetLayer(swigCPtr);
2535 Layer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Layer;
2537 if (NDalicPINVOKE.SWIGPendingException.Pending)
2538 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2543 /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
2545 /// <pre>The (child) view has been initialized. </pre>
2546 /// <since_tizen> 4 </since_tizen>
2547 public void Unparent()
2549 GetParent()?.Remove(this);
2553 /// Search through this view's hierarchy for a view with the given name.
2554 /// The view itself is also considered in the search.
2556 /// <pre>The view has been initialized.</pre>
2557 /// <param name="viewName">The name of the view to find.</param>
2558 /// <returns>A handle to the view if found, or an empty handle if not.</returns>
2559 /// <since_tizen> 3 </since_tizen>
2560 public View FindChildByName(string viewName)
2562 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildByName(swigCPtr, viewName);
2564 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2566 if (NDalicPINVOKE.SWIGPendingException.Pending)
2567 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2571 internal View FindChildById(uint id)
2573 IntPtr cPtr = NDalicPINVOKE.Actor_FindChildById(swigCPtr, id);
2575 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
2577 if (NDalicPINVOKE.SWIGPendingException.Pending)
2578 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2582 internal void SetParentOrigin(Vector3 origin)
2584 NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
2585 if (NDalicPINVOKE.SWIGPendingException.Pending)
2586 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2589 internal Vector3 GetCurrentParentOrigin()
2591 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentParentOrigin(swigCPtr), true);
2592 if (NDalicPINVOKE.SWIGPendingException.Pending)
2593 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2597 internal void SetAnchorPoint(Vector3 anchorPoint)
2599 NDalicPINVOKE.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
2600 if (NDalicPINVOKE.SWIGPendingException.Pending)
2601 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2604 internal Vector3 GetCurrentAnchorPoint()
2606 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentAnchorPoint(swigCPtr), true);
2607 if (NDalicPINVOKE.SWIGPendingException.Pending)
2608 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2612 internal void SetSize(float width, float height)
2614 NDalicPINVOKE.Actor_SetSize__SWIG_0(swigCPtr, width, height);
2615 if (NDalicPINVOKE.SWIGPendingException.Pending)
2616 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2619 internal void SetSize(float width, float height, float depth)
2621 NDalicPINVOKE.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
2622 if (NDalicPINVOKE.SWIGPendingException.Pending)
2623 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2626 internal void SetSize(Vector2 size)
2628 NDalicPINVOKE.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
2629 if (NDalicPINVOKE.SWIGPendingException.Pending)
2630 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2633 internal void SetSize(Vector3 size)
2635 NDalicPINVOKE.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
2636 if (NDalicPINVOKE.SWIGPendingException.Pending)
2637 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2640 internal Vector3 GetTargetSize()
2642 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetTargetSize(swigCPtr), true);
2643 if (NDalicPINVOKE.SWIGPendingException.Pending)
2644 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2648 internal Size2D GetCurrentSize()
2650 Size ret = new Size(NDalicPINVOKE.Actor_GetCurrentSize(swigCPtr), true);
2651 if (NDalicPINVOKE.SWIGPendingException.Pending)
2652 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2653 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
2657 internal Vector3 GetNaturalSize()
2659 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2660 if (NDalicPINVOKE.SWIGPendingException.Pending)
2661 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2665 internal void SetPosition(float x, float y)
2667 NDalicPINVOKE.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
2668 if (NDalicPINVOKE.SWIGPendingException.Pending)
2669 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2672 internal void SetPosition(float x, float y, float z)
2674 NDalicPINVOKE.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
2675 if (NDalicPINVOKE.SWIGPendingException.Pending)
2676 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2679 internal void SetPosition(Vector3 position)
2681 NDalicPINVOKE.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
2682 if (NDalicPINVOKE.SWIGPendingException.Pending)
2683 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2686 internal void SetX(float x)
2688 NDalicPINVOKE.Actor_SetX(swigCPtr, x);
2689 if (NDalicPINVOKE.SWIGPendingException.Pending)
2690 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2693 internal void SetY(float y)
2695 NDalicPINVOKE.Actor_SetY(swigCPtr, y);
2696 if (NDalicPINVOKE.SWIGPendingException.Pending)
2697 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2700 internal void SetZ(float z)
2702 NDalicPINVOKE.Actor_SetZ(swigCPtr, z);
2703 if (NDalicPINVOKE.SWIGPendingException.Pending)
2704 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2707 internal void TranslateBy(Vector3 distance)
2709 NDalicPINVOKE.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
2710 if (NDalicPINVOKE.SWIGPendingException.Pending)
2711 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2714 internal Position GetCurrentPosition()
2716 Position ret = new Position(NDalicPINVOKE.Actor_GetCurrentPosition(swigCPtr), true);
2717 if (NDalicPINVOKE.SWIGPendingException.Pending)
2718 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2722 internal Vector3 GetCurrentWorldPosition()
2724 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldPosition(swigCPtr), true);
2725 if (NDalicPINVOKE.SWIGPendingException.Pending)
2726 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2730 internal void SetInheritPosition(bool inherit)
2732 NDalicPINVOKE.Actor_SetInheritPosition(swigCPtr, inherit);
2733 if (NDalicPINVOKE.SWIGPendingException.Pending)
2734 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2737 internal bool IsPositionInherited()
2739 bool ret = NDalicPINVOKE.Actor_IsPositionInherited(swigCPtr);
2740 if (NDalicPINVOKE.SWIGPendingException.Pending)
2741 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2745 internal void SetOrientation(Degree angle, Vector3 axis)
2747 NDalicPINVOKE.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2748 if (NDalicPINVOKE.SWIGPendingException.Pending)
2749 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2752 internal void SetOrientation(Radian angle, Vector3 axis)
2754 NDalicPINVOKE.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2755 if (NDalicPINVOKE.SWIGPendingException.Pending)
2756 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2759 internal void SetOrientation(Rotation orientation)
2761 NDalicPINVOKE.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
2762 if (NDalicPINVOKE.SWIGPendingException.Pending)
2763 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2766 internal void RotateBy(Degree angle, Vector3 axis)
2768 NDalicPINVOKE.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2769 if (NDalicPINVOKE.SWIGPendingException.Pending)
2770 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2773 internal void RotateBy(Radian angle, Vector3 axis)
2775 NDalicPINVOKE.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2776 if (NDalicPINVOKE.SWIGPendingException.Pending)
2777 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2780 internal void RotateBy(Rotation relativeRotation)
2782 NDalicPINVOKE.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
2783 if (NDalicPINVOKE.SWIGPendingException.Pending)
2784 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2787 internal Rotation GetCurrentOrientation()
2789 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentOrientation(swigCPtr), true);
2790 if (NDalicPINVOKE.SWIGPendingException.Pending)
2791 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2795 internal void SetInheritOrientation(bool inherit)
2797 NDalicPINVOKE.Actor_SetInheritOrientation(swigCPtr, inherit);
2798 if (NDalicPINVOKE.SWIGPendingException.Pending)
2799 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2802 internal bool IsOrientationInherited()
2804 bool ret = NDalicPINVOKE.Actor_IsOrientationInherited(swigCPtr);
2805 if (NDalicPINVOKE.SWIGPendingException.Pending)
2806 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2810 internal Rotation GetCurrentWorldOrientation()
2812 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentWorldOrientation(swigCPtr), true);
2813 if (NDalicPINVOKE.SWIGPendingException.Pending)
2814 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2818 internal void SetScale(float scale)
2820 NDalicPINVOKE.Actor_SetScale__SWIG_0(swigCPtr, scale);
2821 if (NDalicPINVOKE.SWIGPendingException.Pending)
2822 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2825 internal void SetScale(float scaleX, float scaleY, float scaleZ)
2827 NDalicPINVOKE.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
2828 if (NDalicPINVOKE.SWIGPendingException.Pending)
2829 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2832 internal void SetScale(Vector3 scale)
2834 NDalicPINVOKE.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
2835 if (NDalicPINVOKE.SWIGPendingException.Pending)
2836 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2839 internal void ScaleBy(Vector3 relativeScale)
2841 NDalicPINVOKE.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
2842 if (NDalicPINVOKE.SWIGPendingException.Pending)
2843 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2846 internal Vector3 GetCurrentScale()
2848 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentScale(swigCPtr), true);
2849 if (NDalicPINVOKE.SWIGPendingException.Pending)
2850 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2854 internal Vector3 GetCurrentWorldScale()
2856 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldScale(swigCPtr), true);
2857 if (NDalicPINVOKE.SWIGPendingException.Pending)
2858 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2862 internal void SetInheritScale(bool inherit)
2864 NDalicPINVOKE.Actor_SetInheritScale(swigCPtr, inherit);
2865 if (NDalicPINVOKE.SWIGPendingException.Pending)
2866 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2869 internal bool IsScaleInherited()
2871 bool ret = NDalicPINVOKE.Actor_IsScaleInherited(swigCPtr);
2872 if (NDalicPINVOKE.SWIGPendingException.Pending)
2873 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2877 internal Matrix GetCurrentWorldMatrix()
2879 Matrix ret = new Matrix(NDalicPINVOKE.Actor_GetCurrentWorldMatrix(swigCPtr), true);
2880 if (NDalicPINVOKE.SWIGPendingException.Pending)
2881 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2885 internal void SetVisible(bool visible)
2887 NDalicPINVOKE.Actor_SetVisible(swigCPtr, visible);
2888 if (NDalicPINVOKE.SWIGPendingException.Pending)
2889 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2892 internal bool IsVisible()
2894 bool ret = NDalicPINVOKE.Actor_IsVisible(swigCPtr);
2895 if (NDalicPINVOKE.SWIGPendingException.Pending)
2896 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2900 internal void SetOpacity(float opacity)
2902 NDalicPINVOKE.Actor_SetOpacity(swigCPtr, opacity);
2903 if (NDalicPINVOKE.SWIGPendingException.Pending)
2904 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2907 internal float GetCurrentOpacity()
2909 float ret = NDalicPINVOKE.Actor_GetCurrentOpacity(swigCPtr);
2910 if (NDalicPINVOKE.SWIGPendingException.Pending)
2911 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2915 internal void SetColor(Vector4 color)
2917 NDalicPINVOKE.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
2918 if (NDalicPINVOKE.SWIGPendingException.Pending)
2919 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2922 internal Vector4 GetCurrentColor()
2924 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentColor(swigCPtr), true);
2925 if (NDalicPINVOKE.SWIGPendingException.Pending)
2926 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2930 internal void SetColorMode(ColorMode colorMode)
2932 NDalicPINVOKE.Actor_SetColorMode(swigCPtr, (int)colorMode);
2933 if (NDalicPINVOKE.SWIGPendingException.Pending)
2934 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2937 internal ColorMode GetColorMode()
2939 ColorMode ret = (ColorMode)NDalicPINVOKE.Actor_GetColorMode(swigCPtr);
2940 if (NDalicPINVOKE.SWIGPendingException.Pending)
2941 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2945 internal Vector4 GetCurrentWorldColor()
2947 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentWorldColor(swigCPtr), true);
2948 if (NDalicPINVOKE.SWIGPendingException.Pending)
2949 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2953 internal void SetDrawMode(DrawModeType drawMode)
2955 NDalicPINVOKE.Actor_SetDrawMode(swigCPtr, (int)drawMode);
2956 if (NDalicPINVOKE.SWIGPendingException.Pending)
2957 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2960 internal DrawModeType GetDrawMode()
2962 DrawModeType ret = (DrawModeType)NDalicPINVOKE.Actor_GetDrawMode(swigCPtr);
2963 if (NDalicPINVOKE.SWIGPendingException.Pending)
2964 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2969 /// Converts screen coordinates into the view's coordinate system using the default camera.
2971 /// <pre>The view has been initialized.</pre>
2972 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
2973 /// <param name="localX">On return, the X-coordinate relative to the view.</param>
2974 /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
2975 /// <param name="screenX">The screen X-coordinate.</param>
2976 /// <param name="screenY">The screen Y-coordinate.</param>
2977 /// <returns>True if the conversion succeeded.</returns>
2978 /// <since_tizen> 3 </since_tizen>
2979 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
2981 bool ret = NDalicPINVOKE.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
2982 if (NDalicPINVOKE.SWIGPendingException.Pending)
2983 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2987 internal void SetKeyboardFocusable(bool focusable)
2989 NDalicPINVOKE.Actor_SetKeyboardFocusable(swigCPtr, focusable);
2990 if (NDalicPINVOKE.SWIGPendingException.Pending)
2991 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2994 internal bool IsKeyboardFocusable()
2996 bool ret = NDalicPINVOKE.Actor_IsKeyboardFocusable(swigCPtr);
2997 if (NDalicPINVOKE.SWIGPendingException.Pending)
2998 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3002 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
3004 NDalicPINVOKE.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
3005 if (NDalicPINVOKE.SWIGPendingException.Pending)
3006 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3009 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
3011 ResizePolicyType ret = (ResizePolicyType)NDalicPINVOKE.Actor_GetResizePolicy(swigCPtr, (int)dimension);
3012 if (NDalicPINVOKE.SWIGPendingException.Pending)
3013 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3018 /// Sets the relative to parent size factor of the view.<br />
3019 /// This factor is only used when ResizePolicy is set to either:
3020 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
3021 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
3023 /// <pre>The view has been initialized.</pre>
3024 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
3025 /// <since_tizen> 3 </since_tizen>
3026 public void SetSizeModeFactor(Vector3 factor)
3028 NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
3029 if (NDalicPINVOKE.SWIGPendingException.Pending)
3030 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3033 internal Vector3 GetSizeModeFactor()
3035 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetSizeModeFactor(swigCPtr), true);
3036 if (NDalicPINVOKE.SWIGPendingException.Pending)
3037 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3042 /// Calculates the height of the view given a width.<br />
3043 /// The natural size is used for default calculation.<br />
3044 /// Size 0 is treated as aspect ratio 1:1.<br />
3046 /// <param name="width">The width to use.</param>
3047 /// <returns>The height based on the width.</returns>
3048 /// <since_tizen> 3 </since_tizen>
3049 public float GetHeightForWidth(float width)
3051 float ret = NDalicPINVOKE.Actor_GetHeightForWidth(swigCPtr, width);
3052 if (NDalicPINVOKE.SWIGPendingException.Pending)
3053 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3058 /// Calculates the width of the view given a height.<br />
3059 /// The natural size is used for default calculation.<br />
3060 /// Size 0 is treated as aspect ratio 1:1.<br />
3062 /// <param name="height">The height to use.</param>
3063 /// <returns>The width based on the height.</returns>
3064 /// <since_tizen> 3 </since_tizen>
3065 public float GetWidthForHeight(float height)
3067 float ret = NDalicPINVOKE.Actor_GetWidthForHeight(swigCPtr, height);
3068 if (NDalicPINVOKE.SWIGPendingException.Pending)
3069 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3074 /// Return the amount of size allocated for relayout.
3076 /// <param name="dimension">The dimension to retrieve.</param>
3077 /// <returns>Return the size.</returns>
3078 /// <since_tizen> 3 </since_tizen>
3079 public float GetRelayoutSize(DimensionType dimension)
3081 float ret = NDalicPINVOKE.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
3082 if (NDalicPINVOKE.SWIGPendingException.Pending)
3083 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3088 /// Set the padding for the view.
3090 /// <param name="padding">Padding for the view.</param>
3091 /// <since_tizen> 3 </since_tizen>
3092 public void SetPadding(PaddingType padding)
3094 NDalicPINVOKE.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
3095 if (NDalicPINVOKE.SWIGPendingException.Pending)
3096 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3100 /// Return the value of padding for the view.
3102 /// <param name="paddingOut">the value of padding for the view</param>
3103 /// <since_tizen> 3 </since_tizen>
3104 public void GetPadding(PaddingType paddingOut)
3106 NDalicPINVOKE.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
3107 if (NDalicPINVOKE.SWIGPendingException.Pending)
3108 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3111 internal void SetMinimumSize(Vector2 size)
3113 NDalicPINVOKE.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
3114 if (NDalicPINVOKE.SWIGPendingException.Pending)
3115 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3118 internal Vector2 GetMinimumSize()
3120 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMinimumSize(swigCPtr), true);
3121 if (NDalicPINVOKE.SWIGPendingException.Pending)
3122 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3126 internal void SetMaximumSize(Vector2 size)
3128 NDalicPINVOKE.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
3129 if (NDalicPINVOKE.SWIGPendingException.Pending)
3130 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3133 internal Vector2 GetMaximumSize()
3135 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMaximumSize(swigCPtr), true);
3136 if (NDalicPINVOKE.SWIGPendingException.Pending)
3137 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3141 internal int GetHierarchyDepth()
3143 int ret = NDalicPINVOKE.Actor_GetHierarchyDepth(swigCPtr);
3144 if (NDalicPINVOKE.SWIGPendingException.Pending)
3145 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3149 /// <since_tizen> 4 </since_tizen>
3150 public uint AddRenderer(Renderer renderer)
3152 uint ret = NDalicPINVOKE.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
3153 if (NDalicPINVOKE.SWIGPendingException.Pending)
3154 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3158 internal uint GetRendererCount()
3160 uint ret = NDalicPINVOKE.Actor_GetRendererCount(swigCPtr);
3161 if (NDalicPINVOKE.SWIGPendingException.Pending)
3162 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3166 /// <since_tizen> 4 </since_tizen>
3167 public Renderer GetRendererAt(uint index)
3169 IntPtr cPtr = NDalicPINVOKE.Actor_GetRendererAt(swigCPtr, index);
3170 Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Renderer;
3172 if (NDalicPINVOKE.SWIGPendingException.Pending)
3173 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3177 /// <since_tizen> 4 </since_tizen>
3178 public void RemoveRenderer(Renderer renderer)
3180 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
3181 if (NDalicPINVOKE.SWIGPendingException.Pending)
3182 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3185 /// <since_tizen> 4 </since_tizen>
3186 public void RemoveRenderer(uint index)
3188 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
3189 if (NDalicPINVOKE.SWIGPendingException.Pending)
3190 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3193 internal TouchDataSignal TouchSignal()
3195 TouchDataSignal ret = new TouchDataSignal(NDalicPINVOKE.Actor_TouchSignal(swigCPtr), false);
3196 if (NDalicPINVOKE.SWIGPendingException.Pending)
3197 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3201 internal HoverSignal HoveredSignal()
3203 HoverSignal ret = new HoverSignal(NDalicPINVOKE.Actor_HoveredSignal(swigCPtr), false);
3204 if (NDalicPINVOKE.SWIGPendingException.Pending)
3205 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3209 internal WheelSignal WheelEventSignal()
3211 WheelSignal ret = new WheelSignal(NDalicPINVOKE.Actor_WheelEventSignal(swigCPtr), false);
3212 if (NDalicPINVOKE.SWIGPendingException.Pending)
3213 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3217 internal ViewSignal OnWindowSignal()
3219 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
3220 if (NDalicPINVOKE.SWIGPendingException.Pending)
3221 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3225 internal ViewSignal OffWindowSignal()
3227 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OffStageSignal(swigCPtr), false);
3228 if (NDalicPINVOKE.SWIGPendingException.Pending)
3229 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3233 internal ViewSignal OnRelayoutSignal()
3235 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnRelayoutSignal(swigCPtr), false);
3236 if (NDalicPINVOKE.SWIGPendingException.Pending)
3237 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3241 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view) {
3242 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(NDalicPINVOKE.VisibilityChangedSignal(View.getCPtr(view)), false);
3243 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3248 internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view) {
3249 ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(NDalicManualPINVOKE.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
3250 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3255 internal ViewSignal ResourcesLoadedSignal()
3257 ViewSignal ret = new ViewSignal(NDalicPINVOKE.ResourceReadySignal(swigCPtr), false);
3258 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3263 /// Gets or sets the origin of a view within its parent's area.<br />
3264 /// 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 />
3265 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
3266 /// A view's position is the distance between this origin and the view's anchor-point.<br />
3268 /// <pre>The view has been initialized.</pre>
3269 /// <since_tizen> 3 </since_tizen>
3270 public Position ParentOrigin
3274 Position temp = new Position(0.0f, 0.0f, 0.0f);
3275 GetProperty(View.Property.PARENT_ORIGIN).Get(temp);
3280 SetProperty(View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue(value));
3284 internal float ParentOriginX
3289 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3294 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3298 internal float ParentOriginY
3303 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3308 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3312 internal float ParentOriginZ
3317 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3322 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3327 /// Gets or sets the anchor-point of a view.<br />
3328 /// 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 />
3329 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
3330 /// A view position is the distance between its parent-origin and this anchor-point.<br />
3331 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
3332 /// <pre>The view has been initialized.</pre>
3334 /// <since_tizen> 3 </since_tizen>
3335 public Position PivotPoint
3339 Position temp = new Position(0.0f, 0.0f, 0.0f);
3340 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3345 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3349 internal float PivotPointX
3354 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3359 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3363 internal float PivotPointY
3368 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3373 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3377 internal float PivotPointZ
3382 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3387 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3392 /// Gets or sets the size width of the view.
3394 /// <since_tizen> 3 </since_tizen>
3395 public float SizeWidth
3400 GetProperty(View.Property.SIZE_WIDTH).Get(out temp);
3405 SetProperty(View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
3410 /// Gets or sets the size height of the view.
3412 /// <since_tizen> 3 </since_tizen>
3413 public float SizeHeight
3418 GetProperty(View.Property.SIZE_HEIGHT).Get(out temp);
3423 SetProperty(View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3428 /// Gets or sets the position of the view.<br />
3429 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
3430 /// If the position inheritance is disabled, sets the world position.<br />
3432 /// <since_tizen> 3 </since_tizen>
3433 public Position Position
3437 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3438 GetProperty(View.Property.POSITION).Get(temp);
3443 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(value));
3448 /// Gets or sets the position X of the view.
3450 /// <since_tizen> 3 </since_tizen>
3451 public float PositionX
3456 GetProperty(View.Property.POSITION_X).Get(out temp);
3461 SetProperty(View.Property.POSITION_X, new Tizen.NUI.PropertyValue(value));
3466 /// Gets or sets the position Y of the view.
3468 /// <since_tizen> 3 </since_tizen>
3469 public float PositionY
3474 GetProperty(View.Property.POSITION_Y).Get(out temp);
3479 SetProperty(View.Property.POSITION_Y, new Tizen.NUI.PropertyValue(value));
3484 /// Gets or sets the position Z of the view.
3486 /// <since_tizen> 3 </since_tizen>
3487 public float PositionZ
3492 GetProperty(View.Property.POSITION_Z).Get(out temp);
3497 SetProperty(View.Property.POSITION_Z, new Tizen.NUI.PropertyValue(value));
3502 /// Gets or sets the world position of the view.
3504 /// <since_tizen> 3 </since_tizen>
3505 public Vector3 WorldPosition
3509 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3510 GetProperty(View.Property.WORLD_POSITION).Get(temp);
3515 internal float WorldPositionX
3520 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3525 internal float WorldPositionY
3530 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3535 internal float WorldPositionZ
3540 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3546 /// Gets or sets the orientation of the view.<br />
3547 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
3549 /// <remarks>This is an asynchronous method.</remarks>
3550 /// <since_tizen> 3 </since_tizen>
3551 public Rotation Orientation
3555 Rotation temp = new Rotation();
3556 GetProperty(View.Property.ORIENTATION).Get(temp);
3561 SetProperty(View.Property.ORIENTATION, new Tizen.NUI.PropertyValue(value));
3566 /// Gets or sets the world orientation of the view.<br />
3568 /// <since_tizen> 3 </since_tizen>
3569 public Rotation WorldOrientation
3573 Rotation temp = new Rotation();
3574 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
3580 /// Gets or sets the scale factor applied to the view.<br />
3582 /// <since_tizen> 3 </since_tizen>
3583 public Vector3 Scale
3587 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3588 GetProperty(View.Property.SCALE).Get(temp);
3593 SetProperty(View.Property.SCALE, new Tizen.NUI.PropertyValue(value));
3598 /// Gets or sets the scale X factor applied to the view.
3600 /// <since_tizen> 3 </since_tizen>
3606 GetProperty(View.Property.SCALE_X).Get(out temp);
3611 SetProperty(View.Property.SCALE_X, new Tizen.NUI.PropertyValue(value));
3616 /// Gets or sets the scale Y factor applied to the view.
3618 /// <since_tizen> 3 </since_tizen>
3624 GetProperty(View.Property.SCALE_Y).Get(out temp);
3629 SetProperty(View.Property.SCALE_Y, new Tizen.NUI.PropertyValue(value));
3634 /// Gets or sets the scale Z factor applied to the view.
3636 /// <since_tizen> 3 </since_tizen>
3642 GetProperty(View.Property.SCALE_Z).Get(out temp);
3647 SetProperty(View.Property.SCALE_Z, new Tizen.NUI.PropertyValue(value));
3652 /// Gets the world scale of the view.
3654 /// <since_tizen> 3 </since_tizen>
3655 public Vector3 WorldScale
3659 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3660 GetProperty(View.Property.WORLD_SCALE).Get(temp);
3666 /// Retrieves the visibility flag of the view.
3669 /// If the view is not visible, then the view and its children will not be rendered.
3670 /// 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.
3672 /// <since_tizen> 3 </since_tizen>
3673 public bool Visibility
3678 GetProperty(View.Property.VISIBLE).Get(out temp);
3684 /// Gets the view's world color.
3686 /// <since_tizen> 3 </since_tizen>
3687 public Vector4 WorldColor
3691 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3692 GetProperty(View.Property.WORLD_COLOR).Get(temp);
3697 internal Matrix WorldMatrix
3701 Matrix temp = new Matrix();
3702 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3708 /// Gets or sets the view's name.
3710 /// <since_tizen> 3 </since_tizen>
3716 GetProperty(View.Property.NAME).Get(out temp);
3721 SetProperty(View.Property.NAME, new Tizen.NUI.PropertyValue(value));
3726 /// Get the number of children held by the view.
3728 /// <since_tizen> 3 </since_tizen>
3729 public new uint ChildCount
3733 return GetChildCount();
3738 /// Gets the view's ID.
3741 /// <since_tizen> 3 </since_tizen>
3751 /// Gets or sets the status of whether the view should emit touch or hover signals.
3753 /// <since_tizen> 3 </since_tizen>
3754 public bool Sensitive
3759 GetProperty(View.Property.SENSITIVE).Get(out temp);
3764 SetProperty(View.Property.SENSITIVE, new Tizen.NUI.PropertyValue(value));
3769 /// 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.
3771 /// <since_tizen> 3 </since_tizen>
3772 public bool LeaveRequired
3777 GetProperty(View.Property.LEAVE_REQUIRED).Get(out temp);
3782 SetProperty(View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue(value));
3787 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
3789 /// <since_tizen> 3 </since_tizen>
3790 public bool InheritOrientation
3795 GetProperty(View.Property.INHERIT_ORIENTATION).Get(out temp);
3800 SetProperty(View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue(value));
3805 /// Gets or sets the status of whether a child view inherits it's parent's scale.
3807 /// <since_tizen> 3 </since_tizen>
3808 public bool InheritScale
3813 GetProperty(View.Property.INHERIT_SCALE).Get(out temp);
3818 SetProperty(View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue(value));
3823 /// Gets or sets the status of how the view and its children should be drawn.<br />
3824 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
3825 /// 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 />
3826 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
3827 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
3828 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
3830 /// <since_tizen> 3 </since_tizen>
3831 public DrawModeType DrawMode
3836 if (GetProperty(View.Property.DRAW_MODE).Get(out temp) == false)
3838 NUILog.Error("DrawMode get error!");
3843 return DrawModeType.Normal;
3845 return DrawModeType.Overlay2D;
3847 return DrawModeType.Stencil;
3849 return DrawModeType.Normal;
3854 SetProperty(View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)value));
3859 /// Gets or sets the relative to parent size factor of the view.<br />
3860 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
3861 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
3863 /// <since_tizen> 3 </since_tizen>
3864 public Vector3 SizeModeFactor
3868 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3869 GetProperty(View.Property.SIZE_MODE_FACTOR).Get(temp);
3874 SetProperty(View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue(value));
3879 /// Gets or sets the width resize policy to be used.
3881 /// <since_tizen> 3 </since_tizen>
3882 public ResizePolicyType WidthResizePolicy
3887 if (GetProperty(View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
3889 NUILog.Error("WidthResizePolicy get error!");
3894 return ResizePolicyType.Fixed;
3895 case "USE_NATURAL_SIZE":
3896 return ResizePolicyType.UseNaturalSize;
3897 case "FILL_TO_PARENT":
3898 return ResizePolicyType.FillToParent;
3899 case "SIZE_RELATIVE_TO_PARENT":
3900 return ResizePolicyType.SizeRelativeToParent;
3901 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3902 return ResizePolicyType.SizeFixedOffsetFromParent;
3903 case "FIT_TO_CHILDREN":
3904 return ResizePolicyType.FitToChildren;
3905 case "DIMENSION_DEPENDENCY":
3906 return ResizePolicyType.DimensionDependency;
3907 case "USE_ASSIGNED_SIZE":
3908 return ResizePolicyType.UseAssignedSize;
3910 return ResizePolicyType.Fixed;
3915 SetProperty(View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3920 /// Gets or sets the height resize policy to be used.
3922 /// <since_tizen> 3 </since_tizen>
3923 public ResizePolicyType HeightResizePolicy
3928 if (GetProperty(View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
3930 NUILog.Error("HeightResizePolicy get error!");
3935 return ResizePolicyType.Fixed;
3936 case "USE_NATURAL_SIZE":
3937 return ResizePolicyType.UseNaturalSize;
3938 case "FILL_TO_PARENT":
3939 return ResizePolicyType.FillToParent;
3940 case "SIZE_RELATIVE_TO_PARENT":
3941 return ResizePolicyType.SizeRelativeToParent;
3942 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3943 return ResizePolicyType.SizeFixedOffsetFromParent;
3944 case "FIT_TO_CHILDREN":
3945 return ResizePolicyType.FitToChildren;
3946 case "DIMENSION_DEPENDENCY":
3947 return ResizePolicyType.DimensionDependency;
3948 case "USE_ASSIGNED_SIZE":
3949 return ResizePolicyType.UseAssignedSize;
3951 return ResizePolicyType.Fixed;
3956 SetProperty(View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3961 /// Gets or sets the policy to use when setting size with size negotiation.<br />
3962 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3964 /// <since_tizen> 3 </since_tizen>
3965 public SizeScalePolicyType SizeScalePolicy
3970 if (GetProperty(View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
3972 NUILog.Error("SizeScalePolicy get error!");
3976 case "USE_SIZE_SET":
3977 return SizeScalePolicyType.UseSizeSet;
3978 case "FIT_WITH_ASPECT_RATIO":
3979 return SizeScalePolicyType.FitWithAspectRatio;
3980 case "FILL_WITH_ASPECT_RATIO":
3981 return SizeScalePolicyType.FillWithAspectRatio;
3983 return SizeScalePolicyType.UseSizeSet;
3988 string valueToString = "";
3991 case SizeScalePolicyType.UseSizeSet:
3993 valueToString = "USE_SIZE_SET";
3996 case SizeScalePolicyType.FitWithAspectRatio:
3998 valueToString = "FIT_WITH_ASPECT_RATIO";
4001 case SizeScalePolicyType.FillWithAspectRatio:
4003 valueToString = "FILL_WITH_ASPECT_RATIO";
4008 valueToString = "USE_SIZE_SET";
4012 SetProperty(View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
4017 /// Gets or sets the status of whether the width size is dependent on the height size.
4019 /// <since_tizen> 3 </since_tizen>
4020 public bool WidthForHeight
4025 GetProperty(View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
4030 SetProperty(View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue(value));
4035 /// Gets or sets the status of whether the height size is dependent on the width size.
4037 /// <since_tizen> 3 </since_tizen>
4038 public bool HeightForWidth
4043 GetProperty(View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
4048 SetProperty(View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue(value));
4053 /// Gets or sets the padding for use in layout.
4055 /// <since_tizen> 3 </since_tizen>
4056 public Vector4 Padding
4060 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
4061 GetProperty(View.Property.PADDING).Get(temp);
4066 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
4071 /// Gets or sets the minimum size the view can be assigned in size negotiation.
4073 /// <since_tizen> 3 </since_tizen>
4074 public Size2D MinimumSize
4078 Size2D temp = new Size2D(0, 0);
4079 GetProperty(View.Property.MINIMUM_SIZE).Get(temp);
4084 SetProperty(View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4089 /// Gets or sets the maximum size the view can be assigned in size negotiation.
4091 /// <since_tizen> 3 </since_tizen>
4092 public Size2D MaximumSize
4096 Size2D temp = new Size2D(0, 0);
4097 GetProperty(View.Property.MAXIMUM_SIZE).Get(temp);
4102 SetProperty(View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
4107 /// Gets or sets whether a child view inherits it's parent's position.<br />
4108 /// Default is to inherit.<br />
4109 /// 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 />
4111 /// <since_tizen> 3 </since_tizen>
4112 public bool InheritPosition
4117 GetProperty(View.Property.INHERIT_POSITION).Get(out temp);
4122 SetProperty(View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue(value));
4127 /// Gets or sets the clipping behavior (mode) of it's children.
4129 /// <since_tizen> 3 </since_tizen>
4130 public ClippingModeType ClippingMode
4135 if (GetProperty(View.Property.CLIPPING_MODE).Get(out temp) == false)
4137 NUILog.Error("ClippingMode get error!");
4142 return ClippingModeType.Disabled;
4143 case "CLIP_CHILDREN":
4144 return ClippingModeType.ClipChildren;
4145 case "CLIP_TO_BOUNDING_BOX":
4146 return ClippingModeType.ClipToBoundingBox;
4148 return ClippingModeType.Disabled;
4153 SetProperty(View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)value));
4158 /// Gets the number of renderers held by the view.
4160 /// <since_tizen> 4 </since_tizen>
4161 public uint RendererCount
4165 return GetRendererCount();
4172 /// [Obsolete("Please do not use! this will be deprecated")]
4174 /// <since_tizen> 3 </since_tizen>
4175 /// Please do not use! this will be deprecated!
4176 /// Instead please use TouchEvent.
4177 [Obsolete("Please do not use! this will be deprecated, instead please use TouchEvent.")]
4178 [EditorBrowsable(EditorBrowsableState.Never)]
4179 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> Touched
4183 if (_touchDataEventHandler == null)
4185 _touchDataCallback = OnTouch;
4186 this.TouchSignal().Connect(_touchDataCallback);
4189 _touchDataEventHandler += value;
4194 _touchDataEventHandler -= value;
4196 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
4198 this.TouchSignal().Disconnect(_touchDataCallback);
4205 /// [Obsolete("Please do not use! this will be deprecated")]
4207 /// <since_tizen> 3 </since_tizen>
4208 /// Please do not use! this will be deprecated!
4209 /// Instead please use HoverEvent.
4210 [Obsolete("Please do not use! this will be deprecated, instead please use HoverEvent.")]
4211 [EditorBrowsable(EditorBrowsableState.Never)]
4212 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> Hovered
4216 if (_hoverEventHandler == null)
4218 _hoverEventCallback = OnHoverEvent;
4219 this.HoveredSignal().Connect(_hoverEventCallback);
4222 _hoverEventHandler += value;
4227 _hoverEventHandler -= value;
4229 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
4231 this.HoveredSignal().Disconnect(_hoverEventCallback);
4238 /// Please do not use! this will be deprecated.
4240 /// <since_tizen> 3 </since_tizen>
4241 /// Please do not use! this will be deprecated!
4242 /// Instead please use WheelEvent.
4243 [Obsolete("Please do not use! this will be deprecated, instead please use WheelEvent.")]
4244 [EditorBrowsable(EditorBrowsableState.Never)]
4245 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelMoved
4249 if (_wheelEventHandler == null)
4251 _wheelEventCallback = OnWheelEvent;
4252 this.WheelEventSignal().Connect(_wheelEventCallback);
4255 _wheelEventHandler += value;
4260 _wheelEventHandler -= value;
4262 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
4264 this.WheelEventSignal().Disconnect(_wheelEventCallback);
4271 /// [Obsolete("Please do not use! this will be deprecated")]
4273 /// <since_tizen> 3 </since_tizen>
4274 /// Please do not use! this will be deprecated!
4275 /// Instead please use PivotPoint.
4276 [Obsolete("Please do not use! this will be deprecated, instead please use PivotPoint")]
4277 [EditorBrowsable(EditorBrowsableState.Never)]
4278 public Position AnchorPoint
4282 Position temp = new Position(0.0f, 0.0f, 0.0f);
4283 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
4288 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
4293 /// [Obsolete("Please do not use! this will be deprecated")]
4295 /// <since_tizen> 3 </since_tizen>
4296 [Obsolete("Please do not use! this will be deprecated, please use Size2D instead")]
4301 Size temp = new Size(0.0f, 0.0f, 0.0f);
4302 GetProperty(View.Property.SIZE).Get(temp);
4307 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(value));
4312 /// [Obsolete("Please do not use! this will be deprecated")]
4314 /// <since_tizen> 3 </since_tizen>
4315 /// Please do not use! this will be deprecated!
4316 /// Instead please use AddedToWindow.
4317 [Obsolete("Please do not use! this will be deprecated, instead please use AddedToWindow")]
4318 [EditorBrowsable(EditorBrowsableState.Never)]
4319 public event EventHandler OnWindowEvent
4323 if (_onWindowEventHandler == null)
4325 _onWindowEventCallback = OnWindow;
4326 this.OnWindowSignal().Connect(_onWindowEventCallback);
4329 _onWindowEventHandler += value;
4334 _onWindowEventHandler -= value;
4336 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
4338 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
4344 /// [Obsolete("Please do not use! this will be deprecated")]
4346 /// <since_tizen> 3 </since_tizen>
4347 /// Please do not use! this will be deprecated!
4348 /// Instead please use RemovedFromWindow.
4349 [Obsolete("Please do not use! this will be deprecated, instead please use RemovedFromWindow")]
4350 [EditorBrowsable(EditorBrowsableState.Never)]
4351 public event EventHandler OffWindowEvent
4355 if (_offWindowEventHandler == null)
4357 _offWindowEventCallback = OffWindow;
4358 this.OffWindowSignal().Connect(_offWindowEventCallback);
4361 _offWindowEventHandler += value;
4366 _offWindowEventHandler -= value;
4368 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
4370 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
4376 /// [Obsolete("Please do not use! this will be deprecated")]
4378 /// <since_tizen> 3 </since_tizen>
4379 /// Please do not use! this will be deprecated!
4380 /// Instead please use Relayout.
4381 [Obsolete("Please do not use! this will be deprecated, instead please use Relayout")]
4382 [EditorBrowsable(EditorBrowsableState.Never)]
4383 public event EventHandler OnRelayoutEvent
4387 if (_onRelayoutEventHandler == null)
4389 _onRelayoutEventCallback = OnRelayout;
4390 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
4393 _onRelayoutEventHandler += value;
4398 _onRelayoutEventHandler -= value;
4400 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
4402 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
4409 /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4411 /// <since_tizen> 3 </since_tizen>
4412 //"Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!"
4413 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
4414 public new View Parent
4419 IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr);
4421 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr);
4423 if (basehandle is Layer)
4425 ret = new View(cPtr, false);
4429 ret = basehandle as View;
4432 if (NDalicPINVOKE.SWIGPendingException.Pending)
4433 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4439 /// Gets/Sets whether inherit parent's the layout Direction.
4441 /// <since_tizen> 4 </since_tizen>
4442 public bool InheritLayoutDirection
4447 GetProperty(View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
4452 SetProperty(View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue(value));
4457 /// Gets/Sets the layout Direction.
4459 /// <since_tizen> 4 </since_tizen>
4460 public ViewLayoutDirectionType LayoutDirection
4465 if (GetProperty(View.Property.LAYOUT_DIRECTION).Get(out temp) == false)
4467 NUILog.Error("LAYOUT_DIRECTION get error!");
4469 return (ViewLayoutDirectionType)temp;
4473 SetProperty(View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)value));
4478 /// Gets or sets the Margin for use in layout.
4480 public Extents Margin
4484 Extents temp = new Extents(0, 0, 0, 0);
4485 GetProperty(View.Property.MARGIN).Get(temp);
4490 SetProperty(View.Property.MARGIN, new Tizen.NUI.PropertyValue(value));
4495 /// Gets or sets the Padding for use in layout.
4497 public Extents PaddingEX
4501 Extents temp = new Extents(0, 0, 0, 0);
4502 GetProperty(View.Property.PADDINGEX).Get(temp);
4507 SetProperty(View.Property.PADDINGEX, new Tizen.NUI.PropertyValue(value));
4513 /// The View layout Direction type.
4515 /// <since_tizen> 4 </since_tizen>
4516 public enum ViewLayoutDirectionType