Desktop
}
+ /// <summary>
+ /// An enum of window layout types.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public enum WindowLayoutType
+ {
+ /// <summary>
+ /// Window is placed on the left half of the screen
+ /// </summary>
+ LeftHalf,
+ /// <summary>
+ /// Window is placed on the right half of the screen
+ /// </summary>
+ RightHalf,
+ /// <summary>
+ /// Window is placed on the top half of the screen
+ /// </summary>
+ TopHalf,
+ /// <summary>
+ /// Window is placed on the bottom half of the screen
+ /// </summary>
+ BottomHalf,
+ /// <summary>
+ /// Window is placed on the upper-left quarter of the screen
+ /// </summary>
+ UpperLeftQuarter,
+ /// <summary>
+ /// Window is placed on the upper-right quarter of the screen
+ /// </summary>
+ UpperRightQuarter,
+ /// <summary>
+ /// Window is placed on the lower-left quarter of the screen
+ /// </summary>
+ LowerLeftQuarter,
+ /// <summary>
+ /// Window is placed on the lower-right quarter of the screen
+ /// </summary>
+ LowerRightQuarter,
+ /// <summary>
+ /// Window is placed on the left third of the screen horizontally
+ /// </summary>
+ LeftThird,
+ /// <summary>
+ /// Window is placed on the center third of the screen horizontally
+ /// </summary>
+ CenterThird,
+ /// <summary>
+ /// Window is placed on the right third of the screen horizontally
+ /// </summary>
+ RightThird,
+ /// <summary>
+ /// Window is placed on the top third of the screen vertically
+ /// </summary>
+ TopThird,
+ /// <summary>
+ /// Window is placed on the middle third of the screen vertically
+ /// </summary>
+ MiddleThird,
+ /// <summary>
+ /// Window is placed on the bottom third of the screen vertically
+ /// </summary>
+ BottomThird,
+ }
+
/// <since_tizen> 3 </since_tizen>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "CA1717:Only FlagsAttribute enums should have plural names")]
public enum DisposeTypes
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+ /// <summary>
+ /// Sets the layout of the window.
+ /// </summary>
+ /// <param name="numCols">The number of columns in the layout.</param>
+ /// <param name="numRows">The number of rows in the layout.</param>
+ /// <param name="column">The column number of the window within the layout.</param>
+ /// <param name="row">The row number of the window within the layout.</param>
+ /// <param name="colSpan">The number of columns the window should span within the layout.</param>
+ /// <param name="rowSpan">The number of rows the window should span within the layout.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetLayout(uint numCols, uint numRows, uint column, uint row, uint colSpan, uint rowSpan)
+ {
+ Interop.Window.SetLayout(SwigCPtr, numCols, numRows, column, row, colSpan, rowSpan);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+
+ }
+
+ /// <summary>
+ /// Sets the layout of the window.
+ /// </summary>
+ /// <param name="layoutType">The type of layout to set for the window.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetLayout(WindowLayoutType layoutType)
+ {
+ switch (layoutType)
+ {
+ case WindowLayoutType.LeftHalf:
+ Interop.Window.SetLayout(SwigCPtr, 2, 1, 0, 0, 1, 1);
+ break;
+ case WindowLayoutType.RightHalf:
+ Interop.Window.SetLayout(SwigCPtr, 2, 1, 1, 0, 1, 1);
+ break;
+
+ case WindowLayoutType.TopHalf:
+ Interop.Window.SetLayout(SwigCPtr, 1, 2, 0, 0, 1, 1);
+ break;
+ case WindowLayoutType.BottomHalf:
+ Interop.Window.SetLayout(SwigCPtr, 1, 2, 0, 1, 1, 1);
+ break;
+
+ case WindowLayoutType.UpperLeftQuarter:
+ Interop.Window.SetLayout(SwigCPtr, 2, 2, 0, 0, 1, 1);
+ break;
+ case WindowLayoutType.UpperRightQuarter:
+ Interop.Window.SetLayout(SwigCPtr, 2, 2, 1, 0, 1, 1);
+ break;
+ case WindowLayoutType.LowerLeftQuarter:
+ Interop.Window.SetLayout(SwigCPtr, 2, 2, 0, 1, 1, 1);
+ break;
+ case WindowLayoutType.LowerRightQuarter:
+ Interop.Window.SetLayout(SwigCPtr, 2, 2, 1, 1, 1, 1);
+ break;
+
+ case WindowLayoutType.LeftThird:
+ Interop.Window.SetLayout(SwigCPtr, 3, 1, 0, 0, 1, 1);
+ break;
+ case WindowLayoutType.CenterThird:
+ Interop.Window.SetLayout(SwigCPtr, 3, 1, 1, 0, 1, 1);
+ break;
+ case WindowLayoutType.RightThird:
+ Interop.Window.SetLayout(SwigCPtr, 3, 1, 2, 0, 1, 1);
+ break;
+
+ case WindowLayoutType.TopThird:
+ Interop.Window.SetLayout(SwigCPtr, 1, 3, 0, 0, 1, 1);
+ break;
+ case WindowLayoutType.MiddleThird:
+ Interop.Window.SetLayout(SwigCPtr, 1, 3, 0, 1, 1, 1);
+ break;
+ case WindowLayoutType.BottomThird:
+ Interop.Window.SetLayout(SwigCPtr, 1, 3, 0, 2, 1, 1);
+ break;
+ }
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+
+ }
+
/// <summary>
/// Query whether window is rotating or not.
/// </summary>
{
return;
}
-
+
this.DisconnectNativeSignals();
if (type == DisposeTypes.Explicit)