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 if (_popUpOutsideTouchedEventCallback != null)
\r
145 OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallback);
\r
148 _popUpOutsideTouchedEventHandler -= value;
\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 if (_popUpShowingEventCallback != null)
\r
178 ShowingSignal().Disconnect(_popUpShowingEventCallback);
\r
180 _popUpShowingEventHandler -= value;
\r
184 private void OnShowing()
\r
186 ShowingEventArgs e = new ShowingEventArgs();
\r
188 if (_popUpShowingEventHandler != null)
\r
190 _popUpShowingEventHandler(this, e);
\r
195 public event EventHandler<ShownEventArgs> Shown
\r
199 if (_popUpShownEventCallback != null)
\r
201 _popUpShownEventCallback = OnShown;
\r
202 ShownSignal().Connect(_popUpShownEventCallback);
\r
204 _popUpShownEventHandler += value;
\r
209 if (_popUpShownEventCallback == null)
\r
211 ShownSignal().Disconnect(_popUpShownEventCallback);
\r
213 _popUpShownEventHandler -= value;
\r
217 private void OnShown()
\r
219 ShownEventArgs e = new ShownEventArgs();
\r
221 if (_popUpShownEventHandler != null)
\r
223 _popUpShownEventHandler(this, e);
\r
227 public event EventHandler<HidingEventArgs> Hiding
\r
231 if (_popUpHidingEventCallback == null)
\r
233 _popUpHidingEventCallback = OnHiding;
\r
234 HidingSignal().Connect(_popUpHidingEventCallback);
\r
236 _popUpHidingEventHandler += value;
\r
241 if (_popUpHidingEventCallback != null)
\r
243 HidingSignal().Disconnect(_popUpHidingEventCallback);
\r
245 _popUpHidingEventHandler -= value;
\r
249 private void OnHiding()
\r
251 HidingEventArgs e = new HidingEventArgs();
\r
253 if (_popUpHidingEventHandler != null)
\r
255 _popUpHidingEventHandler(this, e);
\r
259 public event EventHandler<HiddenEventArgs> Hidden
\r
263 if (_popUpHiddenEventCallback == null)
\r
265 _popUpHiddenEventCallback = OnHidden;
\r
266 HiddenSignal().Connect(_popUpHiddenEventCallback);
\r
268 _popUpHiddenEventHandler += value;
\r
272 if (_popUpHiddenEventCallback != null)
\r
274 HiddenSignal().Disconnect(_popUpHiddenEventCallback);
\r
276 _popUpHiddenEventHandler -= value;
\r
280 private void OnHidden()
\r
282 HiddenEventArgs e = new HiddenEventArgs();
\r
284 if (_popUpHiddenEventHandler != null)
\r
286 _popUpHiddenEventHandler(this, e);
\r
290 internal class Property : global::System.IDisposable
\r
292 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
293 protected bool swigCMemOwn;
\r
295 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
\r
297 swigCMemOwn = cMemoryOwn;
\r
298 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
301 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
\r
303 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
311 public virtual void Dispose()
\r
315 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
319 swigCMemOwn = false;
\r
320 NDalicPINVOKE.delete_Popup_Property(swigCPtr);
\r
322 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
324 global::System.GC.SuppressFinalize(this);
\r
328 internal Property() : this(NDalicPINVOKE.new_Popup_Property(), true)
\r
330 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
333 internal static readonly int TITLE = NDalicPINVOKE.Popup_Property_TITLE_get();
\r
334 internal static readonly int CONTENT = NDalicPINVOKE.Popup_Property_CONTENT_get();
\r
335 internal static readonly int FOOTER = NDalicPINVOKE.Popup_Property_FOOTER_get();
\r
336 internal static readonly int DISPLAY_STATE = NDalicPINVOKE.Popup_Property_DISPLAY_STATE_get();
\r
337 internal static readonly int TOUCH_TRANSPARENT = NDalicPINVOKE.Popup_Property_TOUCH_TRANSPARENT_get();
\r
338 internal static readonly int TAIL_VISIBILITY = NDalicPINVOKE.Popup_Property_TAIL_VISIBILITY_get();
\r
339 internal static readonly int TAIL_POSITION = NDalicPINVOKE.Popup_Property_TAIL_POSITION_get();
\r
340 internal static readonly int CONTEXTUAL_MODE = NDalicPINVOKE.Popup_Property_CONTEXTUAL_MODE_get();
\r
341 internal static readonly int ANIMATION_DURATION = NDalicPINVOKE.Popup_Property_ANIMATION_DURATION_get();
\r
342 internal static readonly int ANIMATION_MODE = NDalicPINVOKE.Popup_Property_ANIMATION_MODE_get();
\r
343 internal static readonly int ENTRY_ANIMATION = NDalicPINVOKE.Popup_Property_ENTRY_ANIMATION_get();
\r
344 internal static readonly int EXIT_ANIMATION = NDalicPINVOKE.Popup_Property_EXIT_ANIMATION_get();
\r
345 internal static readonly int AUTO_HIDE_DELAY = NDalicPINVOKE.Popup_Property_AUTO_HIDE_DELAY_get();
\r
346 internal static readonly int BACKING_ENABLED = NDalicPINVOKE.Popup_Property_BACKING_ENABLED_get();
\r
347 internal static readonly int BACKING_COLOR = NDalicPINVOKE.Popup_Property_BACKING_COLOR_get();
\r
348 internal static readonly int POPUP_BACKGROUND_IMAGE = NDalicPINVOKE.Popup_Property_POPUP_BACKGROUND_IMAGE_get();
\r
349 internal static readonly int POPUP_BACKGROUND_BORDER = NDalicPINVOKE.Popup_Property_POPUP_BACKGROUND_BORDER_get();
\r
350 internal static readonly int TAIL_UP_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_UP_IMAGE_get();
\r
351 internal static readonly int TAIL_DOWN_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_DOWN_IMAGE_get();
\r
352 internal static readonly int TAIL_LEFT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_LEFT_IMAGE_get();
\r
353 internal static readonly int TAIL_RIGHT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_RIGHT_IMAGE_get();
\r
357 public Popup() : this(NDalicPINVOKE.Popup_New(), true)
\r
359 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
362 internal Popup(Popup handle) : this(NDalicPINVOKE.new_Popup__SWIG_1(Popup.getCPtr(handle)), true)
\r
364 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
367 internal Popup Assign(Popup handle)
\r
369 Popup ret = new Popup(NDalicPINVOKE.Popup_Assign(swigCPtr, Popup.getCPtr(handle)), false);
\r
370 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
374 public new static Popup DownCast(BaseHandle handle)
\r
376 Popup ret = new Popup(NDalicPINVOKE.Popup_DownCast(BaseHandle.getCPtr(handle)), true);
\r
377 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
381 public void SetTitle(Actor titleActor)
\r
383 NDalicPINVOKE.Popup_SetTitle(swigCPtr, Actor.getCPtr(titleActor));
\r
384 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
387 internal Actor GetTitle()
\r
389 Actor ret = new Actor(NDalicPINVOKE.Popup_GetTitle(swigCPtr), true);
\r
390 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
394 public void SetContent(Actor content)
\r
396 NDalicPINVOKE.Popup_SetContent(swigCPtr, Actor.getCPtr(content));
\r
397 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
400 internal Actor GetContent()
\r
402 Actor ret = new Actor(NDalicPINVOKE.Popup_GetContent(swigCPtr), true);
\r
403 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
407 public void SetFooter(Actor footer)
\r
409 NDalicPINVOKE.Popup_SetFooter(swigCPtr, Actor.getCPtr(footer));
\r
410 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
413 internal Actor GetFooter()
\r
415 Actor ret = new Actor(NDalicPINVOKE.Popup_GetFooter(swigCPtr), true);
\r
416 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
420 public void SetDisplayState(Popup.DisplayStateType displayState)
\r
422 NDalicPINVOKE.Popup_SetDisplayState(swigCPtr, (int)displayState);
\r
423 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
426 internal Popup.DisplayStateType GetDisplayState()
\r
428 Popup.DisplayStateType ret = (Popup.DisplayStateType)NDalicPINVOKE.Popup_GetDisplayState(swigCPtr);
\r
429 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
433 internal VoidSignal OutsideTouchedSignal()
\r
435 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_OutsideTouchedSignal(swigCPtr), false);
\r
436 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
440 internal VoidSignal ShowingSignal()
\r
442 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShowingSignal(swigCPtr), false);
\r
443 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
447 internal VoidSignal ShownSignal()
\r
449 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShownSignal(swigCPtr), false);
\r
450 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
454 internal VoidSignal HidingSignal()
\r
456 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HidingSignal(swigCPtr), false);
\r
457 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
461 internal VoidSignal HiddenSignal()
\r
463 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HiddenSignal(swigCPtr), false);
\r
464 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
468 internal enum PropertyRange
\r
470 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
\r
471 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000
\r
474 public enum DisplayStateType
\r
482 public enum AnimationModeType
\r
490 public enum ContextualModeType
\r
499 public PropertyMap Title
\r
503 PropertyMap temp = new PropertyMap();
\r
504 GetProperty(Popup.Property.TITLE).Get(temp);
\r
509 SetProperty(Popup.Property.TITLE, new Tizen.NUI.PropertyValue(value));
\r
512 public PropertyMap Content
\r
516 PropertyMap temp = new PropertyMap();
\r
517 GetProperty(Popup.Property.CONTENT).Get(temp);
\r
522 SetProperty(Popup.Property.CONTENT, new Tizen.NUI.PropertyValue(value));
\r
525 public PropertyMap Footer
\r
529 PropertyMap temp = new PropertyMap();
\r
530 GetProperty(Popup.Property.FOOTER).Get(temp);
\r
535 SetProperty(Popup.Property.FOOTER, new Tizen.NUI.PropertyValue(value));
\r
538 public string DisplayState
\r
543 GetProperty(Popup.Property.DISPLAY_STATE).Get(out temp);
\r
548 SetProperty(Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(value));
\r
551 public bool TouchTransparent
\r
556 GetProperty(Popup.Property.TOUCH_TRANSPARENT).Get(ref temp);
\r
561 SetProperty(Popup.Property.TOUCH_TRANSPARENT, new Tizen.NUI.PropertyValue(value));
\r
564 public bool TailVisibility
\r
569 GetProperty(Popup.Property.TAIL_VISIBILITY).Get(ref temp);
\r
574 SetProperty(Popup.Property.TAIL_VISIBILITY, new Tizen.NUI.PropertyValue(value));
\r
577 public Vector3 TailPosition
\r
581 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
\r
582 GetProperty(Popup.Property.TAIL_POSITION).Get(temp);
\r
587 SetProperty(Popup.Property.TAIL_POSITION, new Tizen.NUI.PropertyValue(value));
\r
590 public string ContextualMode
\r
595 GetProperty(Popup.Property.CONTEXTUAL_MODE).Get(out temp);
\r
600 SetProperty(Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(value));
\r
603 public float AnimationDuration
\r
608 GetProperty(Popup.Property.ANIMATION_DURATION).Get(ref temp);
\r
613 SetProperty(Popup.Property.ANIMATION_DURATION, new Tizen.NUI.PropertyValue(value));
\r
616 public string AnimationMode
\r
621 GetProperty(Popup.Property.ANIMATION_MODE).Get(out temp);
\r
626 SetProperty(Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(value));
\r
629 public PropertyMap EntryAnimation
\r
633 PropertyMap temp = new PropertyMap();
\r
634 GetProperty(Popup.Property.ENTRY_ANIMATION).Get(temp);
\r
639 SetProperty(Popup.Property.ENTRY_ANIMATION, new Tizen.NUI.PropertyValue(value));
\r
642 public PropertyMap ExitAnimation
\r
646 PropertyMap temp = new PropertyMap();
\r
647 GetProperty(Popup.Property.EXIT_ANIMATION).Get(temp);
\r
652 SetProperty(Popup.Property.EXIT_ANIMATION, new Tizen.NUI.PropertyValue(value));
\r
655 public int AutoHideDelay
\r
660 GetProperty(Popup.Property.AUTO_HIDE_DELAY).Get(ref temp);
\r
665 SetProperty(Popup.Property.AUTO_HIDE_DELAY, new Tizen.NUI.PropertyValue(value));
\r
668 public bool BackingEnabled
\r
673 GetProperty(Popup.Property.BACKING_ENABLED).Get(ref temp);
\r
678 SetProperty(Popup.Property.BACKING_ENABLED, new Tizen.NUI.PropertyValue(value));
\r
681 public Vector4 BackingColor
\r
685 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
\r
686 GetProperty(Popup.Property.BACKING_COLOR).Get(temp);
\r
691 SetProperty(Popup.Property.BACKING_COLOR, new Tizen.NUI.PropertyValue(value));
\r
694 public string PopupBackgroundImage
\r
699 GetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE).Get(out temp);
\r
704 SetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE, new Tizen.NUI.PropertyValue(value));
\r
707 public RectInteger PopupBackgroundBorder
\r
711 RectInteger temp = new RectInteger(0, 0, 0, 0);
\r
712 GetProperty(Popup.Property.POPUP_BACKGROUND_BORDER).Get(temp);
\r
717 SetProperty(Popup.Property.POPUP_BACKGROUND_BORDER, new Tizen.NUI.PropertyValue(value));
\r
720 public string TailUpImage
\r
725 GetProperty(Popup.Property.TAIL_UP_IMAGE).Get(out temp);
\r
730 SetProperty(Popup.Property.TAIL_UP_IMAGE, new Tizen.NUI.PropertyValue(value));
\r
733 public string TailDownImage
\r
738 GetProperty(Popup.Property.TAIL_DOWN_IMAGE).Get(out temp);
\r
743 SetProperty(Popup.Property.TAIL_DOWN_IMAGE, new Tizen.NUI.PropertyValue(value));
\r
746 public string TailLeftImage
\r
751 GetProperty(Popup.Property.TAIL_LEFT_IMAGE).Get(out temp);
\r
756 SetProperty(Popup.Property.TAIL_LEFT_IMAGE, new Tizen.NUI.PropertyValue(value));
\r
759 public string TailRightImage
\r
764 GetProperty(Popup.Property.TAIL_RIGHT_IMAGE).Get(out temp);
\r
769 SetProperty(Popup.Property.TAIL_RIGHT_IMAGE, new Tizen.NUI.PropertyValue(value));
\r