To support set/get full screen sized window.
The full screen sized window means the window is resized with screen size.
In addition, this window is the z-order is the highest.
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_KeyboardUnGrab")]
[return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
public static extern bool KeyboardUnGrab(global::System.Runtime.InteropServices.HandleRef window);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_SetFullScreen")]
+ public static extern void SetFullScreen(global::System.Runtime.InteropServices.HandleRef window, bool fullscreen);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_GetFullScreen")]
+ [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)]
+ public static extern bool GetFullScreen(global::System.Runtime.InteropServices.HandleRef window);
}
}
}
}
/// <summary>
+ /// Sets to resize window with full screen.
+ /// If full screen size is set for the window,
+ /// window will be resized with full screen.
+ /// In addition, the full screen sized window's z-order is the highest.
+ /// </summary>
+ /// <param name="fullscreen"> If fullscreen is true, set fullscreen or unset.</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetFullScreen(bool fullscreen)
+ {
+ Interop.Window.SetFullScreen(SwigCPtr, fullscreen);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
+
+ /// <summary>
+ /// Gets whether the full screen sized window or not.
+ /// </summary>
+ /// <returns>Returns true if the full screen sized window is.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool GetFullScreen()
+ {
+ bool ret = Interop.Window.GetFullScreen(SwigCPtr);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
+ /// <summary>
/// Get Native Window handle.
/// <example>
/// How to get Native Window handle
case KEY_NUM_7:
mainWin.SetMimimumSize(new Size2D(100, 100));
break;
+ case KEY_NUM_8:
+ if(mainWin.GetFullScreen() == false)
+ {
+ mainWin.SetFullScreen(true);
+ }
+ else
+ {
+ mainWin.SetFullScreen(false);
+ }
+ break;
default:
log.Fatal(tag, $"no test!");
tlog.Debug(tag, $"WindowRequestResizeToServer END (OK)");
}
+
+ [Test]
+ [Category("P1")]
+ [Description("Window SetFullScreen")]
+ [Property("SPEC", "Tizen.NUI.Window.SetFullScreen M")]
+ [Property("SPEC_URL", "-")]
+ [Property("CRITERIA", "MR")]
+ public void SetFullScreen()
+ {
+ tlog.Debug(tag, $"SetFullScreen START");
+
+ try
+ {
+ win.SetFullScreen(true);
+ Assert.IsTrue(win.GetFullScreen());
+ }
+ catch (Exception e)
+ {
+ tlog.Debug(tag, e.Message.ToString());
+ Assert.Fail("Caught Exception : Failed!");
+ }
+
+ tlog.Debug(tag, $"SetFullScreen END (OK)");
+ }
}
}