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);
37 // By default, we do not want the position to use the anchor point
38 this.PositionUsesAnchorPoint = false;
41 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
43 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
48 DisposeQueue.Instance.Add(this);
50 // Unregister this instance of view from the view registry.
51 ViewRegistry.UnregisterView(this);
54 public virtual void Dispose()
56 if (!Window.IsInstalled())//Stage=>Window
58 DisposeQueue.Instance.Add(this);
64 if (swigCPtr.Handle != global::System.IntPtr.Zero)
69 NDalicPINVOKE.delete_View(swigCPtr);
71 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
73 global::System.GC.SuppressFinalize(this);
80 private EventHandler _keyInputFocusGainedEventHandler;
81 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
82 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
83 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
86 /// Event for KeyInputFocusGained signal which can be used to subscribe/unsubscribe the event handler provided by the user.<br>
87 /// KeyInputFocusGained signal is emitted when the control gets Key Input Focus.<br>
89 public event EventHandler FocusGained
93 if (_keyInputFocusGainedEventHandler == null)
95 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
96 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
99 _keyInputFocusGainedEventHandler += value;
104 _keyInputFocusGainedEventHandler -= value;
106 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
108 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
113 private void OnKeyInputFocusGained(IntPtr view)
115 if (_keyInputFocusGainedEventHandler != null)
117 _keyInputFocusGainedEventHandler(this, null);
122 private EventHandler _keyInputFocusLostEventHandler;
123 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
124 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
125 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
128 /// Event for KeyInputFocusLost signal which can be used to subscribe/unsubscribe the event handler provided by the user.<br>
129 /// KeyInputFocusLost signal is emitted when the control loses Key Input Focus.<br>
131 public event EventHandler FocusLost
135 if (_keyInputFocusLostEventHandler == null)
137 _keyInputFocusLostCallback = OnKeyInputFocusLost;
138 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
141 _keyInputFocusLostEventHandler += value;
146 _keyInputFocusLostEventHandler -= value;
148 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
150 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
155 private void OnKeyInputFocusLost(IntPtr view)
157 if (_keyInputFocusLostEventHandler != null)
159 _keyInputFocusLostEventHandler(this, null);
164 /// Event arguments that passed via KeyEvent signal.
166 public class KeyEventArgs : EventArgs
171 /// Key - is the key sent to the View.
186 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
187 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
188 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
189 private KeyCallbackType _keyCallback;
192 /// Event for KeyPressed signal which can be used to subscribe/unsubscribe the event handler provided by the user.<br>
193 /// KeyPressed signal is emitted when key event is received.<br>
195 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
199 if (_keyEventHandler == null)
201 _keyCallback = OnKeyEvent;
202 this.KeyEventSignal().Connect(_keyCallback);
205 _keyEventHandler += value;
210 _keyEventHandler -= value;
212 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
214 this.KeyEventSignal().Disconnect(_keyCallback);
219 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
221 KeyEventArgs e = new KeyEventArgs();
223 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
225 if (_keyEventHandler != null)
227 return _keyEventHandler(this, e);
233 private EventHandler _onRelayoutEventHandler;
234 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
235 private delegate void OnRelayoutEventCallbackType(IntPtr control);
236 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
239 /// Event for OnRelayout signal which can be used to subscribe/unsubscribe the event handler.<br>
240 /// OnRelayout signal is emitted after the size has been set on the view during relayout.<br>
242 public event EventHandler OnRelayoutEvent
246 if (_onRelayoutEventHandler == null)
248 _onRelayoutEventCallback = OnRelayout;
249 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
252 _onRelayoutEventHandler += value;
257 _onRelayoutEventHandler -= value;
259 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
261 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
267 // Callback for View OnRelayout signal
268 private void OnRelayout(IntPtr data)
270 if (_onRelayoutEventHandler != null)
272 _onRelayoutEventHandler(this, null);
277 /// Event arguments that passed via Touch signal.
279 public class TouchEventArgs : EventArgs
281 private Touch _touch;
284 /// Touch - contains the information of touch points
299 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
300 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
301 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
302 private TouchDataCallbackType _touchDataCallback;
305 /// Event for Touched signal which can be used to subscribe/unsubscribe the event handler provided by the user.<br>
306 /// Touched signal is emitted when touch input is received.<br>
308 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> Touched
312 if (_touchDataEventHandler == null)
314 _touchDataCallback = OnTouch;
315 this.TouchSignal().Connect(_touchDataCallback);
318 _touchDataEventHandler += value;
323 _touchDataEventHandler -= value;
325 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
327 this.TouchSignal().Disconnect(_touchDataCallback);
333 // Callback for View TouchSignal
334 private bool OnTouch(IntPtr view, IntPtr touchData)
336 TouchEventArgs e = new TouchEventArgs();
338 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
340 if (_touchDataEventHandler != null)
342 return _touchDataEventHandler(this, e);
349 /// Event arguments that passed via Hover signal.
351 public class HoverEventArgs : EventArgs
353 private Hover _hover;
356 /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
371 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
372 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
373 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
374 private HoverEventCallbackType _hoverEventCallback;
377 /// Event for Hovered signal which can be used to subscribe/unsubscribe the event handler provided by the user.<br>
378 /// Hovered signal is emitted when hover input is received.<br>
380 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> Hovered
384 if (_hoverEventHandler == null)
386 _hoverEventCallback = OnHoverEvent;
387 this.HoveredSignal().Connect(_hoverEventCallback);
390 _hoverEventHandler += value;
395 _hoverEventHandler -= value;
397 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
399 this.HoveredSignal().Disconnect(_hoverEventCallback);
405 // Callback for View Hover signal
406 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
408 HoverEventArgs e = new HoverEventArgs();
410 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
412 if (_hoverEventHandler != null)
414 return _hoverEventHandler(this, e);
421 /// Event arguments that passed via Wheel signal.
423 public class WheelEventArgs : EventArgs
425 private Wheel _wheel;
428 /// WheelEvent - store a wheel rolling type : MOUSE_WHEEL or CUSTOM_WHEEL
443 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
444 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
445 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
446 private WheelEventCallbackType _wheelEventCallback;
449 /// Event for WheelMoved signal which can be used to subscribe/unsubscribe the event handler provided by the user.<br>
450 /// WheelMoved signal is emitted when wheel event is received.<br>
452 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelMoved
456 if (_wheelEventHandler == null)
458 _wheelEventCallback = OnWheelEvent;
459 this.WheelEventSignal().Connect(_wheelEventCallback);
462 _wheelEventHandler += value;
467 _wheelEventHandler -= value;
469 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
471 this.WheelEventSignal().Disconnect(_wheelEventCallback);
477 // Callback for View Wheel signal
478 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
480 WheelEventArgs e = new WheelEventArgs();
482 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
484 if (_wheelEventHandler != null)
486 return _wheelEventHandler(this, e);
492 private EventHandler _onWindowEventHandler;
493 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
494 private delegate void OnWindowEventCallbackType(IntPtr control);
495 private OnWindowEventCallbackType _onWindowEventCallback;
498 /// Event for OnWindow signal which can be used to subscribe/unsubscribe the event handler.<br>
499 /// OnWindow signal is emitted after the view has been connected to the Window.<br>
501 public event EventHandler OnWindowEvent
505 if (_onWindowEventHandler == null)
507 _onWindowEventCallback = OnWindow;
508 this.OnWindowSignal().Connect(_onWindowEventCallback);
511 _onWindowEventHandler += value;
516 _onWindowEventHandler -= value;
518 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
520 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
525 // Callback for View OnWindow signal
526 private void OnWindow(IntPtr data)
528 if (_onWindowEventHandler != null)
530 _onWindowEventHandler(this, null);
535 private EventHandler _offWindowEventHandler;
536 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
537 private delegate void OffWindowEventCallbackType(IntPtr control);
538 private OffWindowEventCallbackType _offWindowEventCallback;
541 /// Event for OffWindow signal which can be used to subscribe/unsubscribe the event handler.<br>
542 /// OffWindow signal is emitted after the view has been disconnected from the Window.<br>
544 public event EventHandler OffWindowEvent
548 if (_offWindowEventHandler == null)
550 _offWindowEventCallback = OffWindow;
551 this.OffWindowSignal().Connect(_offWindowEventCallback);
554 _offWindowEventHandler += value;
559 _offWindowEventHandler -= value;
561 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
563 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
568 // Callback for View OffWindow signal
569 private void OffWindow(IntPtr data)
571 if (_offWindowEventHandler != null)
573 _offWindowEventHandler(this, null);
578 /// Event arguments of visibility changed.
580 public class VisibilityChangedEventArgs : EventArgs
583 private bool _visibility;
584 private VisibilityChangeType _type;
587 /// The view, or child of view, whose visibility has changed.
602 /// Whether the view is now visible or not.
604 public bool Visibility
617 /// Whether the view's visible property has changed or a parent's.
619 public VisibilityChangeType Type
632 private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
633 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
634 private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
635 private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
638 /// Event for visibility change which can be used to subscribe/unsubscribe the event handler.<br>
639 /// This signal is emitted when the visible property of this or a parent view is changed.<br>
641 public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
645 if (_visibilityChangedEventHandler == null)
647 _visibilityChangedEventCallback = OnVisibilityChanged;
648 VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
651 _visibilityChangedEventHandler += value;
656 _visibilityChangedEventHandler -= value;
658 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
660 VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
665 // Callback for View visibility change signal
666 private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
668 VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
671 e.View = View.GetViewFromPtr(data);
673 e.Visibility = visibility;
676 if (_visibilityChangedEventHandler != null)
678 _visibilityChangedEventHandler(this, e);
682 internal static View GetViewFromPtr(global::System.IntPtr cPtr)
684 View ret = new View(cPtr, false);
685 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
689 internal IntPtr GetPtrfromView()
691 return (IntPtr)swigCPtr;
694 internal class Property : global::System.IDisposable
696 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
697 protected bool swigCMemOwn;
699 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
701 swigCMemOwn = cMemoryOwn;
702 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
705 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
707 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
712 DisposeQueue.Instance.Add(this);
715 public virtual void Dispose()
717 if (!Window.IsInstalled()) {
718 DisposeQueue.Instance.Add(this);
724 if (swigCPtr.Handle != global::System.IntPtr.Zero)
729 NDalicPINVOKE.delete_View_Property(swigCPtr);
731 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
733 global::System.GC.SuppressFinalize(this);
737 internal static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
738 internal static readonly int STATE = NDalicManualPINVOKE.View_Property_STATE_get();
739 internal static readonly int SUB_STATE = NDalicManualPINVOKE.View_Property_SUB_STATE_get();
740 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
741 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
742 internal static readonly int UP_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
743 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
745 internal Property() : this(NDalicPINVOKE.new_View_Property(), true)
747 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
750 internal static readonly int STYLE_NAME = NDalicPINVOKE.View_Property_STYLE_NAME_get();
751 internal static readonly int BACKGROUND_COLOR = NDalicPINVOKE.View_Property_BACKGROUND_COLOR_get();
752 internal static readonly int BACKGROUND_IMAGE = NDalicPINVOKE.View_Property_BACKGROUND_IMAGE_get();
753 internal static readonly int KEY_INPUT_FOCUS = NDalicPINVOKE.View_Property_KEY_INPUT_FOCUS_get();
754 internal static readonly int BACKGROUND = NDalicPINVOKE.View_Property_BACKGROUND_get();
755 internal static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
756 internal static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
757 internal static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
758 internal static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
759 internal static readonly int PARENT_ORIGIN = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_get();
760 internal static readonly int PARENT_ORIGIN_X = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_X_get();
761 internal static readonly int PARENT_ORIGIN_Y = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Y_get();
762 internal static readonly int PARENT_ORIGIN_Z = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Z_get();
763 internal static readonly int ANCHOR_POINT = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_get();
764 internal static readonly int ANCHOR_POINT_X = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_X_get();
765 internal static readonly int ANCHOR_POINT_Y = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Y_get();
766 internal static readonly int ANCHOR_POINT_Z = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Z_get();
767 internal static readonly int SIZE = NDalicPINVOKE.Actor_Property_SIZE_get();
768 internal static readonly int SIZE_WIDTH = NDalicPINVOKE.Actor_Property_SIZE_WIDTH_get();
769 internal static readonly int SIZE_HEIGHT = NDalicPINVOKE.Actor_Property_SIZE_HEIGHT_get();
770 internal static readonly int SIZE_DEPTH = NDalicPINVOKE.Actor_Property_SIZE_DEPTH_get();
771 internal static readonly int POSITION = NDalicPINVOKE.Actor_Property_POSITION_get();
772 internal static readonly int POSITION_X = NDalicPINVOKE.Actor_Property_POSITION_X_get();
773 internal static readonly int POSITION_Y = NDalicPINVOKE.Actor_Property_POSITION_Y_get();
774 internal static readonly int POSITION_Z = NDalicPINVOKE.Actor_Property_POSITION_Z_get();
775 internal static readonly int WORLD_POSITION = NDalicPINVOKE.Actor_Property_WORLD_POSITION_get();
776 internal static readonly int WORLD_POSITION_X = NDalicPINVOKE.Actor_Property_WORLD_POSITION_X_get();
777 internal static readonly int WORLD_POSITION_Y = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Y_get();
778 internal static readonly int WORLD_POSITION_Z = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Z_get();
779 internal static readonly int ORIENTATION = NDalicPINVOKE.Actor_Property_ORIENTATION_get();
780 internal static readonly int WORLD_ORIENTATION = NDalicPINVOKE.Actor_Property_WORLD_ORIENTATION_get();
781 internal static readonly int SCALE = NDalicPINVOKE.Actor_Property_SCALE_get();
782 internal static readonly int SCALE_X = NDalicPINVOKE.Actor_Property_SCALE_X_get();
783 internal static readonly int SCALE_Y = NDalicPINVOKE.Actor_Property_SCALE_Y_get();
784 internal static readonly int SCALE_Z = NDalicPINVOKE.Actor_Property_SCALE_Z_get();
785 internal static readonly int WORLD_SCALE = NDalicPINVOKE.Actor_Property_WORLD_SCALE_get();
786 internal static readonly int VISIBLE = NDalicPINVOKE.Actor_Property_VISIBLE_get();
787 internal static readonly int COLOR = NDalicPINVOKE.Actor_Property_COLOR_get();
788 internal static readonly int COLOR_RED = NDalicPINVOKE.Actor_Property_COLOR_RED_get();
789 internal static readonly int COLOR_GREEN = NDalicPINVOKE.Actor_Property_COLOR_GREEN_get();
790 internal static readonly int COLOR_BLUE = NDalicPINVOKE.Actor_Property_COLOR_BLUE_get();
791 internal static readonly int COLOR_ALPHA = NDalicPINVOKE.Actor_Property_COLOR_ALPHA_get();
792 internal static readonly int WORLD_COLOR = NDalicPINVOKE.Actor_Property_WORLD_COLOR_get();
793 internal static readonly int WORLD_MATRIX = NDalicPINVOKE.Actor_Property_WORLD_MATRIX_get();
794 internal static readonly int NAME = NDalicPINVOKE.Actor_Property_NAME_get();
795 internal static readonly int SENSITIVE = NDalicPINVOKE.Actor_Property_SENSITIVE_get();
796 internal static readonly int LEAVE_REQUIRED = NDalicPINVOKE.Actor_Property_LEAVE_REQUIRED_get();
797 internal static readonly int INHERIT_ORIENTATION = NDalicPINVOKE.Actor_Property_INHERIT_ORIENTATION_get();
798 internal static readonly int INHERIT_SCALE = NDalicPINVOKE.Actor_Property_INHERIT_SCALE_get();
799 internal static readonly int COLOR_MODE = NDalicPINVOKE.Actor_Property_COLOR_MODE_get();
800 internal static readonly int POSITION_INHERITANCE = NDalicPINVOKE.Actor_Property_POSITION_INHERITANCE_get();
801 internal static readonly int DRAW_MODE = NDalicPINVOKE.Actor_Property_DRAW_MODE_get();
802 internal static readonly int SIZE_MODE_FACTOR = NDalicPINVOKE.Actor_Property_SIZE_MODE_FACTOR_get();
803 internal static readonly int WIDTH_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_WIDTH_RESIZE_POLICY_get();
804 internal static readonly int HEIGHT_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_HEIGHT_RESIZE_POLICY_get();
805 internal static readonly int SIZE_SCALE_POLICY = NDalicPINVOKE.Actor_Property_SIZE_SCALE_POLICY_get();
806 internal static readonly int WIDTH_FOR_HEIGHT = NDalicPINVOKE.Actor_Property_WIDTH_FOR_HEIGHT_get();
807 internal static readonly int HEIGHT_FOR_WIDTH = NDalicPINVOKE.Actor_Property_HEIGHT_FOR_WIDTH_get();
808 internal static readonly int PADDING = NDalicPINVOKE.Actor_Property_PADDING_get();
809 internal static readonly int MINIMUM_SIZE = NDalicPINVOKE.Actor_Property_MINIMUM_SIZE_get();
810 internal static readonly int MAXIMUM_SIZE = NDalicPINVOKE.Actor_Property_MAXIMUM_SIZE_get();
811 internal static readonly int INHERIT_POSITION = NDalicPINVOKE.Actor_Property_INHERIT_POSITION_get();
812 internal static readonly int CLIPPING_MODE = NDalicPINVOKE.Actor_Property_CLIPPING_MODE_get();
817 /// Describes the direction to move the focus towards.
819 public enum FocusDirection
830 /// Creates a new instance of a View.
832 public View() : this(NDalicPINVOKE.View_New(), true)
834 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
837 internal View(View uiControl) : this(NDalicPINVOKE.new_View__SWIG_1(View.getCPtr(uiControl)), true)
839 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
842 internal View Assign(View handle)
844 View ret = new View(NDalicPINVOKE.View_Assign(swigCPtr, View.getCPtr(handle)), false);
845 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
850 /// Downcasts a handle to View handle.<br>
851 /// If handle points to a View, the downcast produces valid handle.<br>
852 /// If not, the returned handle is left uninitialized.<br>
854 /// <param name="handle">Handle to an object</param>
855 /// <returns>A handle to a View or an uninitialized handle</returns>
856 public new static View DownCast(BaseHandle handle)
858 View ret = new View(NDalicPINVOKE.View_DownCast(BaseHandle.getCPtr(handle)), true);
859 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
864 /// Downcasts a handle to class which inherit View handle.
866 /// <typeparam name="T">Class which inherit View</typeparam>
867 /// <param name="view">View to an object</param>
868 /// <returns>A object which inherit View</returns>
869 public static T DownCast<T>(View view) where T : View
871 return (T)(ViewRegistry.GetViewFromActor(view));
874 private View ConvertIdToView(uint id)
880 view = Parent.FindChildById(id);
885 view = Window.Instance.GetRootLayer().FindChildById(id);
891 internal void SetKeyInputFocus()
893 NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
894 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
898 /// Quries whether the view has focus.
900 /// <returns>true if this view has focus</returns>
901 public bool HasFocus()
903 bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
904 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
908 internal void ClearKeyInputFocus()
910 NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
911 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
914 internal PinchGestureDetector GetPinchGestureDetector()
916 PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
917 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
921 internal PanGestureDetector GetPanGestureDetector()
923 PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
924 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
928 internal TapGestureDetector GetTapGestureDetector()
930 TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
931 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
935 internal LongPressGestureDetector GetLongPressGestureDetector()
937 LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
938 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
943 /// Sets the name of the style to be applied to the view.
945 /// <param name="styleName">A string matching a style described in a stylesheet</param>
946 public void SetStyleName(string styleName)
948 NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
949 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
953 /// Retrieves the name of the style to be applied to the view (if any).
955 /// <returns>A string matching a style, or an empty string</returns>
956 public string GetStyleName()
958 string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
959 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
963 internal void SetBackgroundColor(Vector4 color)
965 NDalicPINVOKE.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
966 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
969 internal Vector4 GetBackgroundColor()
971 Vector4 ret = new Vector4(NDalicPINVOKE.View_GetBackgroundColor(swigCPtr), true);
972 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
976 internal void SetBackgroundImage(Image image)
978 NDalicPINVOKE.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
979 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
983 /// Clears the background.
985 public void ClearBackground()
987 NDalicPINVOKE.View_ClearBackground(swigCPtr);
988 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
991 internal ControlKeySignal KeyEventSignal()
993 ControlKeySignal ret = new ControlKeySignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
994 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
998 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
1000 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
1001 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1005 internal KeyInputFocusSignal KeyInputFocusLostSignal()
1007 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
1008 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1012 internal View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1014 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1017 internal enum PropertyRange
1019 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1020 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1021 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1025 /// styleName, type string.
1027 public string StyleName
1032 GetProperty(View.Property.STYLE_NAME).Get(out temp);
1037 SetProperty(View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue(value));
1042 /// mutually exclusive with BACKGROUND_IMAGE & BACKGROUND, type Vector4.
1044 public Color BackgroundColor
1048 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
1050 Tizen.NUI.PropertyMap background = Background;
1052 background.Find(Visual.Property.Type).Get(ref visualType);
1053 if (visualType == (int)Visual.Type.Color)
1055 background.Find(ColorVisualProperty.MixColor).Get(backgroundColor);
1058 return backgroundColor;
1062 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1067 /// mutually exclusive with BACKGROUND_COLOR & BACKGROUND, type Map.
1069 public string BackgroundImage
1073 string backgroundImage = "";
1075 Tizen.NUI.PropertyMap background = Background;
1077 background.Find(Visual.Property.Type).Get(ref visualType);
1078 if (visualType == (int)Visual.Type.Image)
1080 background.Find(ImageVisualProperty.URL).Get(out backgroundImage);
1083 return backgroundImage;
1087 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1091 internal bool KeyInputFocus
1096 GetProperty(View.Property.KEY_INPUT_FOCUS).Get(ref temp);
1101 SetProperty(View.Property.KEY_INPUT_FOCUS, new Tizen.NUI.PropertyValue(value));
1106 /// mutually exclusive with BACKGROUND_COLOR & BACKGROUND_IMAGE, type Map or string for URL.
1108 public Tizen.NUI.PropertyMap Background
1112 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1113 GetProperty(View.Property.BACKGROUND).Get(temp);
1118 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1123 /// The current state of the view.
1130 if (GetProperty(View.Property.STATE).Get(ref temp) == false)
1133 Tizen.Log.Error("NUI", "State get error!");
1140 return States.Normal;
1144 return States.Focused;
1148 return States.Disabled;
1152 return States.Normal;
1158 SetProperty(View.Property.STATE, new Tizen.NUI.PropertyValue((int)value));
1163 /// The current sub state of the view.
1165 public States SubState
1170 if (GetProperty(View.Property.SUB_STATE).Get(out temp) == false)
1173 Tizen.Log.Error("NUI", "subState get error!");
1179 return States.Normal;
1181 return States.Focused;
1183 return States.Disabled;
1185 return States.Normal;
1190 string valueToString = "";
1195 valueToString = "NORMAL";
1198 case States.Focused:
1200 valueToString = "FOCUSED";
1203 case States.Disabled:
1205 valueToString = "DISABLED";
1210 valueToString = "NORMAL";
1214 SetProperty(View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
1219 /// Displays a tooltip
1221 public Tizen.NUI.PropertyMap Tooltip
1225 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1226 GetProperty(View.Property.TOOLTIP).Get(temp);
1231 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1236 /// Displays a tooltip as Text
1238 public string TooltipText
1242 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1246 private int LeftFocusableViewId
1251 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(ref temp);
1256 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1260 private int RightFocusableViewId
1265 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(ref temp);
1270 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1274 private int UpFocusableViewId
1279 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(ref temp);
1284 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1288 private int DownFocusableViewId
1293 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(ref temp);
1298 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1303 /// Child Property of FlexContainer.<br>
1304 /// The proportion of the free space in the container the flex item will receive.<br>
1305 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br>
1312 GetProperty(FlexContainer.ChildProperty.FLEX).Get(ref temp);
1317 SetProperty(FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue(value));
1322 /// Child Property of FlexContainer.<br>
1323 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br>
1325 public int AlignSelf
1330 GetProperty(FlexContainer.ChildProperty.ALIGN_SELF).Get(ref temp);
1335 SetProperty(FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue(value));
1340 /// Child Property of FlexContainer.<br>
1341 /// The space around the flex item.<br>
1343 public Vector4 FlexMargin
1347 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1348 GetProperty(FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
1353 SetProperty(FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue(value));
1358 /// The top-left cell this child occupies, if not set, the first available cell is used
1360 public Vector2 CellIndex
1364 Vector2 temp = new Vector2(0.0f, 0.0f);
1365 GetProperty(TableView.ChildProperty.CELL_INDEX).Get(temp);
1370 SetProperty(TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue(value));
1375 /// The number of rows this child occupies, if not set, default value is 1
1377 public float RowSpan
1382 GetProperty(TableView.ChildProperty.ROW_SPAN).Get(ref temp);
1387 SetProperty(TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue(value));
1392 /// The number of columns this child occupies, if not set, default value is 1
1394 public float ColumnSpan
1399 GetProperty(TableView.ChildProperty.COLUMN_SPAN).Get(ref temp);
1404 SetProperty(TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue(value));
1409 /// The horizontal alignment of this child inside the cells, if not set, default value is 'left'
1411 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
1416 if (GetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
1419 Tizen.Log.Error("NUI", "CellHorizontalAlignment get error!");
1426 return Tizen.NUI.HorizontalAlignmentType.Left;
1428 return Tizen.NUI.HorizontalAlignmentType.Center;
1430 return Tizen.NUI.HorizontalAlignmentType.Right;
1432 return Tizen.NUI.HorizontalAlignmentType.Left;
1437 string valueToString = "";
1440 case Tizen.NUI.HorizontalAlignmentType.Left:
1442 valueToString = "left";
1445 case Tizen.NUI.HorizontalAlignmentType.Center:
1447 valueToString = "center";
1450 case Tizen.NUI.HorizontalAlignmentType.Right:
1452 valueToString = "right";
1457 valueToString = "left";
1461 SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1466 /// The vertical alignment of this child inside the cells, if not set, default value is 'top'
1468 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
1473 GetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
1476 Tizen.Log.Error("NUI", "CellVerticalAlignment get error!");
1483 return Tizen.NUI.VerticalAlignmentType.Top;
1485 return Tizen.NUI.VerticalAlignmentType.Center;
1487 return Tizen.NUI.VerticalAlignmentType.Bottom;
1489 return Tizen.NUI.VerticalAlignmentType.Top;
1494 string valueToString = "";
1497 case Tizen.NUI.VerticalAlignmentType.Top:
1499 valueToString = "top";
1502 case Tizen.NUI.VerticalAlignmentType.Center:
1504 valueToString = "center";
1507 case Tizen.NUI.VerticalAlignmentType.Bottom:
1509 valueToString = "bottom";
1514 valueToString = "top";
1518 SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1523 /// The left focusable view.<br>
1524 /// This will return NULL if not set.<br>
1525 /// This will also return NULL if the specified left focusable view is not on Window.<br>
1527 public View LeftFocusableView
1529 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1532 if (LeftFocusableViewId >= 0)
1534 return ConvertIdToView((uint)LeftFocusableViewId);
1540 LeftFocusableViewId = (int)value.GetId();
1545 /// The right focusable view.<br>
1546 /// This will return NULL if not set.<br>
1547 /// This will also return NULL if the specified right focusable view is not on Window.<br>
1549 public View RightFocusableView
1551 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1554 if (RightFocusableViewId >= 0)
1556 return ConvertIdToView((uint)RightFocusableViewId);
1562 RightFocusableViewId = (int)value.GetId();
1567 /// The up focusable view.<br>
1568 /// This will return NULL if not set.<br>
1569 /// This will also return NULL if the specified up focusable view is not on Window.<br>
1571 public View UpFocusableView
1573 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1576 if (UpFocusableViewId >= 0)
1578 return ConvertIdToView((uint)UpFocusableViewId);
1584 UpFocusableViewId = (int)value.GetId();
1589 /// The down focusable view.<br>
1590 /// This will return NULL if not set.<br>
1591 /// This will also return NULL if the specified down focusable view is not on Window.<br>
1593 public View DownFocusableView
1595 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1598 if (DownFocusableViewId >= 0)
1600 return ConvertIdToView((uint)DownFocusableViewId);
1606 DownFocusableViewId = (int)value.GetId();
1611 /// whether the view should be focusable by keyboard navigation.
1613 public bool Focusable
1617 SetKeyboardFocusable(value);
1621 return IsKeyboardFocusable();
1626 /// Enumeration for describing the states of view.
1645 /// Retrieves the position of the View.<br>
1646 /// The coordinates are relative to the View's parent.<br>
1648 public Position CurrentPosition
1652 return GetCurrentPosition();
1657 /// Sets the size of an view for width and height.<br>
1658 /// Geometry can be scaled to fit within this area.<br>
1659 /// This does not interfere with the views scale factor.<br>
1660 /// The views default depth is the minimum of width & height.<br>
1662 public Size2D Size2D
1666 Size temp = new Size(0.0f, 0.0f, 0.0f);
1667 GetProperty(View.Property.SIZE).Get(temp);
1668 return new Size2D(temp);
1672 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size(value)));
1677 /// Retrieves the size of the View.<br>
1678 /// The coordinates are relative to the View's parent.<br>
1680 public Size CurrentSize
1684 return GetCurrentSize();
1689 /// Retrieves the view's parent.<br>
1699 public bool Visibility
1708 /// Retrieves and sets the view's opacity.<br>
1710 public float Opacity
1715 GetProperty(View.Property.OPACITY).Get(ref temp);
1720 SetProperty(View.Property.OPACITY, new Tizen.NUI.PropertyValue(value));
1725 /// Sets the position of the View for X and Y.<br>
1726 /// By default, sets the position vector between the parent origin and anchor point(default).<br>
1727 /// If Position inheritance if disabled, sets the world position.<br>
1729 public Position2D Position2D
1733 Position temp = new Position(0.0f, 0.0f, 0.0f);
1734 GetProperty(View.Property.POSITION).Get(temp);
1735 return new Position2D(temp);
1739 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position(value)));
1744 /// Retrieves screen postion of view's.<br>
1746 public Vector2 ScreenPosition
1750 Vector2 temp = new Vector2(0.0f, 0.0f);
1751 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
1757 /// Determines whether the anchor point should be used to determine the position of the view.
1758 /// This is true by default.
1760 /// <remarks>If false, then the top-left of the view is used for the position.
1761 /// Setting this to false will allow scaling or rotation around the anchor-point without affecting the view's position.
1763 public bool PositionUsesAnchorPoint
1768 if(this) GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(ref temp);
1773 if(this) SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
1777 public bool StateFocusEnable
1781 return IsKeyboardFocusable();
1785 SetKeyboardFocusable(value);
1790 /// Queries whether the view is connected to the Stage.<br>
1791 /// When an view is connected, it will be directly or indirectly parented to the root View.<br>
1793 public bool IsOnWindow
1802 /// Gets depth in the hierarchy for the view.
1804 public int HierarchyDepth
1808 return GetHierarchyDepth();
1813 /// Sets the sibling order of the view so depth position can be defined within the same parent.
1816 /// Note The initial value is 0.
1817 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove and LowerBelow will override the sibling order.
1818 /// The values set by this Property will likely change.
1820 public int SiblingOrder
1825 GetProperty(View.Property.SIBLING_ORDER).Get(ref temp);
1830 SetProperty(View.Property.SIBLING_ORDER, new Tizen.NUI.PropertyValue(value));
1838 /// This is an asynchronous method.
1849 /// This is an asynchronous method.
1850 /// If an view is hidden, then the view and its children will not be rendered.
1851 /// 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.
1859 /// Raise view above the next highest level of view(s).
1862 /// Sibling order of views within the parent will be updated automatically.
1863 /// Initially views added to a parent will have the same sibling order and shown in relation to insertion order.
1864 /// Raising this view above views with the same sibling order as each other will raise this view above them.
1865 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
1869 NDalicPINVOKE.Raise(swigCPtr);
1870 if (NDalicPINVOKE.SWIGPendingException.Pending)
1871 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1875 /// Lower the view to underneath the level below view(s).
1878 /// Sibling order of views within the parent will be updated automatically.
1879 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
1880 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
1884 NDalicPINVOKE.Lower(swigCPtr);
1885 if (NDalicPINVOKE.SWIGPendingException.Pending)
1886 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1890 /// Raise view above all other views.
1893 /// Sibling order of views within the parent will be updated automatically.
1894 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
1896 public void RaiseToTop()
1898 NDalicPINVOKE.RaiseToTop(swigCPtr);
1899 if (NDalicPINVOKE.SWIGPendingException.Pending)
1900 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1904 /// Lower view to the bottom of all views.
1907 /// Sibling order of views within the parent will be updated automatically.
1908 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
1910 public void LowerToBottom()
1912 NDalicPINVOKE.LowerToBottom(swigCPtr);
1913 if (NDalicPINVOKE.SWIGPendingException.Pending)
1914 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1918 /// Raise the view to above the target view.
1920 /// <remarks>Sibling order of views within the parent will be updated automatically.
1921 /// Views on the level above the target view will still be shown above this view.
1922 /// Raising this view above views with the same sibling order as each other will raise this view above them.
1923 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
1925 /// <param name="target">Will be raised above this view</param>
1926 internal void RaiseAbove(View target)
1928 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
1929 if (NDalicPINVOKE.SWIGPendingException.Pending)
1930 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1934 /// Lower the view to below the target view.
1936 /// <remarks>Sibling order of views within the parent will be updated automatically.
1937 /// Lowering this view below views with the same sibling order as each other will lower this view above them.
1938 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
1940 /// <param name="target">Will be lowered below this view</param>
1941 internal void LowerBelow(View target)
1943 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
1944 if (NDalicPINVOKE.SWIGPendingException.Pending)
1945 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1948 internal string GetName()
1950 string ret = NDalicPINVOKE.Actor_GetName(swigCPtr);
1951 if (NDalicPINVOKE.SWIGPendingException.Pending)
1952 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1956 internal void SetName(string name)
1958 NDalicPINVOKE.Actor_SetName(swigCPtr, name);
1959 if (NDalicPINVOKE.SWIGPendingException.Pending)
1960 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1963 internal uint GetId()
1965 uint ret = NDalicPINVOKE.Actor_GetId(swigCPtr);
1966 if (NDalicPINVOKE.SWIGPendingException.Pending)
1967 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1971 internal bool IsRoot()
1973 bool ret = NDalicPINVOKE.Actor_IsRoot(swigCPtr);
1974 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1978 internal bool OnWindow()
1980 bool ret = NDalicPINVOKE.Actor_OnStage(swigCPtr);
1981 if (NDalicPINVOKE.SWIGPendingException.Pending)
1982 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1986 internal bool IsLayer()
1988 bool ret = NDalicPINVOKE.Actor_IsLayer(swigCPtr);
1989 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1993 internal Layer GetLayer()
1995 Layer ret = new Layer(NDalicPINVOKE.Actor_GetLayer(swigCPtr), true);
1996 if (NDalicPINVOKE.SWIGPendingException.Pending)
1997 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2002 /// Adds a child view to this View.
2004 /// <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>
2005 /// <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>
2006 /// <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>
2007 /// <param name="child">The child</param>
2008 public void Add(View child)
2010 NDalicPINVOKE.Actor_Add(swigCPtr, View.getCPtr(child));
2011 if (NDalicPINVOKE.SWIGPendingException.Pending)
2012 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2016 /// Removes a child View from this View. If the view was not a child of this view, this is a no-op.
2018 /// <pre>This View(the parent) has been initialized. The child view is not the same as the parent view.</pre>
2019 /// <param name="child">The child</param>
2020 public void Remove(View child)
2022 NDalicPINVOKE.Actor_Remove(swigCPtr, View.getCPtr(child));
2023 if (NDalicPINVOKE.SWIGPendingException.Pending)
2024 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2027 internal void Unparent()
2029 NDalicPINVOKE.Actor_Unparent(swigCPtr);
2030 if (NDalicPINVOKE.SWIGPendingException.Pending)
2031 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2035 /// Retrieves the number of children held by the view.
2037 /// <pre>The View has been initialized.</pre>
2038 /// <returns>The number of children</returns>
2039 public uint GetChildCount()
2041 uint ret = NDalicPINVOKE.Actor_GetChildCount(swigCPtr);
2042 if (NDalicPINVOKE.SWIGPendingException.Pending)
2043 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2048 /// Retrieves child view by index.
2050 /// <pre>The View has been initialized.</pre>
2051 /// <param name="index">The index of the child to retrieve</param>
2052 /// <returns>The view for the given index or empty handle if children not initialized</returns>
2053 public View GetChildAt(uint index)
2055 View ret = new View(NDalicPINVOKE.Actor_GetChildAt(swigCPtr, index), true);
2056 if (NDalicPINVOKE.SWIGPendingException.Pending)
2057 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2062 /// Search through this view's hierarchy for an view with the given name.
2063 /// The view itself is also considered in the search.
2065 /// <pre>The View has been initialized.</pre>
2066 /// <param name="viewName">The name of the view to find</param>
2067 /// <returns>A handle to the view if found, or an empty handle if not</returns>
2068 public View FindChildByName(string viewName)
2070 View ret = new View(NDalicPINVOKE.Actor_FindChildByName(swigCPtr, viewName), true);
2071 if (NDalicPINVOKE.SWIGPendingException.Pending)
2072 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2076 internal View FindChildById(uint id)
2078 View ret = new View(NDalicPINVOKE.Actor_FindChildById(swigCPtr, id), true);
2079 if (NDalicPINVOKE.SWIGPendingException.Pending)
2080 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2084 internal View GetParent()
2086 View ret = new View(NDalicPINVOKE.Actor_GetParent(swigCPtr), true);
2087 if (NDalicPINVOKE.SWIGPendingException.Pending)
2088 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2092 internal void SetParentOrigin(Vector3 origin)
2094 NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
2095 if (NDalicPINVOKE.SWIGPendingException.Pending)
2096 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2099 internal Vector3 GetCurrentParentOrigin()
2101 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentParentOrigin(swigCPtr), true);
2102 if (NDalicPINVOKE.SWIGPendingException.Pending)
2103 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2107 internal void SetAnchorPoint(Vector3 anchorPoint)
2109 NDalicPINVOKE.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
2110 if (NDalicPINVOKE.SWIGPendingException.Pending)
2111 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2114 internal Vector3 GetCurrentAnchorPoint()
2116 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentAnchorPoint(swigCPtr), true);
2117 if (NDalicPINVOKE.SWIGPendingException.Pending)
2118 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2122 internal void SetSize(float width, float height)
2124 NDalicPINVOKE.Actor_SetSize__SWIG_0(swigCPtr, width, height);
2125 if (NDalicPINVOKE.SWIGPendingException.Pending)
2126 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2129 internal void SetSize(float width, float height, float depth)
2131 NDalicPINVOKE.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
2132 if (NDalicPINVOKE.SWIGPendingException.Pending)
2133 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2136 internal void SetSize(Vector2 size)
2138 NDalicPINVOKE.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
2139 if (NDalicPINVOKE.SWIGPendingException.Pending)
2140 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2143 internal void SetSize(Vector3 size)
2145 NDalicPINVOKE.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
2146 if (NDalicPINVOKE.SWIGPendingException.Pending)
2147 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2150 internal Vector3 GetTargetSize()
2152 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetTargetSize(swigCPtr), true);
2153 if (NDalicPINVOKE.SWIGPendingException.Pending)
2154 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2158 internal Size GetCurrentSize()
2160 Size ret = new Size(NDalicPINVOKE.Actor_GetCurrentSize(swigCPtr), true);
2161 if (NDalicPINVOKE.SWIGPendingException.Pending)
2162 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2167 /// Returns the natural size of the view.<br>
2168 /// Deriving classes stipulate the natural size and by default an view has a ZERO natural size.<br>
2170 /// <returns>The view's natural size</returns>
2171 public Vector3 GetNaturalSize()
2173 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2174 if (NDalicPINVOKE.SWIGPendingException.Pending)
2175 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2179 internal void SetPosition(float x, float y)
2181 NDalicPINVOKE.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
2182 if (NDalicPINVOKE.SWIGPendingException.Pending)
2183 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2186 internal void SetPosition(float x, float y, float z)
2188 NDalicPINVOKE.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
2189 if (NDalicPINVOKE.SWIGPendingException.Pending)
2190 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2193 internal void SetPosition(Vector3 position)
2195 NDalicPINVOKE.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
2196 if (NDalicPINVOKE.SWIGPendingException.Pending)
2197 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2200 internal void SetX(float x)
2202 NDalicPINVOKE.Actor_SetX(swigCPtr, x);
2203 if (NDalicPINVOKE.SWIGPendingException.Pending)
2204 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2207 internal void SetY(float y)
2209 NDalicPINVOKE.Actor_SetY(swigCPtr, y);
2210 if (NDalicPINVOKE.SWIGPendingException.Pending)
2211 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2214 internal void SetZ(float z)
2216 NDalicPINVOKE.Actor_SetZ(swigCPtr, z);
2217 if (NDalicPINVOKE.SWIGPendingException.Pending)
2218 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2221 internal void TranslateBy(Vector3 distance)
2223 NDalicPINVOKE.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
2224 if (NDalicPINVOKE.SWIGPendingException.Pending)
2225 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2228 internal Position GetCurrentPosition()
2230 Position ret = new Position(NDalicPINVOKE.Actor_GetCurrentPosition(swigCPtr), true);
2231 if (NDalicPINVOKE.SWIGPendingException.Pending)
2232 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2236 internal Vector3 GetCurrentWorldPosition()
2238 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldPosition(swigCPtr), true);
2239 if (NDalicPINVOKE.SWIGPendingException.Pending)
2240 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2244 internal void SetInheritPosition(bool inherit)
2246 NDalicPINVOKE.Actor_SetInheritPosition(swigCPtr, inherit);
2247 if (NDalicPINVOKE.SWIGPendingException.Pending)
2248 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2251 internal PositionInheritanceMode GetPositionInheritanceMode()
2253 PositionInheritanceMode ret = (PositionInheritanceMode)NDalicPINVOKE.Actor_GetPositionInheritanceMode(swigCPtr);
2254 if (NDalicPINVOKE.SWIGPendingException.Pending)
2255 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2259 internal bool IsPositionInherited()
2261 bool ret = NDalicPINVOKE.Actor_IsPositionInherited(swigCPtr);
2262 if (NDalicPINVOKE.SWIGPendingException.Pending)
2263 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2267 internal void SetOrientation(Degree angle, Vector3 axis)
2269 NDalicPINVOKE.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2270 if (NDalicPINVOKE.SWIGPendingException.Pending)
2271 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2274 internal void SetOrientation(Radian angle, Vector3 axis)
2276 NDalicPINVOKE.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2277 if (NDalicPINVOKE.SWIGPendingException.Pending)
2278 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2281 internal void SetOrientation(Rotation orientation)
2283 NDalicPINVOKE.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
2284 if (NDalicPINVOKE.SWIGPendingException.Pending)
2285 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2288 internal void RotateBy(Degree angle, Vector3 axis)
2290 NDalicPINVOKE.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2291 if (NDalicPINVOKE.SWIGPendingException.Pending)
2292 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2295 internal void RotateBy(Radian angle, Vector3 axis)
2297 NDalicPINVOKE.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2298 if (NDalicPINVOKE.SWIGPendingException.Pending)
2299 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2302 internal void RotateBy(Rotation relativeRotation)
2304 NDalicPINVOKE.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
2305 if (NDalicPINVOKE.SWIGPendingException.Pending)
2306 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2309 internal Rotation GetCurrentOrientation()
2311 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentOrientation(swigCPtr), true);
2312 if (NDalicPINVOKE.SWIGPendingException.Pending)
2313 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2317 internal void SetInheritOrientation(bool inherit)
2319 NDalicPINVOKE.Actor_SetInheritOrientation(swigCPtr, inherit);
2320 if (NDalicPINVOKE.SWIGPendingException.Pending)
2321 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2324 internal bool IsOrientationInherited()
2326 bool ret = NDalicPINVOKE.Actor_IsOrientationInherited(swigCPtr);
2327 if (NDalicPINVOKE.SWIGPendingException.Pending)
2328 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2332 internal Rotation GetCurrentWorldOrientation()
2334 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentWorldOrientation(swigCPtr), true);
2335 if (NDalicPINVOKE.SWIGPendingException.Pending)
2336 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2340 internal void SetScale(float scale)
2342 NDalicPINVOKE.Actor_SetScale__SWIG_0(swigCPtr, scale);
2343 if (NDalicPINVOKE.SWIGPendingException.Pending)
2344 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2347 internal void SetScale(float scaleX, float scaleY, float scaleZ)
2349 NDalicPINVOKE.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
2350 if (NDalicPINVOKE.SWIGPendingException.Pending)
2351 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2354 internal void SetScale(Vector3 scale)
2356 NDalicPINVOKE.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
2357 if (NDalicPINVOKE.SWIGPendingException.Pending)
2358 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2361 internal void ScaleBy(Vector3 relativeScale)
2363 NDalicPINVOKE.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
2364 if (NDalicPINVOKE.SWIGPendingException.Pending)
2365 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2368 internal Vector3 GetCurrentScale()
2370 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentScale(swigCPtr), true);
2371 if (NDalicPINVOKE.SWIGPendingException.Pending)
2372 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2376 internal Vector3 GetCurrentWorldScale()
2378 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldScale(swigCPtr), true);
2379 if (NDalicPINVOKE.SWIGPendingException.Pending)
2380 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2384 internal void SetInheritScale(bool inherit)
2386 NDalicPINVOKE.Actor_SetInheritScale(swigCPtr, inherit);
2387 if (NDalicPINVOKE.SWIGPendingException.Pending)
2388 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2391 internal bool IsScaleInherited()
2393 bool ret = NDalicPINVOKE.Actor_IsScaleInherited(swigCPtr);
2394 if (NDalicPINVOKE.SWIGPendingException.Pending)
2395 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2399 internal Matrix GetCurrentWorldMatrix()
2401 Matrix ret = new Matrix(NDalicPINVOKE.Actor_GetCurrentWorldMatrix(swigCPtr), true);
2402 if (NDalicPINVOKE.SWIGPendingException.Pending)
2403 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2407 internal void SetVisible(bool visible)
2409 NDalicPINVOKE.Actor_SetVisible(swigCPtr, visible);
2410 if (NDalicPINVOKE.SWIGPendingException.Pending)
2411 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2414 internal bool IsVisible()
2416 bool ret = NDalicPINVOKE.Actor_IsVisible(swigCPtr);
2417 if (NDalicPINVOKE.SWIGPendingException.Pending)
2418 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2422 internal void SetOpacity(float opacity)
2424 NDalicPINVOKE.Actor_SetOpacity(swigCPtr, opacity);
2425 if (NDalicPINVOKE.SWIGPendingException.Pending)
2426 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2429 internal float GetCurrentOpacity()
2431 float ret = NDalicPINVOKE.Actor_GetCurrentOpacity(swigCPtr);
2432 if (NDalicPINVOKE.SWIGPendingException.Pending)
2433 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2437 internal void SetColor(Vector4 color)
2439 NDalicPINVOKE.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
2440 if (NDalicPINVOKE.SWIGPendingException.Pending)
2441 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2444 internal Vector4 GetCurrentColor()
2446 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentColor(swigCPtr), true);
2447 if (NDalicPINVOKE.SWIGPendingException.Pending)
2448 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2452 internal void SetColorMode(ColorMode colorMode)
2454 NDalicPINVOKE.Actor_SetColorMode(swigCPtr, (int)colorMode);
2455 if (NDalicPINVOKE.SWIGPendingException.Pending)
2456 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2459 internal ColorMode GetColorMode()
2461 ColorMode ret = (ColorMode)NDalicPINVOKE.Actor_GetColorMode(swigCPtr);
2462 if (NDalicPINVOKE.SWIGPendingException.Pending)
2463 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2467 internal Vector4 GetCurrentWorldColor()
2469 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentWorldColor(swigCPtr), true);
2470 if (NDalicPINVOKE.SWIGPendingException.Pending)
2471 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2475 internal void SetDrawMode(DrawModeType drawMode)
2477 NDalicPINVOKE.Actor_SetDrawMode(swigCPtr, (int)drawMode);
2478 if (NDalicPINVOKE.SWIGPendingException.Pending)
2479 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2482 internal DrawModeType GetDrawMode()
2484 DrawModeType ret = (DrawModeType)NDalicPINVOKE.Actor_GetDrawMode(swigCPtr);
2485 if (NDalicPINVOKE.SWIGPendingException.Pending)
2486 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2490 internal void SetSensitive(bool sensitive)
2492 NDalicPINVOKE.Actor_SetSensitive(swigCPtr, sensitive);
2493 if (NDalicPINVOKE.SWIGPendingException.Pending)
2494 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2497 internal bool IsSensitive()
2499 bool ret = NDalicPINVOKE.Actor_IsSensitive(swigCPtr);
2500 if (NDalicPINVOKE.SWIGPendingException.Pending)
2501 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2506 /// Converts screen coordinates into the view's coordinate system using the default camera.
2508 /// <pre>The View has been initialized.</pre>
2509 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5)</remarks>
2510 /// <param name="localX">On return, the X-coordinate relative to the view</param>
2511 /// <param name="localY">On return, the Y-coordinate relative to the view</param>
2512 /// <param name="screenX">The screen X-coordinate</param>
2513 /// <param name="screenY">The screen Y-coordinate</param>
2514 /// <returns>True if the conversion succeeded</returns>
2515 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
2517 bool ret = NDalicPINVOKE.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
2518 if (NDalicPINVOKE.SWIGPendingException.Pending)
2519 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2523 internal void SetLeaveRequired(bool required)
2525 NDalicPINVOKE.Actor_SetLeaveRequired(swigCPtr, required);
2526 if (NDalicPINVOKE.SWIGPendingException.Pending)
2527 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2530 internal bool GetLeaveRequired()
2532 bool ret = NDalicPINVOKE.Actor_GetLeaveRequired(swigCPtr);
2533 if (NDalicPINVOKE.SWIGPendingException.Pending)
2534 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2538 internal void SetKeyboardFocusable(bool focusable)
2540 NDalicPINVOKE.Actor_SetKeyboardFocusable(swigCPtr, focusable);
2541 if (NDalicPINVOKE.SWIGPendingException.Pending)
2542 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2545 internal bool IsKeyboardFocusable()
2547 bool ret = NDalicPINVOKE.Actor_IsKeyboardFocusable(swigCPtr);
2548 if (NDalicPINVOKE.SWIGPendingException.Pending)
2549 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2553 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
2555 NDalicPINVOKE.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
2556 if (NDalicPINVOKE.SWIGPendingException.Pending)
2557 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2560 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
2562 ResizePolicyType ret = (ResizePolicyType)NDalicPINVOKE.Actor_GetResizePolicy(swigCPtr, (int)dimension);
2563 if (NDalicPINVOKE.SWIGPendingException.Pending)
2564 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2568 internal void SetSizeScalePolicy(SizeScalePolicyType policy)
2570 NDalicPINVOKE.Actor_SetSizeScalePolicy(swigCPtr, (int)policy);
2571 if (NDalicPINVOKE.SWIGPendingException.Pending)
2572 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2575 internal SizeScalePolicyType GetSizeScalePolicy()
2577 SizeScalePolicyType ret = (SizeScalePolicyType)NDalicPINVOKE.Actor_GetSizeScalePolicy(swigCPtr);
2578 if (NDalicPINVOKE.SWIGPendingException.Pending)
2579 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2584 /// Sets the relative to parent size factor of the view.<br>
2585 /// This factor is only used when ResizePolicy is set to either:
2586 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br>
2587 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br>
2589 /// <pre>The View has been initialized.</pre>
2590 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis</param>
2591 public void SetSizeModeFactor(Vector3 factor)
2593 NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
2594 if (NDalicPINVOKE.SWIGPendingException.Pending)
2595 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2598 internal Vector3 GetSizeModeFactor()
2600 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetSizeModeFactor(swigCPtr), true);
2601 if (NDalicPINVOKE.SWIGPendingException.Pending)
2602 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2607 /// Calculates the height of the view given a width.<br>
2608 /// The natural size is used for default calculation. <br>
2609 /// size 0 is treated as aspect ratio 1:1.<br>
2611 /// <param name="width">Width to use</param>
2612 /// <returns>The height based on the width</returns>
2613 public float GetHeightForWidth(float width)
2615 float ret = NDalicPINVOKE.Actor_GetHeightForWidth(swigCPtr, width);
2616 if (NDalicPINVOKE.SWIGPendingException.Pending)
2617 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2622 /// Calculates the width of the view given a height.<br>
2623 /// The natural size is used for default calculation.<br>
2624 /// size 0 is treated as aspect ratio 1:1.<br>
2626 /// <param name="height">Height to use</param>
2627 /// <returns>The width based on the height</returns>
2628 public float GetWidthForHeight(float height)
2630 float ret = NDalicPINVOKE.Actor_GetWidthForHeight(swigCPtr, height);
2631 if (NDalicPINVOKE.SWIGPendingException.Pending)
2632 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2636 public float GetRelayoutSize(DimensionType dimension)
2638 float ret = NDalicPINVOKE.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
2639 if (NDalicPINVOKE.SWIGPendingException.Pending)
2640 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2644 public void SetPadding(PaddingType padding)
2646 NDalicPINVOKE.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
2647 if (NDalicPINVOKE.SWIGPendingException.Pending)
2648 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2651 public void GetPadding(PaddingType paddingOut)
2653 NDalicPINVOKE.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
2654 if (NDalicPINVOKE.SWIGPendingException.Pending)
2655 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2658 internal void SetMinimumSize(Vector2 size)
2660 NDalicPINVOKE.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
2661 if (NDalicPINVOKE.SWIGPendingException.Pending)
2662 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2665 internal Vector2 GetMinimumSize()
2667 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMinimumSize(swigCPtr), true);
2668 if (NDalicPINVOKE.SWIGPendingException.Pending)
2669 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2673 internal void SetMaximumSize(Vector2 size)
2675 NDalicPINVOKE.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
2676 if (NDalicPINVOKE.SWIGPendingException.Pending)
2677 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2680 internal Vector2 GetMaximumSize()
2682 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMaximumSize(swigCPtr), true);
2683 if (NDalicPINVOKE.SWIGPendingException.Pending)
2684 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2688 internal int GetHierarchyDepth()
2690 int ret = NDalicPINVOKE.Actor_GetHierarchyDepth(swigCPtr);
2691 if (NDalicPINVOKE.SWIGPendingException.Pending)
2692 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2696 internal uint AddRenderer(Renderer renderer)
2698 uint ret = NDalicPINVOKE.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
2699 if (NDalicPINVOKE.SWIGPendingException.Pending)
2700 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2704 internal uint GetRendererCount()
2706 uint ret = NDalicPINVOKE.Actor_GetRendererCount(swigCPtr);
2707 if (NDalicPINVOKE.SWIGPendingException.Pending)
2708 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2712 internal Renderer GetRendererAt(uint index)
2714 Renderer ret = new Renderer(NDalicPINVOKE.Actor_GetRendererAt(swigCPtr, index), true);
2715 if (NDalicPINVOKE.SWIGPendingException.Pending)
2716 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2720 internal void RemoveRenderer(Renderer renderer)
2722 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
2723 if (NDalicPINVOKE.SWIGPendingException.Pending)
2724 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2727 internal void RemoveRenderer(uint index)
2729 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
2730 if (NDalicPINVOKE.SWIGPendingException.Pending)
2731 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2734 internal TouchDataSignal TouchSignal()
2736 TouchDataSignal ret = new TouchDataSignal(NDalicPINVOKE.Actor_TouchSignal(swigCPtr), false);
2737 if (NDalicPINVOKE.SWIGPendingException.Pending)
2738 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2742 internal HoverSignal HoveredSignal()
2744 HoverSignal ret = new HoverSignal(NDalicPINVOKE.Actor_HoveredSignal(swigCPtr), false);
2745 if (NDalicPINVOKE.SWIGPendingException.Pending)
2746 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2750 internal WheelSignal WheelEventSignal()
2752 WheelSignal ret = new WheelSignal(NDalicPINVOKE.Actor_WheelEventSignal(swigCPtr), false);
2753 if (NDalicPINVOKE.SWIGPendingException.Pending)
2754 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2758 internal ViewSignal OnWindowSignal()
2760 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
2761 if (NDalicPINVOKE.SWIGPendingException.Pending)
2762 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2766 internal ViewSignal OffWindowSignal()
2768 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OffStageSignal(swigCPtr), false);
2769 if (NDalicPINVOKE.SWIGPendingException.Pending)
2770 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2774 internal ViewSignal OnRelayoutSignal()
2776 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnRelayoutSignal(swigCPtr), false);
2777 if (NDalicPINVOKE.SWIGPendingException.Pending)
2778 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2782 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view) {
2783 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(NDalicPINVOKE.VisibilityChangedSignal(View.getCPtr(view)), false);
2784 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2789 /// Gets/Sets the origin of an view, within its parent's area.<br>
2790 /// 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>
2791 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br>
2792 /// An view's position is the distance between this origin, and the view's anchor-point.<br>
2794 /// <pre>The View has been initialized.</pre>
2795 public Position ParentOrigin
2799 Position temp = new Position(0.0f, 0.0f, 0.0f);
2800 GetProperty(View.Property.PARENT_ORIGIN).Get(temp);
2805 SetProperty(View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue(value));
2809 internal float ParentOriginX
2814 GetProperty(View.Property.PARENT_ORIGIN_X).Get(ref temp);
2819 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
2823 internal float ParentOriginY
2828 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(ref temp);
2833 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
2837 internal float ParentOriginZ
2842 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(ref temp);
2847 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
2852 /// Gets/Sets the anchor-point of an view.<br>
2853 /// 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>
2854 /// The default anchor point is AnchorPoint.Center (0.5, 0.5, 0.5).<br>
2855 /// An view position is the distance between its parent-origin and this anchor-point.<br>
2856 /// An view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br>
2857 /// <pre>The View has been initialized.</pre>
2859 public Position AnchorPoint
2863 Position temp = new Position(0.0f, 0.0f, 0.0f);
2864 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
2869 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2873 internal float AnchorPointX
2878 GetProperty(View.Property.ANCHOR_POINT_X).Get(ref temp);
2883 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
2887 internal float AnchorPointY
2892 GetProperty(View.Property.ANCHOR_POINT_Y).Get(ref temp);
2897 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
2901 internal float AnchorPointZ
2906 GetProperty(View.Property.ANCHOR_POINT_Z).Get(ref temp);
2911 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
2916 /// Gets/Sets the size of an view.<br>
2917 /// Geometry can be scaled to fit within this area.<br>
2918 /// This does not interfere with the views scale factor.<br>
2924 Size temp = new Size(0.0f, 0.0f, 0.0f);
2925 GetProperty(View.Property.SIZE).Get(temp);
2930 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(value));
2935 /// Gets/Sets the size width of an view.
2937 public float SizeWidth
2942 GetProperty(View.Property.SIZE_WIDTH).Get(ref temp);
2947 SetProperty(View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
2952 /// Gets/Sets the size height of an view.
2954 public float SizeHeight
2959 GetProperty(View.Property.SIZE_HEIGHT).Get(ref temp);
2964 SetProperty(View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
2969 /// Gets/Sets the size depth of an view.
2971 public float SizeDepth
2976 GetProperty(View.Property.SIZE_DEPTH).Get(ref temp);
2981 SetProperty(View.Property.SIZE_DEPTH, new Tizen.NUI.PropertyValue(value));
2986 /// Gets/Sets the position of the View.<br>
2987 /// By default, sets the position vector between the parent origin and anchor point(default).<br>
2988 /// If Position inheritance if disabled, sets the world position.<br>
2990 public Position Position
2994 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2995 GetProperty(View.Property.POSITION).Get(temp);
3000 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(value));
3005 /// Gets/Sets the position x of the View.
3007 public float PositionX
3012 GetProperty(View.Property.POSITION_X).Get(ref temp);
3017 SetProperty(View.Property.POSITION_X, new Tizen.NUI.PropertyValue(value));
3022 /// Gets/Sets the position y of the View.
3024 public float PositionY
3029 GetProperty(View.Property.POSITION_Y).Get(ref temp);
3034 SetProperty(View.Property.POSITION_Y, new Tizen.NUI.PropertyValue(value));
3039 /// Gets/Sets the position z of the View.
3041 public float PositionZ
3046 GetProperty(View.Property.POSITION_Z).Get(ref temp);
3051 SetProperty(View.Property.POSITION_Z, new Tizen.NUI.PropertyValue(value));
3056 /// Gets/Sets the world position of the View.
3058 public Vector3 WorldPosition
3062 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3063 GetProperty(View.Property.WORLD_POSITION).Get(temp);
3068 internal float WorldPositionX
3073 GetProperty(View.Property.WORLD_POSITION_X).Get(ref temp);
3078 internal float WorldPositionY
3083 GetProperty(View.Property.WORLD_POSITION_Y).Get(ref temp);
3088 internal float WorldPositionZ
3093 GetProperty(View.Property.WORLD_POSITION_Z).Get(ref temp);
3099 /// Gets/Sets the orientation of the View.<br>
3100 /// An view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br>
3102 /// <remarks>This is an asynchronous method.</remarks>
3103 public Rotation Orientation
3107 Rotation temp = new Rotation();
3108 GetProperty(View.Property.ORIENTATION).Get(temp);
3113 SetProperty(View.Property.ORIENTATION, new Tizen.NUI.PropertyValue(value));
3118 /// Gets/Sets the world orientation of the View.<br>
3120 public Rotation WorldOrientation
3124 Rotation temp = new Rotation();
3125 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
3131 /// Gets/Sets the scale factor applied to an view.<br>
3133 public Vector3 Scale
3137 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3138 GetProperty(View.Property.SCALE).Get(temp);
3143 SetProperty(View.Property.SCALE, new Tizen.NUI.PropertyValue(value));
3148 /// Gets/Sets the scale x factor applied to an view.
3155 GetProperty(View.Property.SCALE_X).Get(ref temp);
3160 SetProperty(View.Property.SCALE_X, new Tizen.NUI.PropertyValue(value));
3165 /// Gets/Sets the scale y factor applied to an view.
3172 GetProperty(View.Property.SCALE_Y).Get(ref temp);
3177 SetProperty(View.Property.SCALE_Y, new Tizen.NUI.PropertyValue(value));
3182 /// Gets/Sets the scale z factor applied to an view.
3189 GetProperty(View.Property.SCALE_Z).Get(ref temp);
3194 SetProperty(View.Property.SCALE_Z, new Tizen.NUI.PropertyValue(value));
3199 /// Gets the world scale of View.
3201 public Vector3 WorldScale
3205 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3206 GetProperty(View.Property.WORLD_SCALE).Get(temp);
3212 /// Retrieves the visibility flag of an view.
3215 /// If an view is not visible, then the view and its children will not be rendered.
3216 /// 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.
3223 GetProperty(View.Property.VISIBLE).Get(ref temp);
3225 }/* only get is required : removed
3228 SetProperty(View.Property.VISIBLE, new Tizen.NUI.PropertyValue(value));
3233 /// Gets/Sets the view's mix color red.
3235 public float ColorRed
3240 GetProperty(View.Property.COLOR_RED).Get(ref temp);
3245 SetProperty(View.Property.COLOR_RED, new Tizen.NUI.PropertyValue(value));
3250 /// Gets/Sets the view's mix color green.
3252 public float ColorGreen
3257 GetProperty(View.Property.COLOR_GREEN).Get(ref temp);
3262 SetProperty(View.Property.COLOR_GREEN, new Tizen.NUI.PropertyValue(value));
3267 /// Gets/Sets the view's mix color blue
3269 public float ColorBlue
3274 GetProperty(View.Property.COLOR_BLUE).Get(ref temp);
3279 SetProperty(View.Property.COLOR_BLUE, new Tizen.NUI.PropertyValue(value));
3284 /// Gets/Sets the view's mix color alpha.
3286 public float ColorAlpha
3291 GetProperty(View.Property.COLOR_ALPHA).Get(ref temp);
3296 SetProperty(View.Property.COLOR_ALPHA, new Tizen.NUI.PropertyValue(value));
3301 /// Gets the view's world color.
3303 public Vector4 WorldColor
3307 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3308 GetProperty(View.Property.WORLD_COLOR).Get(temp);
3313 internal Matrix WorldMatrix
3317 Matrix temp = new Matrix();
3318 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3324 /// Gets/Sets the View's name.
3331 GetProperty(View.Property.NAME).Get(out temp);
3336 SetProperty(View.Property.NAME, new Tizen.NUI.PropertyValue(value));
3341 /// Gets/Sets the status of whether an view should emit touch or hover signals.
3343 public bool Sensitive
3348 GetProperty(View.Property.SENSITIVE).Get(ref temp);
3353 SetProperty(View.Property.SENSITIVE, new Tizen.NUI.PropertyValue(value));
3358 /// Gets/Sets the status of whether the view should receive a notification when touch or hover motion events leave the boundary of the view.
3360 public bool LeaveRequired
3365 GetProperty(View.Property.LEAVE_REQUIRED).Get(ref temp);
3370 SetProperty(View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue(value));
3375 /// Gets/Sets the status of whether a child view inherits it's parent's orientation.
3377 public bool InheritOrientation
3382 GetProperty(View.Property.INHERIT_ORIENTATION).Get(ref temp);
3387 SetProperty(View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue(value));
3392 /// Gets/Sets the status of whether a child view inherits it's parent's scale.
3394 public bool InheritScale
3399 GetProperty(View.Property.INHERIT_SCALE).Get(ref temp);
3404 SetProperty(View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue(value));
3409 /// Gets/Sets the view's color mode.<br>
3410 /// This specifies whether the View uses its own color, or inherits its parent color.<br>
3411 /// The default is UseOwnMultiplyParentAlpha.<br>
3413 public ColorMode ColorMode
3418 if (GetProperty(View.Property.COLOR_MODE).Get(out temp) == false)
3421 Tizen.Log.Error("NUI", "ColorMode get error!");
3426 case "USE_OWN_COLOR":
3427 return ColorMode.UseOwnColor;
3428 case "USE_PARENT_COLOR":
3429 return ColorMode.UseParentColor;
3430 case "USE_OWN_MULTIPLY_PARENT_COLOR":
3431 return ColorMode.UseOwnMultiplyParentColor;
3432 case "USE_OWN_MULTIPLY_PARENT_ALPHA":
3433 return ColorMode.UseOwnMultiplyParentAlpha;
3435 return ColorMode.UseOwnMultiplyParentAlpha;
3440 SetProperty(View.Property.COLOR_MODE, new Tizen.NUI.PropertyValue((int)value));
3444 public string PositionInheritance
3449 GetProperty(View.Property.POSITION_INHERITANCE).Get(out temp);
3454 SetProperty(View.Property.POSITION_INHERITANCE, new Tizen.NUI.PropertyValue(value));
3459 /// Gets/Sets the status of how the view and its children should be drawn.<br>
3460 /// Not all views are renderable, but DrawMode can be inherited from any view.<br>
3461 /// 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>
3462 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br>
3463 /// Overlay views are drawn in a separate pass, after all non-overlay views within the Layer.<br>
3464 /// For overlay views, the drawing order is with respect to tree levels of Views, and depth-testing will not be used.<br>
3466 public DrawModeType DrawMode
3471 if (GetProperty(View.Property.DRAW_MODE).Get(out temp) == false)
3474 Tizen.Log.Error("NUI", "DrawMode get error!");
3480 return DrawModeType.Normal;
3482 return DrawModeType.Overlay2D;
3484 return DrawModeType.Stencil;
3486 return DrawModeType.Normal;
3491 SetProperty(View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)value));
3496 /// Gets/Sets the relative to parent size factor of the view.<br>
3497 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br>
3498 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br>
3500 public Vector3 SizeModeFactor
3504 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3505 GetProperty(View.Property.SIZE_MODE_FACTOR).Get(temp);
3510 SetProperty(View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue(value));
3515 /// Gets/Sets the width resize policy to be used.
3517 public ResizePolicyType WidthResizePolicy
3522 if (GetProperty(View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
3525 Tizen.Log.Error("NUI", "WidthResizePolicy get error!");
3531 return ResizePolicyType.Fixed;
3532 case "USE_NATURAL_SIZE":
3533 return ResizePolicyType.UseNaturalSize;
3534 case "FILL_TO_PARENT":
3535 return ResizePolicyType.FillToParent;
3536 case "SIZE_RELATIVE_TO_PARENT":
3537 return ResizePolicyType.SizeRelativeToParent;
3538 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3539 return ResizePolicyType.SizeFixedOffsetFromParent;
3540 case "FIT_TO_CHILDREN":
3541 return ResizePolicyType.FitToChildren;
3542 case "DIMENSION_DEPENDENCY":
3543 return ResizePolicyType.DimensionDependency;
3544 case "USE_ASSIGNED_SIZE":
3545 return ResizePolicyType.UseAssignedSize;
3547 return ResizePolicyType.Fixed;
3552 SetProperty(View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3557 /// Gets/Sets the height resize policy to be used.
3559 public ResizePolicyType HeightResizePolicy
3564 if (GetProperty(View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
3567 Tizen.Log.Error("NUI", "HeightResizePolicy get error!");
3573 return ResizePolicyType.Fixed;
3574 case "USE_NATURAL_SIZE":
3575 return ResizePolicyType.UseNaturalSize;
3576 case "FILL_TO_PARENT":
3577 return ResizePolicyType.FillToParent;
3578 case "SIZE_RELATIVE_TO_PARENT":
3579 return ResizePolicyType.SizeRelativeToParent;
3580 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3581 return ResizePolicyType.SizeFixedOffsetFromParent;
3582 case "FIT_TO_CHILDREN":
3583 return ResizePolicyType.FitToChildren;
3584 case "DIMENSION_DEPENDENCY":
3585 return ResizePolicyType.DimensionDependency;
3586 case "USE_ASSIGNED_SIZE":
3587 return ResizePolicyType.UseAssignedSize;
3589 return ResizePolicyType.Fixed;
3594 SetProperty(View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3599 /// Gets/Sets the policy to use when setting size with size negotiation.<br>
3600 /// Defaults to SizeScalePolicyType.UseSizeSet.<br>
3602 public SizeScalePolicyType SizeScalePolicy
3607 if (GetProperty(View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
3610 Tizen.Log.Error("NUI", "SizeScalePolicy get error!");
3615 case "USE_SIZE_SET":
3616 return SizeScalePolicyType.UseSizeSet;
3617 case "FIT_WITH_ASPECT_RATIO":
3618 return SizeScalePolicyType.FitWithAspectRatio;
3619 case "FILL_WITH_ASPECT_RATIO":
3620 return SizeScalePolicyType.FillWithAspectRatio;
3622 return SizeScalePolicyType.UseSizeSet;
3627 string valueToString = "";
3630 case SizeScalePolicyType.UseSizeSet:
3632 valueToString = "USE_SIZE_SET";
3635 case SizeScalePolicyType.FitWithAspectRatio:
3637 valueToString = "FIT_WITH_ASPECT_RATIO";
3640 case SizeScalePolicyType.FillWithAspectRatio:
3642 valueToString = "FILL_WITH_ASPECT_RATIO";
3647 valueToString = "USE_SIZE_SET";
3651 SetProperty(View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
3656 /// Gets/Sets the status of whether the width size is dependent on height size.
3658 public bool WidthForHeight
3663 GetProperty(View.Property.WIDTH_FOR_HEIGHT).Get(ref temp);
3668 SetProperty(View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue(value));
3673 /// Gets/Sets the status of whether the height size is dependent on width size.
3675 public bool HeightForWidth
3680 GetProperty(View.Property.HEIGHT_FOR_WIDTH).Get(ref temp);
3685 SetProperty(View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue(value));
3690 /// Gets/Sets the padding for use in layout.
3692 public Vector4 Padding
3696 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3697 GetProperty(View.Property.PADDING).Get(temp);
3702 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
3707 /// Gets/Sets the minimum size an view can be assigned in size negotiation.
3709 public Size2D MinimumSize
3713 Size2D temp = new Size2D(0, 0);
3714 GetProperty(View.Property.MINIMUM_SIZE).Get(temp);
3719 SetProperty(View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
3724 /// Gets/Sets the maximum size an view can be assigned in size negotiation.
3726 public Size2D MaximumSize
3730 Size2D temp = new Size2D(0, 0);
3731 GetProperty(View.Property.MAXIMUM_SIZE).Get(temp);
3736 SetProperty(View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
3741 /// Gets/Sets whether a child view inherits it's parent's position.<br>
3742 /// Default is to inherit.<br>
3743 /// 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>
3745 public bool InheritPosition
3750 GetProperty(View.Property.INHERIT_POSITION).Get(ref temp);
3755 SetProperty(View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue(value));
3760 /// Gets/Sets clipping behavior(mode) of it's children.
3762 public ClippingModeType ClippingMode
3767 if (GetProperty(View.Property.CLIPPING_MODE).Get(out temp) == false)
3770 Tizen.Log.Error("NUI", "ClippingMode get error!");
3776 return ClippingModeType.Disabled;
3777 case "CLIP_CHILDREN":
3778 return ClippingModeType.ClipChildren;
3780 return ClippingModeType.Disabled;
3785 SetProperty(View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)value));