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.
20 using System.Runtime.InteropServices;
22 public class View : Animatable
24 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
26 internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.View_SWIGUpcast(cPtr), cMemoryOwn)
28 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
30 // Register this instance of view in the view registry.
31 ViewRegistry.RegisterView(this);
33 // By default, we do not want the position to use the anchor point
34 this.PositionUsesAnchorPoint = false;
37 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
39 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
44 DisposeQueue.Instance.Add(this);
46 // Unregister this instance of view from the view registry.
47 ViewRegistry.UnregisterView(this);
50 public virtual void Dispose()
52 if (!Window.IsInstalled())
54 DisposeQueue.Instance.Add(this);
60 if (swigCPtr.Handle != global::System.IntPtr.Zero)
65 NDalicPINVOKE.delete_View(swigCPtr);
67 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
69 global::System.GC.SuppressFinalize(this);
74 * @brief Event arguments that passed via KeyInputFocusGained signal
77 public class KeyInputFocusGainedEventArgs : EventArgs
82 * @brief View - is the view that gets Key Input Focus
99 * @brief Event arguments that passed via KeyInputFocusLost signal
102 public class KeyInputFocusLostEventArgs : EventArgs
107 * @brief View - is the view that loses Key Input Focus
124 * @brief Event arguments that passed via Key signal
127 public class KeyEventArgs : EventArgs
133 * @brief View - is the view that recieves the key.
149 * @brief Key - is the key sent to the View.
166 * @brief Event arguments that passed via OnRelayout signal
169 public class OnRelayoutEventArgs : EventArgs
174 * @brief View - is the view that is being resized upon relayout
192 * @brief Event arguments that passed via Touch signal
195 public class TouchEventArgs : EventArgs
198 private Touch _touch;
201 * @brief View - is the view that is being touched
217 * @brief Touch - contains the information of touch points
234 * @brief Event arguments that passed via Hover signal
237 public class HoverEventArgs : EventArgs
240 private Hover _hover;
243 * @brief View - is the view that is being hovered
259 * @brief Hover - contains touch points that represent the points
260 * that are currently being hovered or the points where a hover has stopped
277 * @brief Event arguments that passed via Wheel signal
280 public class WheelEventArgs : EventArgs
283 private Wheel _wheel;
286 * @brief View - is the view that is being wheeled
302 * @brief Wheel - store a wheel rolling type : MOUSE_WHEEL or CUSTOM_WHEEL
319 * @brief Event arguments that passed via OnWindow signal
322 public class OnWindowEventArgs : EventArgs
327 * @brief View - is the view that is being connected to the window
344 * @brief Event arguments that passed via OffWindow signal
347 public class OffWindowEventArgs : EventArgs
352 * @brief View - is the view that is being disconnected from the window
368 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
369 private delegate void KeyInputFocusGainedCallbackDelegate(IntPtr control);
371 private DaliEventHandler<object,KeyInputFocusGainedEventArgs> _KeyInputFocusGainedEventHandler;
372 private KeyInputFocusGainedCallbackDelegate _KeyInputFocusGainedCallbackDelegate;
374 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
375 private delegate void KeyInputFocusLostCallbackDelegate(IntPtr control);
377 private DaliEventHandler<object,KeyInputFocusLostEventArgs> _KeyInputFocusLostEventHandler;
378 private KeyInputFocusLostCallbackDelegate _KeyInputFocusLostCallbackDelegate;
380 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
381 private delegate bool KeyCallbackDelegate(IntPtr control, IntPtr key);
383 private DaliEventHandlerWithReturnType<object,KeyEventArgs,bool> _KeyHandler;
384 private KeyCallbackDelegate _KeyCallbackDelegate;
386 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
387 private delegate void OnRelayoutEventCallbackDelegate(IntPtr control);
389 private DaliEventHandler<object,OnRelayoutEventArgs> _viewOnRelayoutEventHandler;
390 private OnRelayoutEventCallbackDelegate _viewOnRelayoutEventCallbackDelegate;
392 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
393 private delegate bool TouchCallbackDelegate(IntPtr view, IntPtr touch);
395 private DaliEventHandlerWithReturnType<object,TouchEventArgs,bool> _viewTouchHandler;
396 private TouchCallbackDelegate _viewTouchCallbackDelegate;
398 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
399 private delegate bool HoverCallbackDelegate(IntPtr view, IntPtr hover);
401 private DaliEventHandlerWithReturnType<object,HoverEventArgs,bool> _viewHoverHandler;
402 private HoverCallbackDelegate _viewHoverCallbackDelegate;
404 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
405 private delegate bool WheelCallbackDelegate(IntPtr view, IntPtr wheel);
407 private DaliEventHandlerWithReturnType<object,WheelEventArgs,bool> _viewWheelHandler;
408 private WheelCallbackDelegate _viewWheelCallbackDelegate;
410 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
411 private delegate void OnWindowEventCallbackDelegate(IntPtr control);
413 private DaliEventHandler<object,OnWindowEventArgs> _viewOnWindowEventHandler;
414 private OnWindowEventCallbackDelegate _viewOnWindowEventCallbackDelegate;
416 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
417 private delegate void OffWindowEventCallbackDelegate(IntPtr control);
419 private DaliEventHandler<object,OffWindowEventArgs> _viewOffWindowEventHandler;
420 private OffWindowEventCallbackDelegate _viewOffWindowEventCallbackDelegate;
423 * @brief Event for KeyInputFocusGained signal which can be used to subscribe/unsubscribe the event handler
424 * (in the type of KeyInputFocusGainedEventHandler-DaliEventHandler<object,KeyInputFocusGainedEventArgs>)
425 * provided by the user. KeyInputFocusGained signal is emitted when the control gets Key Input Focus.
427 public event DaliEventHandler<object,KeyInputFocusGainedEventArgs> FocusGained
433 // Restricted to only one listener
434 if (_KeyInputFocusGainedEventHandler == null)
436 _KeyInputFocusGainedEventHandler += value;
437 Console.WriteLine("View Key EVENT Locked....");
438 _KeyInputFocusGainedCallbackDelegate = new KeyInputFocusGainedCallbackDelegate(OnFocusGained);
439 this.KeyInputFocusGainedSignal().Connect(_KeyInputFocusGainedCallbackDelegate);
448 if (_KeyInputFocusGainedEventHandler != null)
450 this.KeyInputFocusGainedSignal().Disconnect(_KeyInputFocusGainedCallbackDelegate);
453 _KeyInputFocusGainedEventHandler -= value;
458 private void OnFocusGained(IntPtr view)
460 KeyInputFocusGainedEventArgs e = new KeyInputFocusGainedEventArgs();
461 Console.WriteLine("View Key ....");
462 // Populate all members of "e" (KeyInputFocusGainedEventArgs) with real data
463 e.View = Dali.View.GetViewFromPtr(view);
465 if (_KeyInputFocusGainedEventHandler != null)
467 //here we send all data to user event handlers
468 _KeyInputFocusGainedEventHandler(this, e);
474 * @brief Event for KeyInputFocusLost signal which can be used to subscribe/unsubscribe the event handler
475 * (in the type of KeyInputFocusLostEventHandler-DaliEventHandler<object,KeyInputFocusLostEventArgs>)
476 * provided by the user. KeyInputFocusLost signal is emitted when the control loses Key Input Focus.
478 public event DaliEventHandler<object,KeyInputFocusLostEventArgs> FocusLost
484 // Restricted to only one listener
485 if (_KeyInputFocusLostEventHandler == null)
487 _KeyInputFocusLostEventHandler += value;
489 _KeyInputFocusLostCallbackDelegate = new KeyInputFocusLostCallbackDelegate(OnFocusLost);
490 this.KeyInputFocusLostSignal().Connect(_KeyInputFocusLostCallbackDelegate);
499 if (_KeyInputFocusLostEventHandler != null)
501 this.KeyInputFocusLostSignal().Disconnect(_KeyInputFocusLostCallbackDelegate);
504 _KeyInputFocusLostEventHandler -= value;
509 private void OnFocusLost(IntPtr view)
511 KeyInputFocusLostEventArgs e = new KeyInputFocusLostEventArgs();
513 // Populate all members of "e" (KeyInputFocusLostEventArgs) with real data
514 e.View = Dali.View.GetViewFromPtr(view);
516 if (_KeyInputFocusLostEventHandler != null)
518 //here we send all data to user event handlers
519 _KeyInputFocusLostEventHandler(this, e);
524 * @brief Event for KeyPressed signal which can be used to subscribe/unsubscribe the event handler
525 * (in the type of KeyHandler-DaliEventHandlerWithReturnType<object,KeyEventArgs,bool>)
526 * provided by the user. KeyPressed signal is emitted when key event is received.
528 public event DaliEventHandlerWithReturnType<object,KeyEventArgs,bool> KeyPressed
534 // Restricted to only one listener
535 if (_KeyHandler == null)
537 _KeyHandler += value;
539 _KeyCallbackDelegate = new KeyCallbackDelegate(OnKey);
540 this.KeyEventSignal().Connect(_KeyCallbackDelegate);
549 if (_KeyHandler != null)
551 this.KeyEventSignal().Disconnect(_KeyCallbackDelegate);
554 _KeyHandler -= value;
559 private bool OnKey(IntPtr view, IntPtr key)
561 KeyEventArgs e = new KeyEventArgs();
563 // Populate all members of "e" (KeyEventArgs) with real data
564 e.View = Dali.View.GetViewFromPtr(view);
565 e.Key = Dali.Key.GetKeyFromPtr(key);
567 if (_KeyHandler != null)
569 //here we send all data to user event handlers
570 return _KeyHandler(this, e);
577 * @brief Event for OnRelayout signal which can be used to subscribe/unsubscribe the event handler
578 * (in the type of OnRelayoutEventHandler) provided by the user.
579 * OnRelayout signal is emitted after the size has been set on the view during relayout.
581 public event DaliEventHandler<object,OnRelayoutEventArgs> Relayout
587 // Restricted to only one listener
588 if (_viewOnRelayoutEventHandler == null)
590 _viewOnRelayoutEventHandler += value;
591 Console.WriteLine("View OnRelayoutEventArgs Locked....");
592 _viewOnRelayoutEventCallbackDelegate = new OnRelayoutEventCallbackDelegate(OnRelayout);
593 this.OnRelayoutSignal().Connect(_viewOnRelayoutEventCallbackDelegate);
602 if (_viewOnRelayoutEventHandler != null)
604 this.OnRelayoutSignal().Disconnect(_viewOnRelayoutEventCallbackDelegate);
607 _viewOnRelayoutEventHandler -= value;
612 // Callback for View OnRelayout signal
613 private void OnRelayout(IntPtr data)
615 OnRelayoutEventArgs e = new OnRelayoutEventArgs();
616 Console.WriteLine("View OnRelayoutEventArgs....");
617 // Populate all members of "e" (OnRelayoutEventArgs) with real data
618 e.View = View.GetViewFromPtr(data);
620 if (_viewOnRelayoutEventHandler != null)
622 //here we send all data to user event handlers
623 _viewOnRelayoutEventHandler(this, e);
628 * @brief Event for Touched signal which can be used to subscribe/unsubscribe the event handler
629 * (in the type of TouchHandler-DaliEventHandlerWithReturnType<object,TouchEventArgs,bool>)
630 * provided by the user. Touched signal is emitted when touch input is received.
632 public event DaliEventHandlerWithReturnType<object,TouchEventArgs,bool> Touched
638 // Restricted to only one listener
639 if (_viewTouchHandler == null)
641 _viewTouchHandler += value;
642 Console.WriteLine("View Touch EVENT LOCKED....");
643 _viewTouchCallbackDelegate = new TouchCallbackDelegate(OnTouch);
644 this.TouchSignal().Connect(_viewTouchCallbackDelegate);
653 if (_viewTouchHandler != null)
655 this.TouchSignal().Disconnect(_viewTouchCallbackDelegate);
658 _viewTouchHandler -= value;
663 // Callback for View TouchSignal
664 private bool OnTouch(IntPtr view, IntPtr touch)
666 TouchEventArgs e = new TouchEventArgs();
667 Console.WriteLine("View Touch EVENT....");
668 // Populate all members of "e" (TouchEventArgs) with real data
669 e.View = View.GetViewFromPtr(view);
670 e.Touch = Dali.Touch.GetTouchFromPtr(touch);
672 if (_viewTouchHandler != null)
674 //here we send all data to user event handlers
675 return _viewTouchHandler(this, e);
682 * @brief Event for Hovered signal which can be used to subscribe/unsubscribe the event handler
683 * (in the type of HoverHandler-DaliEventHandlerWithReturnType<object,HoverEventArgs,bool>)
684 * provided by the user. Hovered signal is emitted when hover input is received.
686 public event DaliEventHandlerWithReturnType<object,HoverEventArgs,bool> Hovered
692 // Restricted to only one listener
693 if (_viewHoverHandler == null)
695 _viewHoverHandler += value;
697 _viewHoverCallbackDelegate = new HoverCallbackDelegate(OnHover);
698 this.HoveredSignal().Connect(_viewHoverCallbackDelegate);
707 if (_viewHoverHandler != null)
709 this.HoveredSignal().Disconnect(_viewHoverCallbackDelegate);
712 _viewHoverHandler -= value;
717 // Callback for View Hover signal
718 private bool OnHover(IntPtr view, IntPtr hover)
720 HoverEventArgs e = new HoverEventArgs();
722 // Populate all members of "e" (HoverEventArgs) with real data
723 e.View = View.GetViewFromPtr(view);
724 e.Hover = Dali.Hover.GetHoverFromPtr(hover);
726 if (_viewHoverHandler != null)
728 //here we send all data to user event handlers
729 return _viewHoverHandler(this, e);
736 * @brief Event for WheelMoved signal which can be used to subscribe/unsubscribe the event handler
737 * (in the type of WheelHandler-DaliEventHandlerWithReturnType<object,WheelEventArgs,bool>)
738 * provided by the user. WheelMoved signal is emitted when wheel event is received.
740 public event DaliEventHandlerWithReturnType<object,WheelEventArgs,bool> WheelRolled
746 // Restricted to only one listener
747 if (_viewWheelHandler == null)
749 _viewWheelHandler += value;
750 Console.WriteLine("View Wheel EVENT LOCKED....");
751 _viewWheelCallbackDelegate = new WheelCallbackDelegate(OnWheel);
752 this.WheelEventSignal().Connect(_viewWheelCallbackDelegate);
761 if (_viewWheelHandler != null)
763 this.WheelEventSignal().Disconnect(_viewWheelCallbackDelegate);
766 _viewWheelHandler -= value;
771 // Callback for View Wheel signal
772 private bool OnWheel(IntPtr view, IntPtr wheel)
774 WheelEventArgs e = new WheelEventArgs();
775 Console.WriteLine("View Wheel EVENT ....");
776 // Populate all members of "e" (WheelEventArgs) with real data
777 e.View = View.GetViewFromPtr(view);
778 e.Wheel = Dali.Wheel.GetWheelFromPtr(wheel);
780 if (_viewWheelHandler != null)
782 //here we send all data to user event handlers
783 return _viewWheelHandler(this, e);
790 * @brief Event for OnWindow signal which can be used to subscribe/unsubscribe the event handler
791 * (in the type of OnWindowEventHandler) provided by the user.
792 * OnWindow signal is emitted after the view has been connected to the window.
794 public event DaliEventHandler<object,OnWindowEventArgs> AddedToWindow
800 // Restricted to only one listener
801 if (_viewOnWindowEventHandler == null)
803 _viewOnWindowEventHandler += value;
805 _viewOnWindowEventCallbackDelegate = new OnWindowEventCallbackDelegate(OnWindow);
806 this.OnWindowSignal().Connect(_viewOnWindowEventCallbackDelegate);
815 if (_viewOnWindowEventHandler != null)
817 this.OnWindowSignal().Disconnect(_viewOnWindowEventCallbackDelegate);
820 _viewOnWindowEventHandler -= value;
825 // Callback for View OnWindow signal
826 private void OnWindow(IntPtr data)
828 OnWindowEventArgs e = new OnWindowEventArgs();
830 // Populate all members of "e" (OnWindowEventArgs) with real data
831 e.View = View.GetViewFromPtr(data);
833 //Console.WriteLine("############# OnWindow()! e.View.Name=" + e.View.Name);
835 if (_viewOnWindowEventHandler != null)
837 //here we send all data to user event handlers
838 _viewOnWindowEventHandler(this, e);
843 * @brief Event for OffWindow signal which can be used to subscribe/unsubscribe the event handler
844 * (in the type of OffWindowEventHandler) provided by the user.
845 * OffWindow signal is emitted after the view has been disconnected from the window.
847 public event DaliEventHandler<object,OffWindowEventArgs> RemovedFromWindow
853 // Restricted to only one listener
854 if (_viewOffWindowEventHandler == null)
856 _viewOffWindowEventHandler += value;
858 _viewOffWindowEventCallbackDelegate = new OffWindowEventCallbackDelegate(OffWindow);
859 this.OnWindowSignal().Connect(_viewOffWindowEventCallbackDelegate);
868 if (_viewOffWindowEventHandler != null)
870 this.OnWindowSignal().Disconnect(_viewOffWindowEventCallbackDelegate);
873 _viewOffWindowEventHandler -= value;
878 // Callback for View OffWindow signal
879 private void OffWindow(IntPtr data)
881 OffWindowEventArgs e = new OffWindowEventArgs();
883 // Populate all members of "e" (OffWindowEventArgs) with real data
884 e.View = View.GetViewFromPtr(data);
886 if (_viewOffWindowEventHandler != null)
888 //here we send all data to user event handlers
889 _viewOffWindowEventHandler(this, e);
893 internal static View GetViewFromPtr(global::System.IntPtr cPtr)
895 View ret = new View(cPtr, false);
896 if (NDalicPINVOKE.SWIGPendingException.Pending)
897 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
901 internal IntPtr GetPtrfromView()
903 return (IntPtr)swigCPtr;
906 public class Property
908 internal static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
909 internal static readonly int STATE = NDalicManualPINVOKE.View_Property_STATE_get();
910 internal static readonly int SUB_STATE = NDalicManualPINVOKE.View_Property_SUB_STATE_get();
911 internal static readonly int LEFT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
912 internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
913 internal static readonly int UP_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
914 internal static readonly int DOWN_FOCUSABLE_VIEW_ID = NDalicManualPINVOKE.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
915 internal static readonly int KEY_INPUT_FOCUS = NDalicPINVOKE.View_Property_KEY_INPUT_FOCUS_get();
916 internal static readonly int STYLE_NAME = NDalicPINVOKE.View_Property_STYLE_NAME_get();
917 internal static readonly int BACKGROUND = NDalicPINVOKE.View_Property_BACKGROUND_get();
920 internal static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
921 public static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
922 internal static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
923 internal static readonly int POSITION_USES_ANCHOR_POINT = NDalicManualPINVOKE.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
924 internal static readonly int PARENT_ORIGIN = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_get();
925 internal static readonly int PARENT_ORIGIN_X = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_X_get();
926 internal static readonly int PARENT_ORIGIN_Y = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Y_get();
927 internal static readonly int PARENT_ORIGIN_Z = NDalicPINVOKE.Actor_Property_PARENT_ORIGIN_Z_get();
928 internal static readonly int ANCHOR_POINT = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_get();
929 internal static readonly int ANCHOR_POINT_X = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_X_get();
930 internal static readonly int ANCHOR_POINT_Y = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Y_get();
931 internal static readonly int ANCHOR_POINT_Z = NDalicPINVOKE.Actor_Property_ANCHOR_POINT_Z_get();
932 public static readonly int SIZE = NDalicPINVOKE.Actor_Property_SIZE_get();
933 public static readonly int SIZE_WIDTH = NDalicPINVOKE.Actor_Property_SIZE_WIDTH_get();
934 public static readonly int SIZE_HEIGHT = NDalicPINVOKE.Actor_Property_SIZE_HEIGHT_get();
935 internal static readonly int SIZE_DEPTH = NDalicPINVOKE.Actor_Property_SIZE_DEPTH_get();
936 public static readonly int POSITION = NDalicPINVOKE.Actor_Property_POSITION_get();
937 public static readonly int POSITION_X = NDalicPINVOKE.Actor_Property_POSITION_X_get();
938 public static readonly int POSITION_Y = NDalicPINVOKE.Actor_Property_POSITION_Y_get();
939 public static readonly int POSITION_Z = NDalicPINVOKE.Actor_Property_POSITION_Z_get();
940 internal static readonly int WORLD_POSITION = NDalicPINVOKE.Actor_Property_WORLD_POSITION_get();
941 internal static readonly int WORLD_POSITION_X = NDalicPINVOKE.Actor_Property_WORLD_POSITION_X_get();
942 internal static readonly int WORLD_POSITION_Y = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Y_get();
943 internal static readonly int WORLD_POSITION_Z = NDalicPINVOKE.Actor_Property_WORLD_POSITION_Z_get();
944 public static readonly int ORIENTATION = NDalicPINVOKE.Actor_Property_ORIENTATION_get();
945 internal static readonly int WORLD_ORIENTATION = NDalicPINVOKE.Actor_Property_WORLD_ORIENTATION_get();
946 public static readonly int SCALE = NDalicPINVOKE.Actor_Property_SCALE_get();
947 public static readonly int SCALE_X = NDalicPINVOKE.Actor_Property_SCALE_X_get();
948 public static readonly int SCALE_Y = NDalicPINVOKE.Actor_Property_SCALE_Y_get();
949 public static readonly int SCALE_Z = NDalicPINVOKE.Actor_Property_SCALE_Z_get();
950 internal static readonly int WORLD_SCALE = NDalicPINVOKE.Actor_Property_WORLD_SCALE_get();
951 public static readonly int VISIBLE = NDalicPINVOKE.Actor_Property_VISIBLE_get();
952 public static readonly int COLOR = NDalicPINVOKE.Actor_Property_COLOR_get();
953 public static readonly int COLOR_RED = NDalicPINVOKE.Actor_Property_COLOR_RED_get();
954 public static readonly int COLOR_GREEN = NDalicPINVOKE.Actor_Property_COLOR_GREEN_get();
955 public static readonly int COLOR_BLUE = NDalicPINVOKE.Actor_Property_COLOR_BLUE_get();
956 public static readonly int COLOR_ALPHA = NDalicPINVOKE.Actor_Property_COLOR_ALPHA_get();
957 internal static readonly int WORLD_COLOR = NDalicPINVOKE.Actor_Property_WORLD_COLOR_get();
958 internal static readonly int WORLD_MATRIX = NDalicPINVOKE.Actor_Property_WORLD_MATRIX_get();
959 internal static readonly int NAME = NDalicPINVOKE.Actor_Property_NAME_get();
960 internal static readonly int SENSITIVE = NDalicPINVOKE.Actor_Property_SENSITIVE_get();
961 internal static readonly int LEAVE_REQUIRED = NDalicPINVOKE.Actor_Property_LEAVE_REQUIRED_get();
962 internal static readonly int INHERIT_ORIENTATION = NDalicPINVOKE.Actor_Property_INHERIT_ORIENTATION_get();
963 internal static readonly int INHERIT_SCALE = NDalicPINVOKE.Actor_Property_INHERIT_SCALE_get();
964 internal static readonly int DRAW_MODE = NDalicPINVOKE.Actor_Property_DRAW_MODE_get();
965 internal static readonly int SIZE_MODE_FACTOR = NDalicPINVOKE.Actor_Property_SIZE_MODE_FACTOR_get();
966 internal static readonly int WIDTH_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_WIDTH_RESIZE_POLICY_get();
967 internal static readonly int HEIGHT_RESIZE_POLICY = NDalicPINVOKE.Actor_Property_HEIGHT_RESIZE_POLICY_get();
968 internal static readonly int SIZE_SCALE_POLICY = NDalicPINVOKE.Actor_Property_SIZE_SCALE_POLICY_get();
969 internal static readonly int WIDTH_FOR_HEIGHT = NDalicPINVOKE.Actor_Property_WIDTH_FOR_HEIGHT_get();
970 internal static readonly int HEIGHT_FOR_WIDTH = NDalicPINVOKE.Actor_Property_HEIGHT_FOR_WIDTH_get();
971 internal static readonly int PADDING = NDalicPINVOKE.Actor_Property_PADDING_get();
972 internal static readonly int MINIMUM_SIZE = NDalicPINVOKE.Actor_Property_MINIMUM_SIZE_get();
973 internal static readonly int MAXIMUM_SIZE = NDalicPINVOKE.Actor_Property_MAXIMUM_SIZE_get();
974 internal static readonly int INHERIT_POSITION = NDalicPINVOKE.Actor_Property_INHERIT_POSITION_get();
975 internal static readonly int CLIPPING_MODE = NDalicPINVOKE.Actor_Property_CLIPPING_MODE_get();
980 public enum Direction
991 public View() : this(NDalicPINVOKE.View_New(), true)
993 if (NDalicPINVOKE.SWIGPendingException.Pending)
994 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
998 public View(View uiControl) : this(NDalicPINVOKE.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1000 if (NDalicPINVOKE.SWIGPendingException.Pending)
1001 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1004 private new static View DownCast(BaseHandle handle)
1006 View ret = new View(NDalicPINVOKE.View_DownCast(BaseHandle.getCPtr(handle)), true);
1007 if (NDalicPINVOKE.SWIGPendingException.Pending)
1008 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1012 public static T DownCast<T>(View view) where T : View
1014 return (T)(ViewRegistry.GetViewFromActor(view));
1017 private View ConvertIdToView(uint id)
1023 view = Parent.FindChildById(id);
1028 view = Window.Instance.GetRootLayer().FindChildById(id);
1034 internal void SetFocus()
1036 NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
1037 if (NDalicPINVOKE.SWIGPendingException.Pending)
1038 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1041 internal bool HasFocus()
1043 bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
1044 if (NDalicPINVOKE.SWIGPendingException.Pending)
1045 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1049 internal void ClearFocus()
1051 NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
1052 if (NDalicPINVOKE.SWIGPendingException.Pending)
1053 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1056 internal PinchGestureDetector GetPinchGestureDetector()
1058 PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
1059 if (NDalicPINVOKE.SWIGPendingException.Pending)
1060 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1064 internal PanGestureDetector GetPanGestureDetector()
1066 PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
1067 if (NDalicPINVOKE.SWIGPendingException.Pending)
1068 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1072 internal TapGestureDetector GetTapGestureDetector()
1074 TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
1075 if (NDalicPINVOKE.SWIGPendingException.Pending)
1076 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1080 internal LongPressGestureDetector GetLongPressGestureDetector()
1082 LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
1083 if (NDalicPINVOKE.SWIGPendingException.Pending)
1084 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1088 internal void SetStyleName(string styleName)
1090 NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
1091 if (NDalicPINVOKE.SWIGPendingException.Pending)
1092 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1095 internal string GetStyleName()
1097 string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
1098 if (NDalicPINVOKE.SWIGPendingException.Pending)
1099 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1103 public void ClearBackground()
1105 NDalicPINVOKE.View_ClearBackground(swigCPtr);
1106 if (NDalicPINVOKE.SWIGPendingException.Pending)
1107 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1110 internal ControlKeySignal KeyEventSignal()
1112 ControlKeySignal ret = new ControlKeySignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
1113 if (NDalicPINVOKE.SWIGPendingException.Pending)
1114 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1118 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
1120 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
1121 if (NDalicPINVOKE.SWIGPendingException.Pending)
1122 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1126 internal KeyInputFocusSignal KeyInputFocusLostSignal()
1128 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
1129 if (NDalicPINVOKE.SWIGPendingException.Pending)
1130 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1134 internal View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1136 if (NDalicPINVOKE.SWIGPendingException.Pending)
1137 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1140 public enum PropertyRange
1142 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1143 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1144 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1147 public string StyleName
1152 GetProperty(View.Property.STYLE_NAME).Get(out temp);
1157 SetProperty(View.Property.STYLE_NAME, new Dali.Property.Value(value));
1161 public Vector4 BackgroundColor
1165 Vector4 backgroundColor = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1167 Dali.Property.Map background = Background;
1169 background.Find(Dali.Constants.Visual.Property.Type).Get(out visualType);
1170 if (visualType == (int)Dali.Constants.Visual.Type.Color)
1172 background.Find(Dali.Constants.ColorVisualProperty.MixColor).Get(backgroundColor);
1175 return backgroundColor;
1179 SetProperty(View.Property.BACKGROUND, new Dali.Property.Value(value));
1183 public string BackgroundImage
1187 string backgroundImage = "";
1189 Dali.Property.Map background = Background;
1191 background.Find(Dali.Constants.Visual.Property.Type).Get(out visualType);
1192 if (visualType == (int)Dali.Constants.Visual.Type.Image)
1194 background.Find(Dali.Constants.ImageVisualProperty.URL).Get(out backgroundImage);
1197 return backgroundImage;
1201 SetProperty(View.Property.BACKGROUND, new Dali.Property.Value(value));
1205 public bool KeyFocusable
1210 GetProperty(View.Property.KEY_INPUT_FOCUS).Get(out temp);
1215 SetProperty(View.Property.KEY_INPUT_FOCUS, new Dali.Property.Value(value));
1219 public Dali.Property.Map Background
1223 Dali.Property.Map temp = new Dali.Property.Map();
1224 GetProperty(View.Property.BACKGROUND).Get(temp);
1229 SetProperty(View.Property.BACKGROUND, new Dali.Property.Value(value));
1238 GetProperty(View.Property.STATE).Get(out temp);
1243 SetProperty(View.Property.STATE, new Dali.Property.Value(value));
1247 public string SubState
1252 GetProperty(View.Property.SUB_STATE).Get(out temp);
1257 SetProperty(View.Property.SUB_STATE, new Dali.Property.Value(value));
1261 public Dali.Property.Map Tooltip
1265 Dali.Property.Map temp = new Dali.Property.Map();
1266 GetProperty(View.Property.TOOLTIP).Get(temp);
1271 SetProperty(View.Property.TOOLTIP, new Dali.Property.Value(value));
1275 public string TooltipText
1279 SetProperty(View.Property.TOOLTIP, new Dali.Property.Value(value));
1283 private int LeftFocusableViewId
1288 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
1293 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Dali.Property.Value(value));
1297 private int RightFocusableViewId
1302 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
1307 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Dali.Property.Value(value));
1311 private int UpFocusableViewId
1316 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
1321 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Dali.Property.Value(value));
1325 private int DownFocusableViewId
1330 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
1335 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Dali.Property.Value(value));
1344 GetProperty(FlexContainer.ChildProperty.FLEX).Get(out temp);
1349 SetProperty(FlexContainer.ChildProperty.FLEX, new Dali.Property.Value(value));
1353 public int AlignSelf
1358 GetProperty(FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
1363 SetProperty(FlexContainer.ChildProperty.ALIGN_SELF, new Dali.Property.Value(value));
1367 public Vector4 FlexMargin
1371 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1372 GetProperty(FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
1377 SetProperty(FlexContainer.ChildProperty.FLEX_MARGIN, new Dali.Property.Value(value));
1381 public Vector2 CellIndex
1385 Vector2 temp = new Vector2(0.0f, 0.0f);
1386 GetProperty(TableView.ChildProperty.CELL_INDEX).Get(temp);
1391 SetProperty(TableView.ChildProperty.CELL_INDEX, new Dali.Property.Value(value));
1395 public float RowSpan
1400 GetProperty(TableView.ChildProperty.ROW_SPAN).Get(out temp);
1405 SetProperty(TableView.ChildProperty.ROW_SPAN, new Dali.Property.Value(value));
1409 public float ColumnSpan
1414 GetProperty(TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
1419 SetProperty(TableView.ChildProperty.COLUMN_SPAN, new Dali.Property.Value(value));
1423 public string CellHorizontalAlignment
1428 GetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp);
1433 SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Dali.Property.Value(value));
1437 public string CellVerticalAlignment
1442 GetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
1447 SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Dali.Property.Value(value));
1452 * @brief The left focusable view.
1453 * @note This will return NULL if not set.
1454 * This will also return NULL if the specified left focusable view is not on window.
1457 public View LeftFocusableView
1459 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1462 if (LeftFocusableViewId >= 0)
1464 return ConvertIdToView((uint)LeftFocusableViewId);
1470 LeftFocusableViewId = (int)value.GetId();
1475 * @brief The right focusable view.
1476 * @note This will return NULL if not set.
1477 * This will also return NULL if the specified right focusable view is not on window.
1480 public View RightFocusableView
1482 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1485 if (RightFocusableViewId >= 0)
1487 return ConvertIdToView((uint)RightFocusableViewId);
1493 RightFocusableViewId = (int)value.GetId();
1498 * @brief The up focusable view.
1499 * @note This will return NULL if not set.
1500 * This will also return NULL if the specified up focusable view is not on window.
1503 public View UpFocusableView
1505 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1508 if (UpFocusableViewId >= 0)
1510 return ConvertIdToView((uint)UpFocusableViewId);
1516 UpFocusableViewId = (int)value.GetId();
1521 * @brief The down focusable view.
1522 * @note This will return NULL if not set.
1523 * This will also return NULL if the specified down focusable view is not on window.
1526 public View DownFocusableView
1528 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1531 if (DownFocusableViewId >= 0)
1533 return ConvertIdToView((uint)DownFocusableViewId);
1539 DownFocusableViewId = (int)value.GetId();
1543 public Position CurrentPosition
1547 return GetCurrentPosition();
1551 public Size2D Size2D
1555 Size temp = new Size(0.0f, 0.0f, 0.0f);
1556 GetProperty(View.Property.SIZE).Get(temp);
1557 return new Size2D(temp);
1561 SetProperty(View.Property.SIZE, new Dali.Property.Value(new Size(value)));
1565 public Size CurrentSize
1569 return GetCurrentSize();
1581 public bool Visibility
1589 public float Opacity
1594 GetProperty(View.Property.OPACITY).Get(out temp);
1599 SetProperty(View.Property.OPACITY, new Dali.Property.Value(value));
1603 public Position2D Position2D
1607 Position temp = new Position(0.0f, 0.0f, 0.0f);
1608 GetProperty(View.Property.POSITION).Get(temp);
1609 return new Position2D(temp);
1613 SetProperty(View.Property.POSITION, new Dali.Property.Value(new Position(value)));
1617 public Vector2 ScreenPosition
1621 Vector2 temp = new Vector2(0.0f, 0.0f);
1622 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
1627 internal bool PositionUsesAnchorPoint
1632 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
1637 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Dali.Property.Value(value));
1641 internal bool FocusState
1645 return IsFocusable();
1649 SetFocusable(value);
1653 public bool IsOnWindow
1661 public int SiblingOrder
1666 GetProperty(View.Property.SIBLING_ORDER).Get(out temp);
1671 SetProperty(View.Property.SIBLING_ORDER, new Dali.Property.Value(value));
1687 NDalicPINVOKE.Raise(swigCPtr);
1688 if (NDalicPINVOKE.SWIGPendingException.Pending)
1689 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1694 NDalicPINVOKE.Lower(swigCPtr);
1695 if (NDalicPINVOKE.SWIGPendingException.Pending)
1696 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1699 public void RaiseToTop()
1701 NDalicPINVOKE.RaiseToTop(swigCPtr);
1702 if (NDalicPINVOKE.SWIGPendingException.Pending)
1703 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1706 public void LowerToBottom()
1708 NDalicPINVOKE.LowerToBottom(swigCPtr);
1709 if (NDalicPINVOKE.SWIGPendingException.Pending)
1710 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1713 public void RaiseAbove(View target)
1715 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
1716 if (NDalicPINVOKE.SWIGPendingException.Pending)
1717 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1720 public void LowerBelow(View target)
1722 NDalicPINVOKE.RaiseAbove(swigCPtr, View.getCPtr(target));
1723 if (NDalicPINVOKE.SWIGPendingException.Pending)
1724 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1727 private uint GetId()
1729 uint ret = NDalicPINVOKE.Actor_GetId(swigCPtr);
1730 if (NDalicPINVOKE.SWIGPendingException.Pending)
1731 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1735 private bool OnWindow()
1737 bool ret = NDalicPINVOKE.Actor_OnStage(swigCPtr);
1738 if (NDalicPINVOKE.SWIGPendingException.Pending)
1739 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1743 public Layer GetLayer()
1745 Layer ret = new Layer(NDalicPINVOKE.Actor_GetLayer(swigCPtr), true);
1746 if (NDalicPINVOKE.SWIGPendingException.Pending)
1747 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1751 public void Add(View child)
1753 NDalicPINVOKE.Actor_Add(swigCPtr, View.getCPtr(child));
1754 if (NDalicPINVOKE.SWIGPendingException.Pending)
1755 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1758 public void Remove(View child)
1760 NDalicPINVOKE.Actor_Remove(swigCPtr, View.getCPtr(child));
1761 if (NDalicPINVOKE.SWIGPendingException.Pending)
1762 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1765 public void Unparent()
1767 NDalicPINVOKE.Actor_Unparent(swigCPtr);
1768 if (NDalicPINVOKE.SWIGPendingException.Pending)
1769 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1772 public uint GetChildCount()
1774 uint ret = NDalicPINVOKE.Actor_GetChildCount(swigCPtr);
1775 if (NDalicPINVOKE.SWIGPendingException.Pending)
1776 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1780 public View GetChildAt(uint index)
1782 View ret = new View(NDalicPINVOKE.Actor_GetChildAt(swigCPtr, index), true);
1783 if (NDalicPINVOKE.SWIGPendingException.Pending)
1784 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1788 public View FindChildByName(string actorName)
1790 View ret = new View(NDalicPINVOKE.Actor_FindChildByName(swigCPtr, actorName), true);
1791 if (NDalicPINVOKE.SWIGPendingException.Pending)
1792 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1796 public View FindChildById(uint id)
1798 View ret = new View(NDalicPINVOKE.Actor_FindChildById(swigCPtr, id), true);
1799 if (NDalicPINVOKE.SWIGPendingException.Pending)
1800 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1804 private View GetParent()
1806 View ret = new View(NDalicPINVOKE.Actor_GetParent(swigCPtr), true);
1807 if (NDalicPINVOKE.SWIGPendingException.Pending)
1808 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1812 private void SetParentOrigin(Vector3 origin)
1814 NDalicPINVOKE.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
1815 if (NDalicPINVOKE.SWIGPendingException.Pending)
1816 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1819 private Vector3 GetCurrentParentOrigin()
1821 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentParentOrigin(swigCPtr), true);
1822 if (NDalicPINVOKE.SWIGPendingException.Pending)
1823 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1827 private void SetAnchorPoint(Vector3 anchorPoint)
1829 NDalicPINVOKE.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
1830 if (NDalicPINVOKE.SWIGPendingException.Pending)
1831 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1834 private Vector3 GetCurrentAnchorPoint()
1836 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentAnchorPoint(swigCPtr), true);
1837 if (NDalicPINVOKE.SWIGPendingException.Pending)
1838 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1842 public void SetSize(float width, float height)
1844 NDalicPINVOKE.Actor_SetSize__SWIG_0(swigCPtr, width, height);
1845 if (NDalicPINVOKE.SWIGPendingException.Pending)
1846 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1849 public void SetSize(float width, float height, float depth)
1851 NDalicPINVOKE.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
1852 if (NDalicPINVOKE.SWIGPendingException.Pending)
1853 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1856 public void SetSize(Vector2 size)
1858 NDalicPINVOKE.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
1859 if (NDalicPINVOKE.SWIGPendingException.Pending)
1860 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1863 public void SetSize(Vector3 size)
1865 NDalicPINVOKE.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
1866 if (NDalicPINVOKE.SWIGPendingException.Pending)
1867 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1870 public Vector3 GetTargetSize()
1872 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetTargetSize(swigCPtr), true);
1873 if (NDalicPINVOKE.SWIGPendingException.Pending)
1874 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1878 private Vector3 GetCurrentSize()
1880 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentSize(swigCPtr), true);
1881 if (NDalicPINVOKE.SWIGPendingException.Pending)
1882 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1886 internal Vector3 GetNaturalSize()
1888 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetNaturalSize(swigCPtr), true);
1889 if (NDalicPINVOKE.SWIGPendingException.Pending)
1890 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1894 public void TranslateBy(Vector3 distance)
1896 NDalicPINVOKE.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
1897 if (NDalicPINVOKE.SWIGPendingException.Pending)
1898 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1901 private Vector3 GetCurrentPosition()
1903 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetCurrentPosition(swigCPtr), true);
1904 if (NDalicPINVOKE.SWIGPendingException.Pending)
1905 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1909 public void RotateBy(Degree angle, Vector3 axis)
1911 NDalicPINVOKE.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
1912 if (NDalicPINVOKE.SWIGPendingException.Pending)
1913 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1916 public void RotateBy(Radian angle, Vector3 axis)
1918 NDalicPINVOKE.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
1919 if (NDalicPINVOKE.SWIGPendingException.Pending)
1920 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1923 public void RotateBy(Rotation relativeRotation)
1925 NDalicPINVOKE.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
1926 if (NDalicPINVOKE.SWIGPendingException.Pending)
1927 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1930 public void ScaleBy(Vector3 relativeScale)
1932 NDalicPINVOKE.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
1933 if (NDalicPINVOKE.SWIGPendingException.Pending)
1934 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1937 public Vector4 GetCurrentWorldColor()
1939 Vector4 ret = new Vector4(NDalicPINVOKE.Actor_GetCurrentWorldColor(swigCPtr), true);
1940 if (NDalicPINVOKE.SWIGPendingException.Pending)
1941 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1945 public void SetDrawMode(DrawModeType drawMode)
1947 NDalicPINVOKE.Actor_SetDrawMode(swigCPtr, (int)drawMode);
1948 if (NDalicPINVOKE.SWIGPendingException.Pending)
1949 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1952 public DrawModeType GetDrawMode()
1954 DrawModeType ret = (DrawModeType)NDalicPINVOKE.Actor_GetDrawMode(swigCPtr);
1955 if (NDalicPINVOKE.SWIGPendingException.Pending)
1956 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1960 public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
1962 bool ret = NDalicPINVOKE.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
1963 if (NDalicPINVOKE.SWIGPendingException.Pending)
1964 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1968 public void SetFocusable(bool focusable)
1970 NDalicPINVOKE.Actor_SetKeyboardFocusable(swigCPtr, focusable);
1971 if (NDalicPINVOKE.SWIGPendingException.Pending)
1972 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1975 public bool IsFocusable()
1977 bool ret = NDalicPINVOKE.Actor_IsKeyboardFocusable(swigCPtr);
1978 if (NDalicPINVOKE.SWIGPendingException.Pending)
1979 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1983 public void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
1985 NDalicPINVOKE.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
1986 if (NDalicPINVOKE.SWIGPendingException.Pending)
1987 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1990 public ResizePolicyType GetResizePolicy(DimensionType dimension)
1992 ResizePolicyType ret = (ResizePolicyType)NDalicPINVOKE.Actor_GetResizePolicy(swigCPtr, (int)dimension);
1993 if (NDalicPINVOKE.SWIGPendingException.Pending)
1994 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1998 public void SetSizeModeFactor(Vector3 factor)
2000 NDalicPINVOKE.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
2001 if (NDalicPINVOKE.SWIGPendingException.Pending)
2002 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2005 public Vector3 GetSizeModeFactor()
2007 Vector3 ret = new Vector3(NDalicPINVOKE.Actor_GetSizeModeFactor(swigCPtr), true);
2008 if (NDalicPINVOKE.SWIGPendingException.Pending)
2009 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2013 public float GetHeightForWidth(float width)
2015 float ret = NDalicPINVOKE.Actor_GetHeightForWidth(swigCPtr, width);
2016 if (NDalicPINVOKE.SWIGPendingException.Pending)
2017 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2021 public float GetWidthForHeight(float height)
2023 float ret = NDalicPINVOKE.Actor_GetWidthForHeight(swigCPtr, height);
2024 if (NDalicPINVOKE.SWIGPendingException.Pending)
2025 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2029 public float GetRelayoutSize(DimensionType dimension)
2031 float ret = NDalicPINVOKE.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
2032 if (NDalicPINVOKE.SWIGPendingException.Pending)
2033 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2037 public void SetPadding(PaddingType padding)
2039 NDalicPINVOKE.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
2040 if (NDalicPINVOKE.SWIGPendingException.Pending)
2041 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2044 public void GetPadding(PaddingType paddingOut)
2046 NDalicPINVOKE.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
2047 if (NDalicPINVOKE.SWIGPendingException.Pending)
2048 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2051 public void SetMinimumSize(Vector2 size)
2053 NDalicPINVOKE.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
2054 if (NDalicPINVOKE.SWIGPendingException.Pending)
2055 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2058 public Vector2 GetMinimumSize()
2060 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMinimumSize(swigCPtr), true);
2061 if (NDalicPINVOKE.SWIGPendingException.Pending)
2062 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2066 public void SetMaximumSize(Vector2 size)
2068 NDalicPINVOKE.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
2069 if (NDalicPINVOKE.SWIGPendingException.Pending)
2070 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2073 public Vector2 GetMaximumSize()
2075 Vector2 ret = new Vector2(NDalicPINVOKE.Actor_GetMaximumSize(swigCPtr), true);
2076 if (NDalicPINVOKE.SWIGPendingException.Pending)
2077 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2081 public int GetHierarchyDepth()
2083 int ret = NDalicPINVOKE.Actor_GetHierarchyDepth(swigCPtr);
2084 if (NDalicPINVOKE.SWIGPendingException.Pending)
2085 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2089 internal uint AddRenderer(Renderer renderer)
2091 uint ret = NDalicPINVOKE.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
2092 if (NDalicPINVOKE.SWIGPendingException.Pending)
2093 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2097 internal uint GetRendererCount()
2099 uint ret = NDalicPINVOKE.Actor_GetRendererCount(swigCPtr);
2100 if (NDalicPINVOKE.SWIGPendingException.Pending)
2101 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2105 internal Renderer GetRendererAt(uint index)
2107 Renderer ret = new Renderer(NDalicPINVOKE.Actor_GetRendererAt(swigCPtr, index), true);
2108 if (NDalicPINVOKE.SWIGPendingException.Pending)
2109 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2113 internal void RemoveRenderer(Renderer renderer)
2115 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
2116 if (NDalicPINVOKE.SWIGPendingException.Pending)
2117 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2120 internal void RemoveRenderer(uint index)
2122 NDalicPINVOKE.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
2123 if (NDalicPINVOKE.SWIGPendingException.Pending)
2124 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2127 internal TouchDataSignal TouchSignal()
2129 TouchDataSignal ret = new TouchDataSignal(NDalicPINVOKE.Actor_TouchSignal(swigCPtr), false);
2130 if (NDalicPINVOKE.SWIGPendingException.Pending)
2131 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2135 internal HoverSignal HoveredSignal()
2137 HoverSignal ret = new HoverSignal(NDalicPINVOKE.Actor_HoveredSignal(swigCPtr), false);
2138 if (NDalicPINVOKE.SWIGPendingException.Pending)
2139 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2143 internal WheelSignal WheelEventSignal()
2145 WheelSignal ret = new WheelSignal(NDalicPINVOKE.Actor_WheelEventSignal(swigCPtr), false);
2146 if (NDalicPINVOKE.SWIGPendingException.Pending)
2147 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2151 internal ViewSignal OnWindowSignal()
2153 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnStageSignal(swigCPtr), false);
2154 if (NDalicPINVOKE.SWIGPendingException.Pending)
2155 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2159 internal ViewSignal OffStageSignal()
2161 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OffStageSignal(swigCPtr), false);
2162 if (NDalicPINVOKE.SWIGPendingException.Pending)
2163 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2167 internal ViewSignal OnRelayoutSignal()
2169 ViewSignal ret = new ViewSignal(NDalicPINVOKE.Actor_OnRelayoutSignal(swigCPtr), false);
2170 if (NDalicPINVOKE.SWIGPendingException.Pending)
2171 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2175 public Vector3 ParentOrigin
2179 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2180 GetProperty(View.Property.PARENT_ORIGIN).Get(temp);
2185 SetProperty(View.Property.PARENT_ORIGIN, new Dali.Property.Value(value));
2189 public float ParentOriginX
2194 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
2199 SetProperty(View.Property.PARENT_ORIGIN_X, new Dali.Property.Value(value));
2203 public float ParentOriginY
2208 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
2213 SetProperty(View.Property.PARENT_ORIGIN_Y, new Dali.Property.Value(value));
2217 public float ParentOriginZ
2222 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
2227 SetProperty(View.Property.PARENT_ORIGIN_Z, new Dali.Property.Value(value));
2231 public Vector3 PivotPoint
2235 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2236 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
2241 SetProperty(View.Property.ANCHOR_POINT, new Dali.Property.Value(value));
2245 public float PivotPointX
2250 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
2255 SetProperty(View.Property.ANCHOR_POINT_X, new Dali.Property.Value(value));
2259 public float PivotPointY
2264 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
2269 SetProperty(View.Property.ANCHOR_POINT_Y, new Dali.Property.Value(value));
2273 public float PivotPointZ
2278 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
2283 SetProperty(View.Property.ANCHOR_POINT_Z, new Dali.Property.Value(value));
2291 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2292 GetProperty(View.Property.SIZE).Get(temp);
2297 SetProperty(View.Property.SIZE, new Dali.Property.Value(value));
2301 public float SizeWidth
2306 GetProperty(View.Property.SIZE_WIDTH).Get(out temp);
2311 SetProperty(View.Property.SIZE_WIDTH, new Dali.Property.Value(value));
2315 public float SizeHeight
2320 GetProperty(View.Property.SIZE_HEIGHT).Get(out temp);
2325 SetProperty(View.Property.SIZE_HEIGHT, new Dali.Property.Value(value));
2329 public Vector3 Position
2333 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2334 GetProperty(View.Property.POSITION).Get(temp);
2339 SetProperty(View.Property.POSITION, new Dali.Property.Value(value));
2343 public float PositionX
2348 GetProperty(View.Property.POSITION_X).Get(out temp);
2353 SetProperty(View.Property.POSITION_X, new Dali.Property.Value(value));
2357 public float PositionY
2362 GetProperty(View.Property.POSITION_Y).Get(out temp);
2367 SetProperty(View.Property.POSITION_Y, new Dali.Property.Value(value));
2371 public float PositionZ
2376 GetProperty(View.Property.POSITION_Z).Get(out temp);
2381 SetProperty(View.Property.POSITION_Z, new Dali.Property.Value(value));
2385 public Vector3 WorldPosition
2389 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2390 GetProperty(View.Property.WORLD_POSITION).Get(temp);
2395 public float WorldPositionX
2400 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
2405 public float WorldPositionY
2410 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
2415 public float WorldPositionZ
2420 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
2425 public Rotation Orientation
2429 Rotation temp = new Rotation();
2430 GetProperty(View.Property.ORIENTATION).Get(temp);
2435 SetProperty(View.Property.ORIENTATION, new Dali.Property.Value(value));
2439 public Rotation WorldOrientation
2443 Rotation temp = new Rotation();
2444 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
2449 public Vector3 Scale
2453 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2454 GetProperty(View.Property.SCALE).Get(temp);
2459 SetProperty(View.Property.SCALE, new Dali.Property.Value(value));
2468 GetProperty(View.Property.SCALE_X).Get(out temp);
2473 SetProperty(View.Property.SCALE_X, new Dali.Property.Value(value));
2482 GetProperty(View.Property.SCALE_Y).Get(out temp);
2487 SetProperty(View.Property.SCALE_Y, new Dali.Property.Value(value));
2496 GetProperty(View.Property.SCALE_Z).Get(out temp);
2501 SetProperty(View.Property.SCALE_Z, new Dali.Property.Value(value));
2505 public Vector3 WorldScale
2509 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2510 GetProperty(View.Property.WORLD_SCALE).Get(temp);
2520 GetProperty(View.Property.VISIBLE).Get(out temp);
2525 SetProperty(View.Property.VISIBLE, new Dali.Property.Value(value));
2529 public Vector4 WorldColor
2533 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
2534 GetProperty(View.Property.WORLD_COLOR).Get(temp);
2539 public Matrix WorldMatrix
2543 Matrix temp = new Matrix();
2544 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
2554 GetProperty(View.Property.NAME).Get(out temp);
2559 SetProperty(View.Property.NAME, new Dali.Property.Value(value));
2563 public bool Sensitive
2568 GetProperty(View.Property.SENSITIVE).Get(out temp);
2573 SetProperty(View.Property.SENSITIVE, new Dali.Property.Value(value));
2577 public bool LeaveRequired
2582 GetProperty(View.Property.LEAVE_REQUIRED).Get(out temp);
2587 SetProperty(View.Property.LEAVE_REQUIRED, new Dali.Property.Value(value));
2591 public bool InheritOrientation
2596 GetProperty(View.Property.INHERIT_ORIENTATION).Get(out temp);
2601 SetProperty(View.Property.INHERIT_ORIENTATION, new Dali.Property.Value(value));
2605 public bool InheritScale
2610 GetProperty(View.Property.INHERIT_SCALE).Get(out temp);
2615 SetProperty(View.Property.INHERIT_SCALE, new Dali.Property.Value(value));
2619 public string DrawMode
2624 GetProperty(View.Property.DRAW_MODE).Get(out temp);
2629 SetProperty(View.Property.DRAW_MODE, new Dali.Property.Value(value));
2633 public Vector3 SizeModeFactor
2637 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2638 GetProperty(View.Property.SIZE_MODE_FACTOR).Get(temp);
2643 SetProperty(View.Property.SIZE_MODE_FACTOR, new Dali.Property.Value(value));
2647 public string WidthResizePolicy
2652 GetProperty(View.Property.WIDTH_RESIZE_POLICY).Get(out temp);
2657 SetProperty(View.Property.WIDTH_RESIZE_POLICY, new Dali.Property.Value(value));
2661 public string HeightResizePolicy
2666 GetProperty(View.Property.HEIGHT_RESIZE_POLICY).Get(out temp);
2671 SetProperty(View.Property.HEIGHT_RESIZE_POLICY, new Dali.Property.Value(value));
2675 public string SizeScalePolicy
2680 GetProperty(View.Property.SIZE_SCALE_POLICY).Get(out temp);
2685 SetProperty(View.Property.SIZE_SCALE_POLICY, new Dali.Property.Value(value));
2689 public bool WidthForHeight
2694 GetProperty(View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
2699 SetProperty(View.Property.WIDTH_FOR_HEIGHT, new Dali.Property.Value(value));
2703 public bool HeightForWidth
2708 GetProperty(View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
2713 SetProperty(View.Property.HEIGHT_FOR_WIDTH, new Dali.Property.Value(value));
2717 public Vector4 Padding
2721 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
2722 GetProperty(View.Property.PADDING).Get(temp);
2727 SetProperty(View.Property.PADDING, new Dali.Property.Value(value));
2731 public Vector2 MinimumSize
2735 Vector2 temp = new Vector2(0.0f, 0.0f);
2736 GetProperty(View.Property.MINIMUM_SIZE).Get(temp);
2741 SetProperty(View.Property.MINIMUM_SIZE, new Dali.Property.Value(value));
2745 public Vector2 MaximumSize
2749 Vector2 temp = new Vector2(0.0f, 0.0f);
2750 GetProperty(View.Property.MAXIMUM_SIZE).Get(temp);
2755 SetProperty(View.Property.MAXIMUM_SIZE, new Dali.Property.Value(value));
2759 public bool InheritPosition
2764 GetProperty(View.Property.INHERIT_POSITION).Get(out temp);
2769 SetProperty(View.Property.INHERIT_POSITION, new Dali.Property.Value(value));
2773 public string ClippingMode
2778 GetProperty(View.Property.CLIPPING_MODE).Get(out temp);
2783 SetProperty(View.Property.CLIPPING_MODE, new Dali.Property.Value(value));