1 /** Copyright (c) 2016 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.
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
20 // This file was automatically generated by SWIG (http://www.swig.org).
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
30 using System.Runtime.InteropServices;
33 public class View : CustomActor {
34 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
36 internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.View_SWIGUpcast(cPtr), cMemoryOwn) {
37 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
40 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj) {
41 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
48 public override void Dispose() {
50 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
53 NDalicPINVOKE.delete_View(swigCPtr);
55 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
57 global::System.GC.SuppressFinalize(this);
65 * @brief Event arguments that passed via KeyInputFocusGained signal
68 public class KeyInputFocusGainedEventArgs : EventArgs
73 * @brief View - is the view that gets Key Input Focus
90 * @brief Event arguments that passed via KeyInputFocusLost signal
93 public class KeyInputFocusLostEventArgs : EventArgs
98 * @brief View - is the view that loses Key Input Focus
115 * @brief Event arguments that passed via KeyEvent signal
118 public class KeyEventArgs : EventArgs
121 private KeyEvent _keyEvent;
124 * @brief View - is the view that recieves the keyevent.
140 * @brief KeyEvent - is the keyevent sent to the View.
143 public KeyEvent KeyEvent
157 * @brief Event arguments that passed via OnRelayout signal
160 public class OnRelayoutEventArgs : EventArgs
165 * @brief View - is the view that is being resized upon relayout
183 * @brief Event arguments that passed via Touch signal
186 public class TouchEventArgs : EventArgs
189 private TouchData _touchData;
192 * @brief View - is the view that is being touched
208 * @brief TouchData - contains the information of touch points
211 public TouchData TouchData
225 * @brief Event arguments that passed via Hover signal
228 public class HoverEventArgs : EventArgs
231 private HoverEvent _hoverEvent;
234 * @brief View - is the view that is being hovered
250 * @brief HoverEvent - contains touch points that represent the points
251 * that are currently being hovered or the points where a hover has stopped
254 public HoverEvent HoverEvent
268 * @brief Event arguments that passed via Wheel signal
271 public class WheelEventArgs : EventArgs
274 private WheelEvent _wheelEvent;
277 * @brief View - is the view that is being wheeled
293 * @brief WheelEvent - store a wheel rolling type : MOUSE_WHEEL or CUSTOM_WHEEL
296 public WheelEvent WheelEvent
310 * @brief Event arguments that passed via OnStage signal
313 public class OnStageEventArgs : EventArgs
318 * @brief View - is the view that is being connected to the stage
335 * @brief Event arguments that passed via OffStage signal
338 public class OffStageEventArgs : EventArgs
343 * @brief View - is the view that is being disconnected from the stage
359 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
360 private delegate void KeyInputFocusGainedCallbackDelegate(IntPtr control);
361 private DaliEventHandler<object,KeyInputFocusGainedEventArgs> _KeyInputFocusGainedEventHandler;
362 private KeyInputFocusGainedCallbackDelegate _KeyInputFocusGainedCallbackDelegate;
364 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
365 private delegate void KeyInputFocusLostCallbackDelegate(IntPtr control);
366 private DaliEventHandler<object,KeyInputFocusLostEventArgs> _KeyInputFocusLostEventHandler;
367 private KeyInputFocusLostCallbackDelegate _KeyInputFocusLostCallbackDelegate;
369 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
370 private delegate bool KeyCallbackDelegate(IntPtr control, IntPtr keyEvent);
371 private DaliEventHandlerWithReturnType<object,KeyEventArgs,bool> _KeyEventHandler;
372 private KeyCallbackDelegate _KeyCallbackDelegate;
374 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
375 private delegate void OnRelayoutEventCallbackDelegate(IntPtr control);
376 private DaliEventHandler<object,OnRelayoutEventArgs> _viewOnRelayoutEventHandler;
377 private OnRelayoutEventCallbackDelegate _viewOnRelayoutEventCallbackDelegate;
379 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
380 private delegate bool TouchCallbackDelegate(IntPtr view, IntPtr touchData);
381 private DaliEventHandlerWithReturnType<object,TouchEventArgs,bool> _viewTouchDataEventHandler;
382 private TouchCallbackDelegate _viewTouchDataCallbackDelegate;
384 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
385 private delegate bool HoverEventCallbackDelegate(IntPtr view, IntPtr hoverEvent);
386 private DaliEventHandlerWithReturnType<object,HoverEventArgs,bool> _viewHoverEventHandler;
387 private HoverEventCallbackDelegate _viewHoverEventCallbackDelegate;
389 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
390 private delegate bool WheelEventCallbackDelegate(IntPtr view, IntPtr wheelEvent);
391 private DaliEventHandlerWithReturnType<object,WheelEventArgs,bool> _viewWheelEventHandler;
392 private WheelEventCallbackDelegate _viewWheelEventCallbackDelegate;
394 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
395 private delegate void OnStageEventCallbackDelegate(IntPtr control);
396 private DaliEventHandler<object,OnStageEventArgs> _viewOnStageEventHandler;
397 private OnStageEventCallbackDelegate _viewOnStageEventCallbackDelegate;
399 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
400 private delegate void OffStageEventCallbackDelegate(IntPtr control);
401 private DaliEventHandler<object,OffStageEventArgs> _viewOffStageEventHandler;
402 private OffStageEventCallbackDelegate _viewOffStageEventCallbackDelegate;
405 * @brief Event for KeyInputFocusGained signal which can be used to subscribe/unsubscribe the event handler
406 * (in the type of KeyInputFocusGainedEventHandler-DaliEventHandler<object,KeyInputFocusGainedEventArgs>)
407 * provided by the user. KeyInputFocusGained signal is emitted when the control gets Key Input Focus.
409 public event DaliEventHandler<object,KeyInputFocusGainedEventArgs> KeyInputFocusGained
415 // Restricted to only one listener
416 if (_KeyInputFocusGainedEventHandler == null)
418 _KeyInputFocusGainedEventHandler += value;
419 Console.WriteLine("View Keyevent EVENT Locked....");
420 _KeyInputFocusGainedCallbackDelegate = new KeyInputFocusGainedCallbackDelegate(OnKeyInputFocusGained);
421 this.KeyInputFocusGainedSignal().Connect(_KeyInputFocusGainedCallbackDelegate);
430 if (_KeyInputFocusGainedEventHandler != null)
432 this.KeyInputFocusGainedSignal().Disconnect(_KeyInputFocusGainedCallbackDelegate);
435 _KeyInputFocusGainedEventHandler -= value;
440 private void OnKeyInputFocusGained(IntPtr view)
442 KeyInputFocusGainedEventArgs e = new KeyInputFocusGainedEventArgs();
443 Console.WriteLine("View Keyevent ....");
444 // Populate all members of "e" (KeyInputFocusGainedEventArgs) with real data
445 e.View = Dali.View.GetViewFromPtr(view);
447 if (_KeyInputFocusGainedEventHandler != null)
449 //here we send all data to user event handlers
450 _KeyInputFocusGainedEventHandler(this, e);
456 * @brief Event for KeyInputFocusLost signal which can be used to subscribe/unsubscribe the event handler
457 * (in the type of KeyInputFocusLostEventHandler-DaliEventHandler<object,KeyInputFocusLostEventArgs>)
458 * provided by the user. KeyInputFocusLost signal is emitted when the control loses Key Input Focus.
460 public event DaliEventHandler<object,KeyInputFocusLostEventArgs> KeyInputFocusLost
466 // Restricted to only one listener
467 if (_KeyInputFocusLostEventHandler == null)
469 _KeyInputFocusLostEventHandler += value;
471 _KeyInputFocusLostCallbackDelegate = new KeyInputFocusLostCallbackDelegate(OnKeyInputFocusLost);
472 this.KeyInputFocusLostSignal().Connect(_KeyInputFocusLostCallbackDelegate);
481 if (_KeyInputFocusLostEventHandler != null)
483 this.KeyInputFocusLostSignal().Disconnect(_KeyInputFocusLostCallbackDelegate);
486 _KeyInputFocusLostEventHandler -= value;
491 private void OnKeyInputFocusLost(IntPtr view)
493 KeyInputFocusLostEventArgs e = new KeyInputFocusLostEventArgs();
495 // Populate all members of "e" (KeyInputFocusLostEventArgs) with real data
496 e.View = Dali.View.GetViewFromPtr(view);
498 if (_KeyInputFocusLostEventHandler != null)
500 //here we send all data to user event handlers
501 _KeyInputFocusLostEventHandler(this, e);
506 * @brief Event for KeyPressed signal which can be used to subscribe/unsubscribe the event handler
507 * (in the type of KeyEventEventHandler-DaliEventHandlerWithReturnType<object,KeyEventArgs,bool>)
508 * provided by the user. KeyPressed signal is emitted when key event is received.
510 public event DaliEventHandlerWithReturnType<object,KeyEventArgs,bool> KeyPressed
516 // Restricted to only one listener
517 if (_KeyEventHandler == null)
519 _KeyEventHandler += value;
521 _KeyCallbackDelegate = new KeyCallbackDelegate(OnKeyEvent);
522 this.KeyEventSignal().Connect(_KeyCallbackDelegate);
531 if (_KeyEventHandler != null)
533 this.KeyEventSignal().Disconnect(_KeyCallbackDelegate);
536 _KeyEventHandler -= value;
541 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
543 KeyEventArgs e = new KeyEventArgs();
545 // Populate all members of "e" (KeyEventArgs) with real data
546 e.View = Dali.View.GetViewFromPtr(view);
547 e.KeyEvent = Dali.KeyEvent.GetKeyEventFromPtr(keyEvent);
549 if (_KeyEventHandler != null)
551 //here we send all data to user event handlers
552 return _KeyEventHandler(this, e);
559 * @brief Event for OnRelayout signal which can be used to subscribe/unsubscribe the event handler
560 * (in the type of OnRelayoutEventHandler) provided by the user.
561 * OnRelayout signal is emitted after the size has been set on the view during relayout.
563 public event DaliEventHandler<object,OnRelayoutEventArgs> OnRelayoutEvent
569 // Restricted to only one listener
570 if (_viewOnRelayoutEventHandler == null)
572 _viewOnRelayoutEventHandler += value;
573 Console.WriteLine("View OnRelayoutEventArgs Locked....");
574 _viewOnRelayoutEventCallbackDelegate = new OnRelayoutEventCallbackDelegate(OnRelayout);
575 this.OnRelayoutSignal().Connect(_viewOnRelayoutEventCallbackDelegate);
584 if (_viewOnRelayoutEventHandler != null)
586 this.OnRelayoutSignal().Disconnect(_viewOnRelayoutEventCallbackDelegate);
589 _viewOnRelayoutEventHandler -= value;
594 // Callback for View OnRelayout signal
595 private void OnRelayout(IntPtr data)
597 OnRelayoutEventArgs e = new OnRelayoutEventArgs();
598 Console.WriteLine("View OnRelayoutEventArgs....");
599 // Populate all members of "e" (OnRelayoutEventArgs) with real data
600 e.View = View.GetViewFromPtr(data);
602 if (_viewOnRelayoutEventHandler != null)
604 //here we send all data to user event handlers
605 _viewOnRelayoutEventHandler(this, e);
610 * @brief Event for Touched signal which can be used to subscribe/unsubscribe the event handler
611 * (in the type of TouchEventHandler-DaliEventHandlerWithReturnType<object,TouchEventArgs,bool>)
612 * provided by the user. Touched signal is emitted when touch input is received.
614 public event DaliEventHandlerWithReturnType<object,TouchEventArgs,bool> Touched
620 // Restricted to only one listener
621 if (_viewTouchDataEventHandler == null)
623 _viewTouchDataEventHandler += value;
624 Console.WriteLine("View Touch EVENT LOCKED....");
625 _viewTouchDataCallbackDelegate = new TouchCallbackDelegate(OnTouch);
626 this.TouchSignal().Connect(_viewTouchDataCallbackDelegate);
635 if (_viewTouchDataEventHandler != null)
637 this.TouchSignal().Disconnect(_viewTouchDataCallbackDelegate);
640 _viewTouchDataEventHandler -= value;
645 // Callback for View TouchSignal
646 private bool OnTouch(IntPtr view, IntPtr touchData)
648 TouchEventArgs e = new TouchEventArgs();
649 Console.WriteLine("View Touch EVENT....");
650 // Populate all members of "e" (TouchEventArgs) with real data
651 e.View = View.GetViewFromPtr(view);
652 e.TouchData = Dali.TouchData.GetTouchDataFromPtr(touchData);
654 if (_viewTouchDataEventHandler != null)
656 //here we send all data to user event handlers
657 return _viewTouchDataEventHandler(this, e);
664 * @brief Event for Hovered signal which can be used to subscribe/unsubscribe the event handler
665 * (in the type of HoverEventHandler-DaliEventHandlerWithReturnType<object,HoverEventArgs,bool>)
666 * provided by the user. Hovered signal is emitted when hover input is received.
668 public event DaliEventHandlerWithReturnType<object,HoverEventArgs,bool> Hovered
674 // Restricted to only one listener
675 if (_viewHoverEventHandler == null)
677 _viewHoverEventHandler += value;
679 _viewHoverEventCallbackDelegate = new HoverEventCallbackDelegate(OnHoverEvent);
680 this.HoveredSignal().Connect(_viewHoverEventCallbackDelegate);
689 if (_viewHoverEventHandler != null)
691 this.HoveredSignal().Disconnect(_viewHoverEventCallbackDelegate);
694 _viewHoverEventHandler -= value;
699 // Callback for View Hover signal
700 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
702 HoverEventArgs e = new HoverEventArgs();
704 // Populate all members of "e" (HoverEventArgs) with real data
705 e.View = View.GetViewFromPtr(view);
706 e.HoverEvent = Dali.HoverEvent.GetHoverEventFromPtr(hoverEvent);
708 if (_viewHoverEventHandler != null)
710 //here we send all data to user event handlers
711 return _viewHoverEventHandler(this, e);
718 * @brief Event for WheelMoved signal which can be used to subscribe/unsubscribe the event handler
719 * (in the type of WheelEventHandler-DaliEventHandlerWithReturnType<object,WheelEventArgs,bool>)
720 * provided by the user. WheelMoved signal is emitted when wheel event is received.
722 public event DaliEventHandlerWithReturnType<object,WheelEventArgs,bool> WheelMoved
728 // Restricted to only one listener
729 if (_viewWheelEventHandler == null)
731 _viewWheelEventHandler += value;
732 Console.WriteLine("View Wheel EVENT LOCKED....");
733 _viewWheelEventCallbackDelegate = new WheelEventCallbackDelegate(OnWheelEvent);
734 this.WheelEventSignal().Connect(_viewWheelEventCallbackDelegate);
743 if (_viewWheelEventHandler != null)
745 this.WheelEventSignal().Disconnect(_viewWheelEventCallbackDelegate);
748 _viewWheelEventHandler -= value;
753 // Callback for View Wheel signal
754 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
756 WheelEventArgs e = new WheelEventArgs();
757 Console.WriteLine("View Wheel EVENT ....");
758 // Populate all members of "e" (WheelEventArgs) with real data
759 e.View = View.GetViewFromPtr(view);
760 e.WheelEvent = Dali.WheelEvent.GetWheelEventFromPtr(wheelEvent);
762 if (_viewWheelEventHandler != null)
764 //here we send all data to user event handlers
765 return _viewWheelEventHandler(this, e);
772 * @brief Event for OnStage signal which can be used to subscribe/unsubscribe the event handler
773 * (in the type of OnStageEventHandler) provided by the user.
774 * OnStage signal is emitted after the view has been connected to the stage.
776 public event DaliEventHandler<object,OnStageEventArgs> OnStageEvent
782 // Restricted to only one listener
783 if (_viewOnStageEventHandler == null)
785 _viewOnStageEventHandler += value;
787 _viewOnStageEventCallbackDelegate = new OnStageEventCallbackDelegate(OnStage);
788 this.OnStageSignal().Connect(_viewOnStageEventCallbackDelegate);
797 if (_viewOnStageEventHandler != null)
799 this.OnStageSignal().Disconnect(_viewOnStageEventCallbackDelegate);
802 _viewOnStageEventHandler -= value;
807 // Callback for View OnStage signal
808 private void OnStage(IntPtr data)
810 OnStageEventArgs e = new OnStageEventArgs();
812 // Populate all members of "e" (OnStageEventArgs) with real data
813 e.View = View.GetViewFromPtr(data);
815 if (_viewOnStageEventHandler != null)
817 //here we send all data to user event handlers
818 _viewOnStageEventHandler(this, e);
823 * @brief Event for OffStage signal which can be used to subscribe/unsubscribe the event handler
824 * (in the type of OffStageEventHandler) provided by the user.
825 * OffStage signal is emitted after the view has been disconnected from the stage.
827 public event DaliEventHandler<object,OffStageEventArgs> OffStageEvent
833 // Restricted to only one listener
834 if (_viewOffStageEventHandler == null)
836 _viewOffStageEventHandler += value;
838 _viewOffStageEventCallbackDelegate = new OffStageEventCallbackDelegate(OffStage);
839 this.OnStageSignal().Connect(_viewOffStageEventCallbackDelegate);
848 if (_viewOffStageEventHandler != null)
850 this.OnStageSignal().Disconnect(_viewOffStageEventCallbackDelegate);
853 _viewOffStageEventHandler -= value;
858 // Callback for View OffStage signal
859 private void OffStage(IntPtr data)
861 OffStageEventArgs e = new OffStageEventArgs();
863 // Populate all members of "e" (OffStageEventArgs) with real data
864 e.View = View.GetViewFromPtr(data);
866 if (_viewOffStageEventHandler != null)
868 //here we send all data to user event handlers
869 _viewOffStageEventHandler(this, e);
873 public static View GetViewFromPtr(global::System.IntPtr cPtr) {
874 View ret = new View(cPtr, false);
875 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
880 public class Property : global::System.IDisposable {
881 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
882 protected bool swigCMemOwn;
884 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn) {
885 swigCMemOwn = cMemoryOwn;
886 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
889 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj) {
890 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
897 public virtual void Dispose() {
899 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
902 NDalicPINVOKE.delete_View_Property(swigCPtr);
904 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
906 global::System.GC.SuppressFinalize(this);
910 public Property() : this(NDalicPINVOKE.new_View_Property(), true) {
911 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
914 public static readonly int STYLE_NAME = NDalicPINVOKE.View_Property_STYLE_NAME_get();
915 public static readonly int BACKGROUND_COLOR = NDalicPINVOKE.View_Property_BACKGROUND_COLOR_get();
916 public static readonly int BACKGROUND_IMAGE = NDalicPINVOKE.View_Property_BACKGROUND_IMAGE_get();
917 public static readonly int KEY_INPUT_FOCUS = NDalicPINVOKE.View_Property_KEY_INPUT_FOCUS_get();
918 public static readonly int BACKGROUND = NDalicPINVOKE.View_Property_BACKGROUND_get();
922 public class KeyboardFocus : global::System.IDisposable {
923 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
924 protected bool swigCMemOwn;
926 internal KeyboardFocus(global::System.IntPtr cPtr, bool cMemoryOwn) {
927 swigCMemOwn = cMemoryOwn;
928 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
931 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(KeyboardFocus obj) {
932 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
939 public virtual void Dispose() {
941 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
944 NDalicPINVOKE.delete_View_KeyboardFocus(swigCPtr);
946 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
948 global::System.GC.SuppressFinalize(this);
952 public KeyboardFocus() : this(NDalicPINVOKE.new_View_KeyboardFocus(), true) {
953 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
956 public enum Direction {
965 public View () : this (NDalicPINVOKE.View_New(), true) {
966 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
969 public View(View uiControl) : this(NDalicPINVOKE.new_View__SWIG_1(View.getCPtr(uiControl)), true) {
970 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
973 public View Assign(View handle) {
974 View ret = new View(NDalicPINVOKE.View_Assign(swigCPtr, View.getCPtr(handle)), false);
975 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
979 public new static View DownCast(BaseHandle handle) {
980 View ret = new View(NDalicPINVOKE.View_DownCast(BaseHandle.getCPtr(handle)), true);
981 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
985 public void SetKeyInputFocus() {
986 NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
987 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
990 public bool HasKeyInputFocus() {
991 bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
992 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
996 public void ClearKeyInputFocus() {
997 NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
998 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1001 public PinchGestureDetector GetPinchGestureDetector() {
1002 PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
1003 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1007 public PanGestureDetector GetPanGestureDetector() {
1008 PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
1009 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1013 public TapGestureDetector GetTapGestureDetector() {
1014 TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
1015 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1019 public LongPressGestureDetector GetLongPressGestureDetector() {
1020 LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
1021 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1025 public void SetStyleName(string styleName) {
1026 NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
1027 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1030 public string GetStyleName() {
1031 string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
1032 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1036 public void SetBackgroundColor(Vector4 color) {
1037 NDalicPINVOKE.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
1038 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1041 public Vector4 GetBackgroundColor() {
1042 Vector4 ret = new Vector4(NDalicPINVOKE.View_GetBackgroundColor(swigCPtr), true);
1043 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1047 public void SetBackgroundImage(Image image) {
1048 NDalicPINVOKE.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
1049 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1052 public void ClearBackground() {
1053 NDalicPINVOKE.View_ClearBackground(swigCPtr);
1054 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1057 public ControlKeyEventSignal KeyEventSignal() {
1058 ControlKeyEventSignal ret = new ControlKeyEventSignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
1059 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1063 public KeyInputFocusSignal KeyInputFocusGainedSignal() {
1064 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
1065 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1069 public KeyInputFocusSignal KeyInputFocusLostSignal() {
1070 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
1071 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1075 public View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true) {
1076 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1079 public enum PropertyRange {
1080 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1081 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1082 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX+1000
1085 public string StyleName
1090 GetProperty( View.Property.STYLE_NAME).Get( out temp );
1095 SetProperty( View.Property.STYLE_NAME, new Dali.Property.Value( value ) );
1098 public Vector4 BackgroundColor
1102 Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
1103 GetProperty( View.Property.BACKGROUND_COLOR).Get( temp );
1108 SetProperty( View.Property.BACKGROUND_COLOR, new Dali.Property.Value( value ) );
1111 public Dali.Property.Map BackgroundImage
1115 Dali.Property.Map temp = new Dali.Property.Map();
1116 GetProperty( View.Property.BACKGROUND_IMAGE).Get( temp );
1121 SetProperty( View.Property.BACKGROUND_IMAGE, new Dali.Property.Value( value ) );
1124 public bool KeyInputFocus
1129 GetProperty( View.Property.KEY_INPUT_FOCUS).Get( ref temp );
1134 SetProperty( View.Property.KEY_INPUT_FOCUS, new Dali.Property.Value( value ) );
1137 public Dali.Property.Map Background
1141 Dali.Property.Map temp = new Dali.Property.Map();
1142 GetProperty( View.Property.BACKGROUND).Get( temp );
1147 SetProperty( View.Property.BACKGROUND, new Dali.Property.Value( value ) );
1151 public Vector2 CellIndex
1155 Vector2 temp = new Vector2(0.0f,0.0f);
1156 GetProperty( TableView.ChildProperty.CELL_INDEX).Get( temp );
1161 SetProperty( TableView.ChildProperty.CELL_INDEX, new Dali.Property.Value( value ) );
1164 public float RowSpan
1169 GetProperty( TableView.ChildProperty.ROW_SPAN).Get( ref temp );
1174 SetProperty( TableView.ChildProperty.ROW_SPAN, new Dali.Property.Value( value ) );
1177 public float ColumnSpan
1182 GetProperty( TableView.ChildProperty.COLUMN_SPAN).Get( ref temp );
1187 SetProperty( TableView.ChildProperty.COLUMN_SPAN, new Dali.Property.Value( value ) );
1190 public string CellHorizontalAlignment
1195 GetProperty( TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get( out temp );
1200 SetProperty( TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Dali.Property.Value( value ) );
1203 public string CellVerticalAlignment
1208 GetProperty( TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get( out temp );
1213 SetProperty( TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Dali.Property.Value( value ) );
1222 GetProperty( FlexContainer.ChildProperty.FLEX).Get( ref temp );
1227 SetProperty( FlexContainer.ChildProperty.FLEX, new Dali.Property.Value( value ) );
1230 public int AlignSelf
1235 GetProperty( FlexContainer.ChildProperty.ALIGN_SELF).Get( ref temp );
1240 SetProperty( FlexContainer.ChildProperty.ALIGN_SELF, new Dali.Property.Value( value ) );
1243 public Vector4 FlexMargin
1247 Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
1248 GetProperty( FlexContainer.ChildProperty.FLEX_MARGIN).Get( temp );
1253 SetProperty( FlexContainer.ChildProperty.FLEX_MARGIN, new Dali.Property.Value( value ) );