1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
17 namespace Tizen.NUI.BaseComponents
21 using System.Runtime.InteropServices;
24 /// View is the base class for all views.
26 public class View : Animatable //CustomActor => Animatable
28 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
30 internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.View_SWIGUpcast(cPtr), cMemoryOwn)
32 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
34 // Register this instance of view in the view registry.
35 ViewRegistry.RegisterView(this);
38 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
40 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
43 //you can override it to clean-up your own resources.
44 protected override void Dispose(DisposeTypes type)
51 if(type == DisposeTypes.Explicit)
54 //Release your own managed resources here.
55 //You should release all of your own disposable objects here.
58 //Release your own unmanaged resources here.
59 //You should not access any managed member here except static instance.
60 //because the execution order of Finalizes is non-deterministic.
62 //Unreference this from if a static instance refer to this.
63 ViewRegistry.UnregisterView(this);
65 if (swigCPtr.Handle != global::System.IntPtr.Zero)
70 NDalicPINVOKE.delete_View(swigCPtr);
72 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
78 private EventHandler _keyInputFocusGainedEventHandler;
79 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
80 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
81 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
84 /// Event for KeyInputFocusGained signal which can be used to subscribe/unsubscribe the event handler provided by the user.<br>
85 /// KeyInputFocusGained signal is emitted when the control gets Key Input Focus.<br>
87 public event EventHandler FocusGained
91 if (_keyInputFocusGainedEventHandler == null)
93 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
94 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
97 _keyInputFocusGainedEventHandler += value;
102 _keyInputFocusGainedEventHandler -= value;
104 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
106 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
111 private void OnKeyInputFocusGained(IntPtr view)
113 if (_keyInputFocusGainedEventHandler != null)
115 _keyInputFocusGainedEventHandler(this, null);
120 private EventHandler _keyInputFocusLostEventHandler;
121 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
122 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
123 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
126 /// Event for KeyInputFocusLost signal which can be used to subscribe/unsubscribe the event handler provided by the user.<br>
127 /// KeyInputFocusLost signal is emitted when the control loses Key Input Focus.<br>
129 public event EventHandler FocusLost
133 if (_keyInputFocusLostEventHandler == null)
135 _keyInputFocusLostCallback = OnKeyInputFocusLost;
136 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
139 _keyInputFocusLostEventHandler += value;
144 _keyInputFocusLostEventHandler -= value;
146 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
148 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
153 private void OnKeyInputFocusLost(IntPtr view)
155 if (_keyInputFocusLostEventHandler != null)
157 _keyInputFocusLostEventHandler(this, null);
162 /// Event arguments that passed via KeyEvent signal.
164 public class KeyEventArgs : EventArgs
169 /// Key - is the key sent to the View.
184 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
185 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
186 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
187 private KeyCallbackType _keyCallback;
190 /// Event for KeyPressed signal which can be used to subscribe/unsubscribe the event handler provided by the user.<br>
191 /// KeyPressed signal is emitted when key event is received.<br>
193 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
197 if (_keyEventHandler == null)
199 _keyCallback = OnKeyEvent;
200 this.KeyEventSignal().Connect(_keyCallback);
203 _keyEventHandler += value;
208 _keyEventHandler -= value;
210 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
212 this.KeyEventSignal().Disconnect(_keyCallback);
217 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
219 KeyEventArgs e = new KeyEventArgs();
221 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
223 if (_keyEventHandler != null)
225 return _keyEventHandler(this, e);
231 private EventHandler _onRelayoutEventHandler;
232 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
233 private delegate void OnRelayoutEventCallbackType(IntPtr control);
234 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
237 /// Event for OnRelayout signal which can be used to subscribe/unsubscribe the event handler.<br>
238 /// OnRelayout signal is emitted after the size has been set on the view during relayout.<br>
240 public event EventHandler OnRelayoutEvent
244 if (_onRelayoutEventHandler == null)
246 _onRelayoutEventCallback = OnRelayout;
247 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
250 _onRelayoutEventHandler += value;
255 _onRelayoutEventHandler -= value;
257 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
259 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
265 // Callback for View OnRelayout signal
266 private void OnRelayout(IntPtr data)
268 if (_onRelayoutEventHandler != null)
270 _onRelayoutEventHandler(this, null);
275 /// Event arguments that passed via Touch signal.
277 public class TouchEventArgs : EventArgs
279 private Touch _touch;
282 /// Touch - contains the information of touch points
297 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
298 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
299 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
300 private TouchDataCallbackType _touchDataCallback;
303 /// Event for Touched signal which can be used to subscribe/unsubscribe the event handler provided by the user.<br>
304 /// Touched signal is emitted when touch input is received.<br>
306 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> Touched
310 if (_touchDataEventHandler == null)
312 _touchDataCallback = OnTouch;
313 this.TouchSignal().Connect(_touchDataCallback);
316 _touchDataEventHandler += value;
321 _touchDataEventHandler -= value;
323 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
325 this.TouchSignal().Disconnect(_touchDataCallback);
331 // Callback for View TouchSignal
332 private bool OnTouch(IntPtr view, IntPtr touchData)
334 TouchEventArgs e = new TouchEventArgs();
336 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
338 if (_touchDataEventHandler != null)
340 return _touchDataEventHandler(this, e);
347 /// Event arguments that passed via Hover signal.
349 public class HoverEventArgs : EventArgs
351 private Hover _hover;
354 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
369 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
370 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
371 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
372 private HoverEventCallbackType _hoverEventCallback;
375 /// Event for Hovered signal which can be used to subscribe/unsubscribe the event handler provided by the user.<br>
376 /// Hovered signal is emitted when hover input is received.<br>
378 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> Hovered
382 if (_hoverEventHandler == null)
384 _hoverEventCallback = OnHoverEvent;
385 this.HoveredSignal().Connect(_hoverEventCallback);
388 _hoverEventHandler += value;
393 _hoverEventHandler -= value;
395 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
397 this.HoveredSignal().Disconnect(_hoverEventCallback);
403 // Callback for View Hover signal
404 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
406 HoverEventArgs e = new HoverEventArgs();
408 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
410 if (_hoverEventHandler != null)
412 return _hoverEventHandler(this, e);
419 /// Event arguments that passed via Wheel signal.
421 public class WheelEventArgs : EventArgs
423 private Wheel _wheel;
426 /// WheelEvent - store a wheel rolling type : MOUSE_WHEEL or CUSTOM_WHEEL
441 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
442 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
443 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
444 private WheelEventCallbackType _wheelEventCallback;
447 /// Event for WheelMoved signal which can be used to subscribe/unsubscribe the event handler provided by the user.<br>
448 /// WheelMoved signal is emitted when wheel event is received.<br>
450 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelMoved
454 if (_wheelEventHandler == null)
456 _wheelEventCallback = OnWheelEvent;
457 this.WheelEventSignal().Connect(_wheelEventCallback);
460 _wheelEventHandler += value;
465 _wheelEventHandler -= value;
467 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
469 this.WheelEventSignal().Disconnect(_wheelEventCallback);
475 // Callback for View Wheel signal
476 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
478 WheelEventArgs e = new WheelEventArgs();
480 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
482 if (_wheelEventHandler != null)
484 return _wheelEventHandler(this, e);
490 private EventHandler _onWindowEventHandler;
491 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
492 private delegate void OnWindowEventCallbackType(IntPtr control);
493 private OnWindowEventCallbackType _onWindowEventCallback;
496 /// Event for OnWindow signal which can be used to subscribe/unsubscribe the event handler.<br>
497 /// OnWindow signal is emitted after the view has been connected to the Window.<br>
499 public event EventHandler OnWindowEvent
503 if (_onWindowEventHandler == null)
505 _onWindowEventCallback = OnWindow;
506 this.OnWindowSignal().Connect(_onWindowEventCallback);
509 _onWindowEventHandler += value;
514 _onWindowEventHandler -= value;
516 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
518 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
523 // Callback for View OnWindow signal
524 private void OnWindow(IntPtr data)
526 if (_onWindowEventHandler != null)
528 _onWindowEventHandler(this, null);
533 private EventHandler _offWindowEventHandler;
534 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
535 private delegate void OffWindowEventCallbackType(IntPtr control);
536 private OffWindowEventCallbackType _offWindowEventCallback;
539 /// Event for OffWindow signal which can be used to subscribe/unsubscribe the event handler.<br>
540 /// OffWindow signal is emitted after the view has been disconnected from the Window.<br>
542 public event EventHandler OffWindowEvent
546 if (_offWindowEventHandler == null)
548 _offWindowEventCallback = OffWindow;
549 this.OffWindowSignal().Connect(_offWindowEventCallback);
552 _offWindowEventHandler += value;
557 _offWindowEventHandler -= value;
559 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
561 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
566 // Callback for View OffWindow signal
567 private void OffWindow(IntPtr data)
569 if (_offWindowEventHandler != null)
571 _offWindowEventHandler(this, null);
576 /// Event arguments of visibility changed.
578 public class VisibilityChangedEventArgs : EventArgs
581 private bool _visibility;
582 private VisibilityChangeType _type;
585 /// The view, or child of view, whose visibility has changed.
600 /// Whether the view is now visible or not.
602 public bool Visibility
615 /// Whether the view's visible property has changed or a parent's.
617 public VisibilityChangeType Type
630 private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
631 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
632 private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
633 private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
636 /// Event for visibility change which can be used to subscribe/unsubscribe the event handler.<br>
637 /// This signal is emitted when the visible property of this or a parent view is changed.<br>
639 public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
643 if (_visibilityChangedEventHandler == null)
645 _visibilityChangedEventCallback = OnVisibilityChanged;
646 VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
649 _visibilityChangedEventHandler += value;
654 _visibilityChangedEventHandler -= value;
656 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
658 VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
663 // Callback for View visibility change signal
664 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
666 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
669 e.View = View.GetViewFromPtr(data);
671 e.Visibility = visibility;
674 if (_visibilityChangedEventHandler != null)
676 _visibilityChangedEventHandler(this, e);
680 internal static View GetViewFromPtr(global::System.IntPtr cPtr)
682 View ret = new View(cPtr, false);
683 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
687 internal IntPtr GetPtrfromView()
689 return (IntPtr)swigCPtr;
692 internal class Property : global::System.IDisposable
694 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
695 protected bool swigCMemOwn;
697 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
699 swigCMemOwn = cMemoryOwn;
700 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
703 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
705 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
708 //A Flag to check who called Dispose(). (By User or DisposeQueue)
709 private bool isDisposeQueued = false;
710 //A Flat to check if it is already disposed.
711 protected bool disposed = false;
715 if (!isDisposeQueued)
717 isDisposeQueued = true;
718 DisposeQueue.Instance.Add(this);
722 public void Dispose()
724 //Throw excpetion if Dispose() is called in separate thread.
725 if (!Window.IsInstalled())
727 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
732 Dispose(DisposeTypes.Implicit);
736 Dispose(DisposeTypes.Explicit);
737 System.GC.SuppressFinalize(this);
741 protected virtual void Dispose(DisposeTypes type)
748 if (type == DisposeTypes.Explicit)
751 //Release your own managed resources here.
752 //You should release all of your own disposable objects here.
756 //Release your own unmanaged resources here.
757 //You should not access any managed member here except static instance.
758 //because the execution order of Finalizes is non-deterministic.
760 if (swigCPtr.Handle != global::System.IntPtr.Zero)
765 NDalicPINVOKE.delete_View_Property(swigCPtr);
767 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
773 internal static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
774 internal static readonly int STATE = NDalicManualPINVOKE.View_Property_STATE_get();
775 internal static readonly int SUB_STATE = NDalicManualPINVOKE.View_Property_SUB_STATE_get();
776 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
777 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
778 internal static readonly int UP_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
779 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
781 internal Property() : this(NDalicPINVOKE.new_View_Property(), true)
783 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
786 internal static readonly int STYLE_NAME = NDalicPINVOKE.View_Property_STYLE_NAME_get();
787 internal static readonly int BACKGROUND_COLOR = NDalicPINVOKE.View_Property_BACKGROUND_COLOR_get();
788 internal static readonly int BACKGROUND_IMAGE = NDalicPINVOKE.View_Property_BACKGROUND_IMAGE_get();
789 internal static readonly int KEY_INPUT_FOCUS = NDalicPINVOKE.View_Property_KEY_INPUT_FOCUS_get();
790 internal static readonly int BACKGROUND = NDalicPINVOKE.View_Property_BACKGROUND_get();
791 internal static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
792 internal static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
793 internal static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
794 internal static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
795 internal static readonly int PARENT_ORIGIN = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_get();
796 internal static readonly int PARENT_ORIGIN_X = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_X_get();
797 internal static readonly int PARENT_ORIGIN_Y = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Y_get();
798 internal static readonly int PARENT_ORIGIN_Z = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Z_get();
799 internal static readonly int ANCHOR_POINT = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_get();
800 internal static readonly int ANCHOR_POINT_X = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_X_get();
801 internal static readonly int ANCHOR_POINT_Y = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Y_get();
802 internal static readonly int ANCHOR_POINT_Z = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Z_get();
803 internal static readonly int SIZE = NDalicPINVOKE.Actor_Property_SIZE_get();
804 internal static readonly int SIZE_WIDTH = NDalicPINVOKE.Actor_Property_SIZE_WIDTH_get();
805 internal static readonly int SIZE_HEIGHT = NDalicPINVOKE.Actor_Property_SIZE_HEIGHT_get();
806 internal static readonly int SIZE_DEPTH = NDalicPINVOKE.Actor_Property_SIZE_DEPTH_get();
807 internal static readonly int POSITION = NDalicPINVOKE.Actor_Property_POSITION_get();
808 internal static readonly int POSITION_X = NDalicPINVOKE.Actor_Property_POSITION_X_get();
809 internal static readonly int POSITION_Y = NDalicPINVOKE.Actor_Property_POSITION_Y_get();
810 internal static readonly int POSITION_Z = NDalicPINVOKE.Actor_Property_POSITION_Z_get();
811 internal static readonly int WORLD_POSITION = NDalicPINVOKE.Actor_Property_WORLD_POSITION_get();
812 internal static readonly int WORLD_POSITION_X = NDalicPINVOKE.Actor_Property_WORLD_POSITION_X_get();
813 internal static readonly int WORLD_POSITION_Y = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Y_get();
814 internal static readonly int WORLD_POSITION_Z = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Z_get();
815 internal static readonly int ORIENTATION = NDalicPINVOKE.Actor_Property_ORIENTATION_get();
816 internal static readonly int WORLD_ORIENTATION = NDalicPINVOKE.Actor_Property_WORLD_ORIENTATION_get();
817 internal static readonly int SCALE = NDalicPINVOKE.Actor_Property_SCALE_get();
818 internal static readonly int SCALE_X = NDalicPINVOKE.Actor_Property_SCALE_X_get();
819 internal static readonly int SCALE_Y = NDalicPINVOKE.Actor_Property_SCALE_Y_get();
820 internal static readonly int SCALE_Z = NDalicPINVOKE.Actor_Property_SCALE_Z_get();
821 internal static readonly int WORLD_SCALE = NDalicPINVOKE.Actor_Property_WORLD_SCALE_get();
822 internal static readonly int VISIBLE = NDalicPINVOKE.Actor_Property_VISIBLE_get();
823 internal static readonly int COLOR = NDalicPINVOKE.Actor_Property_COLOR_get();
824 internal static readonly int COLOR_RED = NDalicPINVOKE.Actor_Property_COLOR_RED_get();
825 internal static readonly int COLOR_GREEN = NDalicPINVOKE.Actor_Property_COLOR_GREEN_get();
826 internal static readonly int COLOR_BLUE = NDalicPINVOKE.Actor_Property_COLOR_BLUE_get();
827 internal static readonly int COLOR_ALPHA = NDalicPINVOKE.Actor_Property_COLOR_ALPHA_get();
828 internal static readonly int WORLD_COLOR = NDalicPINVOKE.Actor_Property_WORLD_COLOR_get();
829 internal static readonly int WORLD_MATRIX = NDalicPINVOKE.Actor_Property_WORLD_MATRIX_get();
830 internal static readonly int NAME = NDalicPINVOKE.Actor_Property_NAME_get();
831 internal static readonly int SENSITIVE = NDalicPINVOKE.Actor_Property_SENSITIVE_get();
832 internal static readonly int LEAVE_REQUIRED = NDalicPINVOKE.Actor_Property_LEAVE_REQUIRED_get();
833 internal static readonly int INHERIT_ORIENTATION = NDalicPINVOKE.Actor_Property_INHERIT_ORIENTATION_get();
834 internal static readonly int INHERIT_SCALE = NDalicPINVOKE.Actor_Property_INHERIT_SCALE_get();
835 internal static readonly int COLOR_MODE = NDalicPINVOKE.Actor_Property_COLOR_MODE_get();
836 internal static readonly int POSITION_INHERITANCE = NDalicPINVOKE.Actor_Property_POSITION_INHERITANCE_get();
837 internal static readonly int DRAW_MODE = NDalicPINVOKE.Actor_Property_DRAW_MODE_get();
838 internal static readonly int SIZE_MODE_FACTOR = NDalicPINVOKE.Actor_Property_SIZE_MODE_FACTOR_get();
839 internal static readonly int WIDTH_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_WIDTH_RESIZE_POLICY_get();
840 internal static readonly int HEIGHT_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_HEIGHT_RESIZE_POLICY_get();
841 internal static readonly int SIZE_SCALE_POLICY = NDalicPINVOKE.Actor_Property_SIZE_SCALE_POLICY_get();
842 internal static readonly int WIDTH_FOR_HEIGHT = NDalicPINVOKE.Actor_Property_WIDTH_FOR_HEIGHT_get();
843 internal static readonly int HEIGHT_FOR_WIDTH = NDalicPINVOKE.Actor_Property_HEIGHT_FOR_WIDTH_get();
844 internal static readonly int PADDING = NDalicPINVOKE.Actor_Property_PADDING_get();
845 internal static readonly int MINIMUM_SIZE = NDalicPINVOKE.Actor_Property_MINIMUM_SIZE_get();
846 internal static readonly int MAXIMUM_SIZE = NDalicPINVOKE.Actor_Property_MAXIMUM_SIZE_get();
847 internal static readonly int INHERIT_POSITION = NDalicPINVOKE.Actor_Property_INHERIT_POSITION_get();
848 internal static readonly int CLIPPING_MODE = NDalicPINVOKE.Actor_Property_CLIPPING_MODE_get();
853 /// Describes the direction to move the focus towards.
855 public enum FocusDirection
866 /// Creates a new instance of a View.
868 public View() : this(NDalicPINVOKE.View_New(), true)
870 PositionUsesAnchorPoint = false;
871 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
874 internal View(View uiControl) : this(NDalicPINVOKE.new_View__SWIG_1(View.getCPtr(uiControl)), true)
876 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
879 internal View Assign(View handle)
881 View ret = new View(NDalicPINVOKE.View_Assign(swigCPtr, View.getCPtr(handle)), false);
882 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
887 /// Downcasts a handle to View handle.<br>
888 /// If handle points to a View, the downcast produces valid handle.<br>
889 /// If not, the returned handle is left uninitialized.<br>
891 /// <param name="handle">Handle to an object</param>
892 /// <returns>A handle to a View or an uninitialized handle</returns>
893 public new static View DownCast(BaseHandle handle)
895 View ret = new View(NDalicPINVOKE.View_DownCast(BaseHandle.getCPtr(handle)), true);
896 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
901 /// Downcasts a handle to class which inherit View handle.
903 /// <typeparam name="T">Class which inherit View</typeparam>
904 /// <param name="view">View to an object</param>
905 /// <returns>A object which inherit View</returns>
906 public static T DownCast<T>(View view) where T : View
908 return (T)(ViewRegistry.GetViewFromActor(view));
911 private View ConvertIdToView(uint id)
917 view = Parent.FindChildById(id);
922 view = Window.Instance.GetRootLayer().FindChildById(id);
928 internal void SetKeyInputFocus()
930 NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
931 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
935 /// Quries whether the view has focus.
937 /// <returns>true if this view has focus</returns>
938 public bool HasFocus()
940 bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
941 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
945 internal void ClearKeyInputFocus()
947 NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
948 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
951 internal PinchGestureDetector GetPinchGestureDetector()
953 PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
954 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
958 internal PanGestureDetector GetPanGestureDetector()
960 PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
961 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
965 internal TapGestureDetector GetTapGestureDetector()
967 TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
968 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
972 internal LongPressGestureDetector GetLongPressGestureDetector()
974 LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
975 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
980 /// Sets the name of the style to be applied to the view.
982 /// <param name="styleName">A string matching a style described in a stylesheet</param>
983 public void SetStyleName(string styleName)
985 NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
986 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
990 /// Retrieves the name of the style to be applied to the view (if any).
992 /// <returns>A string matching a style, or an empty string</returns>
993 public string GetStyleName()
995 string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
996 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1000 internal void SetBackgroundColor(Vector4 color)
1002 NDalicPINVOKE.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
1003 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1006 internal Vector4 GetBackgroundColor()
1008 Vector4 ret = new Vector4(NDalicPINVOKE.View_GetBackgroundColor(swigCPtr), true);
1009 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1013 internal void SetBackgroundImage(Image image)
1015 NDalicPINVOKE.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
1016 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1020 /// Clears the background.
1022 public void ClearBackground()
1024 NDalicPINVOKE.View_ClearBackground(swigCPtr);
1025 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1028 internal ControlKeySignal KeyEventSignal()
1030 ControlKeySignal ret = new ControlKeySignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
1031 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1035 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
1037 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
1038 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1042 internal KeyInputFocusSignal KeyInputFocusLostSignal()
1044 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
1045 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1049 internal View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1051 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1054 internal enum PropertyRange
1056 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1057 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1058 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1062 /// styleName, type string.
1064 public string StyleName
1069 GetProperty(View.Property.STYLE_NAME).Get(out temp);
1074 SetProperty(View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue(value));
1079 /// mutually exclusive with BACKGROUND_IMAGE & BACKGROUND, type Vector4.
1081 public Color BackgroundColor
1085 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1087 Tizen.NUI.PropertyMap background = Background;
1089 background.Find(Visual.Property.Type).Get(ref visualType);
1090 if (visualType == (int)Visual.Type.Color)
1092 background.Find(ColorVisualProperty.MixColor).Get(backgroundColor);
1095 return backgroundColor;
1099 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1104 /// mutually exclusive with BACKGROUND_COLOR & BACKGROUND, type Map.
1106 public string BackgroundImage
1110 string backgroundImage = "";
1112 Tizen.NUI.PropertyMap background = Background;
1114 background.Find(Visual.Property.Type).Get(ref visualType);
1115 if (visualType == (int)Visual.Type.Image)
1117 background.Find(ImageVisualProperty.URL).Get(out backgroundImage);
1120 return backgroundImage;
1124 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1128 internal bool KeyInputFocus
1133 GetProperty(View.Property.KEY_INPUT_FOCUS).Get(ref temp);
1138 SetProperty(View.Property.KEY_INPUT_FOCUS, new Tizen.NUI.PropertyValue(value));
1143 /// mutually exclusive with BACKGROUND_COLOR & BACKGROUND_IMAGE, type Map or string for URL.
1145 public Tizen.NUI.PropertyMap Background
1149 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1150 GetProperty(View.Property.BACKGROUND).Get(temp);
1155 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1160 /// The current state of the view.
1167 if (GetProperty(View.Property.STATE).Get(ref temp) == false)
1170 Tizen.Log.Error("NUI", "State get error!");
1177 return States.Normal;
1181 return States.Focused;
1185 return States.Disabled;
1189 return States.Normal;
1195 SetProperty(View.Property.STATE, new Tizen.NUI.PropertyValue((int)value));
1200 /// The current sub state of the view.
1202 public States SubState
1207 if (GetProperty(View.Property.SUB_STATE).Get(out temp) == false)
1210 Tizen.Log.Error("NUI", "subState get error!");
1216 return States.Normal;
1218 return States.Focused;
1220 return States.Disabled;
1222 return States.Normal;
1227 string valueToString = "";
1232 valueToString = "NORMAL";
1235 case States.Focused:
1237 valueToString = "FOCUSED";
1240 case States.Disabled:
1242 valueToString = "DISABLED";
1247 valueToString = "NORMAL";
1251 SetProperty(View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
1256 /// Displays a tooltip
1258 public Tizen.NUI.PropertyMap Tooltip
1262 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1263 GetProperty(View.Property.TOOLTIP).Get(temp);
1268 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1273 /// Displays a tooltip as Text
1275 public string TooltipText
1279 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1283 private int LeftFocusableViewId
1288 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(ref temp);
1293 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1297 private int RightFocusableViewId
1302 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(ref temp);
1307 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1311 private int UpFocusableViewId
1316 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(ref temp);
1321 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1325 private int DownFocusableViewId
1330 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(ref temp);
1335 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1340 /// Child Property of FlexContainer.<br>
1341 /// The proportion of the free space in the container the flex item will receive.<br>
1342 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br>
1349 GetProperty(FlexContainer.ChildProperty.FLEX).Get(ref temp);
1354 SetProperty(FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue(value));
1359 /// Child Property of FlexContainer.<br>
1360 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br>
1362 public int AlignSelf
1367 GetProperty(FlexContainer.ChildProperty.ALIGN_SELF).Get(ref temp);
1372 SetProperty(FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue(value));
1377 /// Child Property of FlexContainer.<br>
1378 /// The space around the flex item.<br>
1380 public Vector4 FlexMargin
1384 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1385 GetProperty(FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
1390 SetProperty(FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue(value));
1395 /// The top-left cell this child occupies, if not set, the first available cell is used
1397 public Vector2 CellIndex
1401 Vector2 temp = new Vector2(0.0f, 0.0f);
1402 GetProperty(TableView.ChildProperty.CELL_INDEX).Get(temp);
1407 SetProperty(TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue(value));
1412 /// The number of rows this child occupies, if not set, default value is 1
1414 public float RowSpan
1419 GetProperty(TableView.ChildProperty.ROW_SPAN).Get(ref temp);
1424 SetProperty(TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue(value));
1429 /// The number of columns this child occupies, if not set, default value is 1
1431 public float ColumnSpan
1436 GetProperty(TableView.ChildProperty.COLUMN_SPAN).Get(ref temp);
1441 SetProperty(TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue(value));
1446 /// The horizontal alignment of this child inside the cells, if not set, default value is 'left'
1448 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
1453 if (GetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
1456 Tizen.Log.Error("NUI", "CellHorizontalAlignment get error!");
1463 return Tizen.NUI.HorizontalAlignmentType.Left;
1465 return Tizen.NUI.HorizontalAlignmentType.Center;
1467 return Tizen.NUI.HorizontalAlignmentType.Right;
1469 return Tizen.NUI.HorizontalAlignmentType.Left;
1474 string valueToString = "";
1477 case Tizen.NUI.HorizontalAlignmentType.Left:
1479 valueToString = "left";
1482 case Tizen.NUI.HorizontalAlignmentType.Center:
1484 valueToString = "center";
1487 case Tizen.NUI.HorizontalAlignmentType.Right:
1489 valueToString = "right";
1494 valueToString = "left";
1498 SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1503 /// The vertical alignment of this child inside the cells, if not set, default value is 'top'
1505 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
1510 GetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
1513 Tizen.Log.Error("NUI", "CellVerticalAlignment get error!");
1520 return Tizen.NUI.VerticalAlignmentType.Top;
1522 return Tizen.NUI.VerticalAlignmentType.Center;
1524 return Tizen.NUI.VerticalAlignmentType.Bottom;
1526 return Tizen.NUI.VerticalAlignmentType.Top;
1531 string valueToString = "";
1534 case Tizen.NUI.VerticalAlignmentType.Top:
1536 valueToString = "top";
1539 case Tizen.NUI.VerticalAlignmentType.Center:
1541 valueToString = "center";
1544 case Tizen.NUI.VerticalAlignmentType.Bottom:
1546 valueToString = "bottom";
1551 valueToString = "top";
1555 SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1560 /// The left focusable view.<br>
1561 /// This will return NULL if not set.<br>
1562 /// This will also return NULL if the specified left focusable view is not on Window.<br>
1564 public View LeftFocusableView
1566 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1569 if (LeftFocusableViewId >= 0)
1571 return ConvertIdToView((uint)LeftFocusableViewId);
1577 LeftFocusableViewId = (int)value.GetId();
1582 /// The right focusable view.<br>
1583 /// This will return NULL if not set.<br>
1584 /// This will also return NULL if the specified right focusable view is not on Window.<br>
1586 public View RightFocusableView
1588 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1591 if (RightFocusableViewId >= 0)
1593 return ConvertIdToView((uint)RightFocusableViewId);
1599 RightFocusableViewId = (int)value.GetId();
1604 /// The up focusable view.<br>
1605 /// This will return NULL if not set.<br>
1606 /// This will also return NULL if the specified up focusable view is not on Window.<br>
1608 public View UpFocusableView
1610 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1613 if (UpFocusableViewId >= 0)
1615 return ConvertIdToView((uint)UpFocusableViewId);
1621 UpFocusableViewId = (int)value.GetId();
1626 /// The down focusable view.<br>
1627 /// This will return NULL if not set.<br>
1628 /// This will also return NULL if the specified down focusable view is not on Window.<br>
1630 public View DownFocusableView
1632 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1635 if (DownFocusableViewId >= 0)
1637 return ConvertIdToView((uint)DownFocusableViewId);
1643 DownFocusableViewId = (int)value.GetId();
1648 /// whether the view should be focusable by keyboard navigation.
1650 public bool Focusable
1654 SetKeyboardFocusable(value);
1658 return IsKeyboardFocusable();
1663 /// Enumeration for describing the states of view.
1682 /// Retrieves the position of the View.<br>
1683 /// The coordinates are relative to the View's parent.<br>
1685 public Position CurrentPosition
1689 return GetCurrentPosition();
1694 /// Sets the size of an view for width and height.<br>
1695 /// Geometry can be scaled to fit within this area.<br>
1696 /// This does not interfere with the views scale factor.<br>
1697 /// The views default depth is the minimum of width & height.<br>
1699 public Size2D Size2D
1703 Size temp = new Size(0.0f, 0.0f, 0.0f);
1704 GetProperty(View.Property.SIZE).Get(temp);
1705 return new Size2D(temp);
1709 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size(value)));
1714 /// Retrieves the size of the View.<br>
1715 /// The coordinates are relative to the View's parent.<br>
1717 public Size CurrentSize
1721 return GetCurrentSize();
1726 /// Retrieves the view's parent.<br>
1736 public bool Visibility
1745 /// Retrieves and sets the view's opacity.<br>
1747 public float Opacity
1752 GetProperty(View.Property.OPACITY).Get(ref temp);
1757 SetProperty(View.Property.OPACITY, new Tizen.NUI.PropertyValue(value));
1762 /// Sets the position of the View for X and Y.<br>
1763 /// By default, sets the position vector between the parent origin and anchor point(default).<br>
1764 /// If Position inheritance if disabled, sets the world position.<br>
1766 public Position2D Position2D
1770 Position temp = new Position(0.0f, 0.0f, 0.0f);
1771 GetProperty(View.Property.POSITION).Get(temp);
1772 return new Position2D(temp);
1776 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position(value)));
1781 /// Retrieves screen postion of view's.<br>
1783 public Vector2 ScreenPosition
1787 Vector2 temp = new Vector2(0.0f, 0.0f);
1788 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
1794 /// Determines whether the anchor point should be used to determine the position of the view.
1795 /// This is true by default.
1797 /// <remarks>If false, then the top-left of the view is used for the position.
1798 /// Setting this to false will allow scaling or rotation around the anchor-point without affecting the view's position.
1800 public bool PositionUsesAnchorPoint
1805 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(ref temp);
1810 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
1814 public bool StateFocusEnable
1818 return IsKeyboardFocusable();
1822 SetKeyboardFocusable(value);
1827 /// Queries whether the view is connected to the Stage.<br>
1828 /// When an view is connected, it will be directly or indirectly parented to the root View.<br>
1830 public bool IsOnWindow
1839 /// Gets depth in the hierarchy for the view.
1841 public int HierarchyDepth
1845 return GetHierarchyDepth();
1850 /// Sets the sibling order of the view so depth position can be defined within the same parent.
1853 /// Note The initial value is 0.
1854 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove and LowerBelow will override the sibling order.
1855 /// The values set by this Property will likely change.
1857 public int SiblingOrder
1862 GetProperty(View.Property.SIBLING_ORDER).Get(ref temp);
1867 SetProperty(View.Property.SIBLING_ORDER, new Tizen.NUI.PropertyValue(value));
1872 /// Gets the natural size of the view.<br>
1877 public Vector3 NaturalSize
1881 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
1882 if (NDalicPINVOKE.SWIGPendingException.Pending)
1883 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1892 /// This is an asynchronous method.
1903 /// This is an asynchronous method.
1904 /// If an view is hidden, then the view and its children will not be rendered.
1905 /// This is regardless of the individual visibility of the children i.e.an view will only be rendered if all of its parents are shown.
1912 internal void Raise()
1914 NDalicPINVOKE.Raise(swigCPtr);
1915 if (NDalicPINVOKE.SWIGPendingException.Pending)
1916 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1919 internal void Lower()
1921 NDalicPINVOKE.Lower(swigCPtr);
1922 if (NDalicPINVOKE.SWIGPendingException.Pending)
1923 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1927 /// Raise view above all other views.
1930 /// Sibling order of views within the parent will be updated automatically.
1931 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
1933 public void RaiseToTop()
1935 NDalicPINVOKE.RaiseToTop(swigCPtr);
1936 if (NDalicPINVOKE.SWIGPendingException.Pending)
1937 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1941 /// Lower view to the bottom of all views.
1944 /// Sibling order of views within the parent will be updated automatically.
1945 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
1947 public void LowerToBottom()
1949 NDalicPINVOKE.LowerToBottom(swigCPtr);
1950 if (NDalicPINVOKE.SWIGPendingException.Pending)
1951 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1955 /// Raise the view to above the target view.
1957 /// <remarks>Sibling order of views within the parent will be updated automatically.
1958 /// Views on the level above the target view will still be shown above this view.
1959 /// Raising this view above views with the same sibling order as each other will raise this view above them.
1960 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
1962 /// <param name="target">Will be raised above this view</param>
1963 internal void RaiseAbove(View target)
1965 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
1966 if (NDalicPINVOKE.SWIGPendingException.Pending)
1967 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1971 /// Lower the view to below the target view.
1973 /// <remarks>Sibling order of views within the parent will be updated automatically.
1974 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
1975 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
1977 /// <param name="target">Will be lowered below this view</param>
1978 internal void LowerBelow(View target)
1980 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
1981 if (NDalicPINVOKE.SWIGPendingException.Pending)
1982 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1985 internal string GetName()
1987 string ret = NDalicPINVOKE.Actor_GetName(swigCPtr);
1988 if (NDalicPINVOKE.SWIGPendingException.Pending)
1989 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1993 internal void SetName(string name)
1995 NDalicPINVOKE.Actor_SetName(swigCPtr, name);
1996 if (NDalicPINVOKE.SWIGPendingException.Pending)
1997 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2000 internal uint GetId()
2002 uint ret = NDalicPINVOKE.Actor_GetId(swigCPtr);
2003 if (NDalicPINVOKE.SWIGPendingException.Pending)
2004 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2008 internal bool IsRoot()
2010 bool ret = NDalicPINVOKE.Actor_IsRoot(swigCPtr);
2011 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2015 internal bool OnWindow()
2017 bool ret = NDalicPINVOKE.Actor_OnStage(swigCPtr);
2018 if (NDalicPINVOKE.SWIGPendingException.Pending)
2019 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2023 internal bool IsLayer()
2025 bool ret = NDalicPINVOKE.Actor_IsLayer(swigCPtr);
2026 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2030 internal Layer GetLayer()
2032 Layer ret = new Layer(NDalicPINVOKE.Actor_GetLayer(swigCPtr), true);
2033 if (NDalicPINVOKE.SWIGPendingException.Pending)
2034 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2039 /// Adds a child view to this View.
2041 /// <pre>This View(the parent) has been initialized. The child view has been initialized. The child view is not the same as the parent view.</pre>
2042 /// <post>The child will be referenced by its parent. This means that the child will be kept alive, even if the handle passed into this method is reset or destroyed.</post>
2043 /// <remarks>If the child already has a parent, it will be removed from old parent and reparented to this view. This may change child's position, color, scale etc as it now inherits them from this view.</remarks>
2044 /// <param name="child">The child</param>
2045 public void Add(View child)
2047 NDalicPINVOKE.Actor_Add(swigCPtr, View.getCPtr(child));
2048 if (NDalicPINVOKE.SWIGPendingException.Pending)
2049 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2053 /// Removes a child View from this View. If the view was not a child of this view, this is a no-op.
2055 /// <pre>This View(the parent) has been initialized. The child view is not the same as the parent view.</pre>
2056 /// <param name="child">The child</param>
2057 public void Remove(View child)
2059 NDalicPINVOKE.Actor_Remove(swigCPtr, View.getCPtr(child));
2060 if (NDalicPINVOKE.SWIGPendingException.Pending)
2061 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2064 internal void Unparent()
2066 NDalicPINVOKE.Actor_Unparent(swigCPtr);
2067 if (NDalicPINVOKE.SWIGPendingException.Pending)
2068 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2072 /// Retrieves the number of children held by the view.
2074 /// <pre>The View has been initialized.</pre>
2075 /// <returns>The number of children</returns>
2076 public uint GetChildCount()
2078 uint ret = NDalicPINVOKE.Actor_GetChildCount(swigCPtr);
2079 if (NDalicPINVOKE.SWIGPendingException.Pending)
2080 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2085 /// Retrieves child view by index.
2087 /// <pre>The View has been initialized.</pre>
2088 /// <param name="index">The index of the child to retrieve</param>
2089 /// <returns>The view for the given index or empty handle if children not initialized</returns>
2090 public View GetChildAt(uint index)
2092 View ret = new View(NDalicPINVOKE.Actor_GetChildAt(swigCPtr, index), true);
2093 if (NDalicPINVOKE.SWIGPendingException.Pending)
2094 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2099 /// Search through this view's hierarchy for an view with the given name.
2100 /// The view itself is also considered in the search.
2102 /// <pre>The View has been initialized.</pre>
2103 /// <param name="viewName">The name of the view to find</param>
2104 /// <returns>A handle to the view if found, or an empty handle if not</returns>
2105 public View FindChildByName(string viewName)
2107 View ret = new View(NDalicPINVOKE.Actor_FindChildByName(swigCPtr, viewName), true);
2108 if (NDalicPINVOKE.SWIGPendingException.Pending)
2109 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2113 internal View FindChildById(uint id)
2115 View ret = new View(NDalicPINVOKE.Actor_FindChildById(swigCPtr, id), true);
2116 if (NDalicPINVOKE.SWIGPendingException.Pending)
2117 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2121 internal View GetParent()
2123 View ret = new View(NDalicPINVOKE.Actor_GetParent(swigCPtr), true);
2124 if (NDalicPINVOKE.SWIGPendingException.Pending)
2125 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2129 internal void SetParentOrigin(Vector3 origin)
2131 NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
2132 if (NDalicPINVOKE.SWIGPendingException.Pending)
2133 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2136 internal Vector3 GetCurrentParentOrigin()
2138 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentParentOrigin(swigCPtr), true);
2139 if (NDalicPINVOKE.SWIGPendingException.Pending)
2140 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2144 internal void SetAnchorPoint(Vector3 anchorPoint)
2146 NDalicPINVOKE.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
2147 if (NDalicPINVOKE.SWIGPendingException.Pending)
2148 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2151 internal Vector3 GetCurrentAnchorPoint()
2153 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentAnchorPoint(swigCPtr), true);
2154 if (NDalicPINVOKE.SWIGPendingException.Pending)
2155 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2159 internal void SetSize(float width, float height)
2161 NDalicPINVOKE.Actor_SetSize__SWIG_0(swigCPtr, width, height);
2162 if (NDalicPINVOKE.SWIGPendingException.Pending)
2163 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2166 internal void SetSize(float width, float height, float depth)
2168 NDalicPINVOKE.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
2169 if (NDalicPINVOKE.SWIGPendingException.Pending)
2170 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2173 internal void SetSize(Vector2 size)
2175 NDalicPINVOKE.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
2176 if (NDalicPINVOKE.SWIGPendingException.Pending)
2177 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2180 internal void SetSize(Vector3 size)
2182 NDalicPINVOKE.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
2183 if (NDalicPINVOKE.SWIGPendingException.Pending)
2184 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2187 internal Vector3 GetTargetSize()
2189 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetTargetSize(swigCPtr), true);
2190 if (NDalicPINVOKE.SWIGPendingException.Pending)
2191 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2195 internal Size GetCurrentSize()
2197 Size ret = new Size(NDalicPINVOKE.Actor_GetCurrentSize(swigCPtr), true);
2198 if (NDalicPINVOKE.SWIGPendingException.Pending)
2199 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2203 internal Vector3 GetNaturalSize()
2205 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2206 if (NDalicPINVOKE.SWIGPendingException.Pending)
2207 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2211 internal void SetPosition(float x, float y)
2213 NDalicPINVOKE.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
2214 if (NDalicPINVOKE.SWIGPendingException.Pending)
2215 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2218 internal void SetPosition(float x, float y, float z)
2220 NDalicPINVOKE.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
2221 if (NDalicPINVOKE.SWIGPendingException.Pending)
2222 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2225 internal void SetPosition(Vector3 position)
2227 NDalicPINVOKE.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
2228 if (NDalicPINVOKE.SWIGPendingException.Pending)
2229 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2232 internal void SetX(float x)
2234 NDalicPINVOKE.Actor_SetX(swigCPtr, x);
2235 if (NDalicPINVOKE.SWIGPendingException.Pending)
2236 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2239 internal void SetY(float y)
2241 NDalicPINVOKE.Actor_SetY(swigCPtr, y);
2242 if (NDalicPINVOKE.SWIGPendingException.Pending)
2243 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2246 internal void SetZ(float z)
2248 NDalicPINVOKE.Actor_SetZ(swigCPtr, z);
2249 if (NDalicPINVOKE.SWIGPendingException.Pending)
2250 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2253 internal void TranslateBy(Vector3 distance)
2255 NDalicPINVOKE.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
2256 if (NDalicPINVOKE.SWIGPendingException.Pending)
2257 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2260 internal Position GetCurrentPosition()
2262 Position ret = new Position(NDalicPINVOKE.Actor_GetCurrentPosition(swigCPtr), true);
2263 if (NDalicPINVOKE.SWIGPendingException.Pending)
2264 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2268 internal Vector3 GetCurrentWorldPosition()
2270 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldPosition(swigCPtr), true);
2271 if (NDalicPINVOKE.SWIGPendingException.Pending)
2272 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2276 internal void SetInheritPosition(bool inherit)
2278 NDalicPINVOKE.Actor_SetInheritPosition(swigCPtr, inherit);
2279 if (NDalicPINVOKE.SWIGPendingException.Pending)
2280 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2283 internal bool IsPositionInherited()
2285 bool ret = NDalicPINVOKE.Actor_IsPositionInherited(swigCPtr);
2286 if (NDalicPINVOKE.SWIGPendingException.Pending)
2287 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2291 internal void SetOrientation(Degree angle, Vector3 axis)
2293 NDalicPINVOKE.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2294 if (NDalicPINVOKE.SWIGPendingException.Pending)
2295 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2298 internal void SetOrientation(Radian angle, Vector3 axis)
2300 NDalicPINVOKE.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2301 if (NDalicPINVOKE.SWIGPendingException.Pending)
2302 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2305 internal void SetOrientation(Rotation orientation)
2307 NDalicPINVOKE.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
2308 if (NDalicPINVOKE.SWIGPendingException.Pending)
2309 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2312 internal void RotateBy(Degree angle, Vector3 axis)
2314 NDalicPINVOKE.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2315 if (NDalicPINVOKE.SWIGPendingException.Pending)
2316 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2319 internal void RotateBy(Radian angle, Vector3 axis)
2321 NDalicPINVOKE.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2322 if (NDalicPINVOKE.SWIGPendingException.Pending)
2323 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2326 internal void RotateBy(Rotation relativeRotation)
2328 NDalicPINVOKE.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
2329 if (NDalicPINVOKE.SWIGPendingException.Pending)
2330 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2333 internal Rotation GetCurrentOrientation()
2335 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentOrientation(swigCPtr), true);
2336 if (NDalicPINVOKE.SWIGPendingException.Pending)
2337 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2341 internal void SetInheritOrientation(bool inherit)
2343 NDalicPINVOKE.Actor_SetInheritOrientation(swigCPtr, inherit);
2344 if (NDalicPINVOKE.SWIGPendingException.Pending)
2345 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2348 internal bool IsOrientationInherited()
2350 bool ret = NDalicPINVOKE.Actor_IsOrientationInherited(swigCPtr);
2351 if (NDalicPINVOKE.SWIGPendingException.Pending)
2352 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2356 internal Rotation GetCurrentWorldOrientation()
2358 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentWorldOrientation(swigCPtr), true);
2359 if (NDalicPINVOKE.SWIGPendingException.Pending)
2360 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2364 internal void SetScale(float scale)
2366 NDalicPINVOKE.Actor_SetScale__SWIG_0(swigCPtr, scale);
2367 if (NDalicPINVOKE.SWIGPendingException.Pending)
2368 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2371 internal void SetScale(float scaleX, float scaleY, float scaleZ)
2373 NDalicPINVOKE.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
2374 if (NDalicPINVOKE.SWIGPendingException.Pending)
2375 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2378 internal void SetScale(Vector3 scale)
2380 NDalicPINVOKE.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
2381 if (NDalicPINVOKE.SWIGPendingException.Pending)
2382 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2385 internal void ScaleBy(Vector3 relativeScale)
2387 NDalicPINVOKE.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
2388 if (NDalicPINVOKE.SWIGPendingException.Pending)
2389 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2392 internal Vector3 GetCurrentScale()
2394 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentScale(swigCPtr), true);
2395 if (NDalicPINVOKE.SWIGPendingException.Pending)
2396 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2400 internal Vector3 GetCurrentWorldScale()
2402 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldScale(swigCPtr), true);
2403 if (NDalicPINVOKE.SWIGPendingException.Pending)
2404 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2408 internal void SetInheritScale(bool inherit)
2410 NDalicPINVOKE.Actor_SetInheritScale(swigCPtr, inherit);
2411 if (NDalicPINVOKE.SWIGPendingException.Pending)
2412 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2415 internal bool IsScaleInherited()
2417 bool ret = NDalicPINVOKE.Actor_IsScaleInherited(swigCPtr);
2418 if (NDalicPINVOKE.SWIGPendingException.Pending)
2419 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2423 internal Matrix GetCurrentWorldMatrix()
2425 Matrix ret = new Matrix(NDalicPINVOKE.Actor_GetCurrentWorldMatrix(swigCPtr), true);
2426 if (NDalicPINVOKE.SWIGPendingException.Pending)
2427 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2431 internal void SetVisible(bool visible)
2433 NDalicPINVOKE.Actor_SetVisible(swigCPtr, visible);
2434 if (NDalicPINVOKE.SWIGPendingException.Pending)
2435 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2438 internal bool IsVisible()
2440 bool ret = NDalicPINVOKE.Actor_IsVisible(swigCPtr);
2441 if (NDalicPINVOKE.SWIGPendingException.Pending)
2442 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2446 internal void SetOpacity(float opacity)
2448 NDalicPINVOKE.Actor_SetOpacity(swigCPtr, opacity);
2449 if (NDalicPINVOKE.SWIGPendingException.Pending)
2450 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2453 internal float GetCurrentOpacity()
2455 float ret = NDalicPINVOKE.Actor_GetCurrentOpacity(swigCPtr);
2456 if (NDalicPINVOKE.SWIGPendingException.Pending)
2457 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2461 internal void SetColor(Vector4 color)
2463 NDalicPINVOKE.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
2464 if (NDalicPINVOKE.SWIGPendingException.Pending)
2465 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2468 internal Vector4 GetCurrentColor()
2470 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentColor(swigCPtr), true);
2471 if (NDalicPINVOKE.SWIGPendingException.Pending)
2472 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2476 internal void SetColorMode(ColorMode colorMode)
2478 NDalicPINVOKE.Actor_SetColorMode(swigCPtr, (int)colorMode);
2479 if (NDalicPINVOKE.SWIGPendingException.Pending)
2480 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2483 internal ColorMode GetColorMode()
2485 ColorMode ret = (ColorMode)NDalicPINVOKE.Actor_GetColorMode(swigCPtr);
2486 if (NDalicPINVOKE.SWIGPendingException.Pending)
2487 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2491 internal Vector4 GetCurrentWorldColor()
2493 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentWorldColor(swigCPtr), true);
2494 if (NDalicPINVOKE.SWIGPendingException.Pending)
2495 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2499 internal void SetDrawMode(DrawModeType drawMode)
2501 NDalicPINVOKE.Actor_SetDrawMode(swigCPtr, (int)drawMode);
2502 if (NDalicPINVOKE.SWIGPendingException.Pending)
2503 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2506 internal DrawModeType GetDrawMode()
2508 DrawModeType ret = (DrawModeType)NDalicPINVOKE.Actor_GetDrawMode(swigCPtr);
2509 if (NDalicPINVOKE.SWIGPendingException.Pending)
2510 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2514 internal void SetSensitive(bool sensitive)
2516 NDalicPINVOKE.Actor_SetSensitive(swigCPtr, sensitive);
2517 if (NDalicPINVOKE.SWIGPendingException.Pending)
2518 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2521 internal bool IsSensitive()
2523 bool ret = NDalicPINVOKE.Actor_IsSensitive(swigCPtr);
2524 if (NDalicPINVOKE.SWIGPendingException.Pending)
2525 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2530 /// Converts screen coordinates into the view's coordinate system using the default camera.
2532 /// <pre>The View has been initialized.</pre>
2533 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5)</remarks>
2534 /// <param name="localX">On return, the X-coordinate relative to the view</param>
2535 /// <param name="localY">On return, the Y-coordinate relative to the view</param>
2536 /// <param name="screenX">The screen X-coordinate</param>
2537 /// <param name="screenY">The screen Y-coordinate</param>
2538 /// <returns>True if the conversion succeeded</returns>
2539 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
2541 bool ret = NDalicPINVOKE.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
2542 if (NDalicPINVOKE.SWIGPendingException.Pending)
2543 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2547 internal void SetLeaveRequired(bool required)
2549 NDalicPINVOKE.Actor_SetLeaveRequired(swigCPtr, required);
2550 if (NDalicPINVOKE.SWIGPendingException.Pending)
2551 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2554 internal bool GetLeaveRequired()
2556 bool ret = NDalicPINVOKE.Actor_GetLeaveRequired(swigCPtr);
2557 if (NDalicPINVOKE.SWIGPendingException.Pending)
2558 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2562 internal void SetKeyboardFocusable(bool focusable)
2564 NDalicPINVOKE.Actor_SetKeyboardFocusable(swigCPtr, focusable);
2565 if (NDalicPINVOKE.SWIGPendingException.Pending)
2566 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2569 internal bool IsKeyboardFocusable()
2571 bool ret = NDalicPINVOKE.Actor_IsKeyboardFocusable(swigCPtr);
2572 if (NDalicPINVOKE.SWIGPendingException.Pending)
2573 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2577 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
2579 NDalicPINVOKE.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
2580 if (NDalicPINVOKE.SWIGPendingException.Pending)
2581 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2584 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
2586 ResizePolicyType ret = (ResizePolicyType)NDalicPINVOKE.Actor_GetResizePolicy(swigCPtr, (int)dimension);
2587 if (NDalicPINVOKE.SWIGPendingException.Pending)
2588 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2592 internal void SetSizeScalePolicy(SizeScalePolicyType policy)
2594 NDalicPINVOKE.Actor_SetSizeScalePolicy(swigCPtr, (int)policy);
2595 if (NDalicPINVOKE.SWIGPendingException.Pending)
2596 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2599 internal SizeScalePolicyType GetSizeScalePolicy()
2601 SizeScalePolicyType ret = (SizeScalePolicyType)NDalicPINVOKE.Actor_GetSizeScalePolicy(swigCPtr);
2602 if (NDalicPINVOKE.SWIGPendingException.Pending)
2603 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2608 /// Sets the relative to parent size factor of the view.<br>
2609 /// This factor is only used when ResizePolicy is set to either:
2610 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br>
2611 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br>
2613 /// <pre>The View has been initialized.</pre>
2614 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis</param>
2615 public void SetSizeModeFactor(Vector3 factor)
2617 NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
2618 if (NDalicPINVOKE.SWIGPendingException.Pending)
2619 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2622 internal Vector3 GetSizeModeFactor()
2624 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetSizeModeFactor(swigCPtr), true);
2625 if (NDalicPINVOKE.SWIGPendingException.Pending)
2626 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2631 /// Calculates the height of the view given a width.<br>
2632 /// The natural size is used for default calculation. <br>
2633 /// size 0 is treated as aspect ratio 1:1.<br>
2635 /// <param name="width">Width to use</param>
2636 /// <returns>The height based on the width</returns>
2637 public float GetHeightForWidth(float width)
2639 float ret = NDalicPINVOKE.Actor_GetHeightForWidth(swigCPtr, width);
2640 if (NDalicPINVOKE.SWIGPendingException.Pending)
2641 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2646 /// Calculates the width of the view given a height.<br>
2647 /// The natural size is used for default calculation.<br>
2648 /// size 0 is treated as aspect ratio 1:1.<br>
2650 /// <param name="height">Height to use</param>
2651 /// <returns>The width based on the height</returns>
2652 public float GetWidthForHeight(float height)
2654 float ret = NDalicPINVOKE.Actor_GetWidthForHeight(swigCPtr, height);
2655 if (NDalicPINVOKE.SWIGPendingException.Pending)
2656 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2660 public float GetRelayoutSize(DimensionType dimension)
2662 float ret = NDalicPINVOKE.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
2663 if (NDalicPINVOKE.SWIGPendingException.Pending)
2664 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2668 public void SetPadding(PaddingType padding)
2670 NDalicPINVOKE.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
2671 if (NDalicPINVOKE.SWIGPendingException.Pending)
2672 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2675 public void GetPadding(PaddingType paddingOut)
2677 NDalicPINVOKE.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
2678 if (NDalicPINVOKE.SWIGPendingException.Pending)
2679 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2682 internal void SetMinimumSize(Vector2 size)
2684 NDalicPINVOKE.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
2685 if (NDalicPINVOKE.SWIGPendingException.Pending)
2686 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2689 internal Vector2 GetMinimumSize()
2691 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMinimumSize(swigCPtr), true);
2692 if (NDalicPINVOKE.SWIGPendingException.Pending)
2693 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2697 internal void SetMaximumSize(Vector2 size)
2699 NDalicPINVOKE.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
2700 if (NDalicPINVOKE.SWIGPendingException.Pending)
2701 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2704 internal Vector2 GetMaximumSize()
2706 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMaximumSize(swigCPtr), true);
2707 if (NDalicPINVOKE.SWIGPendingException.Pending)
2708 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2712 internal int GetHierarchyDepth()
2714 int ret = NDalicPINVOKE.Actor_GetHierarchyDepth(swigCPtr);
2715 if (NDalicPINVOKE.SWIGPendingException.Pending)
2716 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2720 internal uint AddRenderer(Renderer renderer)
2722 uint ret = NDalicPINVOKE.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
2723 if (NDalicPINVOKE.SWIGPendingException.Pending)
2724 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2728 internal uint GetRendererCount()
2730 uint ret = NDalicPINVOKE.Actor_GetRendererCount(swigCPtr);
2731 if (NDalicPINVOKE.SWIGPendingException.Pending)
2732 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2736 internal Renderer GetRendererAt(uint index)
2738 Renderer ret = new Renderer(NDalicPINVOKE.Actor_GetRendererAt(swigCPtr, index), true);
2739 if (NDalicPINVOKE.SWIGPendingException.Pending)
2740 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2744 internal void RemoveRenderer(Renderer renderer)
2746 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
2747 if (NDalicPINVOKE.SWIGPendingException.Pending)
2748 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2751 internal void RemoveRenderer(uint index)
2753 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
2754 if (NDalicPINVOKE.SWIGPendingException.Pending)
2755 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2758 internal TouchDataSignal TouchSignal()
2760 TouchDataSignal ret = new TouchDataSignal(NDalicPINVOKE.Actor_TouchSignal(swigCPtr), false);
2761 if (NDalicPINVOKE.SWIGPendingException.Pending)
2762 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2766 internal HoverSignal HoveredSignal()
2768 HoverSignal ret = new HoverSignal(NDalicPINVOKE.Actor_HoveredSignal(swigCPtr), false);
2769 if (NDalicPINVOKE.SWIGPendingException.Pending)
2770 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2774 internal WheelSignal WheelEventSignal()
2776 WheelSignal ret = new WheelSignal(NDalicPINVOKE.Actor_WheelEventSignal(swigCPtr), false);
2777 if (NDalicPINVOKE.SWIGPendingException.Pending)
2778 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2782 internal ViewSignal OnWindowSignal()
2784 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
2785 if (NDalicPINVOKE.SWIGPendingException.Pending)
2786 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2790 internal ViewSignal OffWindowSignal()
2792 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OffStageSignal(swigCPtr), false);
2793 if (NDalicPINVOKE.SWIGPendingException.Pending)
2794 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2798 internal ViewSignal OnRelayoutSignal()
2800 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnRelayoutSignal(swigCPtr), false);
2801 if (NDalicPINVOKE.SWIGPendingException.Pending)
2802 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2806 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view) {
2807 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(NDalicPINVOKE.VisibilityChangedSignal(View.getCPtr(view)), false);
2808 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2813 /// Gets/Sets the origin of an view, within its parent's area.<br>
2814 /// 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>
2815 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br>
2816 /// An view's position is the distance between this origin, and the view's anchor-point.<br>
2818 /// <pre>The View has been initialized.</pre>
2819 public Position ParentOrigin
2823 Position temp = new Position(0.0f, 0.0f, 0.0f);
2824 GetProperty(View.Property.PARENT_ORIGIN).Get(temp);
2829 SetProperty(View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue(value));
2833 internal float ParentOriginX
2838 GetProperty(View.Property.PARENT_ORIGIN_X).Get(ref temp);
2843 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
2847 internal float ParentOriginY
2852 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(ref temp);
2857 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
2861 internal float ParentOriginZ
2866 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(ref temp);
2871 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
2876 /// Gets/Sets the anchor-point of an view.<br>
2877 /// 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>
2878 /// The default anchor point is AnchorPoint.Center (0.5, 0.5, 0.5).<br>
2879 /// An view position is the distance between its parent-origin and this anchor-point.<br>
2880 /// An view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br>
2881 /// <pre>The View has been initialized.</pre>
2883 public Position AnchorPoint
2887 Position temp = new Position(0.0f, 0.0f, 0.0f);
2888 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
2893 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2897 internal float AnchorPointX
2902 GetProperty(View.Property.ANCHOR_POINT_X).Get(ref temp);
2907 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
2911 internal float AnchorPointY
2916 GetProperty(View.Property.ANCHOR_POINT_Y).Get(ref temp);
2921 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
2925 internal float AnchorPointZ
2930 GetProperty(View.Property.ANCHOR_POINT_Z).Get(ref temp);
2935 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
2940 /// Gets/Sets the size of an view.<br>
2941 /// Geometry can be scaled to fit within this area.<br>
2942 /// This does not interfere with the views scale factor.<br>
2948 Size temp = new Size(0.0f, 0.0f, 0.0f);
2949 GetProperty(View.Property.SIZE).Get(temp);
2954 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(value));
2959 /// Gets/Sets the size width of an view.
2961 public float SizeWidth
2966 GetProperty(View.Property.SIZE_WIDTH).Get(ref temp);
2971 SetProperty(View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
2976 /// Gets/Sets the size height of an view.
2978 public float SizeHeight
2983 GetProperty(View.Property.SIZE_HEIGHT).Get(ref temp);
2988 SetProperty(View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
2993 /// Gets/Sets the size depth of an view.
2995 public float SizeDepth
3000 GetProperty(View.Property.SIZE_DEPTH).Get(ref temp);
3005 SetProperty(View.Property.SIZE_DEPTH, new Tizen.NUI.PropertyValue(value));
3010 /// Gets/Sets the position of the View.<br>
3011 /// By default, sets the position vector between the parent origin and anchor point(default).<br>
3012 /// If Position inheritance if disabled, sets the world position.<br>
3014 public Position Position
3018 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3019 GetProperty(View.Property.POSITION).Get(temp);
3024 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(value));
3029 /// Gets/Sets the position x of the View.
3031 public float PositionX
3036 GetProperty(View.Property.POSITION_X).Get(ref temp);
3041 SetProperty(View.Property.POSITION_X, new Tizen.NUI.PropertyValue(value));
3046 /// Gets/Sets the position y of the View.
3048 public float PositionY
3053 GetProperty(View.Property.POSITION_Y).Get(ref temp);
3058 SetProperty(View.Property.POSITION_Y, new Tizen.NUI.PropertyValue(value));
3063 /// Gets/Sets the position z of the View.
3065 public float PositionZ
3070 GetProperty(View.Property.POSITION_Z).Get(ref temp);
3075 SetProperty(View.Property.POSITION_Z, new Tizen.NUI.PropertyValue(value));
3080 /// Gets/Sets the world position of the View.
3082 public Vector3 WorldPosition
3086 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3087 GetProperty(View.Property.WORLD_POSITION).Get(temp);
3092 internal float WorldPositionX
3097 GetProperty(View.Property.WORLD_POSITION_X).Get(ref temp);
3102 internal float WorldPositionY
3107 GetProperty(View.Property.WORLD_POSITION_Y).Get(ref temp);
3112 internal float WorldPositionZ
3117 GetProperty(View.Property.WORLD_POSITION_Z).Get(ref temp);
3123 /// Gets/Sets the orientation of the View.<br>
3124 /// An view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br>
3126 /// <remarks>This is an asynchronous method.</remarks>
3127 public Rotation Orientation
3131 Rotation temp = new Rotation();
3132 GetProperty(View.Property.ORIENTATION).Get(temp);
3137 SetProperty(View.Property.ORIENTATION, new Tizen.NUI.PropertyValue(value));
3142 /// Gets/Sets the world orientation of the View.<br>
3144 public Rotation WorldOrientation
3148 Rotation temp = new Rotation();
3149 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
3155 /// Gets/Sets the scale factor applied to an view.<br>
3157 public Vector3 Scale
3161 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3162 GetProperty(View.Property.SCALE).Get(temp);
3167 SetProperty(View.Property.SCALE, new Tizen.NUI.PropertyValue(value));
3172 /// Gets/Sets the scale x factor applied to an view.
3179 GetProperty(View.Property.SCALE_X).Get(ref temp);
3184 SetProperty(View.Property.SCALE_X, new Tizen.NUI.PropertyValue(value));
3189 /// Gets/Sets the scale y factor applied to an view.
3196 GetProperty(View.Property.SCALE_Y).Get(ref temp);
3201 SetProperty(View.Property.SCALE_Y, new Tizen.NUI.PropertyValue(value));
3206 /// Gets/Sets the scale z factor applied to an view.
3213 GetProperty(View.Property.SCALE_Z).Get(ref temp);
3218 SetProperty(View.Property.SCALE_Z, new Tizen.NUI.PropertyValue(value));
3223 /// Gets the world scale of View.
3225 public Vector3 WorldScale
3229 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3230 GetProperty(View.Property.WORLD_SCALE).Get(temp);
3236 /// Retrieves the visibility flag of an view.
3239 /// If an view is not visible, then the view and its children will not be rendered.
3240 /// This is regardless of the individual visibility values of the children i.e.an view will only be rendered if all of its parents have visibility set to true.
3247 GetProperty(View.Property.VISIBLE).Get(ref temp);
3249 }/* only get is required : removed
3252 SetProperty(View.Property.VISIBLE, new Tizen.NUI.PropertyValue(value));
3257 /// Gets/Sets the view's mix color red.
3259 public float ColorRed
3264 GetProperty(View.Property.COLOR_RED).Get(ref temp);
3269 SetProperty(View.Property.COLOR_RED, new Tizen.NUI.PropertyValue(value));
3274 /// Gets/Sets the view's mix color green.
3276 public float ColorGreen
3281 GetProperty(View.Property.COLOR_GREEN).Get(ref temp);
3286 SetProperty(View.Property.COLOR_GREEN, new Tizen.NUI.PropertyValue(value));
3291 /// Gets/Sets the view's mix color blue
3293 public float ColorBlue
3298 GetProperty(View.Property.COLOR_BLUE).Get(ref temp);
3303 SetProperty(View.Property.COLOR_BLUE, new Tizen.NUI.PropertyValue(value));
3308 /// Gets/Sets the view's mix color alpha.
3310 public float ColorAlpha
3315 GetProperty(View.Property.COLOR_ALPHA).Get(ref temp);
3320 SetProperty(View.Property.COLOR_ALPHA, new Tizen.NUI.PropertyValue(value));
3325 /// Gets the view's world color.
3327 public Vector4 WorldColor
3331 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3332 GetProperty(View.Property.WORLD_COLOR).Get(temp);
3337 internal Matrix WorldMatrix
3341 Matrix temp = new Matrix();
3342 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3348 /// Gets/Sets the View's name.
3355 GetProperty(View.Property.NAME).Get(out temp);
3360 SetProperty(View.Property.NAME, new Tizen.NUI.PropertyValue(value));
3365 /// Gets/Sets the status of whether an view should emit touch or hover signals.
3367 public bool Sensitive
3372 GetProperty(View.Property.SENSITIVE).Get(ref temp);
3377 SetProperty(View.Property.SENSITIVE, new Tizen.NUI.PropertyValue(value));
3382 /// Gets/Sets the status of whether the view should receive a notification when touch or hover motion events leave the boundary of the view.
3384 public bool LeaveRequired
3389 GetProperty(View.Property.LEAVE_REQUIRED).Get(ref temp);
3394 SetProperty(View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue(value));
3399 /// Gets/Sets the status of whether a child view inherits it's parent's orientation.
3401 public bool InheritOrientation
3406 GetProperty(View.Property.INHERIT_ORIENTATION).Get(ref temp);
3411 SetProperty(View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue(value));
3416 /// Gets/Sets the status of whether a child view inherits it's parent's scale.
3418 public bool InheritScale
3423 GetProperty(View.Property.INHERIT_SCALE).Get(ref temp);
3428 SetProperty(View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue(value));
3433 /// Gets/Sets the view's color mode.<br>
3434 /// This specifies whether the View uses its own color, or inherits its parent color.<br>
3435 /// The default is UseOwnMultiplyParentAlpha.<br>
3437 public ColorMode ColorMode
3442 if (GetProperty(View.Property.COLOR_MODE).Get(out temp) == false)
3445 Tizen.Log.Error("NUI", "ColorMode get error!");
3450 case "USE_OWN_COLOR":
3451 return ColorMode.UseOwnColor;
3452 case "USE_PARENT_COLOR":
3453 return ColorMode.UseParentColor;
3454 case "USE_OWN_MULTIPLY_PARENT_COLOR":
3455 return ColorMode.UseOwnMultiplyParentColor;
3456 case "USE_OWN_MULTIPLY_PARENT_ALPHA":
3457 return ColorMode.UseOwnMultiplyParentAlpha;
3459 return ColorMode.UseOwnMultiplyParentAlpha;
3464 SetProperty(View.Property.COLOR_MODE, new Tizen.NUI.PropertyValue((int)value));
3468 public string PositionInheritance
3473 GetProperty(View.Property.POSITION_INHERITANCE).Get(out temp);
3478 SetProperty(View.Property.POSITION_INHERITANCE, new Tizen.NUI.PropertyValue(value));
3483 /// Gets/Sets the status of how the view and its children should be drawn.<br>
3484 /// Not all views are renderable, but DrawMode can be inherited from any view.<br>
3485 /// 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>
3486 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br>
3487 /// Overlay views are drawn in a separate pass, after all non-overlay views within the Layer.<br>
3488 /// For overlay views, the drawing order is with respect to tree levels of Views, and depth-testing will not be used.<br>
3490 public DrawModeType DrawMode
3495 if (GetProperty(View.Property.DRAW_MODE).Get(out temp) == false)
3498 Tizen.Log.Error("NUI", "DrawMode get error!");
3504 return DrawModeType.Normal;
3506 return DrawModeType.Overlay2D;
3508 return DrawModeType.Stencil;
3510 return DrawModeType.Normal;
3515 SetProperty(View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)value));
3520 /// Gets/Sets the relative to parent size factor of the view.<br>
3521 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br>
3522 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br>
3524 public Vector3 SizeModeFactor
3528 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3529 GetProperty(View.Property.SIZE_MODE_FACTOR).Get(temp);
3534 SetProperty(View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue(value));
3539 /// Gets/Sets the width resize policy to be used.
3541 public ResizePolicyType WidthResizePolicy
3546 if (GetProperty(View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
3549 Tizen.Log.Error("NUI", "WidthResizePolicy get error!");
3555 return ResizePolicyType.Fixed;
3556 case "USE_NATURAL_SIZE":
3557 return ResizePolicyType.UseNaturalSize;
3558 case "FILL_TO_PARENT":
3559 return ResizePolicyType.FillToParent;
3560 case "SIZE_RELATIVE_TO_PARENT":
3561 return ResizePolicyType.SizeRelativeToParent;
3562 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3563 return ResizePolicyType.SizeFixedOffsetFromParent;
3564 case "FIT_TO_CHILDREN":
3565 return ResizePolicyType.FitToChildren;
3566 case "DIMENSION_DEPENDENCY":
3567 return ResizePolicyType.DimensionDependency;
3568 case "USE_ASSIGNED_SIZE":
3569 return ResizePolicyType.UseAssignedSize;
3571 return ResizePolicyType.Fixed;
3576 SetProperty(View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3581 /// Gets/Sets the height resize policy to be used.
3583 public ResizePolicyType HeightResizePolicy
3588 if (GetProperty(View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
3591 Tizen.Log.Error("NUI", "HeightResizePolicy get error!");
3597 return ResizePolicyType.Fixed;
3598 case "USE_NATURAL_SIZE":
3599 return ResizePolicyType.UseNaturalSize;
3600 case "FILL_TO_PARENT":
3601 return ResizePolicyType.FillToParent;
3602 case "SIZE_RELATIVE_TO_PARENT":
3603 return ResizePolicyType.SizeRelativeToParent;
3604 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3605 return ResizePolicyType.SizeFixedOffsetFromParent;
3606 case "FIT_TO_CHILDREN":
3607 return ResizePolicyType.FitToChildren;
3608 case "DIMENSION_DEPENDENCY":
3609 return ResizePolicyType.DimensionDependency;
3610 case "USE_ASSIGNED_SIZE":
3611 return ResizePolicyType.UseAssignedSize;
3613 return ResizePolicyType.Fixed;
3618 SetProperty(View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3623 /// Gets/Sets the policy to use when setting size with size negotiation.<br>
3624 /// Defaults to SizeScalePolicyType.UseSizeSet.<br>
3626 public SizeScalePolicyType SizeScalePolicy
3631 if (GetProperty(View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
3634 Tizen.Log.Error("NUI", "SizeScalePolicy get error!");
3639 case "USE_SIZE_SET":
3640 return SizeScalePolicyType.UseSizeSet;
3641 case "FIT_WITH_ASPECT_RATIO":
3642 return SizeScalePolicyType.FitWithAspectRatio;
3643 case "FILL_WITH_ASPECT_RATIO":
3644 return SizeScalePolicyType.FillWithAspectRatio;
3646 return SizeScalePolicyType.UseSizeSet;
3651 string valueToString = "";
3654 case SizeScalePolicyType.UseSizeSet:
3656 valueToString = "USE_SIZE_SET";
3659 case SizeScalePolicyType.FitWithAspectRatio:
3661 valueToString = "FIT_WITH_ASPECT_RATIO";
3664 case SizeScalePolicyType.FillWithAspectRatio:
3666 valueToString = "FILL_WITH_ASPECT_RATIO";
3671 valueToString = "USE_SIZE_SET";
3675 SetProperty(View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
3680 /// Gets/Sets the status of whether the width size is dependent on height size.
3682 public bool WidthForHeight
3687 GetProperty(View.Property.WIDTH_FOR_HEIGHT).Get(ref temp);
3692 SetProperty(View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue(value));
3697 /// Gets/Sets the status of whether the height size is dependent on width size.
3699 public bool HeightForWidth
3704 GetProperty(View.Property.HEIGHT_FOR_WIDTH).Get(ref temp);
3709 SetProperty(View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue(value));
3714 /// Gets/Sets the padding for use in layout.
3716 public Vector4 Padding
3720 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3721 GetProperty(View.Property.PADDING).Get(temp);
3726 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
3731 /// Gets/Sets the minimum size an view can be assigned in size negotiation.
3733 public Size2D MinimumSize
3737 Size2D temp = new Size2D(0, 0);
3738 GetProperty(View.Property.MINIMUM_SIZE).Get(temp);
3743 SetProperty(View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
3748 /// Gets/Sets the maximum size an view can be assigned in size negotiation.
3750 public Size2D MaximumSize
3754 Size2D temp = new Size2D(0, 0);
3755 GetProperty(View.Property.MAXIMUM_SIZE).Get(temp);
3760 SetProperty(View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
3765 /// Gets/Sets whether a child view inherits it's parent's position.<br>
3766 /// Default is to inherit.<br>
3767 /// 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 anchor point of the view.<br>
3769 public bool InheritPosition
3774 GetProperty(View.Property.INHERIT_POSITION).Get(ref temp);
3779 SetProperty(View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue(value));
3784 /// Gets/Sets clipping behavior(mode) of it's children.
3786 public ClippingModeType ClippingMode
3791 if (GetProperty(View.Property.CLIPPING_MODE).Get(out temp) == false)
3794 Tizen.Log.Error("NUI", "ClippingMode get error!");
3800 return ClippingModeType.Disabled;
3801 case "CLIP_CHILDREN":
3802 return ClippingModeType.ClipChildren;
3804 return ClippingModeType.Disabled;
3809 SetProperty(View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)value));