1 // Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
\r
2 // PROPRIETARY/CONFIDENTIAL
\r
3 // This software is the confidential and proprietary
\r
4 // information of SAMSUNG ELECTRONICS ("Confidential Information"). You shall
\r
5 // not disclose such Confidential Information and shall use it only in
\r
6 // accordance with the terms of the license agreement you entered into with
\r
7 // SAMSUNG ELECTRONICS. SAMSUNG make no representations or warranties about the
\r
8 // suitability of the software, either express or implied, including but not
\r
9 // limited to the implied warranties of merchantability, fitness for a
\r
10 // particular purpose, or non-infringement. SAMSUNG shall not be liable for any
\r
11 // damages suffered by licensee as a result of using, modifying or distributing
\r
12 // this software or its derivatives.
\r
14 // Copyright (c) 2017 Samsung Electronics Co., Ltd.
\r
16 // Licensed under the Apache License, Version 2.0 (the "License");
\r
17 // you may not use this file except in compliance with the License.
\r
18 // You may obtain a copy of the License at
\r
20 // http://www.apache.org/licenses/LICENSE-2.0
\r
22 // Unless required by applicable law or agreed to in writing, software
\r
23 // distributed under the License is distributed on an "AS IS" BASIS,
\r
24 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
25 // See the License for the specific language governing permissions and
\r
26 // limitations under the License.
\r
29 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
\r
30 // Some have been manually changed
\r
37 using System.Runtime.InteropServices;
\r
40 public class View : CustomActor
\r
42 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
44 internal View(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.View_SWIGUpcast(cPtr), cMemoryOwn)
\r
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
49 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
\r
51 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
59 public override void Dispose()
\r
61 if (!Stage.IsInstalled())
\r
63 DisposeQueue.Instance.Add(this);
\r
69 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
73 swigCMemOwn = false;
\r
74 NDalicPINVOKE.delete_View(swigCPtr);
\r
76 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
78 global::System.GC.SuppressFinalize(this);
\r
83 private EventHandler _keyInputFocusGainedEventHandler;
\r
84 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
85 private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
\r
86 private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
\r
89 * @brief Event for KeyInputFocusGained signal which can be used to subscribe/unsubscribe the event handler
\r
90 * provided by the user. KeyInputFocusGained signal is emitted when the control gets Key Input Focus.
\r
92 public event EventHandler FocusGained
\r
96 if (_keyInputFocusGainedEventHandler == null)
\r
98 _keyInputFocusGainedCallback = OnKeyInputFocusGained;
\r
99 this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
\r
102 _keyInputFocusGainedEventHandler += value;
\r
107 _keyInputFocusGainedEventHandler -= value;
\r
109 if (_keyInputFocusGainedEventHandler == null && _keyInputFocusGainedCallback != null)
\r
111 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
\r
116 private void OnKeyInputFocusGained(IntPtr view)
\r
118 if (_keyInputFocusGainedEventHandler != null)
\r
120 _keyInputFocusGainedEventHandler(this, null);
\r
125 private EventHandler _keyInputFocusLostEventHandler;
\r
126 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
127 private delegate void KeyInputFocusLostCallbackType(IntPtr control);
\r
128 private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
\r
131 * @brief Event for KeyInputFocusLost signal which can be used to subscribe/unsubscribe the event handler
\r
132 * provided by the user. KeyInputFocusLost signal is emitted when the control loses Key Input Focus.
\r
134 public event EventHandler FocusLost
\r
138 if (_keyInputFocusLostEventHandler == null)
\r
140 _keyInputFocusLostCallback = OnKeyInputFocusLost;
\r
141 this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
\r
144 _keyInputFocusLostEventHandler += value;
\r
149 _keyInputFocusLostEventHandler -= value;
\r
151 if (_keyInputFocusLostEventHandler == null && _keyInputFocusLostCallback != null)
\r
153 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
\r
158 private void OnKeyInputFocusLost(IntPtr view)
\r
160 if (_keyInputFocusLostEventHandler != null)
\r
162 _keyInputFocusLostEventHandler(this, null);
\r
168 * @brief Event arguments that passed via KeyEvent signal
\r
171 public class KeyEventArgs : EventArgs
\r
176 * @brief KeyEvent - is the keyevent sent to the View.
\r
192 private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
\r
193 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
194 private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
\r
195 private KeyCallbackType _keyCallback;
\r
198 * @brief Event for KeyPressed signal which can be used to subscribe/unsubscribe the event handler
\r
199 * provided by the user. KeyPressed signal is emitted when key event is received.
\r
201 public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
\r
205 if (_keyEventHandler == null)
\r
207 _keyCallback = OnKeyEvent;
\r
208 this.KeyEventSignal().Connect(_keyCallback);
\r
211 _keyEventHandler += value;
\r
216 _keyEventHandler -= value;
\r
218 if (_keyEventHandler == null && _keyCallback != null)
\r
220 this.KeyEventSignal().Disconnect(_keyCallback);
\r
225 private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
\r
227 KeyEventArgs e = new KeyEventArgs();
\r
229 e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
\r
231 if (_keyEventHandler != null)
\r
233 return _keyEventHandler(this, e);
\r
239 private EventHandler _onRelayoutEventHandler;
\r
240 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
241 private delegate void OnRelayoutEventCallbackType(IntPtr control);
\r
242 private OnRelayoutEventCallbackType _onRelayoutEventCallback;
\r
245 * @brief Event for OnRelayout signal which can be used to subscribe/unsubscribe the event handler
\r
246 * OnRelayout signal is emitted after the size has been set on the view during relayout.
\r
248 public event EventHandler OnRelayoutEvent
\r
252 if (_onRelayoutEventHandler == null)
\r
254 _onRelayoutEventCallback = OnRelayout;
\r
255 this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
\r
258 _onRelayoutEventHandler += value;
\r
263 _onRelayoutEventHandler -= value;
\r
265 if (_onRelayoutEventHandler == null && _onRelayoutEventCallback != null)
\r
267 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
\r
273 // Callback for View OnRelayout signal
\r
274 private void OnRelayout(IntPtr data)
\r
276 if (_onRelayoutEventHandler != null)
\r
278 _onRelayoutEventHandler(this, null);
\r
284 * @brief Event arguments that passed via Touch signal
\r
287 public class TouchEventArgs : EventArgs
\r
289 private Touch _touch;
\r
292 * @brief TouchData - contains the information of touch points
\r
308 private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
\r
309 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
310 private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
\r
311 private TouchDataCallbackType _touchDataCallback;
\r
314 * @brief Event for Touched signal which can be used to subscribe/unsubscribe the event handler
\r
315 * provided by the user. Touched signal is emitted when touch input is received.
\r
317 public event EventHandlerWithReturnType<object, TouchEventArgs, bool> Touched
\r
321 if (_touchDataEventHandler == null)
\r
323 _touchDataCallback = OnTouch;
\r
324 this.TouchSignal().Connect(_touchDataCallback);
\r
327 _touchDataEventHandler += value;
\r
332 _touchDataEventHandler -= value;
\r
334 if (_touchDataEventHandler == null && _touchDataCallback != null)
\r
336 this.TouchSignal().Disconnect(_touchDataCallback);
\r
342 // Callback for View TouchSignal
\r
343 private bool OnTouch(IntPtr view, IntPtr touchData)
\r
345 TouchEventArgs e = new TouchEventArgs();
\r
347 e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
\r
349 if (_touchDataEventHandler != null)
\r
351 return _touchDataEventHandler(this, e);
\r
358 * @brief Event arguments that passed via Hover signal
\r
361 public class HoverEventArgs : EventArgs
\r
363 private Hover _hover;
\r
365 * @brief HoverEvent - contains touch points that represent the points
\r
366 * that are currently being hovered or the points where a hover has stopped
\r
382 private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
\r
383 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
384 private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
\r
385 private HoverEventCallbackType _hoverEventCallback;
\r
388 * @brief Event for Hovered signal which can be used to subscribe/unsubscribe the event handler
\r
389 * provided by the user. Hovered signal is emitted when hover input is received.
\r
391 public event EventHandlerWithReturnType<object, HoverEventArgs, bool> Hovered
\r
395 if (_hoverEventHandler == null)
\r
397 _hoverEventCallback = OnHoverEvent;
\r
398 this.HoveredSignal().Connect(_hoverEventCallback);
\r
401 _hoverEventHandler += value;
\r
406 _hoverEventHandler -= value;
\r
408 if (_hoverEventHandler == null && _hoverEventCallback != null)
\r
410 this.HoveredSignal().Disconnect(_hoverEventCallback);
\r
416 // Callback for View Hover signal
\r
417 private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
\r
419 HoverEventArgs e = new HoverEventArgs();
\r
421 e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
\r
423 if (_hoverEventHandler != null)
\r
425 return _hoverEventHandler(this, e);
\r
432 * @brief Event arguments that passed via Wheel signal
\r
435 public class WheelEventArgs : EventArgs
\r
437 private Wheel _wheel;
\r
439 * @brief WheelEvent - store a wheel rolling type : MOUSE_WHEEL or CUSTOM_WHEEL
\r
455 private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
\r
456 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
457 private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
\r
458 private WheelEventCallbackType _wheelEventCallback;
\r
461 * @brief Event for WheelMoved signal which can be used to subscribe/unsubscribe the event handler
\r
462 * provided by the user. WheelMoved signal is emitted when wheel event is received.
\r
464 public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelMoved
\r
468 if (_wheelEventHandler == null)
\r
470 _wheelEventCallback = OnWheelEvent;
\r
471 this.WheelEventSignal().Connect(_wheelEventCallback);
\r
474 _wheelEventHandler += value;
\r
479 _wheelEventHandler -= value;
\r
481 if (_wheelEventHandler == null && _wheelEventCallback != null)
\r
483 this.WheelEventSignal().Disconnect(_wheelEventCallback);
\r
489 // Callback for View Wheel signal
\r
490 private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
\r
492 WheelEventArgs e = new WheelEventArgs();
\r
494 e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
\r
496 if (_wheelEventHandler != null)
\r
498 return _wheelEventHandler(this, e);
\r
504 private EventHandler _onStageEventHandler;
\r
505 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
506 private delegate void OnStageEventCallbackType(IntPtr control);
\r
507 private OnStageEventCallbackType _onStageEventCallback;
\r
510 * @brief Event for OnStage signal which can be used to subscribe/unsubscribe the event handler
\r
511 * OnStage signal is emitted after the view has been connected to the stage.
\r
513 public event EventHandler OnStageEvent
\r
517 if (_onStageEventHandler == null)
\r
519 _onStageEventCallback = OnStage;
\r
520 this.OnStageSignal().Connect(_onStageEventCallback);
\r
523 _onStageEventHandler += value;
\r
528 _onStageEventHandler -= value;
\r
530 if (_onStageEventHandler == null && _onStageEventCallback != null)
\r
532 this.OnStageSignal().Disconnect(_onStageEventCallback);
\r
537 // Callback for View OnStage signal
\r
538 private void OnStage(IntPtr data)
\r
540 if (_onStageEventHandler != null)
\r
542 _onStageEventHandler(this, null);
\r
547 private EventHandler _offStageEventHandler;
\r
548 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
549 private delegate void OffStageEventCallbackType(IntPtr control);
\r
550 private OffStageEventCallbackType _offStageEventCallback;
\r
553 * @brief Event for OffStage signal which can be used to subscribe/unsubscribe the event handler
\r
554 * OffStage signal is emitted after the view has been disconnected from the stage.
\r
556 public event EventHandler OffStageEvent
\r
560 if (_offStageEventHandler == null)
\r
562 _offStageEventCallback = OffStage;
\r
563 this.OnStageSignal().Connect(_offStageEventCallback);
\r
566 _offStageEventHandler += value;
\r
571 _offStageEventHandler -= value;
\r
573 if (_offStageEventHandler == null && _offStageEventCallback != null)
\r
575 this.OnStageSignal().Disconnect(_offStageEventCallback);
\r
580 // Callback for View OffStage signal
\r
581 private void OffStage(IntPtr data)
\r
583 if (_offStageEventHandler != null)
\r
585 _offStageEventHandler(this, null);
\r
589 public static View GetViewFromPtr(global::System.IntPtr cPtr)
\r
591 View ret = new View(cPtr, false);
\r
592 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
596 internal IntPtr GetPtrfromView()
\r
598 return (IntPtr)swigCPtr;
\r
601 public Tizen.NUI.PropertyMap Tooltip
\r
605 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
\r
606 GetProperty(View.Property.TOOLTIP).Get(temp);
\r
611 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
\r
615 public string TooltipText
\r
619 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
\r
623 internal class Property : global::System.IDisposable
\r
625 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
626 protected bool swigCMemOwn;
\r
628 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
\r
630 swigCMemOwn = cMemoryOwn;
\r
631 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
634 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
\r
636 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
644 public virtual void Dispose()
\r
648 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
652 swigCMemOwn = false;
\r
653 NDalicPINVOKE.delete_View_Property(swigCPtr);
\r
655 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
657 global::System.GC.SuppressFinalize(this);
\r
661 internal static readonly int TOOLTIP = NDalicManualPINVOKE.View_Property_TOOLTIP_get();
\r
663 internal Property() : this(NDalicPINVOKE.new_View_Property(), true)
\r
665 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
668 internal static readonly int STYLE_NAME = NDalicPINVOKE.View_Property_STYLE_NAME_get();
\r
669 internal static readonly int BACKGROUND_COLOR = NDalicPINVOKE.View_Property_BACKGROUND_COLOR_get();
\r
670 internal static readonly int BACKGROUND_IMAGE = NDalicPINVOKE.View_Property_BACKGROUND_IMAGE_get();
\r
671 internal static readonly int KEY_INPUT_FOCUS = NDalicPINVOKE.View_Property_KEY_INPUT_FOCUS_get();
\r
672 internal static readonly int BACKGROUND = NDalicPINVOKE.View_Property_BACKGROUND_get();
\r
677 public enum FocusDirection
\r
688 public View() : this(NDalicPINVOKE.View_New(), true)
\r
690 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
693 internal View(View uiControl) : this(NDalicPINVOKE.new_View__SWIG_1(View.getCPtr(uiControl)), true)
\r
695 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
698 internal View Assign(View handle)
\r
700 View ret = new View(NDalicPINVOKE.View_Assign(swigCPtr, View.getCPtr(handle)), false);
\r
701 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
705 public new static View DownCast(BaseHandle handle)
\r
707 View ret = new View(NDalicPINVOKE.View_DownCast(BaseHandle.getCPtr(handle)), true);
\r
708 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
712 public void SetKeyInputFocus()
\r
714 NDalicPINVOKE.View_SetKeyInputFocus(swigCPtr);
\r
715 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
718 public bool HasKeyInputFocus()
\r
720 bool ret = NDalicPINVOKE.View_HasKeyInputFocus(swigCPtr);
\r
721 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
725 public void ClearKeyInputFocus()
\r
727 NDalicPINVOKE.View_ClearKeyInputFocus(swigCPtr);
\r
728 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
731 internal PinchGestureDetector GetPinchGestureDetector()
\r
733 PinchGestureDetector ret = new PinchGestureDetector(NDalicPINVOKE.View_GetPinchGestureDetector(swigCPtr), true);
\r
734 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
738 internal PanGestureDetector GetPanGestureDetector()
\r
740 PanGestureDetector ret = new PanGestureDetector(NDalicPINVOKE.View_GetPanGestureDetector(swigCPtr), true);
\r
741 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
745 internal TapGestureDetector GetTapGestureDetector()
\r
747 TapGestureDetector ret = new TapGestureDetector(NDalicPINVOKE.View_GetTapGestureDetector(swigCPtr), true);
\r
748 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
752 internal LongPressGestureDetector GetLongPressGestureDetector()
\r
754 LongPressGestureDetector ret = new LongPressGestureDetector(NDalicPINVOKE.View_GetLongPressGestureDetector(swigCPtr), true);
\r
755 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
759 internal void SetStyleName(string styleName)
\r
761 NDalicPINVOKE.View_SetStyleName(swigCPtr, styleName);
\r
762 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
765 internal string GetStyleName()
\r
767 string ret = NDalicPINVOKE.View_GetStyleName(swigCPtr);
\r
768 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
772 internal void SetBackgroundColor(Vector4 color)
\r
774 NDalicPINVOKE.View_SetBackgroundColor(swigCPtr, Vector4.getCPtr(color));
\r
775 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
778 internal Vector4 GetBackgroundColor()
\r
780 Vector4 ret = new Vector4(NDalicPINVOKE.View_GetBackgroundColor(swigCPtr), true);
\r
781 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
785 internal void SetBackgroundImage(Image image)
\r
787 NDalicPINVOKE.View_SetBackgroundImage(swigCPtr, Image.getCPtr(image));
\r
788 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
791 public void ClearBackground()
\r
793 NDalicPINVOKE.View_ClearBackground(swigCPtr);
\r
794 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
797 internal ControlKeySignal KeyEventSignal()
\r
799 ControlKeySignal ret = new ControlKeySignal(NDalicPINVOKE.View_KeyEventSignal(swigCPtr), false);
\r
800 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
804 internal KeyInputFocusSignal KeyInputFocusGainedSignal()
\r
806 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusGainedSignal(swigCPtr), false);
\r
807 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
811 internal KeyInputFocusSignal KeyInputFocusLostSignal()
\r
813 KeyInputFocusSignal ret = new KeyInputFocusSignal(NDalicPINVOKE.View_KeyInputFocusLostSignal(swigCPtr), false);
\r
814 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
818 internal View(ViewImpl implementation) : this(NDalicPINVOKE.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
\r
820 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
823 internal enum PropertyRange
\r
825 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
\r
826 CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
\r
827 CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
\r
830 public string StyleName
\r
835 GetProperty(View.Property.STYLE_NAME).Get(out temp);
\r
840 SetProperty(View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue(value));
\r
844 public Color BackgroundColor
\r
848 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
\r
849 GetProperty(View.Property.BACKGROUND_COLOR).Get(temp);
\r
854 SetProperty(View.Property.BACKGROUND_COLOR, new Tizen.NUI.PropertyValue(value));
\r
858 public string BackgroundImage
\r
863 GetProperty(View.Property.BACKGROUND).Get(out temp);
\r
868 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
\r
871 internal bool KeyInputFocus
\r
876 GetProperty(View.Property.KEY_INPUT_FOCUS).Get(ref temp);
\r
881 SetProperty(View.Property.KEY_INPUT_FOCUS, new Tizen.NUI.PropertyValue(value));
\r
884 public Tizen.NUI.PropertyMap Background
\r
888 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
\r
889 GetProperty(View.Property.BACKGROUND).Get(temp);
\r
894 SetProperty(View.Property.BACKGROUND, new Tizen.NUI.PropertyValue(value));
\r
898 public Vector2 CellIndex
\r
902 Vector2 temp = new Vector2(0.0f, 0.0f);
\r
903 GetProperty(TableView.ChildProperty.CELL_INDEX).Get(temp);
\r
908 SetProperty(TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue(value));
\r
911 public float RowSpan
\r
916 GetProperty(TableView.ChildProperty.ROW_SPAN).Get(ref temp);
\r
921 SetProperty(TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue(value));
\r
924 public float ColumnSpan
\r
929 GetProperty(TableView.ChildProperty.COLUMN_SPAN).Get(ref temp);
\r
934 SetProperty(TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue(value));
\r
937 public string CellHorizontalAlignment
\r
942 GetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp);
\r
947 SetProperty(TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
\r
950 public string CellVerticalAlignment
\r
955 GetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
\r
960 SetProperty(TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(value));
\r
965 /// Child Property of FlexContainer
\r
966 /// The proportion of the free space in the container the flex item will receive.
\r
967 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor
\r
974 GetProperty(FlexContainer.ChildProperty.FLEX).Get(ref temp);
\r
979 SetProperty(FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue(value));
\r
984 /// Child Property of FlexContainer
\r
985 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container
\r
987 public int AlignSelf
\r
992 GetProperty(FlexContainer.ChildProperty.ALIGN_SELF).Get(ref temp);
\r
997 SetProperty(FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue(value));
\r
1002 /// Child Property of FlexContainer
\r
1003 /// The space around the flex item
\r
1005 public Vector4 FlexMargin
\r
1009 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
\r
1010 GetProperty(FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
\r
1015 SetProperty(FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue(value));
\r
1019 public bool Focusable
\r
1023 SetKeyboardFocusable(value);
\r
1027 return IsKeyboardFocusable();
\r