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 Popup : View
\r
42 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
44 internal Popup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Popup_SWIGUpcast(cPtr), cMemoryOwn)
\r
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
49 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Popup obj)
\r
51 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
56 DisposeQueue.Instance.Add(this);
\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_Popup(swigCPtr);
\r
76 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
78 global::System.GC.SuppressFinalize(this);
\r
85 public class OutsideTouchedEventArgs : EventArgs
\r
89 public class ShowingEventArgs : EventArgs
\r
93 public class ShownEventArgs : EventArgs
\r
97 public class HidingEventArgs : EventArgs
\r
101 public class HiddenEventArgs : EventArgs
\r
105 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
106 private delegate void OutsideTouchedEventCallback();
\r
107 private OutsideTouchedEventCallback _popUpOutsideTouchedEventCallback;
\r
108 private EventHandler<OutsideTouchedEventArgs> _popUpOutsideTouchedEventHandler;
\r
110 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
111 private delegate void ShowingEventCallback();
\r
112 private ShowingEventCallback _popUpShowingEventCallback;
\r
113 private EventHandler<ShowingEventArgs> _popUpShowingEventHandler;
\r
115 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
116 private delegate void ShownEventCallback();
\r
117 private ShownEventCallback _popUpShownEventCallback;
\r
118 private EventHandler<ShownEventArgs> _popUpShownEventHandler;
\r
120 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
121 private delegate void HidingEventCallback();
\r
122 private HidingEventCallback _popUpHidingEventCallback;
\r
123 private EventHandler<HidingEventArgs> _popUpHidingEventHandler;
\r
125 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
126 private delegate void HiddenEventCallback();
\r
127 private HiddenEventCallback _popUpHiddenEventCallback;
\r
128 private EventHandler<HiddenEventArgs> _popUpHiddenEventHandler;
\r
130 public event EventHandler<OutsideTouchedEventArgs> OutsideTouched
\r
134 if (_popUpOutsideTouchedEventCallback == null)
\r
136 _popUpOutsideTouchedEventCallback = OnOutsideTouched;
\r
137 OutsideTouchedSignal().Connect(_popUpOutsideTouchedEventCallback);
\r
139 _popUpOutsideTouchedEventHandler += value;
\r
143 _popUpOutsideTouchedEventHandler -= value;
\r
145 if (_popUpOutsideTouchedEventCallback == null && _popUpOutsideTouchedEventCallback != null)
\r
147 OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallback);
\r
152 private void OnOutsideTouched()
\r
154 OutsideTouchedEventArgs e = new OutsideTouchedEventArgs();
\r
156 if (_popUpOutsideTouchedEventHandler != null)
\r
158 _popUpOutsideTouchedEventHandler(this, e);
\r
162 public event EventHandler<ShowingEventArgs> Showing
\r
166 if (_popUpShowingEventCallback == null)
\r
168 _popUpShowingEventCallback = OnShowing;
\r
169 ShowingSignal().Connect(_popUpShowingEventCallback);
\r
171 _popUpShowingEventHandler += value;
\r
176 _popUpShowingEventHandler -= value;
\r
178 if (_popUpShowingEventCallback == null && _popUpShowingEventCallback != null)
\r
180 ShowingSignal().Disconnect(_popUpShowingEventCallback);
\r
185 private void OnShowing()
\r
187 ShowingEventArgs e = new ShowingEventArgs();
\r
189 if (_popUpShowingEventHandler != null)
\r
191 _popUpShowingEventHandler(this, e);
\r
196 public event EventHandler<ShownEventArgs> Shown
\r
200 if (_popUpShownEventCallback != null)
\r
202 _popUpShownEventCallback = OnShown;
\r
203 ShownSignal().Connect(_popUpShownEventCallback);
\r
205 _popUpShownEventHandler += value;
\r
210 _popUpShownEventHandler -= value;
\r
212 if (_popUpShownEventCallback == null && _popUpShownEventCallback != null)
\r
214 ShownSignal().Disconnect(_popUpShownEventCallback);
\r
219 private void OnShown()
\r
221 ShownEventArgs e = new ShownEventArgs();
\r
223 if (_popUpShownEventHandler != null)
\r
225 _popUpShownEventHandler(this, e);
\r
229 public event EventHandler<HidingEventArgs> Hiding
\r
233 if (_popUpHidingEventCallback == null)
\r
235 _popUpHidingEventCallback = OnHiding;
\r
236 HidingSignal().Connect(_popUpHidingEventCallback);
\r
238 _popUpHidingEventHandler += value;
\r
243 _popUpHidingEventHandler -= value;
\r
245 if (_popUpHidingEventCallback == null && _popUpHidingEventCallback != null)
\r
247 HidingSignal().Disconnect(_popUpHidingEventCallback);
\r
252 private void OnHiding()
\r
254 HidingEventArgs e = new HidingEventArgs();
\r
256 if (_popUpHidingEventHandler != null)
\r
258 _popUpHidingEventHandler(this, e);
\r
262 public event EventHandler<HiddenEventArgs> Hidden
\r
266 if (_popUpHiddenEventCallback == null)
\r
268 _popUpHiddenEventCallback = OnHidden;
\r
269 HiddenSignal().Connect(_popUpHiddenEventCallback);
\r
271 _popUpHiddenEventHandler += value;
\r
275 _popUpHiddenEventHandler -= value;
\r
277 if (_popUpHiddenEventCallback == null && _popUpHiddenEventCallback != null)
\r
279 HiddenSignal().Disconnect(_popUpHiddenEventCallback);
\r
284 private void OnHidden()
\r
286 HiddenEventArgs e = new HiddenEventArgs();
\r
288 if (_popUpHiddenEventHandler != null)
\r
290 _popUpHiddenEventHandler(this, e);
\r
294 internal class Property : global::System.IDisposable
\r
296 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
297 protected bool swigCMemOwn;
\r
299 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
\r
301 swigCMemOwn = cMemoryOwn;
\r
302 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
305 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
\r
307 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
315 public virtual void Dispose()
\r
319 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
323 swigCMemOwn = false;
\r
324 NDalicPINVOKE.delete_Popup_Property(swigCPtr);
\r
326 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
328 global::System.GC.SuppressFinalize(this);
\r
332 internal Property() : this(NDalicPINVOKE.new_Popup_Property(), true)
\r
334 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
337 internal static readonly int TITLE = NDalicPINVOKE.Popup_Property_TITLE_get();
\r
338 internal static readonly int CONTENT = NDalicPINVOKE.Popup_Property_CONTENT_get();
\r
339 internal static readonly int FOOTER = NDalicPINVOKE.Popup_Property_FOOTER_get();
\r
340 internal static readonly int DISPLAY_STATE = NDalicPINVOKE.Popup_Property_DISPLAY_STATE_get();
\r
341 internal static readonly int TOUCH_TRANSPARENT = NDalicPINVOKE.Popup_Property_TOUCH_TRANSPARENT_get();
\r
342 internal static readonly int TAIL_VISIBILITY = NDalicPINVOKE.Popup_Property_TAIL_VISIBILITY_get();
\r
343 internal static readonly int TAIL_POSITION = NDalicPINVOKE.Popup_Property_TAIL_POSITION_get();
\r
344 internal static readonly int CONTEXTUAL_MODE = NDalicPINVOKE.Popup_Property_CONTEXTUAL_MODE_get();
\r
345 internal static readonly int ANIMATION_DURATION = NDalicPINVOKE.Popup_Property_ANIMATION_DURATION_get();
\r
346 internal static readonly int ANIMATION_MODE = NDalicPINVOKE.Popup_Property_ANIMATION_MODE_get();
\r
347 internal static readonly int ENTRY_ANIMATION = NDalicPINVOKE.Popup_Property_ENTRY_ANIMATION_get();
\r
348 internal static readonly int EXIT_ANIMATION = NDalicPINVOKE.Popup_Property_EXIT_ANIMATION_get();
\r
349 internal static readonly int AUTO_HIDE_DELAY = NDalicPINVOKE.Popup_Property_AUTO_HIDE_DELAY_get();
\r
350 internal static readonly int BACKING_ENABLED = NDalicPINVOKE.Popup_Property_BACKING_ENABLED_get();
\r
351 internal static readonly int BACKING_COLOR = NDalicPINVOKE.Popup_Property_BACKING_COLOR_get();
\r
352 internal static readonly int POPUP_BACKGROUND_IMAGE = NDalicPINVOKE.Popup_Property_POPUP_BACKGROUND_IMAGE_get();
\r
353 internal static readonly int POPUP_BACKGROUND_BORDER = NDalicPINVOKE.Popup_Property_POPUP_BACKGROUND_BORDER_get();
\r
354 internal static readonly int TAIL_UP_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_UP_IMAGE_get();
\r
355 internal static readonly int TAIL_DOWN_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_DOWN_IMAGE_get();
\r
356 internal static readonly int TAIL_LEFT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_LEFT_IMAGE_get();
\r
357 internal static readonly int TAIL_RIGHT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_RIGHT_IMAGE_get();
\r
361 public Popup() : this(NDalicPINVOKE.Popup_New(), true)
\r
363 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
366 internal Popup(Popup handle) : this(NDalicPINVOKE.new_Popup__SWIG_1(Popup.getCPtr(handle)), true)
\r
368 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
371 internal Popup Assign(Popup handle)
\r
373 Popup ret = new Popup(NDalicPINVOKE.Popup_Assign(swigCPtr, Popup.getCPtr(handle)), false);
\r
374 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
378 public new static Popup DownCast(BaseHandle handle)
\r
380 Popup ret = new Popup(NDalicPINVOKE.Popup_DownCast(BaseHandle.getCPtr(handle)), true);
\r
381 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
385 public void SetTitle(Actor titleActor)
\r
387 NDalicPINVOKE.Popup_SetTitle(swigCPtr, Actor.getCPtr(titleActor));
\r
388 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
391 internal Actor GetTitle()
\r
393 Actor ret = new Actor(NDalicPINVOKE.Popup_GetTitle(swigCPtr), true);
\r
394 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
398 public void SetContent(Actor content)
\r
400 NDalicPINVOKE.Popup_SetContent(swigCPtr, Actor.getCPtr(content));
\r
401 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
404 internal Actor GetContent()
\r
406 Actor ret = new Actor(NDalicPINVOKE.Popup_GetContent(swigCPtr), true);
\r
407 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
411 public void SetFooter(Actor footer)
\r
413 NDalicPINVOKE.Popup_SetFooter(swigCPtr, Actor.getCPtr(footer));
\r
414 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
417 internal Actor GetFooter()
\r
419 Actor ret = new Actor(NDalicPINVOKE.Popup_GetFooter(swigCPtr), true);
\r
420 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
424 public void SetDisplayState(Popup.DisplayStateType displayState)
\r
426 NDalicPINVOKE.Popup_SetDisplayState(swigCPtr, (int)displayState);
\r
427 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
430 internal Popup.DisplayStateType GetDisplayState()
\r
432 Popup.DisplayStateType ret = (Popup.DisplayStateType)NDalicPINVOKE.Popup_GetDisplayState(swigCPtr);
\r
433 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
437 internal VoidSignal OutsideTouchedSignal()
\r
439 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_OutsideTouchedSignal(swigCPtr), false);
\r
440 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
444 internal VoidSignal ShowingSignal()
\r
446 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShowingSignal(swigCPtr), false);
\r
447 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
451 internal VoidSignal ShownSignal()
\r
453 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShownSignal(swigCPtr), false);
\r
454 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
458 internal VoidSignal HidingSignal()
\r
460 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HidingSignal(swigCPtr), false);
\r
461 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
465 internal VoidSignal HiddenSignal()
\r
467 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HiddenSignal(swigCPtr), false);
\r
468 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
472 internal enum PropertyRange
\r
474 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
\r
475 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000
\r
478 public enum DisplayStateType
\r
486 public enum AnimationModeType
\r
494 public enum ContextualModeType
\r
503 public PropertyMap Title
\r
507 PropertyMap temp = new PropertyMap();
\r
508 GetProperty(Popup.Property.TITLE).Get(temp);
\r
513 SetProperty(Popup.Property.TITLE, new Tizen.NUI.PropertyValue(value));
\r
516 public PropertyMap Content
\r
520 PropertyMap temp = new PropertyMap();
\r
521 GetProperty(Popup.Property.CONTENT).Get(temp);
\r
526 SetProperty(Popup.Property.CONTENT, new Tizen.NUI.PropertyValue(value));
\r
529 public PropertyMap Footer
\r
533 PropertyMap temp = new PropertyMap();
\r
534 GetProperty(Popup.Property.FOOTER).Get(temp);
\r
539 SetProperty(Popup.Property.FOOTER, new Tizen.NUI.PropertyValue(value));
\r
542 public string DisplayState
\r
547 GetProperty(Popup.Property.DISPLAY_STATE).Get(out temp);
\r
552 SetProperty(Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(value));
\r
555 public bool TouchTransparent
\r
560 GetProperty(Popup.Property.TOUCH_TRANSPARENT).Get(ref temp);
\r
565 SetProperty(Popup.Property.TOUCH_TRANSPARENT, new Tizen.NUI.PropertyValue(value));
\r
568 public bool TailVisibility
\r
573 GetProperty(Popup.Property.TAIL_VISIBILITY).Get(ref temp);
\r
578 SetProperty(Popup.Property.TAIL_VISIBILITY, new Tizen.NUI.PropertyValue(value));
\r
581 public Vector3 TailPosition
\r
585 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
\r
586 GetProperty(Popup.Property.TAIL_POSITION).Get(temp);
\r
591 SetProperty(Popup.Property.TAIL_POSITION, new Tizen.NUI.PropertyValue(value));
\r
594 public string ContextualMode
\r
599 GetProperty(Popup.Property.CONTEXTUAL_MODE).Get(out temp);
\r
604 SetProperty(Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(value));
\r
607 public float AnimationDuration
\r
612 GetProperty(Popup.Property.ANIMATION_DURATION).Get(ref temp);
\r
617 SetProperty(Popup.Property.ANIMATION_DURATION, new Tizen.NUI.PropertyValue(value));
\r
620 public string AnimationMode
\r
625 GetProperty(Popup.Property.ANIMATION_MODE).Get(out temp);
\r
630 SetProperty(Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(value));
\r
633 public PropertyMap EntryAnimation
\r
637 PropertyMap temp = new PropertyMap();
\r
638 GetProperty(Popup.Property.ENTRY_ANIMATION).Get(temp);
\r
643 SetProperty(Popup.Property.ENTRY_ANIMATION, new Tizen.NUI.PropertyValue(value));
\r
646 public PropertyMap ExitAnimation
\r
650 PropertyMap temp = new PropertyMap();
\r
651 GetProperty(Popup.Property.EXIT_ANIMATION).Get(temp);
\r
656 SetProperty(Popup.Property.EXIT_ANIMATION, new Tizen.NUI.PropertyValue(value));
\r
659 public int AutoHideDelay
\r
664 GetProperty(Popup.Property.AUTO_HIDE_DELAY).Get(ref temp);
\r
669 SetProperty(Popup.Property.AUTO_HIDE_DELAY, new Tizen.NUI.PropertyValue(value));
\r
672 public bool BackingEnabled
\r
677 GetProperty(Popup.Property.BACKING_ENABLED).Get(ref temp);
\r
682 SetProperty(Popup.Property.BACKING_ENABLED, new Tizen.NUI.PropertyValue(value));
\r
685 public Vector4 BackingColor
\r
689 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
\r
690 GetProperty(Popup.Property.BACKING_COLOR).Get(temp);
\r
695 SetProperty(Popup.Property.BACKING_COLOR, new Tizen.NUI.PropertyValue(value));
\r
698 public string PopupBackgroundImage
\r
703 GetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE).Get(out temp);
\r
708 SetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE, new Tizen.NUI.PropertyValue(value));
\r
711 public Rectangle PopupBackgroundBorder
\r
715 Rectangle temp = new Rectangle(0, 0, 0, 0);
\r
716 GetProperty(Popup.Property.POPUP_BACKGROUND_BORDER).Get(temp);
\r
721 SetProperty(Popup.Property.POPUP_BACKGROUND_BORDER, new Tizen.NUI.PropertyValue(value));
\r
724 public string TailUpImage
\r
729 GetProperty(Popup.Property.TAIL_UP_IMAGE).Get(out temp);
\r
734 SetProperty(Popup.Property.TAIL_UP_IMAGE, new Tizen.NUI.PropertyValue(value));
\r
737 public string TailDownImage
\r
742 GetProperty(Popup.Property.TAIL_DOWN_IMAGE).Get(out temp);
\r
747 SetProperty(Popup.Property.TAIL_DOWN_IMAGE, new Tizen.NUI.PropertyValue(value));
\r
750 public string TailLeftImage
\r
755 GetProperty(Popup.Property.TAIL_LEFT_IMAGE).Get(out temp);
\r
760 SetProperty(Popup.Property.TAIL_LEFT_IMAGE, new Tizen.NUI.PropertyValue(value));
\r
763 public string TailRightImage
\r
768 GetProperty(Popup.Property.TAIL_RIGHT_IMAGE).Get(out temp);
\r
773 SetProperty(Popup.Property.TAIL_RIGHT_IMAGE, new Tizen.NUI.PropertyValue(value));
\r