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> Key
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 Relayout
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> WheelRolled
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 AddedToWindow
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 RemovedFromWindow
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
694 internal static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
695 internal static readonly int STATE = NDalicManualPINVOKE.View_Property_STATE_get();
696 internal static readonly int SUB_STATE = NDalicManualPINVOKE.View_Property_SUB_STATE_get();
697 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
698 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
699 internal static readonly int UP_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
700 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
701 internal static readonly int STYLE_NAME = NDalicPINVOKE.View_Property_STYLE_NAME_get();
702 internal static readonly int BACKGROUND = NDalicPINVOKE.View_Property_BACKGROUND_get();
703 internal static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
704 internal static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
705 internal static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
706 internal static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
707 internal static readonly int PARENT_ORIGIN = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_get();
708 internal static readonly int PARENT_ORIGIN_X = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_X_get();
709 internal static readonly int PARENT_ORIGIN_Y = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Y_get();
710 internal static readonly int PARENT_ORIGIN_Z = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Z_get();
711 internal static readonly int ANCHOR_POINT = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_get();
712 internal static readonly int ANCHOR_POINT_X = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_X_get();
713 internal static readonly int ANCHOR_POINT_Y = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Y_get();
714 internal static readonly int ANCHOR_POINT_Z = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Z_get();
715 internal static readonly int SIZE = NDalicPINVOKE.Actor_Property_SIZE_get();
716 internal static readonly int SIZE_WIDTH = NDalicPINVOKE.Actor_Property_SIZE_WIDTH_get();
717 internal static readonly int SIZE_HEIGHT = NDalicPINVOKE.Actor_Property_SIZE_HEIGHT_get();
718 internal static readonly int SIZE_DEPTH = NDalicPINVOKE.Actor_Property_SIZE_DEPTH_get();
719 internal static readonly int POSITION = NDalicPINVOKE.Actor_Property_POSITION_get();
720 internal static readonly int POSITION_X = NDalicPINVOKE.Actor_Property_POSITION_X_get();
721 internal static readonly int POSITION_Y = NDalicPINVOKE.Actor_Property_POSITION_Y_get();
722 internal static readonly int POSITION_Z = NDalicPINVOKE.Actor_Property_POSITION_Z_get();
723 internal static readonly int WORLD_POSITION = NDalicPINVOKE.Actor_Property_WORLD_POSITION_get();
724 internal static readonly int WORLD_POSITION_X = NDalicPINVOKE.Actor_Property_WORLD_POSITION_X_get();
725 internal static readonly int WORLD_POSITION_Y = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Y_get();
726 internal static readonly int WORLD_POSITION_Z = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Z_get();
727 internal static readonly int ORIENTATION = NDalicPINVOKE.Actor_Property_ORIENTATION_get();
728 internal static readonly int WORLD_ORIENTATION = NDalicPINVOKE.Actor_Property_WORLD_ORIENTATION_get();
729 internal static readonly int SCALE = NDalicPINVOKE.Actor_Property_SCALE_get();
730 internal static readonly int SCALE_X = NDalicPINVOKE.Actor_Property_SCALE_X_get();
731 internal static readonly int SCALE_Y = NDalicPINVOKE.Actor_Property_SCALE_Y_get();
732 internal static readonly int SCALE_Z = NDalicPINVOKE.Actor_Property_SCALE_Z_get();
733 internal static readonly int WORLD_SCALE = NDalicPINVOKE.Actor_Property_WORLD_SCALE_get();
734 internal static readonly int VISIBLE = NDalicPINVOKE.Actor_Property_VISIBLE_get();
735 internal static readonly int WORLD_COLOR = NDalicPINVOKE.Actor_Property_WORLD_COLOR_get();
736 internal static readonly int WORLD_MATRIX = NDalicPINVOKE.Actor_Property_WORLD_MATRIX_get();
737 internal static readonly int NAME = NDalicPINVOKE.Actor_Property_NAME_get();
738 internal static readonly int SENSITIVE = NDalicPINVOKE.Actor_Property_SENSITIVE_get();
739 internal static readonly int LEAVE_REQUIRED = NDalicPINVOKE.Actor_Property_LEAVE_REQUIRED_get();
740 internal static readonly int INHERIT_ORIENTATION = NDalicPINVOKE.Actor_Property_INHERIT_ORIENTATION_get();
741 internal static readonly int INHERIT_SCALE = NDalicPINVOKE.Actor_Property_INHERIT_SCALE_get();
742 internal static readonly int DRAW_MODE = NDalicPINVOKE.Actor_Property_DRAW_MODE_get();
743 internal static readonly int SIZE_MODE_FACTOR = NDalicPINVOKE.Actor_Property_SIZE_MODE_FACTOR_get();
744 internal static readonly int WIDTH_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_WIDTH_RESIZE_POLICY_get();
745 internal static readonly int HEIGHT_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_HEIGHT_RESIZE_POLICY_get();
746 internal static readonly int SIZE_SCALE_POLICY = NDalicPINVOKE.Actor_Property_SIZE_SCALE_POLICY_get();
747 internal static readonly int WIDTH_FOR_HEIGHT = NDalicPINVOKE.Actor_Property_WIDTH_FOR_HEIGHT_get();
748 internal static readonly int HEIGHT_FOR_WIDTH = NDalicPINVOKE.Actor_Property_HEIGHT_FOR_WIDTH_get();
749 internal static readonly int PADDING = NDalicPINVOKE.Actor_Property_PADDING_get();
750 internal static readonly int MINIMUM_SIZE = NDalicPINVOKE.Actor_Property_MINIMUM_SIZE_get();
751 internal static readonly int MAXIMUM_SIZE = NDalicPINVOKE.Actor_Property_MAXIMUM_SIZE_get();
752 internal static readonly int INHERIT_POSITION = NDalicPINVOKE.Actor_Property_INHERIT_POSITION_get();
753 internal static readonly int CLIPPING_MODE = NDalicPINVOKE.Actor_Property_CLIPPING_MODE_get();
758 /// Describes the direction to move the focus towards.
760 public enum FocusDirection
771 /// Creates a new instance of a View.
773 public View() : this(NDalicPINVOKE.View_New(), true)
775 PositionUsesAnchorPoint = false;
776 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
779 internal View(View uiControl) : this(NDalicPINVOKE.new_View__SWIG_1(View.getCPtr(uiControl)), true)
781 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
785 /// Downcasts a handle to View handle.<br>
786 /// If handle points to a View, the downcast produces valid handle.<br>
787 /// If not, the returned handle is left uninitialized.<br>
789 /// <param name="handle">Handle to an object</param>
790 /// <returns>A handle to a View or an uninitialized handle</returns>
791 public new static View DownCast(BaseHandle handle)
793 View ret = new View(NDalicPINVOKE.View_DownCast(BaseHandle.getCPtr(handle)), true);
794 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
799 /// Downcasts a handle to class which inherit View handle.
801 /// <typeparam name="T">Class which inherit View</typeparam>
802 /// <param name="view">View to an object</param>
803 /// <returns>A object which inherit View</returns>
804 public static T DownCast<T>(View view) where T : View
806 View ret = ViewRegistry.GetViewFromBaseHandle(view);
814 private View ConvertIdToView(uint id)
820 view = Parent.FindChildById(id);
825 view = Window.Instance.GetRootLayer().FindChildById(id);
831 internal void SetKeyInputFocus()
833 NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
834 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
838 /// Quries whether the view has focus.
840 /// <returns>true if this view has focus</returns>
841 public bool HasFocus()
843 bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
844 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
848 internal void ClearKeyInputFocus()
850 NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
851 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
854 internal PinchGestureDetector GetPinchGestureDetector()
856 PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
857 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
861 internal PanGestureDetector GetPanGestureDetector()
863 PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
864 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
868 internal TapGestureDetector GetTapGestureDetector()
870 TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
871 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
875 internal LongPressGestureDetector GetLongPressGestureDetector()
877 LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
878 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
883 /// Sets the name of the style to be applied to the view.
885 /// <param name="styleName">A string matching a style described in a stylesheet</param>
886 public void SetStyleName(string styleName)
888 NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
889 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
893 /// Retrieves the name of the style to be applied to the view (if any).
895 /// <returns>A string matching a style, or an empty string</returns>
896 public string GetStyleName()
898 string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
899 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
903 internal void SetBackgroundColor(Vector4 color)
905 NDalicPINVOKE.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
906 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
909 internal Vector4 GetBackgroundColor()
911 Vector4 ret = new Vector4(NDalicPINVOKE.View_GetBackgroundColor(swigCPtr), true);
912 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
916 internal void SetBackgroundImage(Image image)
918 NDalicPINVOKE.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
919 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
923 /// Clears the background.
925 public void ClearBackground()
927 NDalicPINVOKE.View_ClearBackground(swigCPtr);
928 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
931 internal ControlKeySignal KeyEventSignal()
933 ControlKeySignal ret = new ControlKeySignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
934 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
938 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
940 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
941 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
945 internal KeyInputFocusSignal KeyInputFocusLostSignal()
947 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
948 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
952 internal View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
954 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
957 internal enum PropertyRange
959 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
960 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
961 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
965 /// styleName, type string.
967 public string StyleName
972 GetProperty(View.Property.STYLE_NAME).Get(out temp);
977 SetProperty(View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue(value));
982 /// mutually exclusive with BACKGROUND_IMAGE & BACKGROUND, type Vector4.
984 public Color BackgroundColor
988 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
990 Tizen.NUI.PropertyMap background = Background;
992 background.Find(Visual.Property.Type)?.Get(out visualType);
993 if (visualType == (int)Visual.Type.Color)
995 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
998 return backgroundColor;
1002 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1007 /// mutually exclusive with BACKGROUND_COLOR & BACKGROUND, type Map.
1009 public string BackgroundImage
1013 string backgroundImage = "";
1015 Tizen.NUI.PropertyMap background = Background;
1017 background.Find(Visual.Property.Type)?.Get(out visualType);
1018 if (visualType == (int)Visual.Type.Image)
1020 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
1023 return backgroundImage;
1027 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1032 /// mutually exclusive with BACKGROUND_COLOR & BACKGROUND_IMAGE, type Map or string for URL.
1034 public Tizen.NUI.PropertyMap Background
1038 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1039 GetProperty(View.Property.BACKGROUND).Get(temp);
1044 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
1049 /// The current state of the view.
1056 if (GetProperty(View.Property.STATE).Get(out temp) == false)
1059 Tizen.Log.Error("NUI", "State get error!");
1066 return States.Normal;
1070 return States.Focused;
1074 return States.Disabled;
1078 return States.Normal;
1084 SetProperty(View.Property.STATE, new Tizen.NUI.PropertyValue((int)value));
1089 /// The current sub state of the view.
1091 public States SubState
1096 if (GetProperty(View.Property.SUB_STATE).Get(out temp) == false)
1099 Tizen.Log.Error("NUI", "subState get error!");
1105 return States.Normal;
1107 return States.Focused;
1109 return States.Disabled;
1111 return States.Normal;
1116 string valueToString = "";
1121 valueToString = "NORMAL";
1124 case States.Focused:
1126 valueToString = "FOCUSED";
1129 case States.Disabled:
1131 valueToString = "DISABLED";
1136 valueToString = "NORMAL";
1140 SetProperty(View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
1145 /// Displays a tooltip
1147 public Tizen.NUI.PropertyMap Tooltip
1151 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
1152 GetProperty(View.Property.TOOLTIP).Get(temp);
1157 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1162 /// Displays a tooltip as Text
1164 public string TooltipText
1168 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
1172 private int LeftFocusableViewId
1177 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
1182 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1186 private int RightFocusableViewId
1191 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
1196 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1200 private int UpFocusableViewId
1205 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
1210 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1214 private int DownFocusableViewId
1219 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
1224 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
1229 /// Child Property of FlexContainer.<br>
1230 /// The proportion of the free space in the container the flex item will receive.<br>
1231 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br>
1238 GetProperty(FlexContainer.ChildProperty.FLEX).Get(out temp);
1243 SetProperty(FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue(value));
1248 /// Child Property of FlexContainer.<br>
1249 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br>
1251 public int AlignSelf
1256 GetProperty(FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
1261 SetProperty(FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue(value));
1266 /// Child Property of FlexContainer.<br>
1267 /// The space around the flex item.<br>
1269 public Vector4 FlexMargin
1273 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1274 GetProperty(FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
1279 SetProperty(FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue(value));
1284 /// The top-left cell this child occupies, if not set, the first available cell is used
1286 public Vector2 CellIndex
1290 Vector2 temp = new Vector2(0.0f, 0.0f);
1291 GetProperty(TableView.ChildProperty.CELL_INDEX).Get(temp);
1296 SetProperty(TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue(value));
1301 /// The number of rows this child occupies, if not set, default value is 1
1303 public float RowSpan
1308 GetProperty(TableView.ChildProperty.ROW_SPAN).Get(out temp);
1313 SetProperty(TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue(value));
1318 /// The number of columns this child occupies, if not set, default value is 1
1320 public float ColumnSpan
1325 GetProperty(TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
1330 SetProperty(TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue(value));
1335 /// The horizontal alignment of this child inside the cells, if not set, default value is 'left'
1337 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
1342 if (GetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
1345 Tizen.Log.Error("NUI", "CellHorizontalAlignment get error!");
1352 return Tizen.NUI.HorizontalAlignmentType.Left;
1354 return Tizen.NUI.HorizontalAlignmentType.Center;
1356 return Tizen.NUI.HorizontalAlignmentType.Right;
1358 return Tizen.NUI.HorizontalAlignmentType.Left;
1363 string valueToString = "";
1366 case Tizen.NUI.HorizontalAlignmentType.Left:
1368 valueToString = "left";
1371 case Tizen.NUI.HorizontalAlignmentType.Center:
1373 valueToString = "center";
1376 case Tizen.NUI.HorizontalAlignmentType.Right:
1378 valueToString = "right";
1383 valueToString = "left";
1387 SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1392 /// The vertical alignment of this child inside the cells, if not set, default value is 'top'
1394 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
1399 GetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
1402 Tizen.Log.Error("NUI", "CellVerticalAlignment get error!");
1409 return Tizen.NUI.VerticalAlignmentType.Top;
1411 return Tizen.NUI.VerticalAlignmentType.Center;
1413 return Tizen.NUI.VerticalAlignmentType.Bottom;
1415 return Tizen.NUI.VerticalAlignmentType.Top;
1420 string valueToString = "";
1423 case Tizen.NUI.VerticalAlignmentType.Top:
1425 valueToString = "top";
1428 case Tizen.NUI.VerticalAlignmentType.Center:
1430 valueToString = "center";
1433 case Tizen.NUI.VerticalAlignmentType.Bottom:
1435 valueToString = "bottom";
1440 valueToString = "top";
1444 SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
1449 /// The left focusable view.<br>
1450 /// This will return NULL if not set.<br>
1451 /// This will also return NULL if the specified left focusable view is not on Window.<br>
1453 public View LeftFocusableView
1455 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1458 if (LeftFocusableViewId >= 0)
1460 return ConvertIdToView((uint)LeftFocusableViewId);
1466 LeftFocusableViewId = (int)value.GetId();
1471 /// The right focusable view.<br>
1472 /// This will return NULL if not set.<br>
1473 /// This will also return NULL if the specified right focusable view is not on Window.<br>
1475 public View RightFocusableView
1477 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1480 if (RightFocusableViewId >= 0)
1482 return ConvertIdToView((uint)RightFocusableViewId);
1488 RightFocusableViewId = (int)value.GetId();
1493 /// The up focusable view.<br>
1494 /// This will return NULL if not set.<br>
1495 /// This will also return NULL if the specified up focusable view is not on Window.<br>
1497 public View UpFocusableView
1499 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1502 if (UpFocusableViewId >= 0)
1504 return ConvertIdToView((uint)UpFocusableViewId);
1510 UpFocusableViewId = (int)value.GetId();
1515 /// The down focusable view.<br>
1516 /// This will return NULL if not set.<br>
1517 /// This will also return NULL if the specified down focusable view is not on Window.<br>
1519 public View DownFocusableView
1521 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1524 if (DownFocusableViewId >= 0)
1526 return ConvertIdToView((uint)DownFocusableViewId);
1532 DownFocusableViewId = (int)value.GetId();
1537 /// whether the view should be focusable by keyboard navigation.
1539 public bool Focusable
1543 SetKeyboardFocusable(value);
1547 return IsKeyboardFocusable();
1552 /// Enumeration for describing the states of view.
1571 /// Retrieves the position of the View.<br>
1572 /// The coordinates are relative to the View's parent.<br>
1574 public Position CurrentPosition
1578 return GetCurrentPosition();
1583 /// Sets the size of an view for width and height.<br>
1584 /// Geometry can be scaled to fit within this area.<br>
1585 /// This does not interfere with the views scale factor.<br>
1586 /// The views default depth is the minimum of width & height.<br>
1588 public Size2D Size2D
1592 Size temp = new Size(0.0f, 0.0f, 0.0f);
1593 GetProperty(View.Property.SIZE).Get(temp);
1594 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
1599 SetProperty(View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size(value)));
1604 /// Retrieves the size of the View.<br>
1605 /// The coordinates are relative to the View's parent.<br>
1607 public Size2D CurrentSize
1611 return GetCurrentSize();
1616 /// Retrieves the view's parent.<br>
1626 public bool Visibility
1635 /// Retrieves and sets the view's opacity.<br>
1637 public float Opacity
1642 GetProperty(View.Property.OPACITY).Get(out temp);
1647 SetProperty(View.Property.OPACITY, new Tizen.NUI.PropertyValue(value));
1652 /// Sets the position of the View for X and Y.<br>
1653 /// By default, sets the position vector between the parent origin and anchor point(default).<br>
1654 /// If Position inheritance if disabled, sets the world position.<br>
1656 public Position2D Position2D
1660 Position temp = new Position(0.0f, 0.0f, 0.0f);
1661 GetProperty(View.Property.POSITION).Get(temp);
1662 return new Position2D(temp);
1666 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position(value)));
1671 /// Retrieves screen postion of view's.<br>
1673 public Vector2 ScreenPosition
1677 Vector2 temp = new Vector2(0.0f, 0.0f);
1678 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
1684 /// Determines whether the anchor point should be used to determine the position of the view.
1685 /// This is true by default.
1687 /// <remarks>If false, then the top-left of the view is used for the position.
1688 /// Setting this to false will allow scaling or rotation around the anchor-point without affecting the view's position.
1690 public bool PositionUsesAnchorPoint
1695 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
1700 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
1704 internal bool FocusState
1708 return IsKeyboardFocusable();
1712 SetKeyboardFocusable(value);
1717 /// Queries whether the view is connected to the Stage.<br>
1718 /// When an view is connected, it will be directly or indirectly parented to the root View.<br>
1720 public bool IsOnWindow
1729 /// Gets depth in the hierarchy for the view.
1731 public int HierarchyDepth
1735 return GetHierarchyDepth();
1740 /// Sets the sibling order of the view so depth position can be defined within the same parent.
1743 /// Note The initial value is 0.
1744 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove and LowerBelow will override the sibling order.
1745 /// The values set by this Property will likely change.
1747 public int SiblingOrder
1752 GetProperty(View.Property.SIBLING_ORDER).Get(out temp);
1757 SetProperty(View.Property.SIBLING_ORDER, new Tizen.NUI.PropertyValue(value));
1762 /// Gets the natural size of the view.<br>
1767 internal Vector3 NaturalSize
1771 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
1772 if (NDalicPINVOKE.SWIGPendingException.Pending)
1773 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1782 /// This is an asynchronous method.
1793 /// This is an asynchronous method.
1794 /// If an view is hidden, then the view and its children will not be rendered.
1795 /// 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.
1802 internal void Raise()
1804 NDalicPINVOKE.Raise(swigCPtr);
1805 if (NDalicPINVOKE.SWIGPendingException.Pending)
1806 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1809 internal void Lower()
1811 NDalicPINVOKE.Lower(swigCPtr);
1812 if (NDalicPINVOKE.SWIGPendingException.Pending)
1813 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1817 /// Raise view above all other views.
1820 /// Sibling order of views within the parent will be updated automatically.
1821 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
1823 public void RaiseToTop()
1825 NDalicPINVOKE.RaiseToTop(swigCPtr);
1826 if (NDalicPINVOKE.SWIGPendingException.Pending)
1827 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1831 /// Lower view to the bottom of all views.
1834 /// Sibling order of views within the parent will be updated automatically.
1835 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
1837 public void LowerToBottom()
1839 NDalicPINVOKE.LowerToBottom(swigCPtr);
1840 if (NDalicPINVOKE.SWIGPendingException.Pending)
1841 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1845 /// Raise the view to above the target view.
1847 /// <remarks>Sibling order of views within the parent will be updated automatically.
1848 /// Views on the level above the target view will still be shown above this view.
1849 /// Raising this view above views with the same sibling order as each other will raise this view above them.
1850 /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
1852 /// <param name="target">Will be raised above this view</param>
1853 internal void RaiseAbove(View target)
1855 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
1856 if (NDalicPINVOKE.SWIGPendingException.Pending)
1857 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1861 /// Lower the view to below the target view.
1863 /// <remarks>Sibling order of views within the parent will be updated automatically.
1864 /// Lowering this view below views with the same sibling order as each other will lower 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.
1867 /// <param name="target">Will be lowered below this view</param>
1868 internal void LowerBelow(View target)
1870 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
1871 if (NDalicPINVOKE.SWIGPendingException.Pending)
1872 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1875 internal string GetName()
1877 string ret = NDalicPINVOKE.Actor_GetName(swigCPtr);
1878 if (NDalicPINVOKE.SWIGPendingException.Pending)
1879 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1883 internal void SetName(string name)
1885 NDalicPINVOKE.Actor_SetName(swigCPtr, name);
1886 if (NDalicPINVOKE.SWIGPendingException.Pending)
1887 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1890 internal uint GetId()
1892 uint ret = NDalicPINVOKE.Actor_GetId(swigCPtr);
1893 if (NDalicPINVOKE.SWIGPendingException.Pending)
1894 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1898 internal bool IsRoot()
1900 bool ret = NDalicPINVOKE.Actor_IsRoot(swigCPtr);
1901 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1905 internal bool OnWindow()
1907 bool ret = NDalicPINVOKE.Actor_OnStage(swigCPtr);
1908 if (NDalicPINVOKE.SWIGPendingException.Pending)
1909 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1913 internal Layer GetLayer()
1915 Layer ret = new Layer(NDalicPINVOKE.Actor_GetLayer(swigCPtr), true);
1916 if (NDalicPINVOKE.SWIGPendingException.Pending)
1917 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1922 /// Adds a child view to this View.
1924 /// <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>
1925 /// <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>
1926 /// <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>
1927 /// <param name="child">The child</param>
1928 public void Add(View child)
1930 NDalicPINVOKE.Actor_Add(swigCPtr, View.getCPtr(child));
1931 if (NDalicPINVOKE.SWIGPendingException.Pending)
1932 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1936 /// Removes a child View from this View. If the view was not a child of this view, this is a no-op.
1938 /// <pre>This View(the parent) has been initialized. The child view is not the same as the parent view.</pre>
1939 /// <param name="child">The child</param>
1940 public void Remove(View child)
1942 NDalicPINVOKE.Actor_Remove(swigCPtr, View.getCPtr(child));
1943 if (NDalicPINVOKE.SWIGPendingException.Pending)
1944 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1947 internal void Unparent()
1949 NDalicPINVOKE.Actor_Unparent(swigCPtr);
1950 if (NDalicPINVOKE.SWIGPendingException.Pending)
1951 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1955 /// Retrieves the number of children held by the view.
1957 /// <pre>The View has been initialized.</pre>
1958 /// <returns>The number of children</returns>
1959 internal uint GetChildCount()
1961 uint ret = NDalicPINVOKE.Actor_GetChildCount(swigCPtr);
1962 if (NDalicPINVOKE.SWIGPendingException.Pending)
1963 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1968 /// Retrieves child view by index.
1970 /// <pre>The View has been initialized.</pre>
1971 /// <param name="index">The index of the child to retrieve</param>
1972 /// <returns>The view for the given index or empty handle if children not initialized</returns>
1973 public View GetChildAt(uint index)
1975 IntPtr cPtr = NDalicPINVOKE.Actor_GetChildAt(swigCPtr, index);
1976 cPtr = NDalicPINVOKE.View_SWIGUpcast(cPtr);
1977 cPtr = NDalicPINVOKE.Handle_SWIGUpcast(cPtr);
1979 BaseHandle ret = new BaseHandle(cPtr, false);
1981 View temp = ViewRegistry.GetViewFromBaseHandle(ret);
1983 if (NDalicPINVOKE.SWIGPendingException.Pending)
1984 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1986 return temp ?? null;
1990 /// Search through this view's hierarchy for an view with the given name.
1991 /// The view itself is also considered in the search.
1993 /// <pre>The View has been initialized.</pre>
1994 /// <param name="viewName">The name of the view to find</param>
1995 /// <returns>A handle to the view if found, or an empty handle if not</returns>
1996 public View FindChildByName(string viewName)
1998 View ret = new View(NDalicPINVOKE.Actor_FindChildByName(swigCPtr, viewName), true);
1999 if (NDalicPINVOKE.SWIGPendingException.Pending)
2000 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2004 internal View FindChildById(uint id)
2006 View ret = new View(NDalicPINVOKE.Actor_FindChildById(swigCPtr, id), true);
2007 if (NDalicPINVOKE.SWIGPendingException.Pending)
2008 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2012 internal View GetParent()
2014 View ret = new View(NDalicPINVOKE.Actor_GetParent(swigCPtr), true);
2015 if (NDalicPINVOKE.SWIGPendingException.Pending)
2016 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2020 internal void SetParentOrigin(Vector3 origin)
2022 NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
2023 if (NDalicPINVOKE.SWIGPendingException.Pending)
2024 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2027 internal Vector3 GetCurrentParentOrigin()
2029 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentParentOrigin(swigCPtr), true);
2030 if (NDalicPINVOKE.SWIGPendingException.Pending)
2031 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2035 internal void SetAnchorPoint(Vector3 anchorPoint)
2037 NDalicPINVOKE.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
2038 if (NDalicPINVOKE.SWIGPendingException.Pending)
2039 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2042 internal Vector3 GetCurrentAnchorPoint()
2044 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentAnchorPoint(swigCPtr), true);
2045 if (NDalicPINVOKE.SWIGPendingException.Pending)
2046 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2050 internal void SetSize(float width, float height)
2052 NDalicPINVOKE.Actor_SetSize__SWIG_0(swigCPtr, width, height);
2053 if (NDalicPINVOKE.SWIGPendingException.Pending)
2054 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2057 internal void SetSize(float width, float height, float depth)
2059 NDalicPINVOKE.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
2060 if (NDalicPINVOKE.SWIGPendingException.Pending)
2061 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2064 internal void SetSize(Vector2 size)
2066 NDalicPINVOKE.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
2067 if (NDalicPINVOKE.SWIGPendingException.Pending)
2068 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2071 internal void SetSize(Vector3 size)
2073 NDalicPINVOKE.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
2074 if (NDalicPINVOKE.SWIGPendingException.Pending)
2075 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2078 internal Vector3 GetTargetSize()
2080 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetTargetSize(swigCPtr), true);
2081 if (NDalicPINVOKE.SWIGPendingException.Pending)
2082 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2086 internal Size2D GetCurrentSize()
2088 Size ret = new Size(NDalicPINVOKE.Actor_GetCurrentSize(swigCPtr), true);
2089 if (NDalicPINVOKE.SWIGPendingException.Pending)
2090 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2091 Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
2095 internal Vector3 GetNaturalSize()
2097 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
2098 if (NDalicPINVOKE.SWIGPendingException.Pending)
2099 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2103 internal void SetPosition(float x, float y)
2105 NDalicPINVOKE.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
2106 if (NDalicPINVOKE.SWIGPendingException.Pending)
2107 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2110 internal void SetPosition(float x, float y, float z)
2112 NDalicPINVOKE.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
2113 if (NDalicPINVOKE.SWIGPendingException.Pending)
2114 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2117 internal void SetPosition(Vector3 position)
2119 NDalicPINVOKE.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
2120 if (NDalicPINVOKE.SWIGPendingException.Pending)
2121 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2124 internal void SetX(float x)
2126 NDalicPINVOKE.Actor_SetX(swigCPtr, x);
2127 if (NDalicPINVOKE.SWIGPendingException.Pending)
2128 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2131 internal void SetY(float y)
2133 NDalicPINVOKE.Actor_SetY(swigCPtr, y);
2134 if (NDalicPINVOKE.SWIGPendingException.Pending)
2135 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2138 internal void SetZ(float z)
2140 NDalicPINVOKE.Actor_SetZ(swigCPtr, z);
2141 if (NDalicPINVOKE.SWIGPendingException.Pending)
2142 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2145 internal void TranslateBy(Vector3 distance)
2147 NDalicPINVOKE.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
2148 if (NDalicPINVOKE.SWIGPendingException.Pending)
2149 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2152 internal Position GetCurrentPosition()
2154 Position ret = new Position(NDalicPINVOKE.Actor_GetCurrentPosition(swigCPtr), true);
2155 if (NDalicPINVOKE.SWIGPendingException.Pending)
2156 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2160 internal Vector3 GetCurrentWorldPosition()
2162 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldPosition(swigCPtr), true);
2163 if (NDalicPINVOKE.SWIGPendingException.Pending)
2164 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2168 internal void SetInheritPosition(bool inherit)
2170 NDalicPINVOKE.Actor_SetInheritPosition(swigCPtr, inherit);
2171 if (NDalicPINVOKE.SWIGPendingException.Pending)
2172 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2175 internal bool IsPositionInherited()
2177 bool ret = NDalicPINVOKE.Actor_IsPositionInherited(swigCPtr);
2178 if (NDalicPINVOKE.SWIGPendingException.Pending)
2179 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2183 internal void SetOrientation(Degree angle, Vector3 axis)
2185 NDalicPINVOKE.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2186 if (NDalicPINVOKE.SWIGPendingException.Pending)
2187 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2190 internal void SetOrientation(Radian angle, Vector3 axis)
2192 NDalicPINVOKE.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2193 if (NDalicPINVOKE.SWIGPendingException.Pending)
2194 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2197 internal void SetOrientation(Rotation orientation)
2199 NDalicPINVOKE.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
2200 if (NDalicPINVOKE.SWIGPendingException.Pending)
2201 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2204 internal void RotateBy(Degree angle, Vector3 axis)
2206 NDalicPINVOKE.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
2207 if (NDalicPINVOKE.SWIGPendingException.Pending)
2208 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2211 internal void RotateBy(Radian angle, Vector3 axis)
2213 NDalicPINVOKE.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
2214 if (NDalicPINVOKE.SWIGPendingException.Pending)
2215 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2218 internal void RotateBy(Rotation relativeRotation)
2220 NDalicPINVOKE.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
2221 if (NDalicPINVOKE.SWIGPendingException.Pending)
2222 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2225 internal Rotation GetCurrentOrientation()
2227 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentOrientation(swigCPtr), true);
2228 if (NDalicPINVOKE.SWIGPendingException.Pending)
2229 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2233 internal void SetInheritOrientation(bool inherit)
2235 NDalicPINVOKE.Actor_SetInheritOrientation(swigCPtr, inherit);
2236 if (NDalicPINVOKE.SWIGPendingException.Pending)
2237 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2240 internal bool IsOrientationInherited()
2242 bool ret = NDalicPINVOKE.Actor_IsOrientationInherited(swigCPtr);
2243 if (NDalicPINVOKE.SWIGPendingException.Pending)
2244 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2248 internal Rotation GetCurrentWorldOrientation()
2250 Rotation ret = new Rotation(NDalicPINVOKE.Actor_GetCurrentWorldOrientation(swigCPtr), true);
2251 if (NDalicPINVOKE.SWIGPendingException.Pending)
2252 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2256 internal void SetScale(float scale)
2258 NDalicPINVOKE.Actor_SetScale__SWIG_0(swigCPtr, scale);
2259 if (NDalicPINVOKE.SWIGPendingException.Pending)
2260 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2263 internal void SetScale(float scaleX, float scaleY, float scaleZ)
2265 NDalicPINVOKE.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
2266 if (NDalicPINVOKE.SWIGPendingException.Pending)
2267 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2270 internal void SetScale(Vector3 scale)
2272 NDalicPINVOKE.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
2273 if (NDalicPINVOKE.SWIGPendingException.Pending)
2274 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2277 internal void ScaleBy(Vector3 relativeScale)
2279 NDalicPINVOKE.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
2280 if (NDalicPINVOKE.SWIGPendingException.Pending)
2281 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2284 internal Vector3 GetCurrentScale()
2286 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentScale(swigCPtr), true);
2287 if (NDalicPINVOKE.SWIGPendingException.Pending)
2288 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2292 internal Vector3 GetCurrentWorldScale()
2294 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentWorldScale(swigCPtr), true);
2295 if (NDalicPINVOKE.SWIGPendingException.Pending)
2296 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2300 internal void SetInheritScale(bool inherit)
2302 NDalicPINVOKE.Actor_SetInheritScale(swigCPtr, inherit);
2303 if (NDalicPINVOKE.SWIGPendingException.Pending)
2304 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2307 internal bool IsScaleInherited()
2309 bool ret = NDalicPINVOKE.Actor_IsScaleInherited(swigCPtr);
2310 if (NDalicPINVOKE.SWIGPendingException.Pending)
2311 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2315 internal Matrix GetCurrentWorldMatrix()
2317 Matrix ret = new Matrix(NDalicPINVOKE.Actor_GetCurrentWorldMatrix(swigCPtr), true);
2318 if (NDalicPINVOKE.SWIGPendingException.Pending)
2319 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2323 internal void SetVisible(bool visible)
2325 NDalicPINVOKE.Actor_SetVisible(swigCPtr, visible);
2326 if (NDalicPINVOKE.SWIGPendingException.Pending)
2327 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2330 internal bool IsVisible()
2332 bool ret = NDalicPINVOKE.Actor_IsVisible(swigCPtr);
2333 if (NDalicPINVOKE.SWIGPendingException.Pending)
2334 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2338 internal void SetOpacity(float opacity)
2340 NDalicPINVOKE.Actor_SetOpacity(swigCPtr, opacity);
2341 if (NDalicPINVOKE.SWIGPendingException.Pending)
2342 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2345 internal float GetCurrentOpacity()
2347 float ret = NDalicPINVOKE.Actor_GetCurrentOpacity(swigCPtr);
2348 if (NDalicPINVOKE.SWIGPendingException.Pending)
2349 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2353 internal void SetColor(Vector4 color)
2355 NDalicPINVOKE.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
2356 if (NDalicPINVOKE.SWIGPendingException.Pending)
2357 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2360 internal Vector4 GetCurrentColor()
2362 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentColor(swigCPtr), true);
2363 if (NDalicPINVOKE.SWIGPendingException.Pending)
2364 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2368 internal void SetColorMode(ColorMode colorMode)
2370 NDalicPINVOKE.Actor_SetColorMode(swigCPtr, (int)colorMode);
2371 if (NDalicPINVOKE.SWIGPendingException.Pending)
2372 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2375 internal ColorMode GetColorMode()
2377 ColorMode ret = (ColorMode)NDalicPINVOKE.Actor_GetColorMode(swigCPtr);
2378 if (NDalicPINVOKE.SWIGPendingException.Pending)
2379 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2383 internal Vector4 GetCurrentWorldColor()
2385 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentWorldColor(swigCPtr), true);
2386 if (NDalicPINVOKE.SWIGPendingException.Pending)
2387 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2391 internal void SetDrawMode(DrawModeType drawMode)
2393 NDalicPINVOKE.Actor_SetDrawMode(swigCPtr, (int)drawMode);
2394 if (NDalicPINVOKE.SWIGPendingException.Pending)
2395 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2398 internal DrawModeType GetDrawMode()
2400 DrawModeType ret = (DrawModeType)NDalicPINVOKE.Actor_GetDrawMode(swigCPtr);
2401 if (NDalicPINVOKE.SWIGPendingException.Pending)
2402 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2407 /// Converts screen coordinates into the view's coordinate system using the default camera.
2409 /// <pre>The View has been initialized.</pre>
2410 /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5)</remarks>
2411 /// <param name="localX">On return, the X-coordinate relative to the view</param>
2412 /// <param name="localY">On return, the Y-coordinate relative to the view</param>
2413 /// <param name="screenX">The screen X-coordinate</param>
2414 /// <param name="screenY">The screen Y-coordinate</param>
2415 /// <returns>True if the conversion succeeded</returns>
2416 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
2418 bool ret = NDalicPINVOKE.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
2419 if (NDalicPINVOKE.SWIGPendingException.Pending)
2420 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2424 internal void SetKeyboardFocusable(bool focusable)
2426 NDalicPINVOKE.Actor_SetKeyboardFocusable(swigCPtr, focusable);
2427 if (NDalicPINVOKE.SWIGPendingException.Pending)
2428 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2431 internal bool IsKeyboardFocusable()
2433 bool ret = NDalicPINVOKE.Actor_IsKeyboardFocusable(swigCPtr);
2434 if (NDalicPINVOKE.SWIGPendingException.Pending)
2435 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2439 internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
2441 NDalicPINVOKE.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
2442 if (NDalicPINVOKE.SWIGPendingException.Pending)
2443 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2446 internal ResizePolicyType GetResizePolicy(DimensionType dimension)
2448 ResizePolicyType ret = (ResizePolicyType)NDalicPINVOKE.Actor_GetResizePolicy(swigCPtr, (int)dimension);
2449 if (NDalicPINVOKE.SWIGPendingException.Pending)
2450 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2455 /// Sets the relative to parent size factor of the view.<br>
2456 /// This factor is only used when ResizePolicy is set to either:
2457 /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br>
2458 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br>
2460 /// <pre>The View has been initialized.</pre>
2461 /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis</param>
2462 public void SetSizeModeFactor(Vector3 factor)
2464 NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
2465 if (NDalicPINVOKE.SWIGPendingException.Pending)
2466 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2469 internal Vector3 GetSizeModeFactor()
2471 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetSizeModeFactor(swigCPtr), true);
2472 if (NDalicPINVOKE.SWIGPendingException.Pending)
2473 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2478 /// Calculates the height of the view given a width.<br>
2479 /// The natural size is used for default calculation. <br>
2480 /// size 0 is treated as aspect ratio 1:1.<br>
2482 /// <param name="width">Width to use</param>
2483 /// <returns>The height based on the width</returns>
2484 public float GetHeightForWidth(float width)
2486 float ret = NDalicPINVOKE.Actor_GetHeightForWidth(swigCPtr, width);
2487 if (NDalicPINVOKE.SWIGPendingException.Pending)
2488 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2493 /// Calculates the width of the view given a height.<br>
2494 /// The natural size is used for default calculation.<br>
2495 /// size 0 is treated as aspect ratio 1:1.<br>
2497 /// <param name="height">Height to use</param>
2498 /// <returns>The width based on the height</returns>
2499 public float GetWidthForHeight(float height)
2501 float ret = NDalicPINVOKE.Actor_GetWidthForHeight(swigCPtr, height);
2502 if (NDalicPINVOKE.SWIGPendingException.Pending)
2503 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2507 public float GetRelayoutSize(DimensionType dimension)
2509 float ret = NDalicPINVOKE.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
2510 if (NDalicPINVOKE.SWIGPendingException.Pending)
2511 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2515 public void SetPadding(PaddingType padding)
2517 NDalicPINVOKE.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
2518 if (NDalicPINVOKE.SWIGPendingException.Pending)
2519 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2522 public void GetPadding(PaddingType paddingOut)
2524 NDalicPINVOKE.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
2525 if (NDalicPINVOKE.SWIGPendingException.Pending)
2526 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2529 internal void SetMinimumSize(Vector2 size)
2531 NDalicPINVOKE.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
2532 if (NDalicPINVOKE.SWIGPendingException.Pending)
2533 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2536 internal Vector2 GetMinimumSize()
2538 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMinimumSize(swigCPtr), true);
2539 if (NDalicPINVOKE.SWIGPendingException.Pending)
2540 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2544 internal void SetMaximumSize(Vector2 size)
2546 NDalicPINVOKE.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
2547 if (NDalicPINVOKE.SWIGPendingException.Pending)
2548 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2551 internal Vector2 GetMaximumSize()
2553 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMaximumSize(swigCPtr), true);
2554 if (NDalicPINVOKE.SWIGPendingException.Pending)
2555 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2559 internal int GetHierarchyDepth()
2561 int ret = NDalicPINVOKE.Actor_GetHierarchyDepth(swigCPtr);
2562 if (NDalicPINVOKE.SWIGPendingException.Pending)
2563 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2567 internal uint AddRenderer(Renderer renderer)
2569 uint ret = NDalicPINVOKE.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
2570 if (NDalicPINVOKE.SWIGPendingException.Pending)
2571 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2575 internal uint GetRendererCount()
2577 uint ret = NDalicPINVOKE.Actor_GetRendererCount(swigCPtr);
2578 if (NDalicPINVOKE.SWIGPendingException.Pending)
2579 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2583 internal Renderer GetRendererAt(uint index)
2585 Renderer ret = new Renderer(NDalicPINVOKE.Actor_GetRendererAt(swigCPtr, index), true);
2586 if (NDalicPINVOKE.SWIGPendingException.Pending)
2587 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2591 internal void RemoveRenderer(Renderer renderer)
2593 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
2594 if (NDalicPINVOKE.SWIGPendingException.Pending)
2595 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2598 internal void RemoveRenderer(uint index)
2600 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
2601 if (NDalicPINVOKE.SWIGPendingException.Pending)
2602 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2605 internal TouchDataSignal TouchSignal()
2607 TouchDataSignal ret = new TouchDataSignal(NDalicPINVOKE.Actor_TouchSignal(swigCPtr), false);
2608 if (NDalicPINVOKE.SWIGPendingException.Pending)
2609 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2613 internal HoverSignal HoveredSignal()
2615 HoverSignal ret = new HoverSignal(NDalicPINVOKE.Actor_HoveredSignal(swigCPtr), false);
2616 if (NDalicPINVOKE.SWIGPendingException.Pending)
2617 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2621 internal WheelSignal WheelEventSignal()
2623 WheelSignal ret = new WheelSignal(NDalicPINVOKE.Actor_WheelEventSignal(swigCPtr), false);
2624 if (NDalicPINVOKE.SWIGPendingException.Pending)
2625 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2629 internal ViewSignal OnWindowSignal()
2631 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
2632 if (NDalicPINVOKE.SWIGPendingException.Pending)
2633 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2637 internal ViewSignal OffWindowSignal()
2639 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OffStageSignal(swigCPtr), false);
2640 if (NDalicPINVOKE.SWIGPendingException.Pending)
2641 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2645 internal ViewSignal OnRelayoutSignal()
2647 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnRelayoutSignal(swigCPtr), false);
2648 if (NDalicPINVOKE.SWIGPendingException.Pending)
2649 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2653 internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view) {
2654 ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(NDalicPINVOKE.VisibilityChangedSignal(View.getCPtr(view)), false);
2655 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2660 /// Gets/Sets the origin of an view, within its parent's area.<br>
2661 /// 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>
2662 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br>
2663 /// An view's position is the distance between this origin, and the view's anchor-point.<br>
2665 /// <pre>The View has been initialized.</pre>
2666 public Position ParentOrigin
2670 Position temp = new Position(0.0f, 0.0f, 0.0f);
2671 GetProperty(View.Property.PARENT_ORIGIN).Get(temp);
2676 SetProperty(View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue(value));
2680 internal float ParentOriginX
2685 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
2690 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
2694 internal float ParentOriginY
2699 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
2704 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
2708 internal float ParentOriginZ
2713 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
2718 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
2723 /// Gets/Sets the anchor-point of an view.<br>
2724 /// 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>
2725 /// The default anchor point is AnchorPoint.Center (0.5, 0.5, 0.5).<br>
2726 /// An view position is the distance between its parent-origin and this anchor-point.<br>
2727 /// An view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br>
2728 /// <pre>The View has been initialized.</pre>
2730 public Position PivotPoint
2734 Position temp = new Position(0.0f, 0.0f, 0.0f);
2735 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
2740 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2744 internal float PivotPointX
2749 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
2754 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
2758 internal float PivotPointY
2763 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
2768 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
2772 internal float PivotPointZ
2777 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
2782 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
2787 /// Gets/Sets the size width of an view.
2789 public float SizeWidth
2794 GetProperty(View.Property.SIZE_WIDTH).Get(out temp);
2799 SetProperty(View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
2804 /// Gets/Sets the size height of an view.
2806 public float SizeHeight
2811 GetProperty(View.Property.SIZE_HEIGHT).Get(out temp);
2816 SetProperty(View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
2821 /// Gets/Sets the position of the View.<br>
2822 /// By default, sets the position vector between the parent origin and anchor point(default).<br>
2823 /// If Position inheritance if disabled, sets the world position.<br>
2825 public Position Position
2829 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2830 GetProperty(View.Property.POSITION).Get(temp);
2835 SetProperty(View.Property.POSITION, new Tizen.NUI.PropertyValue(value));
2840 /// Gets/Sets the position x of the View.
2842 public float PositionX
2847 GetProperty(View.Property.POSITION_X).Get(out temp);
2852 SetProperty(View.Property.POSITION_X, new Tizen.NUI.PropertyValue(value));
2857 /// Gets/Sets the position y of the View.
2859 public float PositionY
2864 GetProperty(View.Property.POSITION_Y).Get(out temp);
2869 SetProperty(View.Property.POSITION_Y, new Tizen.NUI.PropertyValue(value));
2874 /// Gets/Sets the position z of the View.
2876 public float PositionZ
2881 GetProperty(View.Property.POSITION_Z).Get(out temp);
2886 SetProperty(View.Property.POSITION_Z, new Tizen.NUI.PropertyValue(value));
2891 /// Gets/Sets the world position of the View.
2893 public Vector3 WorldPosition
2897 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2898 GetProperty(View.Property.WORLD_POSITION).Get(temp);
2903 internal float WorldPositionX
2908 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
2913 internal float WorldPositionY
2918 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
2923 internal float WorldPositionZ
2928 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
2934 /// Gets/Sets the orientation of the View.<br>
2935 /// An view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br>
2937 /// <remarks>This is an asynchronous method.</remarks>
2938 public Rotation Orientation
2942 Rotation temp = new Rotation();
2943 GetProperty(View.Property.ORIENTATION).Get(temp);
2948 SetProperty(View.Property.ORIENTATION, new Tizen.NUI.PropertyValue(value));
2953 /// Gets/Sets the world orientation of the View.<br>
2955 public Rotation WorldOrientation
2959 Rotation temp = new Rotation();
2960 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
2966 /// Gets/Sets the scale factor applied to an view.<br>
2968 public Vector3 Scale
2972 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2973 GetProperty(View.Property.SCALE).Get(temp);
2978 SetProperty(View.Property.SCALE, new Tizen.NUI.PropertyValue(value));
2983 /// Gets/Sets the scale x factor applied to an view.
2990 GetProperty(View.Property.SCALE_X).Get(out temp);
2995 SetProperty(View.Property.SCALE_X, new Tizen.NUI.PropertyValue(value));
3000 /// Gets/Sets the scale y factor applied to an view.
3007 GetProperty(View.Property.SCALE_Y).Get(out temp);
3012 SetProperty(View.Property.SCALE_Y, new Tizen.NUI.PropertyValue(value));
3017 /// Gets/Sets the scale z factor applied to an view.
3024 GetProperty(View.Property.SCALE_Z).Get(out temp);
3029 SetProperty(View.Property.SCALE_Z, new Tizen.NUI.PropertyValue(value));
3034 /// Gets the world scale of View.
3036 public Vector3 WorldScale
3040 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3041 GetProperty(View.Property.WORLD_SCALE).Get(temp);
3047 /// Retrieves the visibility flag of an view.
3050 /// If an view is not visible, then the view and its children will not be rendered.
3051 /// 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.
3058 GetProperty(View.Property.VISIBLE).Get(out temp);
3060 }/* only get is required : removed
3063 SetProperty(View.Property.VISIBLE, new Tizen.NUI.PropertyValue(value));
3068 /// Gets the view's world color.
3070 public Vector4 WorldColor
3074 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3075 GetProperty(View.Property.WORLD_COLOR).Get(temp);
3080 internal Matrix WorldMatrix
3084 Matrix temp = new Matrix();
3085 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3091 /// Gets/Sets the View's name.
3098 GetProperty(View.Property.NAME).Get(out temp);
3103 SetProperty(View.Property.NAME, new Tizen.NUI.PropertyValue(value));
3108 /// Get the number of children held by the view.
3110 public uint ChildCount
3114 return GetChildCount();
3119 /// Gets the View's ID.
3131 /// Gets/Sets the status of whether an view should emit touch or hover signals.
3133 public bool Sensitive
3138 GetProperty(View.Property.SENSITIVE).Get(out temp);
3143 SetProperty(View.Property.SENSITIVE, new Tizen.NUI.PropertyValue(value));
3148 /// Gets/Sets the status of whether the view should receive a notification when touch or hover motion events leave the boundary of the view.
3150 public bool LeaveRequired
3155 GetProperty(View.Property.LEAVE_REQUIRED).Get(out temp);
3160 SetProperty(View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue(value));
3165 /// Gets/Sets the status of whether a child view inherits it's parent's orientation.
3167 public bool InheritOrientation
3172 GetProperty(View.Property.INHERIT_ORIENTATION).Get(out temp);
3177 SetProperty(View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue(value));
3182 /// Gets/Sets the status of whether a child view inherits it's parent's scale.
3184 public bool InheritScale
3189 GetProperty(View.Property.INHERIT_SCALE).Get(out temp);
3194 SetProperty(View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue(value));
3199 /// Gets/Sets the status of how the view and its children should be drawn.<br>
3200 /// Not all views are renderable, but DrawMode can be inherited from any view.<br>
3201 /// 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>
3202 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br>
3203 /// Overlay views are drawn in a separate pass, after all non-overlay views within the Layer.<br>
3204 /// For overlay views, the drawing order is with respect to tree levels of Views, and depth-testing will not be used.<br>
3206 public DrawModeType DrawMode
3211 if (GetProperty(View.Property.DRAW_MODE).Get(out temp) == false)
3214 Tizen.Log.Error("NUI", "DrawMode get error!");
3220 return DrawModeType.Normal;
3222 return DrawModeType.Overlay2D;
3224 return DrawModeType.Stencil;
3226 return DrawModeType.Normal;
3231 SetProperty(View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)value));
3236 /// Gets/Sets the relative to parent size factor of the view.<br>
3237 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br>
3238 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br>
3240 public Vector3 SizeModeFactor
3244 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
3245 GetProperty(View.Property.SIZE_MODE_FACTOR).Get(temp);
3250 SetProperty(View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue(value));
3255 /// Gets/Sets the width resize policy to be used.
3257 public ResizePolicyType WidthResizePolicy
3262 if (GetProperty(View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
3265 Tizen.Log.Error("NUI", "WidthResizePolicy get error!");
3271 return ResizePolicyType.Fixed;
3272 case "USE_NATURAL_SIZE":
3273 return ResizePolicyType.UseNaturalSize;
3274 case "FILL_TO_PARENT":
3275 return ResizePolicyType.FillToParent;
3276 case "SIZE_RELATIVE_TO_PARENT":
3277 return ResizePolicyType.SizeRelativeToParent;
3278 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3279 return ResizePolicyType.SizeFixedOffsetFromParent;
3280 case "FIT_TO_CHILDREN":
3281 return ResizePolicyType.FitToChildren;
3282 case "DIMENSION_DEPENDENCY":
3283 return ResizePolicyType.DimensionDependency;
3284 case "USE_ASSIGNED_SIZE":
3285 return ResizePolicyType.UseAssignedSize;
3287 return ResizePolicyType.Fixed;
3292 SetProperty(View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3297 /// Gets/Sets the height resize policy to be used.
3299 public ResizePolicyType HeightResizePolicy
3304 if (GetProperty(View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
3307 Tizen.Log.Error("NUI", "HeightResizePolicy get error!");
3313 return ResizePolicyType.Fixed;
3314 case "USE_NATURAL_SIZE":
3315 return ResizePolicyType.UseNaturalSize;
3316 case "FILL_TO_PARENT":
3317 return ResizePolicyType.FillToParent;
3318 case "SIZE_RELATIVE_TO_PARENT":
3319 return ResizePolicyType.SizeRelativeToParent;
3320 case "SIZE_FIXED_OFFSET_FROM_PARENT":
3321 return ResizePolicyType.SizeFixedOffsetFromParent;
3322 case "FIT_TO_CHILDREN":
3323 return ResizePolicyType.FitToChildren;
3324 case "DIMENSION_DEPENDENCY":
3325 return ResizePolicyType.DimensionDependency;
3326 case "USE_ASSIGNED_SIZE":
3327 return ResizePolicyType.UseAssignedSize;
3329 return ResizePolicyType.Fixed;
3334 SetProperty(View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)value));
3339 /// Gets/Sets the policy to use when setting size with size negotiation.<br>
3340 /// Defaults to SizeScalePolicyType.UseSizeSet.<br>
3342 public SizeScalePolicyType SizeScalePolicy
3347 if (GetProperty(View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
3350 Tizen.Log.Error("NUI", "SizeScalePolicy get error!");
3355 case "USE_SIZE_SET":
3356 return SizeScalePolicyType.UseSizeSet;
3357 case "FIT_WITH_ASPECT_RATIO":
3358 return SizeScalePolicyType.FitWithAspectRatio;
3359 case "FILL_WITH_ASPECT_RATIO":
3360 return SizeScalePolicyType.FillWithAspectRatio;
3362 return SizeScalePolicyType.UseSizeSet;
3367 string valueToString = "";
3370 case SizeScalePolicyType.UseSizeSet:
3372 valueToString = "USE_SIZE_SET";
3375 case SizeScalePolicyType.FitWithAspectRatio:
3377 valueToString = "FIT_WITH_ASPECT_RATIO";
3380 case SizeScalePolicyType.FillWithAspectRatio:
3382 valueToString = "FILL_WITH_ASPECT_RATIO";
3387 valueToString = "USE_SIZE_SET";
3391 SetProperty(View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
3396 /// Gets/Sets the status of whether the width size is dependent on height size.
3398 public bool WidthForHeight
3403 GetProperty(View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
3408 SetProperty(View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue(value));
3413 /// Gets/Sets the status of whether the height size is dependent on width size.
3415 public bool HeightForWidth
3420 GetProperty(View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
3425 SetProperty(View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue(value));
3430 /// Gets/Sets the padding for use in layout.
3432 public Vector4 Padding
3436 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
3437 GetProperty(View.Property.PADDING).Get(temp);
3442 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
3447 /// Gets/Sets the minimum size an view can be assigned in size negotiation.
3449 public Size2D MinimumSize
3453 Size2D temp = new Size2D(0, 0);
3454 GetProperty(View.Property.MINIMUM_SIZE).Get(temp);
3459 SetProperty(View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
3464 /// Gets/Sets the maximum size an view can be assigned in size negotiation.
3466 public Size2D MaximumSize
3470 Size2D temp = new Size2D(0, 0);
3471 GetProperty(View.Property.MAXIMUM_SIZE).Get(temp);
3476 SetProperty(View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(value));
3481 /// Gets/Sets whether a child view inherits it's parent's position.<br>
3482 /// Default is to inherit.<br>
3483 /// 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>
3485 public bool InheritPosition
3490 GetProperty(View.Property.INHERIT_POSITION).Get(out temp);
3495 SetProperty(View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue(value));
3500 /// Gets/Sets clipping behavior(mode) of it's children.
3502 public ClippingModeType ClippingMode
3507 if (GetProperty(View.Property.CLIPPING_MODE).Get(out temp) == false)
3510 Tizen.Log.Error("NUI", "ClippingMode get error!");
3516 return ClippingModeType.Disabled;
3517 case "CLIP_CHILDREN":
3518 return ClippingModeType.ClipChildren;
3520 return ClippingModeType.Disabled;
3525 SetProperty(View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)value));