+ /// Sets the pointer constraints lock.
+ /// </summary>
+ /// <returns>True if PointerConstraintsLock succeeds.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool PointerConstraintsLock()
+ {
+ bool ret = Interop.Window.PointerConstraintsLock(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets the pointer constraints unlock.
+ /// </summary>
+ /// <returns>True if PointerConstraintsUnlock succeeds.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool PointerConstraintsUnlock()
+ {
+ bool ret = Interop.Window.PointerConstraintsUnlock(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets the locked pointer region.
+ /// </summary>
+ /// <param name="x">The x position.</param>
+ /// <param name="y">The y position.</param>
+ /// <param name="width">The width.</param>
+ /// <param name="height">The height.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void LockedPointerRegionSet(int x, int y, int width, int height)
+ {
+ Interop.Window.LockedPointerRegionSet(SwigCPtr, x, y, width, height);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Sets the locked pointer cursor position hintset
+ /// </summary>
+ /// <param name="x">The x position.</param>
+ /// <param name="y">The y position.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void LockedPointerCursorPositionHintSet(int x, int y)
+ {
+ Interop.Window.LockedPointerCursorPositionHintSet(SwigCPtr, x, y);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Sets the pointer warp. The pointer moves to the set coordinates.
+ /// </summary>
+ /// <param name="x">The x position.</param>
+ /// <param name="y">The y position.</param>
+ /// <returns>True if PointerWarp succeeds.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool PointerWarp(int x, int y)
+ {
+ bool ret = Interop.Window.PointerWarp(SwigCPtr, x, y);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Maximizes window's size.
+ /// If this function is called with true, window will be resized with screen size.
+ /// Otherwise window will be resized with previous size.
+ /// It is for the window's MAX button in window's border.
+ /// If window border is supported by display server, it is not necessary.
+ /// </summary>
+ /// <param name="max">If window is maximized or unmaximized.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void Maximize(bool max)
+ {
+ Interop.Window.Maximize(SwigCPtr, max);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Returns whether the window is maximized or not.
+ /// </summary>
+ /// <returns>True if the window is maximized, false otherwise.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool IsMaximized()
+ {
+ bool ret = Interop.Window.IsMaximized(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets window's maximum size.
+ ///
+ /// It is to set the maximized size when window is maximized or the window's size is increased by RequestResizeToServer().
+ /// Although the size is set by this function, window's size can be increased over the limitation by SetPositionSize() or SetSize().
+ ///
+ /// After setting, if Maximize() is called, window is resized with the setting size and move the center.
+ ///
+ /// </summary>
+ /// <param name="size">the maximum size.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetMaximumSize(Size2D size)
+ {
+ if (null == size)
+ {
+ throw new ArgumentNullException(nameof(size));
+ }
+ var val = new Uint16Pair((uint)size.Width, (uint)size.Height);
+
+ Interop.Window.SetMaximumSize(SwigCPtr, Uint16Pair.getCPtr(val));
+ val.Dispose();
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Minimizes window's size.
+ /// If this function is called with true, window will be iconified.
+ /// Otherwise window will be activated.
+ /// It is for the window's MIN button in window border.
+ /// If window border is supported by display server, it is not necessary.
+ /// </summary>
+ /// <param name="min">If window is minimized or unminimized.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void Minimize(bool min)
+ {
+ Interop.Window.Minimize(SwigCPtr, min);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Returns whether the window is minimized or not.
+ /// </summary>
+ /// <returns>True if the window is minimized, false otherwise.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool IsMinimized()
+ {
+ bool ret = Interop.Window.IsMinimized(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Sets window's minimum size.
+ /// It is to set the minimum size when window's size is decreased by RequestResizeToServer().
+ /// Although the size is set by this function, window's size can be decreased over the limitation by SetPositionSize() or SetSize().
+ /// </summary>
+ /// <param name="size">the minimum size.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetMimimumSize(Size2D size)
+ {
+ if (null == size)
+ {
+ throw new ArgumentNullException(nameof(size));
+ }
+ var val = new Uint16Pair((uint)size.Width, (uint)size.Height);
+
+ Interop.Window.SetMimimumSize(SwigCPtr, Uint16Pair.getCPtr(val));
+ val.Dispose();
+ 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>
+ /// <returns>True if window is rotating, false otherwise.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool IsWindowRotating()
+ {
+ bool ret = Interop.Window.IsWindowRotating(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
+ /// Gets the last key event the window gets.
+ /// </summary>
+ /// <returns>The last key event the window gets.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Key GetLastKeyEvent()
+ {
+ if(internalLastKeyEvent == null)
+ {
+ internalLastKeyEvent = new Key();
+ }
+ Interop.Window.InternalRetrievingLastKeyEvent(SwigCPtr, internalLastKeyEvent.SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return internalLastKeyEvent;
+ }
+
+ /// <summary>
+ /// Gets the last touch event the window gets.
+ /// </summary>
+ /// <returns>The last touch event the window gets.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Touch GetLastTouchEvent()
+ {
+ if(internalLastTouchEvent == null)
+ {
+ internalLastTouchEvent = new Touch();
+ }
+ Interop.Window.InternalRetrievingLastTouchEvent(SwigCPtr, internalLastTouchEvent.SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return internalLastTouchEvent;
+ }
+
+ /// <summary>
+ /// Sets the necessary for window rotation Acknowledgement.
+ /// After this function called, SendRotationCompletedAcknowledgement() should be called to complete window rotation.
+ ///
+ /// This function is supprot that application has the window rotation acknowledgement's control.
+ /// It means display server waits when application's rotation work is finished.
+ /// It is useful application has the other rendering engine which works asynchronous.
+ /// For instance, GlView.
+ /// </summary>
+ /// <param name="needAcknowledgement">the flag is true if window rotation acknowledge is sent.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetNeedsRotationCompletedAcknowledgement(bool needAcknowledgement)
+ {
+ Interop.Window.SetNeedsRotationCompletedAcknowledgement(SwigCPtr, needAcknowledgement);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// send the Acknowledgement to complete window rotation.
+ /// For this function, SetNeedsRotationCompletedAcknowledgement should be already called with true.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SendRotationCompletedAcknowledgement()
+ {
+ Interop.Window.SendRotationCompletedAcknowledgement(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>