/// This creates an extra window in addition to the default main window<br />
/// </summary>
/// <param name="windowPosition">The position and size of the Window.</param>
- /// <param name="name">The Window title.</param>
- /// <param name="isTransparent">Whether Window is transparent.</param>
+ /// <param name="isTranslucent">Whether Window is translucent.</param>
/// <returns>A new Window.</returns>
/// <since_tizen> 6 </since_tizen>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Window(Rectangle windowPosition, string name, bool isTransparent) : this(Interop.Window.Window_New__SWIG_0(Rectangle.getCPtr(windowPosition), name, isTransparent), true)
+ public Window(Rectangle windowPosition = null , bool isTranslucent = false) : this(Interop.Window.Window_New__SWIG_0(Rectangle.getCPtr(windowPosition), "", isTranslucent), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// Creates a new Window.<br />
/// This creates an extra window in addition to the default main window<br />
/// </summary>
+ /// <param name="name">The name for extra window. </param>
/// <param name="windowPosition">The position and size of the Window.</param>
- /// <param name="name">The Window title.</param>
+ /// <param name="isTranslucent">Whether Window is translucent.</param>
/// <returns>A new Window.</returns>
/// <since_tizen> 6 </since_tizen>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Window(Rectangle windowPosition, string name) : this(Interop.Window.Window_New__SWIG_1(Rectangle.getCPtr(windowPosition), name), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Creates a new Window.<br />
- /// This creates an extra window in addition to the default main window<br />
- /// </summary>
- /// <param name="windowPosition">The position and size of the Window.</param>
- /// <param name="name">The Window title.</param>
- /// <param name="className">The Window class name.</param>
- /// <param name="isTransparent">Whether Window is transparent.</param>
- /// <returns>A new Window.</returns>
- /// <since_tizen> 6 </since_tizen>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Window(Rectangle windowPosition, string name, string className, bool isTransparent) : this(Interop.Window.Window_New__SWIG_2(Rectangle.getCPtr(windowPosition), name, className, isTransparent), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Creates a new Window.<br />
- /// This creates an extra window in addition to the default main window<br />
- /// </summary>
- /// <param name="windowPosition">The position and size of the Window.</param>
- /// <param name="name">The Window title.</param>
- /// <param name="className">The Window class name.</param>
- /// <returns>A new Window.</returns>
- /// <since_tizen> 6 </since_tizen>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public Window(Rectangle windowPosition, string name, string className) : this(Interop.Window.Window_New__SWIG_3(Rectangle.getCPtr(windowPosition), name, className), true)
+ public Window(string name, Rectangle windowPosition = null, bool isTranslucent = false) : this(Interop.Window.Window_New__SWIG_0(Rectangle.getCPtr(windowPosition), name, isTranslucent), true)
{
+ this._windowTitle = name;
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
}
/// <summary>
+ /// Destroy the window immediately.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void Destroy()
+ {
+ this.Dispose();
+ }
+
+ /// <summary>
/// Keep rendering for at least the given amount of time.
/// </summary>
/// <param name="durationSeconds">Time to keep rendering, 0 means render at least one more frame.</param>
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal void AddAvailableOrientation(Window.WindowOrientation orientation)
- {
- Interop.WindowInternal.Window_AddAvailableOrientation(swigCPtr, (int)orientation);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- internal void RemoveAvailableOrientation(Window.WindowOrientation orientation)
+ /// <summary>
+ /// Adds an orientation to the list of available orientations.
+ /// </summary>
+ /// <param name="orientation">The available orientation to add</param>
+ /// <since_tizen> 6 </since_tizen>
+ public void AddAvailableOrientation(Window.WindowOrientation orientation)
{
- Interop.WindowInternal.Window_RemoveAvailableOrientation(swigCPtr, (int)orientation);
+ Interop.Window.Window_AddAvailableOrientation(swigCPtr, (int)orientation);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal void SetPreferredOrientation(Window.WindowOrientation orientation)
+ /// <summary>
+ /// Removes an orientation from the list of available orientations.
+ /// </summary>
+ /// <param name="orientation">The available orientation to remove.</param>
+ /// <since_tizen> 6 </since_tizen>
+ public void RemoveAvailableOrientation(Window.WindowOrientation orientation)
{
- Interop.WindowInternal.Window_SetPreferredOrientation(swigCPtr, (int)orientation);
+ Interop.Window.Window_RemoveAvailableOrientation(swigCPtr, (int)orientation);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal Window.WindowOrientation GetPreferredOrientation()
+ /// <summary>
+ /// Sets a preferred orientation.
+ /// </summary>
+ /// <param name="orientation">The preferred orientation.</param>
+ /// <since_tizen> 6 </since_tizen>
+ public void SetPreferredOrientation(Window.WindowOrientation orientation)
{
- Window.WindowOrientation ret = (Window.WindowOrientation)Interop.WindowInternal.Window_GetPreferredOrientation(swigCPtr);
+ Interop.Window.Window_SetPreferredOrientation(swigCPtr, (int)orientation);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
}
- internal DragAndDropDetector GetDragAndDropDetector()
+ /// <summary>
+ /// Gets the preferred orientation.
+ /// </summary>
+ /// <since_tizen> 6 </since_tizen>
+ /// <returns>The preferred orientation if previously set, or none.</returns>
+ public Window.WindowOrientation GetPreferredOrientation()
{
- DragAndDropDetector ret = new DragAndDropDetector(Interop.WindowInternal.Window_GetDragAndDropDetector(swigCPtr), true);
+ Window.WindowOrientation ret = (Window.WindowOrientation)Interop.Window.Window_GetPreferredOrientation(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal KeyEventSignal KeyEventSignal()
{
- KeyEventSignal ret = new KeyEventSignal(Interop.StageSignal.Stage_KeyEventSignal(stageCPtr), false);
-
+ KeyEventSignal ret = new KeyEventSignal(Interop.Window.KeyEventSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
internal TouchSignal TouchSignal()
{
- TouchSignal ret = new TouchSignal(Interop.StageSignal.Stage_TouchSignal(stageCPtr), false);
-
+ TouchSignal ret = new TouchSignal(Interop.Window.TouchSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
/// <summary>
+ /// Sets parent window of the window.
+ /// After setting that, these windows do together when raise-up, lower and iconified/deiconified.
+ /// Initially, the window is located on top of the parent. The window can go below parent by calling Lower().
+ /// If parent's window stack is changed by calling Raise() or Lower(), child windows are located on top of the parent again.
+ /// </summary>
+ /// <param name="parent">The parent window.</param>
+ /// <since_tizen> 6 </since_tizen>
+ public void SetParent(Window parent) {
+ Interop.Window.SetParent(swigCPtr, Window.getCPtr(parent));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Unsets parent window of the window.
+ /// After unsetting, the window is disconnected his parent window.
+ /// </summary>
+ /// <since_tizen> 6 </since_tizen>
+ public void Unparent() {
+ Interop.Window.Unparent(swigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Gets parent window of the window.
+ /// </summary>
+ /// <returns>The parent window of the window.</returns>
+ /// <since_tizen> 6 </since_tizen>
+ public Window GetParent() {
+ Window ret = new Window(Interop.Window.GetParent(swigCPtr), true);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
/// Dispose for Window
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
//Release your own managed resources here.
//You should release all of your own disposable objects here.
+ _rootLayer.Dispose();
+ localController.Dispose();
+
+ foreach(var layer in _childLayers)
+ {
+ layer.Dispose();
+ }
+ _childLayers.Clear();
}
this.DisconnectNativeSignals();